OSDN Git Service

bdb8c28390bc12b2aa8d5f063cc799bf14f75d80
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
2                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3
4         * cgraph.c (cgraph_max_uid): New global variable.
5         (cgraph_node): Set uid field.
6         (create_edge): Keep inline flags consistent.
7         (dump_cgraph): Dump more info.
8         * cgraph.h (struct cgraph_local_info): Remove inline_many and
9         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
10         (struct cgraph_global_info): Add insns, calls, cloned_times,
11         will_be_output.
12         (struct cgraph_node): Add uid.
13         (struct cgraph_edge): Add inline_call.
14         (cgraph_max_uid, cgraph_inline_p): Declare.
15         * cgraph.c: Include params.h and fibheap.h
16         (cgraph_mark_functions_to_inline_once): Kill.
17         (INSNS_PER_CALL): New constant.
18         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
19         static variables.
20         (cgraph_finalize_function): Do not analyze inlining.
21         (cgraph_finalize_compilation_unit): Set inlining attributes.
22         (cgraph_mark_functions_to_output): More consistency checks.
23         (cgraph_optimize_function): Set current_function_decl to NULL.
24         (cgraph_expand_function): Use new inline flags.
25         (cgraph_postorder): Expand from cgraph_expand_functions.
26         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
27         (cgraph_inlined_into, cgraph_inlined_callees,
28         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
29         cgraph_mark_inline, cgraph_check_inline_limits,
30         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions, 
31         cgraph_decide_inlining, cgraph_inline_p): New functions.
32         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
33         PARAM_INLINE_UNIT_GROWTH): New parameters.
34         * tree-inline.c (struct inline_data): New field current_decl.
35         (expand_call_inline): Avoid forward declarations; use
36         inlinable_function_p.
37         (optimize_inline_calls): Set id.current_decl.
38
39 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
40
41         * configure.in: Remove wrongly added definition of
42         local_prefix.
43         * configure: Regenerate.
44
45 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
46
47         * rtl.def (NOTE): Do not use padding.
48
49 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
50
51         * doc/install.tex: Update required binutils for i?86-*-linux*
52
53 2003-07-11  Richard Henderson  <rth@redhat.com>
54
55         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
56
57 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
58
59         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
60         TRANSLATION_UNIT_DECL as top_level.
61
62 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
63
64         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
65         then fall back to cmpstrM.
66         * builtins.c (expand_builtin_memcmp): Likewise.
67         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
68         (s390_expand_cmpmem): ... this.
69         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
70         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
71         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
72         to s390_expand_cmpmem.
73         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
74         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
75         to cmpmem*.
76         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
77         cmpstr* patterns.
78         * doc/md.texi (cmpstrM): Describe as String compare insn, not
79         Block compare insn.
80         (cmpmemM): Add.
81
82 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
83
84         * config/i386/freebsd.h (SET_ASM_OP): Remove.
85         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
86         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
87          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
88
89 2003-07-11  Richard Henderson  <rth@redhat.com>
90
91         * function.c (assign_parms): Don't recombine complex args if
92         fnargs is unchanged from orig_fnargs.
93         (split_complex_args): Return args without complex before copying.
94         Re-layout the modified parameters.
95
96 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
97
98         * regclass.c (choose_hard_reg_mode): Add third argument.
99         Changed all callers.
100         * rtl.h (choose_hard_reg_mode): Update declaration.
101         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
102         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
103
104 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
105
106         * c-decl.c (finish_decl): Handle 'used' here...
107         * cgraphunit.c (cgraph_finalize_function): ... and here ...
108         * c-common.c: (handle_used_attribute): ... not here.
109         
110         * configure.in (onstep): Support --enable-intermodule.
111         * Makefile.in (OBJS-common): New.
112         (OBJS-md): New.
113         (OBJS-archive): New.
114         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
115         (OBJS-onestep): New.
116         (libbackend.a): Support @onestep@.
117         (libbackend.o): New.
118         * configure: Regenerate.
119         
120         * c-common.h (c_reset_state): New prototype.
121         (c_parse_file): New prototype.
122         (finish_file): Move prototype from c-tree.h.
123         * c-decl.c: Include <hashtab.h>.
124         (builtin_decls): New.
125         (current_file_decl): New.
126         (duplicate_decls): Add extra parameter. Change all callers.  Don't
127         output duplicate common symbols.
128         (link_hash_hash): New.
129         (link_hash_eq): New.
130         (poplevel): Handle popping of the top level.
131         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
132         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
133         (pushdecl_top_level): Likewise.
134         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
135         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
136         (finish_decl): Handle TRANSLATION_UNIT_DECL.
137         (merge_translation_unit_decls): New.
138         (c_write_global_declarations): New.
139         (c_reset_state): New.
140         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
141         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
142         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
143         TRANSLATION_UNIT_DECL.
144         (c_objc_common_finish_file): Call merge_translation_unit_decls.
145         * c-opts.c (in_fnames): Rename from in_fname.
146         (c_common_decode_option): Handle multiple input filenames.
147         (c_common_post_options): Likewise.
148         (c_common_parse_file): Likewise; also, call c_parse_file rather than
149         yyparse.
150         * c-parse.in: Move cleanup code to c_parse_file.
151         (free_parser_stacks): Move contents to c_parse_file.
152         (c_parse_file): New.
153         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
154         for integer types.
155         (C_DECL_FILE_SCOPE): New.
156         (finish_file): Move prototype to c-common.h.
157         (merge_translation_unit_decls): New prototype.
158         (comptypes): Add extra parameter to prototype.
159         (c_write_global_declarations): New prototype.
160         * c-typeck.c (tagged_types_tu_compatible_p): New.
161         (function_types_compatible_p): Add extra parameter, change all callers.
162         (type_lists_compatible_p): Likewise.
163         (comptypes): Likewise.
164         (struct tagged_tu_seen): New.
165         (tagged_tu_seen_base): New.
166         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
167         (c_mark_addressable): Remove #if 0 code.
168         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
169         comment explaining why it shouldn't have to.
170         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
171         options.
172         * cppinit.c (cpp_read_next_file): New.
173         (cpp_read_main_file): Use it.
174         * cpplib.c (undefine_macros): New.
175         (cpp_undef_all): New.
176         * cpplib.h (cpp_read_next_file): Prototype.
177         (cpp_undef_all): Prototype.
178         * langhooks-def.h (write_global_declarations): Remove prototype.
179         * toplev.h (write_global_declarations): Add prototype.
180         * tree.c (decl_type_context): Use switch statement, handle
181         TRANSLATION_UNIT_DECL.
182         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
183         (TRANSLATION_UNIT_DECL): New kind of tree.
184         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
185         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
186         * doc/invoke.texi: Make attempt to document new functionality.
187
188         2003-05-19  Per Bothner <bothner@apple.com>
189
190         * gcc.c (combine_inputs): New.
191         (process_command): Set combine_inputs.
192         (do_spec_1): Handle combine_inputs.
193         (main): Likewise.
194
195 2003-07-10  James E Wilson  <wilson@tuliptree.org>
196
197         PR optimization/9745
198         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
199         loop_insn_emit_before.
200         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
201         
202 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
203
204         * cppcharset.c: Fix comment.
205         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
206         (EILSEQ): #define to EINVAL if not already defined.
207         (convert_using_iconv): #if out when !HAVE_ICONV.
208         (init_iconv_desc): Handle !HAVE_ICONV here...
209         (cpp_init_iconv): ...not here.
210
211 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
212
213         * common.opt: More --help messages.
214         * opts.c (print_help): Use puts().
215         * toplev.c (f_options): Remove help text.
216         (display_help): Don't dump f_options.
217
218 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
219
220         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
221         Move i?86-*-interix* to the don't-fix list.
222         * fixinc/fixinc.interix: Delete with extreme prejudice.
223
224 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
225
226         PR bootstrap/10758
227         * doc/install.texi: Document requirements for ia64-*-hpux* target.
228
229 2003-07-10  Roger Sayle  <roger@eyesopen.com>
230
231         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
232
233 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
234
235         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
236         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
237         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
238         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
239         convert_no_conversion, convert_using_iconv): New functions.
240         (APPLY_CONVERSION): New macro.
241         (struct conversion, conversion_tab): New data structure.
242         (init_iconv_desc): Check conversion_tab for a custom conversion
243         primitive before trying to use iconv.
244         (convert_cset): Deleted.
245         (cpp_init_iconv): Use UTF- terminology, not UCS-.
246         (_cpp_destroy_iconv): Update to match.
247         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
248         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
249         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
250         (_cpp_interpret_string_notranslate): New function, moved here
251         from cpplib.c.
252
253         * cpphash.h (convert_f, struct cset_converter): New types.
254         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
255         are now struct cset_converter, not bare iconv_t.
256         Update prototypes.
257         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
258         all callers changed.
259
260 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
261
262         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
263         to opts.sh command line.
264         * opts.sh: Write to temporary files with a move-if-change at the end.
265
266 2003-06-30  Denis Chertykov  <denisc@overta.ru>
267             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
268
269         * combine.c (gen_binary): Handle the CLOBBER rtx and
270         don't build a binary operation with it.
271
272 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
273
274         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
275         store_killed_after, store_killed_before): Keep track of the correct
276         dependency function to use.
277
278 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
279         * toplev.c (do_compile): Don't try to open dump files before
280         lang_dependent_init initializes dump_base_name.
281
282 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
283
284         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
285         Use ARRAY_SIZE.
286         * config/frv/frv.c (frv_expand_builtin): Likewise.
287         * config/sh/sh.c (sh_media_init_builtins): Likewise.
288
289 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
290
291         PR c++/10032
292         * doc/invoke.texi (C++ Dialect Options): Change documentation of
293         -fpermissive.
294
295 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
296
297         * tm.texi (RETURN_ADDR_OFFSET): Document.
298
299 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
300
301         * gcov-io.h: Update documentation.
302         (GCOV_UNSIGNED2STRING): New.
303         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
304         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
305         GCOV_TAG_SUMMARY_LENGTH): Adjust.
306         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
307         GCOV_TAG_COUNTER_NUM): New.
308         (GCOV_BLOCK_SIZE): Number of words.
309         (gcov_var): Adjust buffer type.
310         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
311         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
312         count, not byte count.
313         (gcov_open): Adjust overread init.
314         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
315         gcov_write_string, gcov_write_tag, gcov_write_length,
316         gcov_write_tag_length): Adjust.
317         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
318         (gcov_sync, gcov_seek): Adjust.
319         * gcov-dump.c (print_usage): Show gcc version only.
320         (dump_file): Use GCOV_UNSIGNED2STRING.
321         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
322         * gcov.c (print_version): Show gcc version only.
323         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
324         GCOV_TAG_*_NUM macros.
325         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
326         GCOV_TAG_COUNTER_LENGTH.
327         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
328         Use GCOV_TAG_COUNTER_NUM.
329         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
330         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
331
332 2003-07-10  Andreas Schwab  <schwab@suse.de>
333
334         * gcov-dump.c (dump_file): Fix missing address operator.
335
336 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
337
338         PR c/11449
339         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
340         of HOST_WIDE_INT.
341         (fold_single_bit_test): If sign_bit_p() fails, assume that the
342         bit being tested is not a sign bit.
343
344 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
345
346         * config/h8300/h8300.md (a peephole2): New.
347
348 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
349
350         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
351         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
352         from ld-linux.so.2 to ld.so.1.
353         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
354         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
355         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
356         nor -Wl,-rpath-link.
357         (LIB_SPEC): Add -rpath-link if !static.
358         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
359         * config/mn10300/mn10300.c (mn10300_protect_label): New
360         variable.
361         * config/mn10300/linux.h (PRINT_OPERAND,
362         PRINT_OPERAND_ADDRESS): Set it during their execution.
363         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
364         mn10300_protect_label is set.
365         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
366         -Wl,-rpath-link.
367         (LIB_SPEC, STARTFILE_SPEC): Define.
368         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
369         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
370         FLOAT_BIT_ORDER_MISMATCH.
371         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
372         * config.gcc (am33_2.0-*-linux*): Added.
373         * config/mn10300/linux.h: New.
374         * config/mn10300/t-linux: New.
375
376 2003-07-10  Andreas Jaeger  <aj@suse.de>
377
378         * fold-const.c: Properly wrap prototypes.
379
380 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
381
382         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
383         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
384         Moved from...
385         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
386         * config/mn10300/mn10300.h: GTY-declare it.
387         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
388         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
389         prototype.  Use incoming RTL argument.
390         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
391         * config/mn10300/mn10300.md (int_label): Move C statements...
392         (GOTaddr2picreg): ... here.
393         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
394         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
395         * config/mn10300/mn10300.c (mn10300_encode_section_info):
396         ... here.  New function.
397         (TARGET_ENCODE_SECTION_INFO): Define to it.
398         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
399         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
400         pattern name.
401         (mn10300_loadPC): Define as insn splittable after reload.
402         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
403         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
404         be defined in .rodata even in PIC, now that the assembler
405         supports that.
406         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
407         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
408         symbol take an underscore prefix.
409         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
410         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
411         legitimize_pic_address): Declare.
412         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
413         the PIC register as fixed.
414         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
415         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
416         PIC.
417         (LEGITIMATE_PIC_OPERAND_P): Define.
418         (PIC_OFFSET_TABLE_REGNUM): Define.
419         (GOT_SYMBOL_NAME): Define.
420         (SYMBOLIC_CONST_P): Define.
421         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
422         symbols.
423         (MN10300_GLOBAL_P): Test it.
424         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
425         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
426         * config/mn10300/mn10300.c (print_operand): Handle unspec.
427         (expand_prologue): Set PIC register.
428         (call_address_operand): Don't match SYMBOL_REFs in PIC.
429         (legitimize_address): Call legitimize_pic_address.
430         (legitimize_pic_address): New fn.
431         (legitimate_pic_operand_p): New fn.
432         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
433         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
434         UNSPEC_PLT): New constants.
435         (pop_pic_reg): New insn.
436         (movsi): Adjust non-PIC addresses.
437         (builtin_setjmp_receiver): Restore the PIC register.
438         (casesi): New insn.
439         (call): Adjust non-PIC addresses.
440         (int_label, GOTaddr2picreg): New expands.
441         (am33_loadPC): New insn.
442         (mn10300_loadPC): New expand.
443         (call_next_insn): New insn.
444         (add_GOT_to_pic_reg): New expand.
445         (symGOT2reg, symGOT2reg_i): New expands.
446         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
447         (sym2PIC, sym2PLT): New expands.
448
449 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
450
451         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
452         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
453         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
454         to flag_unsafe_math_optimizations.
455         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
456         * config/mn10300/mn10300.c (expand_prologue): Mark
457         FP-register-saving insns as frame-related.
458         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
459         * config/mn10300/mn10300.c
460         (mn10300_get_live_callee_saved_regs): Don't search past
461         LAST_EXTENDED_REGNUM.
462         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
463         * config/mn10300/mn10300.md: Remove excessive line breaks from
464         `@' output patterns that were accounted as additional
465         alternatives.
466         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
467         Re-introduce changes accidentally removed in Richard Sandiford's
468         2000-12-05's patch.
469         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
470         Re-instate am33-2 lost in merge from net GCC.
471         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
472         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
473         floating-point registers.
474         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
475         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
476         pessimizations that had gone in on 2000-05-08.
477         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
478         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
479         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
480         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
481         operand 0.
482         * (movhi): Likewise.
483         * (movsi): Likewise.
484         * (movsf): Likewise.
485         * (movdi): Likewise.
486         * (movdf): Likewise.
487         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
488         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
489         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
490         (expand_prologue, expand_epilogue): Save and restore FP regs.
491         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
492         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
493         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
494         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
495         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
496         Do not clobber cc0.
497         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
498         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
499         Discourage the two-argument, longer opcodes.
500         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
501         ones.
502         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
503         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
504         * config/mn10300/mn10300.md (cmpsf): New pattern.
505         (branch): Test mdep.fpCC and output fbCC.
506         * config/mn10300/mn10300.c (print_operand): Output conditions.
507         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
508         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
509         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
510         mulsf3, divsf3): Use the `F' constraint for FP values.
511         * config/mn10300/mn10300.c (const_1f_operand): New function.
512         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
513         * config/mn10300/mn10300.md (sqrtsf2): New expand.
514         (rsqrtsf2): New insn.
515         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
516         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
517         previous check-in.
518         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
519         * config/mn10300/mn10300.md (abssf2, negdf2): On
520         TARGET_AM33_2, expand to...
521         (abssf2_am33_2, negdf2_am33_2): New insns.
522         (addsf3, subsf3, mulsf3, divsf3): Likewise.
523         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
524         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
525         movdi, movdf): Added FP regs.
526         * invoke.texi (-mam33-2, -mno-am33-2): Document.
527         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
528         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
529         New macros.
530         (REGNO_AM33_2_FP_P): Renamed to...
531         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
532         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
533         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
534         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
535         regs from GENERAL_REGS.
536         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
537         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
538         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
539         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
540         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
541         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
542         as FP_REGS.
543         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
544         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
545         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
546         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
547         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
548         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
549         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
550         AM33/2.0 floating-point registers.
551         (CONDITIONAL_REGISTER_USAGE): Adjust.
552         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
553         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
554         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
555         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
556         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
557         (MULTILIB_DIRNAMES): Likewise.
558         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
559         `__AM33_2__' when `-mam33-2' is given.
560         (TARGET_AM33_2): Define.
561         (TARGET_SWITCHES): Adjust.
562         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
563         when appropriate.
564
565 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
566
567         * doc/install.texi: Add missing @.
568
569 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
570
571         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
572
573 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
574
575         PR/11144
576         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
577
578 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
579
580         PR bootstrap/11043
581         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
582         "x-crtfini.o" with "crtinit.o", "crtfini.o".
583
584         * fixinc/inclhack.def (limits_ifndefs): Add select test.
585         * fixinc/fixincl.x: Rebuild.
586
587         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
588         * fixinc/fixincl.x: Rebuild.
589
590 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
591
592         * doc/install.texi (Configuration): Document the valgrind option
593         to --enable-checking.
594
595 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
596
597         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
598
599 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
600
601         * c-lex.c (cb_ident): Cast cstr.text to const char *.
602
603 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
604
605         * gcov-io.h: Update documentation.
606         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
607         GCOV_NOTE_MAGIC.
608         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
609         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
610         (struct gcov_var): Change buffer's type. Add endian flag.
611         (gcov_open): Remove mode in libgcov.
612         (gcov_magic): Prototype.
613         * gcov-io.c (from_file): New.
614         (gcov_open): Clear endian flag.
615         (gcov_magic): New.
616         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
617         pointers.
618         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
619         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
620         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
621         * gcov-iov.c (main): Correct cast.
622         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
623         conversion.
624         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
625         (coverage_init): Use GCOV_NOTE_SUFFIX.
626         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
627         Rename to gcov_version, and return flag.
628         (gcov_exit): Use gcov_version.
629         (__gcov_init): Use gcov_version.
630         * Makefile.in (coverageexts): Update.
631         * gcov.c (print_version): Remove endianness conversion.
632         (create_file_names): Use GCOV_NOTE_SUFFIX.
633         (read_graph_file): Use gcov_magic.
634         (read_count_file): Likewise.
635         * gcov-dump.c (dump_file): Remove endianness conversion, use
636         gcov_magic.
637
638 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
639
640         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
641         coverage is on.
642         * configure: Regenerated.
643         * Makefile.in (ALL_CFLAGS): Correct its comment.
644
645 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
646
647         * fold-const.c (make_range): Do not access operand 1 for a
648         zero-operand operator.
649
650 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
651
652         * toplev.c (warn_dummy, W_options): Die.
653         (display_help): Don't print W_options.
654         * common.opt: Add W_options help from toplev.c.
655
656 2003-07-09  Andreas Jaeger  <aj@suse.de>
657
658         * opts.c (wrap_help): Only pass int arguments as arguments to
659         printf's '*' modifier.  Change argument of function.
660
661 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
662
663         * doc/invoke.texi: Fix misspelling of "@item".
664
665 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
666
667         * config/i386/i386.md: Remove an old comment about
668         NOTICE_UPDATE_CC.
669
670 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
671
672         * cgraph.c (cgraph_node_name): New function.
673         (dump_cgraph): Use it.
674         * cgraph.h (cgraph_dump_file): Declare.
675         (cgraph_node_name): Declare.
676         * cgraphunit.c: Include timevar.h
677         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
678         (cgraph_optimize_function): Use TV_INTEGRATION.
679         (cgraph_mark_local_functions): reorganize dumps.
680         (cgraph_mark_functions_to_inline_once): Likewise.
681         (cgraph_optimize): Likewise; use timevar.
682         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
683         * toplev.c (dump_file_index): Add DFI_cgraph.
684         (dump_file_info): Likewise.
685         (cgraph_dump_file): New global variable.
686         (do_compile): Open and close cgraph dump.
687         * invoke.texi (-d): Document new flag; renumber.
688
689 2003-07-08  Roger Sayle  <roger@eyesopen.com>
690
691         PR c/11370
692         * calls.c (emit_call_1): Don't bother popping the arguments off of
693         the stack after a noreturn function call;  The adjustment is dead.
694         (expand_call): Likewise.
695
696 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
697
698         * expr.c (MOVE_MAX_PIECES): Move from here...
699         * defaults.h (MOVE_MAX_PIECES): ... to here.
700
701 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
702
703         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
704
705 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
706
707         * genattr.c (internal_dfa_insn_code): Don't prototype.
708         * genattrtab.c (attr_desc): Add `static_p' field.
709         (expand_units): Make blockage range and ready cost functions
710         static.
711         (write_attr_get): Don't add extern prototypes in C file.  Mark
712         static functions as appropriate.
713         (find_attr, make_internal_attr): Initialize static_p.
714         * genattrtab.h (ATTR_STATIC): New macro.
715         * genautomata.c (output_internal_reset_func): Mark output function
716         as inline.
717         (make_internal_dfa_insn_code_attr): Mark output function as static.
718
719 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
720
721         * genattrtab.h: Add new macros for attr `special' flags.
722         * genattrtab.c (attr_desc): Reorder/resize fields better.
723         Use attr `special' macros in all calls to make_internal_attr.
724         * genautomata.c: Likewise.
725
726 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
727
728         * c-common.c (c_estimate_num_insns_1): New static function.
729         (c_estimate_num_insns): New global function.
730         * c-common.h (DECL_NUM_STMTS): Rename to...
731         (DECL_ESTIMATED_INSNS): ... this.
732         (c_estimate_num_insns): Declare.
733         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
734         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
735         * c-semantics.c (add_stmt): Do not account statements.
736         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
737         New.
738         * langhooks.h (lang_hooks_for_tree_inlining): Add
739         estimate_num_insns
740         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
741         to 100.
742         (max-inline-insns): set to 300.
743         (min-inline-insns): set to 10.
744         * tree-inline.c (struct inline_data): Rename inlined_stmts to
745         inlined-insns.
746         (INSNS_PER_STMT): Kill.
747         (inlinable_function_p): Compute and store body size.
748         (expand_call_inline): Likewise.
749         (optimize_inline_calls): Likewise.
750
751 2003-07-08  James E Wilson  <wilson@tuliptree.org>
752
753         PR target/10021
754         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
755         loop over new variable t2 instead of t.
756
757 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
758
759         PR bootstrap/11455
760         * config/i386/winnt.c: Replace use of error(), warning() with
761         error_with_decl(), warning_with_decl(),  throughout.
762
763 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
764
765         * opts.c (wrap_help): Use unsigned int, not size_t.
766
767 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
768
769         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
770         as .file/.loc directives are incompatible with linker relaxation.
771
772 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
773
774         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
775         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
776         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
777         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
778         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
779         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
780         Escape { and } characters which are not part of range expressions.
781         * fixinc/fixincl.x: Regenerate.
782         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
783
784 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
785
786         PR c/1687
787         * tree-inline.c (find_alloca_call): Use
788         walk_tree_without_duplicates, instead of walk_tree.
789         (find_builtin_longjmp_call): Likewise.
790         * c-objc-common.c (c_cannot_inline_fn): Likewise.
791         * c-semantics.c (find_reachable_label): Likewise.
792
793 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
794
795         PR c/11420
796         * config/i386/i386.c (ix86_check_movabs): New function.
797         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
798         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
799         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
800
801 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
802
803         * Makefile.in (install-po): Cope with empty CATALOGS.
804
805 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
806
807         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
808         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
809         (SECTION_FUNCTION_TEMPLATE): Delete.
810         * config/mips/elf.h: As for elf64.h.
811         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
812         * config/mips/linux.h: As for elf.h
813         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
814         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
815         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
816         of in_sdata from current_section_name and current_section_flags.
817         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
818         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
819         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
820         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
821         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
822         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
823         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
824         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
825         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
826         (override_options): Remove setting of MASK_GPOPT.
827         (mips_output_external): Use mips_in_small_data_p to check whether a
828         symbol needs an .extern directive.  Don't emit such directives for
829         TARGET_EXPLICIT_RELOCS.
830         (mips_declare_object): Update accordingly.
831         (mips_select_rtx_section): Call named_section rather than
832         SMALL_DATA_SECTION.
833         (mips_select_section): Use default_elf_section_section for everything
834         except .text string constants.
835         (mips_in_small_data_p): New function.
836         (mips_encode_section_info): Remove small data handling.
837         (mips_unique_section): Delete.
838         (iris6_section_type_flags): New function.
839         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
840
841 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
842
843         PR Target/11453
844         * pa.md: Disparage all mtsar constraints.
845         (extzv, extv, insv): Don't fail on length of {32|64}.
846
847 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
848
849         * system.h: Poison MAP_CHARACTER.
850         * config/i370/i370-protos.h (mvs_map_char): Delete.
851         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
852         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
853         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
854
855 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
856
857         * toplev.c (randomize): Correct call to time().
858
859 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
860
861         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
862         REG_EQUIV notes as well.
863
864 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
865
866         * doc/md.texi: Fix the description of addmodecc.
867
868 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
869
870         * Makefile.in (top_builddir): Set to "..", not ".".
871         (INTLLIBS, INTLDEPS): Delete.
872         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
873         (LIBDEPS): Add $(LIBICONV_DEP).
874         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
875         (INCLUDES): Replace -I../intl with @INCINTL@.
876         ($(top_builddir)/intl/libintl.a): Delete rule.
877         (stage2-start, stage3-start, stage4-start, stageprofile-start,
878         stagefeedback-start): Use $$ for variable to be evaluated by
879         shell, not make.
880         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
881         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
882         * aclocal.m4: sinclude ../config/progtest.m4.  Add
883         contents of lcmessage.m4 from gettext distro.
884         * configure.in: Check for wchar.h and setlocale.  Set
885         LIBICONV_DEP to the empty string and substitute it.
886         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
887         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
888         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
889         in $LIBINTL, to avoid linking it twice.
890         * configure, config.in: Regenerate.
891
892 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
893
894         * fixinc/mkfixinc.sh: Remove winnt support.
895         * fixinc/fixinc.winnt: Delete with extreme prejudice.
896
897 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
898
899         * Makefile.in: Update.
900         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
901         * c.opt: Update documentation.
902         * common.opt: Add some help text.
903         * opts.c: Include intl.h.
904         (wrap_help, print_help): New.
905         (find_opt, handle_option, common_handle_option): opt_text now
906         contains the '-'.  Use print_help to output help.
907         * opts.h (struct cl_option): New member "help".
908         * opts.sh: Update to handle help text output and to prepend
909         options with '-'.
910         * toplev.c (display_help): Remove some help text.
911
912 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
913             Fariborz Jahanian  <fjahanian@apple.com>
914
915         * configure.in: Test for PowerPC mfcr field support in assembler.
916         * config.in, configure: Regenderated.
917
918         * config/rs6000/power4.md: Add mfcrf reservation.
919         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
920         * config/rs6000/rs6000.c (mfcr_operation): Define.
921         (print_operand): Add 'Q' case for mfcrf.
922         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
923         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
924         (movcc_internal1): Emit optional field operand for mfcr and set
925         "type" attribute appropriately.
926         (mfcr SCC): Likewise.
927         (movesi_from_cr_one): New.
928
929 2003-07-07  Roger Sayle  <roger@eyesopen.com>
930
931         * config/i386/i386.md: Correct check-in of incorrect version.
932
933 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
934
935         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
936         adjacent stdio calls.
937         * c-decl.c (c_print_identifier): Likewise.
938         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
939         * print-rtl.c (print_rtx): Likewise.
940         * print-tree.c (print_node_brief, print_node): Likewise.
941         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
942
943         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
944         * config.in, configure: Regenerated.
945
946 2003-07-07  Roger Sayle  <roger@eyesopen.com>
947
948         PR target/10979
949         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
950         Changed to define_expand patterns that copy operand[1] to prevent
951         it from being clobbered before emitting an atan2?f3_1 insn.
952         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
953         patterns that actually specify the behaviour of x87's FPATAN.
954
955 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
956
957         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
958         clearing of SYMBOL_FLAG_LOCAL bit.
959         If vcall_offset fits into signed 16-bit immediate, use
960         one instruction for both addition and load.
961
962 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
963
964         * opts.c (common_handle_option): Correct handling of the
965         -falign- switches that do and don't take an argument.
966
967 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
968
969         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
970         today.
971         (pushhi1_h8300hs): Likewise.
972
973 2003-07-07  Andreas Jaeger  <aj@suse.de>
974
975         * genextract.c: Convert remaining prototypes to ISO C90.
976
977         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
978         * fold-const.c (fold_single_bit_test): Likewise.
979         * diagnostic.c (default_diagnostic_finalizer): Likewise.
980         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
981
982         * gengtype.c (write_array): Generate ISO C90 prototypes.
983
984         * genflags.c (gen_proto): Generate ISO C90 prototypes.
985
986 2003-07-07  Roger Sayle  <roger@eyesopen.com>
987
988         PR optimization/11059
989         * expr.c (can_store_by_pieces): Return true if length is zero.
990         (store_by_pieces): If length is zero and endp is two, abort,
991         othwerise, if length is zero and endp is not two, return "to".
992         (clear_by_pieces): Do nothing if length is zero.
993         (clear_storage): Do nothing if length is zero.
994         (store_constructor): Simplify code when size is zero, or the
995         target has already been cleared.  This avoids emitting a
996         blockage instruction when initializing empty structures.
997
998 2003-07-07  Andreas Jaeger  <aj@suse.de>
999
1000         * mips-tfile.c: Convert prototypes to ISO C90.
1001         * mips-tdump.c: Convert prototypes to ISO C90.
1002
1003 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1004
1005         * rtl.h (emit_line_note): Take a location_t.
1006         (emit_line_note_force): Remove.
1007         (set_file_and_line_for_statement): Take a location_t.
1008         * tree.g (emit_line_note): Take a location_t.
1009         * emit-rtl.c (emit_line_note): Take a location_t.
1010         (emit_line_note_force): Remove.
1011         * function.c (init_function_start): Adjust emit_line_note call.
1012         (expand_function_end): Use force_next_line_note, not
1013         emit_line_note_force.
1014         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
1015         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
1016         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1017         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
1018         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
1019         genrtl_continue_stmt, genrtl_switch_stmt,
1020         genrtl_asm_stmt): Likewise.
1021         * expr.c (expand_expr): Likewise.
1022         * integrate.c (expand_inline_function): Likewise.
1023         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
1024         (expand_decl_init): Adjust emit_line_note call.
1025
1026 2003-07-07  Dale Johannesen  <dalej@apple.com>
1027
1028         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
1029
1030 2003-07-07  Andreas Jaeger  <aj@suse.de>
1031
1032         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
1033         * config/i386/i386.c: Likewise.
1034
1035 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
1036
1037         * config/h8300/h8300.md: Use gen_int_mode instead of
1038         GEN_INT (trunc_int_for_mode (...)).
1039
1040 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
1041
1042         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
1043         2 bytes and then subtract 2 from the stack pointer.
1044         (pushhi1_h8300hs): Likewise.
1045
1046 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1047
1048         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
1049         -frandom-seed.
1050         * configure: Regenerated.
1051         * Makefile.in: Remove extraneous comment.
1052         * toplev.c (randomize): Protect against potential multiple calls.
1053         * doc/invoke.texi (-frandom-seed): Document use for in coverage
1054         files.
1055
1056 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1057             Eric Botcazou  <ebotcazou@libertysurf.fr>
1058
1059         PR optimization/11198
1060         * alias.c (objects_must_conflict_p): Return 1 if the types have
1061         the same alias set, not if the alias sets only conflict.
1062
1063 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
1064
1065         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
1066         (convert_cset): Change inbuf to type ICONV_CONST char.
1067         * Makefile.in (LIBS): Add LIBICONV.
1068
1069         * doc/invoke.texi (-falign-functions): Document that
1070         when n is zero then a machine-dependent default is used.
1071         (-falign-labels): Document that when n is zero then a
1072         machine-dependent default is used and that -falign-labels =1
1073         is equivalent to -fno-align-labels.
1074         (-falign-loops): Likewise.
1075         (-falign-jumps): Likewise.
1076
1077 2003-07-06  Art Haas  <ahaas@airmail.net>
1078
1079         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
1080         initializer syntax.
1081
1082 2003-07-06  James E Wilson  <wilson@tuliptree.org>
1083
1084         PR optimization/9812
1085         * rtl.h (mem_for_const_double): Delete prototype.
1086         * varasm.c (mem_for_const_double): Delete function.
1087         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
1088         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
1089         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
1090         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
1091         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
1092         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
1093         comment about confused support for XFmode constants.
1094
1095 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
1096
1097         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
1098
1099 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
1100
1101         * config/h8300/h8300.c: Fix comment typos.
1102         * config/h8300/h8300.md: Likewise.
1103         * config/i386/athlon.md: Likewise.
1104         * config/i386/i386.c: Likewise.
1105         * config/i386/pentium.md: Likewise.
1106         * config/ia64/ia64.c: Likewise.
1107         * config/ia64/itanium1.md: Likewise.
1108         * config/ia64/itanium2.md: Likewise.
1109         * config/m32r/m32r.md: Likewise.
1110         * config/m68hc11/m68hc11.c: Likewise.
1111         * config/mcore/mcore.c: Likewise.
1112         * config/mips/sr71k.md: Likewise.
1113         * config/mips/t-iris5-as: Likewise.
1114         * config/mmix/mmix.h: Likewise.
1115         * config/ns32k/ns32k.h: Likewise.
1116         * config/ns32k/NOTES: Fix a typo.
1117
1118 2003-07-06  Andreas Jaeger  <aj@suse.de>
1119
1120         * stmt.c: Convert remaining prototypes to ISO C90.
1121         * cfglayout.c: Likewise.
1122         * dbxout.c: Likewise.
1123         * gcc.c: Likewise.
1124         * genemit.c: Likewise.
1125
1126         * basic-block.h: Convert prototypes to ISO C90.
1127         * c-parse.in: Likewise.
1128         * c-pragma.h: Likewise.
1129         * c-typeck.c: Likewise.
1130         * cfghooks.h: Likewise.
1131         * cfgloopanal.c: Likewise.
1132         * dbxout.h: Likewise.
1133         * debug.h: Likewise.
1134         * dwarf2asm.h: Likewise.
1135         * gcov.c: Likewise.
1136         * gengtype-lex.l: Likewise.
1137         * sched-int.h: Likewise.
1138         * timevar.c: Likewise.
1139
1140 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
1141
1142         * c-common.h (c_comon_handle_filename,
1143         c_common_missing_arguement): New.
1144         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
1145         LANG_HOOKS_MISSING_ARGUMENT): New.
1146         * c-opts.c (missing_arg): Rename c_common_missing_argument,
1147         update to be an appropriate langhook.
1148         (c_common_handle_option): Don't handle filenames.
1149         (c_common_handle_filename): New.
1150         * hooks.c (hook_void_constcharptr,
1151         hook_bool_constcharptr_size_t_false): New.
1152         * hooks.h (hook_void_constcharptr,
1153         hook_bool_constcharptr_size_t_false): New.
1154         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
1155         LANG_HOOKS_MISSING_ARGUMENT): New.
1156         (LANG_HOOKS_INITIALIZER): Update.
1157         * langhooks.h (struct lang_hooks): Add handle_filename and
1158         missing_argument.
1159         * opts.c (handle_option): Don't handle filenames here, but ...
1160         (handle_options): ... here.
1161         (common_handle_option): Don't handle missing arguments here.
1162         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
1163         LANG_HOOKS_MISSING_ARGUMENT): New.
1164
1165 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
1166
1167         * Makfile.in: Remove traces of mbchar.
1168         * c-parse.in (MULTIBYTE_CHARS): Remove.
1169         * config.in (MULTIBYTE_CHARS): Remove.
1170         * configure: Remove --enable-mbchar.
1171         * configure.in: Remove --enable-mbchar.
1172         * mbchar.c, mbchar.h: Remove.
1173         * system.h: Poison MULTIBYTE_CHARS.
1174         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
1175         * config/linux.h (MULTIBYTE_CHARS): Remove.
1176         * config/svr4.h (MULTIBYTE_CHARS): Remove.
1177         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
1178
1179 2003-07-06  Andreas Jaeger  <aj@suse.de>
1180
1181         * varray.c (varray_check_failed): Fix typo.
1182
1183         * unroll.c: Convert prototypes to ISO C90.
1184         * varasm.c: Likewise.
1185         * varray.c: Likewise.
1186         * varray.h: Likewise.
1187         * vmsdbgout.c: Likewise.
1188         * xcoffout.c: Likewise.
1189         * xcoffout.h: Likewise.
1190
1191 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1192
1193         * gcov-io.h: Add a local time stamp.
1194         (struct gcov_info): Add stamp field.
1195         (gcov_truncate): New.
1196         * coverage.c (read_counts_file): Skip the stamp.
1197         (coverage_begin_output): Write the stamp.
1198         (build_gcov_info): Declare and init the stamp.
1199         (coverage_finish): Only unlink data file, if stamp is zero.
1200         * gcov-dump.c (dump_file): Dump the stamp.
1201         * gcov.c (bbg_stamp): New.
1202         (release_structures): Clear bbg_stamp.
1203         (read_graph_file): Read stamp.
1204         (read_count_file): Check stamp.
1205         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
1206
1207 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1208
1209         * tree.h (default_flag_random_seed): Remove.
1210         * toplev.h (local_tick): Declare.
1211         * tree.c (flag_random_seed, default_flag_random_seed): Move to
1212         toplev.c.
1213         (append_random_chars): Don't call default_flag_random_seed.
1214         * toplev.c (flag_random_seed): Define here. Set local_tick.
1215         (local_tick): Define.
1216         (randomize): New, moved from tree.c.
1217         (print_switch_values): Adjust.
1218         (toplev_main): Call randomize.
1219
1220 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1221
1222         * tree.h (crc32_string): Declare.
1223         * tree.c (append_random_chars): Remove.
1224         (crc32_string): New.
1225         (get_file_function_name_long): Use crc32_string here.
1226
1227 2003-07-06  Andreas Jaeger  <aj@suse.de>
1228
1229         * gcc.c: Convert prototypes to ISO C90.
1230         * gcc.h: Likewise.
1231         * gcov-dump.c: Likewise.
1232         * gcov-iov.c: Likewise.
1233         * gcse.c: Likewise.
1234         * genattrtab.h: Likewise.
1235         * ggc.h: Likewise.
1236         * global.c: Likewise.
1237         * graph.c: Likewise.
1238         * graph.h: Likewise.
1239         * hosthooks.h: Likewise.
1240         * hooks.h: Likewise.
1241         * hooks.c: Likewise.
1242         * hashtable.h: Likewise.
1243         * hashtable.c: Likewise.
1244         * haifa-sched.c: Likewise.
1245         * integrate.h: Likewise.
1246         * integrate.c: Likewise.
1247         * input.h: Likewise.
1248         * ifcvt.c: Likewise.
1249         * jump.c: Likewise.
1250         * langhooks-def.h: Likewise.  Add extern to prototypes.
1251         * langhooks.c: Likewise.
1252         * langhooks.h: Likewise.
1253         * lcm.c: Likewise.
1254         * local-alloc.c: Likewise.
1255         * loop-init.c: Likewise.
1256         * loop-unroll.c: Likewise.
1257         * loop-unswitch.c: Likewise.
1258         * loop.c: Likewise.
1259         * loop.h: Likewise. Add extern to prototypes.
1260         * machmode.h: Likewise.
1261         * main.c: Likewise.
1262         * mbchar.c: Likewise.
1263         * mbchar.h: Likewise.
1264         * mkdeps.c: Likewise.
1265         * mkdeps.h: Likewise.
1266         * optabs.c: Likewise.
1267         * optabs.h: Likewise.
1268         * output.h: Likewise.
1269         * gccspec.c: Likwise.
1270         * postreload.c: Likewise.
1271         * prefix.c: Likewise.
1272         * prefix.h: Likewise.
1273         * print-rtl.c: Likewise.
1274         * print-tree.c: Likewise.
1275         * profile.c: Likewise.
1276         * read-rtl.c: Likewise.
1277         * real.c: Likewise.
1278         * real.h: Likewise.
1279         * recog.c: Likewise.
1280         * recog.h: Likewise.
1281         * reg-stack.c: Likewise.
1282         * regclass.c: Likewise.
1283         * regmove.c: Likewise.
1284         * regrename.c: Likewise.
1285         * regs.h: Likewise.
1286         * reload.c: Likewise.
1287         * reload.h: Likewise.
1288         * reload1.c: Likewise.
1289         * reorg.c: Likewise.
1290         * resource.c: Likewise.
1291         * resource.h: Likewise.
1292         * rtl-error.c: Likewise.
1293         * rtl.c: Likewise.
1294         * rtl.h: Likewise.
1295         * rtlanal.c: Likewise.
1296         * sbitmap.c: Likewise.
1297         * sbitmap.h: Likewise.
1298         * scan-decls.c: Likewise.
1299         * scan.c: Likewise.
1300         * sched-deps.c: Likewise.
1301         * sched-ebb.c: Likewise.
1302         * sched-int.h: Likewise.
1303         * sched-rgn.c: Likewise.
1304         * sched-vis.c: Likewise.
1305         * sibcall.c: Likewise.
1306         * simplify-rtx.c: Likewise.
1307         * sreal.c: Likewise.
1308         * sreal.h: Likewise.
1309         * ssa-ccp.c: Likewise.
1310         * ssa-dce.c: Likewise.
1311         * ssa.c: Likewise.
1312         * ssa.h: Likewise.
1313         * stack.h: Likewise.
1314         * stmt.c: Likewise.
1315         * stor-layout.c: Likewise.
1316         * stringpool.c: Likewise.
1317         * target.h: Likewise.
1318         * timevar.c: Likewise.
1319         * timevar.h: Likewise.
1320         * tlink.c: Likewise.
1321         * tracer.c: Likewise.
1322         * tree-inline.c: Likewise.
1323         * tree-inline.h: Likewise.
1324         * tree.c: Likewise.
1325         * tree.h: Likewise.
1326
1327 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1328
1329         * combine.c (nonzero_bits1): Fix a warning.
1330
1331 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1332
1333         * config/h8300/h8300.c (compute_mov_length): Correct the
1334         length of loading CONST0_RTX (SFmode).
1335
1336 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1337
1338         * toplev.c (output_clean_symbol_name): Remove.
1339         * toplev.h (output_clean_symbol_name): Remove.
1340         * config/alpha/alpha.c (unicosmk_output_module_name): Use
1341         lbasename & clean_symbol_name.
1342
1343 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1344
1345         * ggc.h: Follow spelling conventions.
1346         * config/i386/i386.c: Likewise.
1347         * config/i386/winnt.c: Likewise.
1348         * config/rs6000/rs6000.c: Likewise.
1349
1350 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1351
1352         * bt-load.c: Fix comment typos.
1353         * c-incpath.c: Likewise.
1354         * cfg.c: Likewise.
1355         * cfgcleanup.c: Likewise.
1356         * cfgloop.h: Likewise.
1357         * cfgloopmanip.c: Likewise.
1358         * cfgrtl.c: Likewise.
1359         * diagnostic.h: Likewise.
1360         * dwarfout.c: Likewise.
1361         * emit-rtl.c: Likewise.
1362         * et-forest.c: Likewise.
1363         * et-forest.h: Likewise.
1364         * expr.c: Likewise.
1365         * gcse.c: Likewise.
1366         * genattr.c: Likewise.
1367         * jump.c: Likewise.
1368         * langhooks.h: Likewise.
1369         * local-alloc.c: Likewise.
1370         * loop-unroll.c: Likewise.
1371         * loop-unswitch.c: Likewise.
1372         * ra-build.c: Likewise.
1373         * regclass.c: Likewise.
1374         * regmove.c: Likewise.
1375         * rtl.def: Likewise.
1376         * rtlanal.c: Likewise.
1377         * sched-ebb.c: Likewise.
1378         * sched-rgn.c: Likewise.
1379         * simplify-rtx.c: Likewise.
1380         * ssa.c: Likewise.
1381         * tracer.c: Likewise.
1382         * tree.c: Likewise.
1383
1384 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
1385
1386         * cppcharset.c: Use the correct return type for the fallback iconv
1387         macro.
1388
1389 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1390
1391         Blame to Jan Hubicka  <jh@suse.cz>
1392         * cfglayout.c (record_effective_endpoints): Split insns before
1393         first basic block correctly.
1394
1395 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1396
1397         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
1398         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
1399         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
1400
1401 2003-07-05  Andreas Jaeger  <aj@suse.de>
1402
1403         * genattrtab.c (write_attr_get): Revert part of last patch to
1404         always write out a prototype.
1405
1406         * genemit.c (gen_split): Readd lost unused attributes in last
1407         patch.
1408
1409 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1410
1411         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
1412         different from header.
1413
1414 2003-07-05  Andreas Schwab  <schwab@suse.de>
1415
1416         * config/m68k/m68k.c: Remove code protected by CRDS.
1417         * config/m68k/m68k.md: Likewise.
1418
1419 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
1420
1421         PR driver/11417
1422         * c-opts.c (permit_fortran_options): New.
1423         (c_common_init_options): Accept fortran front end options if
1424         it looks like we might be preprocessing Fortran.
1425         (c_common_handle_option): Don't reject switch if permit_fotran_options.
1426
1427 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1428
1429         * genattr.c (internal_dfa_insn_code): Output prototype.
1430         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
1431         * genautomata.c: Likewise.
1432         * genconditions.c: Likewise.
1433         * genemit.c: Likewise.
1434         * genextract.c: Likewise.
1435         * gengenrtl.c: Likewise.
1436         * gengtype.c: Likewise.
1437         * genopinit.c: Likewise.
1438         * genoutput.c: Likewise.
1439         * genpeep.c: Likewise.
1440         * genrecog.c: Likewise.
1441
1442 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1443
1444         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
1445         (struct cpp_options): Add narrow_charset, wide_charset,
1446         bytes_big_endian fields.  Remove EBCDIC field.
1447         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
1448
1449         * cpphash.h: Include <iconv.h> if we have it, otherwise
1450         provide a dummy definition of iconv_t.
1451         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
1452         (_cpp_valid_ucn): Update prototype.
1453         (_cpp_destroy_iconv): New prototype.
1454
1455         * doc/cpp.texi: Document character set handling.
1456         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
1457         * doc/extend.texi: Delete entire section on multiline strings.
1458         Rewrite section on __FUNCTION__ etc now that these are
1459         variables in C.
1460
1461         * cppucnid.tab, cppucnid.pl: New files.
1462         * cppucnid.h: New generated file.
1463         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
1464         (iconv_open, iconv, iconv_close): Provide dummy definitions
1465         if !HAVE_ICONV.
1466         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
1467         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
1468         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
1469         cpp_interpret_string, narrow_str_to_charconst,
1470         wide_str_to_charconst): New.
1471         (ucn_valid_in_identifier): Use a binary search through the
1472         ucnranges table defined in cppucnid.h, not a long chain of if
1473         statements.
1474         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
1475         character names are only valid in C++ and C99" to a warning.
1476         Issue the "meaning of \[uU] is different in traditional C"
1477         warning here.  Take care not to let iconv see an invalid UCS
1478         value if we get a malformed UCN.  Issue an error if we don't
1479         have iconv.
1480         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
1481         cpp_interpret_string to do the heavy lifting.
1482
1483         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
1484         narrow_charset, wide_charset fields of options structure.
1485         (cpp_destroy): Call _cpp_destroy_iconv.
1486         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
1487         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
1488         (cpp_interpret_charconst): Moved to cppcharset.c.
1489         * cpplib.c (dequote_string): Delete.
1490         (interpret_string_notranslate): New.
1491         (do_line, do_linemarker): Use interpret_string_notranslate.
1492
1493         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
1494
1495         * c-common.c (fname_string, combine_strings): Delete.
1496         * c-common.h (fname_string, combine_strings): Delete prototypes.
1497         * c-lex.c (ignore_escape_flag): Delete.
1498         (cb_ident): Use cpp_interpret_string, not lex_string.
1499         (get_nonpadding_token): New function.
1500         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
1501         Adjust calls to lex_string.  Don't write *value twice.
1502         (lex_string): Now handles string constant concatenation.
1503         Most of the work handed off to cpp_interpret_string.
1504         Call fix_string_type here.
1505         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
1506         FUNC_NAME, throughout.
1507         (OBJC_STRING): New token type.
1508         (primary:STRING): No need to call fix_string_type here.
1509         (primary:objc_string): Make that OBJC_STRING.
1510         (objc_string nonterminal): Delete.
1511         (yylexname): Delete code to handle fake string constants.
1512         (yylexstring): Delete entirely.
1513         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
1514         to handle CPP_ATSIGN.
1515
1516         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
1517         * c-opts.c (missing_arg, c_common_handle_option): Handle
1518         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
1519         (c_common_init): Set cpp_opts->bytes_big_endian, not
1520         cpp_opts->EBCDIC.  Call cpp_init_iconv.
1521         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
1522         (TARGET_EBCDIC): Delete default definition.
1523
1524         * objc/objc-act.c (build_objc_string_object): No need to
1525         handle string constant concatenation.
1526
1527 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
1528
1529         * doc/install.texi: Fix typos.
1530         * doc/invoke.texi: Likewise.
1531         * doc/tm.texi: Likewise.
1532
1533 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
1534
1535         * config/pa/fptr.c: Fix comment typos.
1536         * config/pa/pa-64.h: Likewise.
1537         * config/pa/pa.c: Likewise.
1538         * config/pa/pa.h: Likewise.
1539         * config/rs6000/603.md: Likewise.
1540         * config/rs6000/7xx.md: Likewise.
1541         * config/rs6000/darwin.h: Likewise.
1542         * config/rs6000/freebsd.h: Likewise.
1543         * config/rs6000/rs6000.c: Likewise.
1544         * config/rs6000/rs6000.md: Likewise.
1545         * config/rs6000/spe.h: Likewise.
1546
1547 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
1548
1549         * config/s390/2064.md: Change GNU CC to GCC.
1550         * config/s390/2084.md: Likewise.
1551         * config/s390/fixdfdi.h: Likewise.
1552         * config/s390/linux.h: Likewise.
1553         * config/s390/s390-modes.def: Likewise.
1554         * config/s390/s390-protos.h: Likewise.
1555         * config/s390/s390.c: Likewise.
1556         * config/s390/s390.h: Likewise.
1557         * config/s390/s390.md: Likewise.
1558         * config/s390/s390x.h: Likewise.
1559
1560 2003-07-04  Jeff Law  <law@redhat.com>
1561
1562         PR c/11428
1563         * expr.c (do_store_flag): Pass in the correct result type
1564         when calling fold_single_bit_test.
1565         * fold-const.c (fold_single_bit_test): Use result_type for the
1566         result when folding a sign bit test.
1567
1568 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
1569
1570         * opts.c (common_handle_options): Negate sense of -falign- switches.
1571
1572 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
1573
1574         * Makefile.in: Replace PWD with PWD_COMMAND.
1575
1576 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1577
1578         * cfgloopanal.c (count_strange_loop_iterations): New static function.
1579         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
1580         Handle strange loops.
1581
1582 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
1583
1584         * install.texi: Even the g77 manpage is derived from
1585         the full g77 manual.
1586
1587 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1588
1589         * ABOUT-NLS: Delete.
1590         * intl: Delete entire directory.
1591         * aclocal.m4: Include ../config/gettext.m4.  Delete
1592         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
1593         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
1594         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
1595         Remove intl/Makefile from all_outputs.
1596         * configure, config.in: Regenerate.
1597         * Makefile.in: Expunge all references to intl subdirectory.
1598         Add -I../intl to INCLUDES.
1599         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
1600
1601 2003-07-04  Roger Sayle  <roger@eyesopen.com>
1602
1603         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
1604         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
1605
1606 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
1607
1608         PR c++/5287, PR c++/7910, PR c++/11021
1609         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
1610         dllimport attribute if function is defined at declaration, but
1611         report error instead. Likewise for dllimport'd variable
1612         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
1613         declared within functions, Report error if dllimport or dllexport
1614         symbol is not global.
1615         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
1616         if defined after declaration or if inlined. Don't allow definition
1617         of static data members of C++ classes. Don't dllimport virtual
1618         methods.
1619         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
1620         (i386_pe_mark_dllimport): Remove unnecessary checks.
1621         (i386_pe_encode_section_info): Warn if the dllimport attribute
1622         and symbol prefix have been instantiated and then overridden.
1623
1624         * doc/extend.texi: Document dllimport and dllexport attributes.
1625
1626         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
1627
1628 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
1629
1630         * config/kaos.h (CPP_PREDEFINES): Delete.
1631         (TARGET_OS_CPP_BUILTINS): New.
1632
1633 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1634
1635         * c-aux-info.c: Include toplev.h after c-tree.h.
1636         * c-common.c: Likewise.
1637         (GCC_DIAG_STYLE): Undef.
1638         * c-semantics.c (GCC_DIAG_STYLE): Define.
1639         * c-tree.h (GCC_DIAG_STYLE): Likewise.
1640         * diagnostic.h (inform): Move prototype to toplev.h.
1641         * jump.c: Include diagnostic.h before toplev.h.
1642         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
1643         (warning, error, fatal_error, pedwarn, sorry, inform,
1644         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
1645
1646 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1647
1648         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
1649         at all if edge is not specified.
1650         (can_copy_bbs_p, copy_bbs): New.
1651         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
1652         * cfgloop.c (get_loop_body): Comment more precisely.
1653         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
1654         (scale_bbs_frequencies): Fix comment typo.
1655         (can_duplicate_loop_p): Use can_copy_bbs_p.
1656         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
1657
1658 2003-07-03  Devang Patel <dpatel@apple.com>
1659
1660         * c-opts.c (c_common_parse_file): Remove extra
1661         debug_hooks->start_source_file call.
1662
1663 2003-07-03  Roger Sayle  <roger@eyesopen.com>
1664
1665         * real.c (real_trunc, real_floor, real_ceil): New functions
1666         to implement trunc, floor and ceil respectively.
1667         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
1668         * builtins.c (integer_valued_real_p): New function to test if
1669         a floating point expression has an integer valued result.
1670         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
1671         foo(x) where foo is an integer rounding function.  Similarly,
1672         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
1673         (double)(int)x when both foo and bar are integer rounding
1674         functions and we don't need to honor errno.
1675         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
1676         New functions to fold trunc, floor and ceil.
1677         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
1678         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
1679         to fold BUILT_IN_CEIL*.
1680         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
1681         the remaining integer rounding functions.
1682
1683 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1684
1685         * config/sparc/sparc.c (function_arg_partial_nregs): Use
1686         SPARC_INT_ARG_MAX to determine where to split unnamed
1687         complex FP arguments.
1688
1689 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
1690
1691         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
1692         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
1693         (merge_blocks_move_predecessor_nojumps,
1694          merge_blocks_move_successor_nojumps): Use merge_blocks.
1695         (try_optimize_cfg): Use merge_blocks_move.
1696         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
1697         (merge_blocks_nomove): Rename to rtl_merge_blocks.
1698         (cfg_layout_create_basic_block): New.
1699         (rtl_can_merge_blocks): New.
1700         (cfg_layout_split_block): Do not alloc aux by hand.
1701         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
1702         merge_blocks.
1703         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
1704         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
1705         * cfgloopmanip.c (loop_split_edge_with): Likewise.
1706         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
1707
1708         * basic-block.h (basic_block_def): Add field 'rbi'.
1709         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
1710         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
1711         * cfg.c (entry_exit_blocks): Add new field.
1712         * cfglayout.c: Include alloc-pool.h;
1713         (cfg_layout_pool): New.
1714         (record_effective_endpoints, fixup_reorder_chain,
1715         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
1716         of rbi.
1717         (cfg_layout_initialize_rbi): New function.
1718         (cfg_layout_initialize): Use it.
1719         (cfg_layout_finalize): Clear rbi fields.
1720         * cfglayout.h (RBI): Kill.
1721         (cfg_layout_initialize_rbi): Declare.
1722         * cfgloopmanip.c (copy_bbs): Use rbi.
1723         (record_exit_edges): Likewise.
1724         (duplicate_loop_to_header_edge): Likewise.
1725         * cfgrtl.c (cfg_layout_create_basic_block): Use
1726         cfg_layout_initialize_rbi.
1727         (cfg_layout_split_block): Use rbi.
1728         (cfg_layout_delete_block): Likewise.
1729         * loop-init.c (loop_optimizer_finalize): Likewise.
1730         * loop-unswitch.c (unswitch_loop): Likewise.
1731         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
1732
1733         * cfgrtl.c: Update comments.
1734         (try_redirect_by_replacing_jump): New argument.
1735         (redirect_branch_edge): Break out from ...
1736         (rtl_redirect_edge_and_branch): ... this one.
1737         (update_cfg_after_block_merging): Break out from ...
1738         (rtl_merge_blocks): ... this one.
1739         (cfg_layout_split_edge): New.
1740         (cfg_layout_merge_blocks): New.
1741         (cfg_layout_can_merge_blocks_p): New.
1742         (cfg_layout_redirect_edge_and_branch): Reorganize.
1743         (cfg_layout_rtl_cfg_hooks): Fill in.
1744         (cfg_layout_delete_block): Kill barriers.
1745         * cfganal.c (can_fallthru): Deal with exit blocks
1746         * cfglayout.c (cfg_layout_function_header): New function
1747         (record_effective_endpoints): Record function header.
1748         (fixup_reorder_chain): Fixup dead jumptables; place header
1749
1750         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
1751         * bb-reorder.c (cfg_layout_initialize): Update call.
1752         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
1753         edges in cfglayout mode.
1754         * cfglayout.c (cleanup_unconditional_jumps): Kill.
1755         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
1756         * cfglayout.h (cfg_layout_initialize): Update prototype.
1757         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
1758         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
1759         * flow.c (propagate_block): Do not crash when basic block ends
1760         by first insn in the chain.
1761         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
1762         do loop discovery.
1763         * tracer.c (tracer): Update call of cfg_layout_initialize.
1764
1765 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1766
1767         * Makefile.in: Use dependency variables in lieu of explicit
1768         files throughout.
1769
1770 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
1771
1772         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
1773         * tree.h: ...to here.
1774
1775 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
1776
1777         * config/s390/2064.md: Fix comment typos.
1778         * config/s390/2084.md: Likewise.
1779         * config/s390/s390.c: Likewise.
1780         * config/s390/s390.md: Likewise.
1781         * config/sh/sh.c: Likewise.
1782         * config/sh/sh.h: Likewise.
1783         * config/sh/sh.md: Likewise.
1784         * config/sparc/sparc.c: Likewise.
1785         * config/sparc/sparc.h: Likewise.
1786         * config/sparc/sparc.md: Likewise.
1787         * config/stormy16/stormy16.c: Likewise.
1788         * config/stormy16/stormy16.h: Likewise.
1789         * config/stormy16/stormy-abi: Fix a typo.
1790
1791 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
1792
1793         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
1794
1795 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1796
1797         * config/mips/mips.h (save_argv): Delete.
1798
1799 2003-07-03  Roger Sayle  <roger@eyesopen.com>
1800
1801         PR target/10700
1802         * fold-const.c (extract_muldiv_1): There's nothing that can be done
1803         if the expression is a SAVE_EXPR.
1804
1805 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
1806
1807         * config/m32r/m32r.c: Fix comment typos.
1808         * config/m68hc11/m68hc11.c: Likewise.
1809         * config/m68hc11/m68hc11.h: Likewise.
1810         * config/m68k/m68k.c: Likewise.
1811         * config/mcore/mcore.c: Likewise.
1812         * config/mcore/mcore.h: Likewise.
1813         * config/mcore/mcore.md: Likewise.
1814         * config/mips/mips.c: Likewise.
1815         * config/mips/mips.h: Likewise.
1816         * config/mips/mips.md: Likewise.
1817         * config/mips/netbsd.h: Likewise.
1818         * config/mn10300/mn10300.c: Likewise.
1819
1820 2003-07-03  Andreas Schwab  <schwab@suse.de>
1821
1822         * dbxout.c (pending_bincls): Move decl down inside
1823         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
1824
1825 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1826
1827         * rtl.h (NOTE_DATA): Refer to whole union.
1828         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
1829
1830 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1831
1832         PR optimization/11381
1833         * simplify-rtx.c (simplify_relational_operation): Check that
1834         two equal operands have no side-effects before simplifying
1835         the comparison.
1836
1837 2003-07-02  Jeff Law  <law@redhat.com>
1838
1839         * expr.c (do_store_flag): Remove special case folding for
1840         single bit tests.  Instead call back into the commonized folder
1841         routine.
1842         * fold-const.c (fold_single_bit_test): New function, mostly
1843         extracted from do_store_flag, with an additional case extracted
1844         from fold.
1845         (fold): Call fold_single_bit_test appropriately.
1846         * tree.h (fold_single_bit_test): Prototype.
1847
1848 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
1849
1850         * system.h: Include filenames.h.
1851         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
1852         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
1853         define based on HAVE_DOS_BASED_FILE_SYSTEM.
1854         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
1855         * config/i386/xm-mingw32.h: Don't define
1856         HAVE_DOS_BASED_FILE_SYSTEM,
1857         DIR_SEPARATOR, or DIR_SEPARATOR_2.
1858         * doc/hostconfig.texi: Update to match.
1859
1860         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
1861         config/i386/cygwin.h:
1862         Use IS_ABSOLUTE_PATH throughout.
1863         * gcc.c (DIR_UP): Delete, unused.
1864         * protoize.c (IS_SAME_PATH): Define in terms of
1865         FILENAME_CMP.
1866         (is_abspath): Delete.
1867
1868 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
1869
1870         * config/i386/emmintrin.h: Fix comment typos.
1871         * config/i386/i386.c: Likewise.
1872         * config/i386/i386.h: Likewise.
1873         * config/i386/sco5.h: Likewise.
1874         * config/ia64/ia64.c: Likewise.
1875         * config/ia64/itanium2.md: Likewise.
1876
1877 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1878
1879         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
1880         DBX_USE_BINCL.
1881         (emit_bincl_stab): Same.
1882         (emit_pending_bincls): Same.
1883
1884 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
1885
1886         * config/h8300/h8300.c (compute_mov_length): Fix the length of
1887         loading CONST0_RTX (SFmode).
1888         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
1889         'G' to CONST0_RTX (SFmode).
1890         * config/h8300/h8300.md (movsf_h8300): Change the first
1891         constraint to 'G'.
1892         (movsf_h8300h): Likewise.
1893
1894 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
1895
1896         * c-common.h (c_common_init_options): New prototype.
1897         * c-opts.c (deferred_size): Remove.
1898         (defer_opt): Array is now pre-allocated.
1899         (c_common_init_options): Pre-allocate deferred_opts.  Make
1900         lang_flags unsigned.
1901         (push_command_line_options): Free deferred_opts.
1902         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
1903         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
1904         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
1905         * langhooks.h (struct lang_hooks): New prototype for init_options.
1906         * main.c (main): Cast argv.
1907         * opts.c (handle_option, handle_options): Update prototypes.
1908         (decode_options): save_argc, save_argv are not global.  Constify.
1909         * opts.h (decode_options): New prototype.
1910         * toplev.c (general_init): New protoype.
1911         (save_argv): Make static.
1912         (save_argc): Remove.
1913         (print_switch_values, general_init): Constify.
1914         (toplev_main): Save argv.
1915         * toplev.h (toplev_main): Update prototype.
1916         (save_argc, save_argv): Remove.
1917
1918 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
1919
1920         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
1921         (emit_bincl_stab): Same.
1922         (emit_pending_bincls): Same.
1923
1924 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1925
1926         PR c++/11072
1927         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
1928
1929 2003-07-02  Andreas Schwab  <schwab@suse.de>
1930
1931         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
1932
1933 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1934
1935         PR optimization/11210
1936         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
1937         about the behaviour with regard to bitfields.
1938         * fold-const (decode_field_reference): Record outermost type in
1939         case the expression is a NOP. Strip all NOPs. Set the signedness
1940         to that of the outermost type (if any) when the bitsize is equal
1941         to the size of the type.
1942
1943 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
1944
1945         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
1946         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
1947         (adddi3_internal_3, addsi3_internal_2): Likewise.
1948
1949 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
1950
1951         * config/mips/mips.c (machine_function): Add new fields:
1952         ignore_hazard_length_p and all_noreorder_p.
1953         (mips_flag_delayed_branch): New variable.
1954         (override_options): Treat '/' as an operand punctuation character.
1955         Set up mips_flag_delayed_branch.
1956         (print_operand): Handle '/'.
1957         (mips_output_function_prologue): Put the whole function in
1958         .set noreorder and .set nomacro if all_noreorder_p is true.
1959         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
1960         (mips16_optimize_gp): Remove "first insn" parameter.
1961         (mips16_lay_out_constants): New function, split out from mips_reorg.
1962         (mips_avoid_hazard, mips_avoid_hazards): New functions.
1963         (mips_reorg): For mips16 code, call mips16_lay_out_constant
1964         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
1965         do delayed-branch scheduling followed by hazard detection.
1966         (mips_adjust_insn_length): Only account for hazards if
1967         !ignore_hazard_length_p.
1968         (mips_output_load_label): Add a nop to the o32 sequence if
1969         the target suffers from load delays.
1970         (mips_output_conditional_branch): Add %/ to the end of branches.
1971         (mips_output_division): Fill the branch delay slot with %#.
1972         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
1973         instructions.  End all other %* branches with %/.
1974         (ffssi2, ffsdi2): Fix lengths.
1975         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
1976         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
1977         (fix_truncsfsi2_macro): Likewise.
1978         (mov_lwl): Set hazard to "none".
1979         (ashldi3_internal): Fill the branch delay slot with %#.
1980         (ashrdi3_internal, lshrdi3_internal): Likewise.
1981         (exception_receiver): Explicitly set $28.
1982         (hazard_nop): New pattern.
1983
1984 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
1985
1986         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
1987         before calling tree_inlinable_function_p.
1988
1989 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1990
1991         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
1992         <internal/stdio_core.h> too.
1993         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
1994         <internal/wchar_core.h> too.
1995         Substitute va_list uses in inline definition.
1996         * fixinc/fixincl.x: Regenerate.
1997
1998 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1999
2000         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
2001         Undef before redefinition.
2002         (LABEL_AFTER_LOC): Likewise.
2003         (DEFAULT_SIGNED_CHAR): Likewise.
2004         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
2005         Fix IRIX spelling.
2006
2007         * config/mips/iris3.h: Remove, unused.
2008         * config/mips/iris4.h: Likewise.
2009
2010         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
2011
2012         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
2013         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
2014         target_cpu_default.
2015
2016         * config/mips/iris5.h: Move explicit includes ...
2017         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
2018
2019         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
2020         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
2021         tm_defines.
2022
2023         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
2024         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
2025         target_cpu_default.
2026
2027         * config/mips/iris6.h: Fix IRIX spelling.
2028         (MULTILIB_DEFAULTS): Undef before redefinition.
2029
2030         * config/mips/iris6.h: Move explicit includes ...
2031         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
2032
2033 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
2034
2035         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
2036         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2037         Use next_needed field instead of aux to maintain the queue.
2038         * cgraph.h (cgraph_node): Add next_needed.
2039         (cgraph_varpool_node): Add next_needed; remove aux.
2040         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
2041
2042 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
2043
2044         * cgraphunit.c (cgraph_finalize_function): Set finalized.
2045         (cgraph_finalize_function): Do not examine inlinablility.
2046         (cgraph_finalize_compilation_unit): Do it here.
2047         * cgraph.h (cgraph_local_info): Add finalized field.
2048
2049 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2050
2051         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
2052         (gt_pch_restore): Likewise.
2053
2054 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
2055
2056         * config/alpha/alpha.c: Fix comment typos.
2057         * config/alpha/elf.h: Likewise.
2058         * config/arm/arm.c: Likewise.
2059         * config/arm/arm.h: Likewise.
2060         * config/arm/arm.md: Likewise.
2061         * config/arm/t-arm-coff: Likewise.
2062         * config/arm/t-strongarm-pe: Likewise.
2063         * config/arm/xscale-elf.h: Likewise.
2064         * config/avr/avr.h: Likewise.
2065
2066 2003-07-01  Jeff Law  <law@redhat.com>
2067
2068         * stmt.c (any_pending_cleanups): Remove another redundant test.
2069
2070 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
2071             J"orn Rennecke <joern.rennecke@superh.com>
2072
2073         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
2074         for MEM case.
2075
2076 2003-07-01  Devang Patel  <dpatel@apple.com>
2077
2078         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
2079         (binclstatus): New.
2080         (struct dbx_file): New members - bincl_status, pending_bincl_name and
2081         prev.
2082         (pending_bincls): New.
2083         (dbxout_init): Initialize new dbx_file members.
2084         (dbxout_start_source_file): Same.
2085         (emit_bincl_stab): New function.
2086         (emit_pending_bincls): Same.
2087         (emit_pending_bincls_if_required): Same.
2088         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
2089         processed.
2090         (dbxout_begin_block): Emit pending BINCL stabs.
2091         (dbxout_end_block): Same.
2092         (dbxout_function_decl): Same.
2093         (dbxout_continue): Same.
2094         (dbxout_type): Same.
2095         (dbxout_class_name_qualifiers): Same.
2096         (dbxout_symbol): Same.
2097         (dbxout_symbol_location): Same.
2098         (dbxout_parms): Same.
2099
2100 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2101
2102         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
2103         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
2104
2105 2003-07-01  Andreas Jaeger  <aj@suse.de>
2106
2107         * fold-const.c: Convert prototypes to ISO C90.
2108         * function.c: Likewise.
2109         * function.h: Likewise.
2110
2111 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
2112
2113         * doc/contrib.texi: Fix typos.
2114         * doc/invoke.texi: Likewise.
2115         * doc/passes.texi: Likewise.
2116         * doc/sourcebuild.texi: Likewise.
2117         * doc/tm.texi: Likewise.
2118
2119 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
2120
2121         * basic-block.h: Fix comment typos.
2122         * bb-reorder.c: Likewise.
2123         * c-format.c: Likewise.
2124         * cfgcleanup.c: Likewise.
2125         * cfghooks.h: Likewise.
2126         * cfgloop.c: Likewise.
2127         * cfgloopmanip.c: Likewise.
2128         * cfgrtl.c: Likewise.
2129         * cgraph.h: Likewise.
2130         * cgraphunit.c: Likewise.
2131         * combine.c: Likewise.
2132         * convert.c: Likewise.
2133         * dbxout.c: Likewise.
2134         * df.c: Likewise.
2135         * df.h: Likewise.
2136         * diagnostic.c: Likewise.
2137         * dwarf2out.c: Likewise.
2138         * et-forest.h: Likewise.
2139         * flow.c: Likewise.
2140         * fold-const.c: Likewise.
2141         * function.h: Likewise.
2142         * gcov-io.h: Likewise.
2143         * gcov.c: Likewise.
2144         * gcse.c: Likewise.
2145         * genautomata.c: Likewise.
2146         * ggc-common.c: Likewise.
2147         * ggc-page.c: Likewise.
2148         * loop-unroll.c: Likewise.
2149         * loop-unswitch.c: Likewise.
2150         * loop.c: Likewise.
2151         * mips-tfile.c: Likewise.
2152         * optabs.c: Likewise.
2153         * ra-build.c: Likewise.
2154         * ra-colorize.c: Likewise.
2155         * ra-rewrite.c: Likewise.
2156         * ra.h: Likewise.
2157         * regmove.c: Likewise.
2158         * reload.c: Likewise.
2159         * rtlanal.c: Likewise.
2160         * sched-ebb.c: Likewise.
2161         * sched-int.h: Likewise.
2162         * sched-vis.c: Likewise.
2163         * sreal.c: Likewise.
2164         * ssa-ccp.c: Likewise.
2165         * ssa.c: Likewise.
2166         * toplev.c: Likewise.
2167         * tree-inline.c: Likewise.
2168         * value-prof.c: Likewise.
2169         * value-prof.h: Likewise.
2170
2171 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
2172
2173         * rtl.h (emit_line_note_after): Remove.
2174         (emit_note_copy_after, emit_note_copy): New.
2175         * emit-rtl.c (reorder_insns_with_line_notes): Replace
2176         emit_line_note_after with emit_note_copy_after.
2177         (emit_insn_after_with_line_notes): Likewise.
2178         (emit_line_note_after): Kill.
2179         (emit_note_copy_after): New.
2180         (emit_note_copy): New.
2181         * function.c (emit_return_into_block): Use emit_note_copy_after.
2182         (thread_prologue_and_epilogue_insns): Likewise.
2183         * integrate.c (expand_inline_function): Use emit_note_copy.
2184         (copy_insn_list): Likewise.
2185         * unroll.c (copy_loop_body): Likewise.
2186         * cfglayout.c (duplicate_insn_chain): Likewise.
2187
2188 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
2189
2190         * c-tree.h (define_label): Replace filename and lineno arguments
2191         with a location_t.
2192         * c-decl.c (poplevel): Adjust define_label call.
2193         (pop_label_level): Likewise.
2194         (define_label): Replace filename and lineno arguments with a
2195         location_t.
2196         (store_parm_decls): Use DECL_SOURCE_LOCATION.
2197         * c-parse.in (label): Adjust define_label call.
2198
2199 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
2200
2201         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
2202         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
2203         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
2204         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
2205         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
2206
2207 2003-07-01  Andreas Jaeger  <aj@suse.de>
2208
2209         * final.c: Convert prototypes to ISO C90.
2210         * flow.c: Likewise.
2211         * flags.h: Likewise.
2212         * gcov-io.c: Likewise.
2213         * gcov-io.h: Likewise.
2214
2215 2003-06-30  Bruno Haible  <bruno@clisp.org>
2216
2217         PR middle-end/6578
2218         * libgcc2.c (__subvsi3): Remove simplification that would not work
2219         when subtracting -0x80000000.
2220         (__subvdi3): Remove simplification that would return a wrong result.
2221         (__mulvsi3): Fix overflow check.
2222         (__absvdi2): Fix simplification that would return a wrong result.
2223         (__mulvdi3): Fix overflow check.
2224
2225 2003-06-30  Jeff Law  <law@redhat.com>
2226
2227         * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
2228         was always passed in the value '1'.  Simplify body appropriately.
2229         * tree.h (any_pending_cleanups): Corresponding changes.
2230         * calls.c: (expand_call): Corresponding changes.
2231
2232 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2233
2234         * combine.c (distribute_notes): Don't bother REG_WAS_0.
2235         * cse.c (cse_insn): Likewise.
2236         * final.c (final_scan_insn): Likewise.
2237         * jump.c (duplicate_loop_exit_test): Likewise.
2238         * rtl.c (reg_note_name): Remove REG_WAS_0.
2239         * rtl.h (REG_WAS_0): Remove.
2240         * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
2241         * config/avr/avr.c (output_movqi): Don't use reg_was_0.
2242         (output_movhi): Likewise.
2243         (output_movsisf): Likewise.
2244         (reg_was_0): Remove.
2245         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
2246         REG_WAS_0.
2247         (m68hc11_gen_movqi): Likewise.
2248         * config/vax/vax-protos.h: Remove the prototype for
2249         reg_was_0_p.
2250         * config/vax/vax.c (follows_p): Remove.
2251         (reg_was_0_p): Likewise.
2252         * config/vax/vax.md (movsi): Don't use reg_was_0_p.
2253         (movhi): Likewise.
2254         (movqi): Likewise.
2255         * doc/rtl.texi (REG_WAS_0): Remove.
2256
2257 2003-06-30  Mark Mitchell  <mark@codesourcery.com>
2258
2259         * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
2260
2261 2003-06-30  Bob Wilson  <bob.wilson@acm.org>
2262
2263         * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
2264         top-level include directory.
2265         * config/xtensa/lib2funcs.S: Likewise.
2266         * config/xtensa/xtensa.h: Likewise.
2267         * config/xtensa/xtensa-config.h: Remove.
2268         * doc/install.texi: Update location of "xtensa-config.h" header.
2269
2270 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
2271
2272         * config/s390/s390.c (s390_extra_constraint): New function.
2273         * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
2274         * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
2275         * config/s390/s390.c (q_constraint): Remove.
2276         * config/s390/s390-protos.h (q_constraint): Likewise.
2277         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
2278         (EXTRA_ADDRESS_CONSTRAINT): Define.
2279
2280         * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
2281         (DISP_IN_RANGE, s390_short_displacement): New.
2282         (legitimate_reload_operand_p): Support long displacements.
2283         (s390_decompose_address): Likewise.
2284         (legitimize_pic_address): Likewise.
2285         (legitimize_address): Likewise.
2286         (s390_fixup_clobbered_return_reg): Likewise.
2287         (s390_emit_prologue, s390_emit_epilogue): Likewise.
2288         (s390_output_mi_thunk): Likewise.
2289
2290         * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
2291         (attr "atype", attr "length"): Add defaults for new op_types.
2292         (all insns): Change op_type attribute where appropriate.
2293
2294         ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
2295         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
2296         "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
2297         "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
2298         "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
2299         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
2300         "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
2301         "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
2302         "*movdf_64", "*movdf_31", "*movsf",
2303         "*load_multiple_si", "*store_multiple_di",
2304         "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
2305         "*la_64", "*la_31", "*la_31_and", "force_la_31",
2306         "*addsi3_carry1_cc", *addsi3_carry1_cconly",
2307         "*addsi3_carry2_cc", *addsi3_carry2_cconly",
2308         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
2309         "*addsi3_sign", "*addsi3_sub", "addsi3",
2310         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
2311         "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
2312         "mulsi3"
2313         "*andsi3_cc", "*andsi3_cconly", "andsi3",
2314         "*andqi3_ss", "*andqi3_ss_inv",
2315         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
2316         "*iorqi3_ss", "*iorqi3_ss_inv",
2317         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
2318         "*xorqi3_ss", "*xorqi3_ss_inv",
2319         "*tls_load_31"): Add alternatives for long-displacement instructions.
2320
2321         ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
2322         "*load_multiple_di", "*store_multiple_di",
2323         "*sethighqidi_64", "*zero_extendhisi2_31",
2324         "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
2325         "adddf3", "*adddf3", "*adddf3_ibm",
2326         "addsf3", "*addsf3", "*addsf3_ibm",
2327         "subdf3", "*subdf3", "*subdf3_ibm",
2328         "subsf3", "*subsf3", "*subsf3_ibm",
2329         "mulsi_6432", "divmoddisi3",
2330         "muldf3", "*muldf3", "*muldf3_ibm",
2331         "mulsf3", "*mulsf3", "*mulsf3_ibm",
2332         "divdf3", "*divdf3", "*divdf3_ibm",
2333         "divsf3", "div*sf3", "*divsf3_ibm",
2334         "sqrtdf2", "sqrtsf2",
2335         "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
2336         "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
2337         "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
2338         and address constraints for instructions that do not accept long
2339         displacements.
2340
2341 2003-06-30  Hartmut Penner  <hpenner@de.ibm.com>
2342             Ulrich Weigand  <uweigand@de.ibm.com>
2343
2344         * config/s390/2084.md: New file.
2345         * config/s390/s390.md: Include it.
2346         * config/s390/s390.c (s390_adjust_priority): New function.
2347         (TARGET_SCHED_ADJUST_PRIORITY): Define.
2348         (s390_first_cycle_multipass_dfa_lookahead): New function.
2349         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2350         (s390_sched_reorder2): New function.
2351         (TARGET_SCHED_REORDER2): Define.
2352         (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
2353         (s390_issue_rate): Likewise.
2354
2355 Mon Jun 30 23:47:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
2356
2357         * Makefile.in (GTFILES): Add cgraph.h.
2358         * cgraph.c (known_decls): Remove.
2359         (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
2360         cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
2361         (cgraph_node): Do not allocate known_decls; use polutate hashtable.
2362         (cgraph_varpool_node): Likewise; add next pointer.
2363         (cgraph_varpool_nodes): New static variable.
2364         * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
2365         cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
2366         cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
2367         * gengtype.c (open_base_files): Include cgraph.h
2368
2369 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2370
2371         * Changelog: Remove ">>>>>>>" from previous change.
2372
2373 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2374
2375         * config/cris/cris.c: Fix spelling for "testcase".
2376         * config/cris/cris.h: Likewise.
2377         * config/cris/cris.md: Likewise.
2378         * config/mmix/crti.asm: Likewise.
2379         * config/mmix/mmix.h: Likewise.
2380         * config/mmix/mmix.md: Likewise.
2381
2382 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2383
2384         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
2385         1.
2386
2387 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
2388
2389         * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
2390         --with-mode configure options.
2391         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
2392         (DRIVER_SELF_SPECS): Define.
2393         * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
2394         architecture to assembler.
2395         (LINK_SPEC): Merge 31-bit and 64-bit variants.
2396         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
2397         * config/s390/s390.c (override_options): New default rules for
2398         architecture mode and cpu architecture selection.
2399         * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
2400         new default rules.
2401
2402         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
2403         * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
2404         * config/s390/s390.c (override_options): Add "z990" to
2405         processor_alias_table.
2406         * doc/invoke.texi (-march): Document "z990" processor type.
2407
2408         * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
2409         * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
2410         (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
2411         TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
2412         * config/s390/s390.c (override_options): Replace enum pta_flags by
2413         enum processor_flags.  Fill in s390_tune_flags and s390_arch_flags.
2414
2415         * config/s390/s390.c (s390_cpu): Rename to ...
2416         (s390_tune): ... this.
2417         * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
2418         * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
2419         * config/s390/s390.md (attr "cpu"): Likewise.
2420
2421 2003-06-30  Neil Booth  <neil@daikokuya.co.uk>
2422
2423         * c-common.c (enum c_language_kind, flag_objc): Remove.
2424         (fix_string_type, check_case_value, c_common_nodes_and_builtins,
2425         c_add_case_label, finish_label_addr_expr, boolean_increment):
2426         Use c_dialect_ macros.
2427         * c-common.h (enum c_language_kind): Extend.
2428         (c_dialect_cxx, c_dialect_objc): New.
2429         (flag_objc): Remove.
2430         (c_common_init_options): Update prototype.
2431         * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
2432         macros.
2433         * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
2434         macros.
2435         * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
2436         * c-lang.c (c_init_options): Remove.
2437         (c_language): Define.
2438         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
2439         * c-lex.c (lex_charconst): Use c_dialect_ macros.
2440         * c-opts.c (lang_flags): Make function-local.
2441         (c_common_init_options): Use c_dialect_ macros.  Handle
2442         C++ diagnostic requirements.
2443         (c_common_handle_option, c_common_post_options): Use flag_cxx.
2444         * c-parse.in (init_reswords): Use c_dialect_objc ().
2445         * c-pch.c (get_ident): Use c_language.
2446         * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
2447         * c-typeck.c (comptypes, build_c_cast): Similarly.
2448         * objc/objc-lang.c (c_language): Define.
2449         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
2450         (objc_init_options): Remove.
2451
2452 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2453
2454         * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
2455         * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
2456
2457 2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>
2458
2459         * doc/sourcebuild.texi: Don't reference gnats.html any more.
2460
2461 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2462
2463         * config/h8300/h8300.c (compute_mov_length): Fix length of
2464         mov:SF on H8/300.
2465
2466 2003-06-30  Nick Clifton  <nickc@redhat.com>
2467
2468         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
2469         constant.
2470
2471 Mon Jun 30 15:36:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
2472
2473         (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
2474
2475 2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>
2476
2477         * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
2478         (altivec_in_gprs_p): New function.
2479
2480         * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
2481         prototype.
2482         (altivec_in_gprs_p): New prototype.
2483
2484         * config/rs6000/altivec.md (*movv4si_internal): Change
2485         multi-assembler alternative to '#'. Add postreload splitter to
2486         handle this cases.
2487         (*movv4hi_internal): Likewise.
2488         (*movv4qi_internal): Likewise.
2489         (*movv4sf_internal): Likewise.
2490
2491 2003-06-30  Jason Merrill  <jason@redhat.com>
2492
2493         * defaults.h (PUSH_ARGS_REVERSED): Define default here.
2494         * calls.c: Not here.
2495
2496 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
2497
2498         * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
2499         (bad_signed_byte_operand): Likewise.
2500         (arm_output_epilogue): Likewise.
2501         (arm_final_prescan_insn): Likewise.
2502
2503 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2504
2505         * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
2506
2507 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2508
2509         * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
2510         subsequent writes.
2511
2512 Mon Jun 30 10:03:02 CEST 2003  Jan Hubicka  <jh@suse.cz>
2513
2514         * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
2515         in cfglayout mode.
2516
2517 Mon Jun 30 09:52:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
2518
2519         * i386.c (standard_80387_constant_p): Accept TFmode constants too.
2520         (init_ext_80387_constants): Likewise.
2521         (standard_80387_constant_rtx): Likewise.
2522         * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
2523         (atantf): Disable for !TARGET_128BIT_LONG_LONG
2524         (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
2525         (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
2526         (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
2527         (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
2528         (frndinttf2): New.
2529         (f2xm1tf2): New.
2530         (exp?f2): Use expsf2_tf when needed.
2531         (exp?f2_tf): New.
2532         (exptf): New.
2533
2534 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
2535
2536         * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
2537         statement from tmake_file set.
2538
2539 2003-06-29  James E Wilson  <wilson@tuliptree.org>
2540
2541         * reload.c (find_reloads): Change push_reloads to push_reload in
2542         comment.
2543         * reload1.c (eliminate_regs): Likewise.
2544         (dump_needs): Delete prototype for deleted function.
2545
2546 2003-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2547
2548         * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
2549         format attributes.
2550         * c-format.c (enum format_type): Add gcc_diag_format_type,
2551         gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
2552         (gcc_diag_length_specs, gcc_cdiag_length_specs,
2553         gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
2554         gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
2555         gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
2556         gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
2557         (format_types_orig): Add new data.
2558         (find_char_info_specifier_index, init_dynamic_diag_info): New
2559         functions.
2560         (handle_format_attribute): Update to handle new format attributes.
2561
2562 2003-06-29  Aaron W. LaFramboise  <awlaframboise@aol.com>
2563
2564         * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
2565
2566 2003-06-29  Dara Hazeghi  <dhazeghi@yahoo.com>
2567
2568         * doc/install.texi: Remove install documentation for obsoleted targets
2569         i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
2570         arm-*-aof.
2571         Update information about IA64 toolchain, AIX make requirements,
2572         and binutils for m68k-*-hpux and *-*-linuxaout targets.
2573
2574 Mon Jun 30 00:50:43 CEST 2003  Jan Hubicka  <jh@suse.cz>
2575
2576         * regmove.c (regmove_optimize): Don't try to make src and dst match
2577         when they are in different modes.
2578
2579 Sun Jun 29 23:06:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
2580
2581         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
2582         busy work when builtin is not supported by the backend.
2583
2584 2003-06-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2585
2586         * loop.c (count_one_set): Fix detection of registers set in more
2587         than one basic block.
2588
2589 2003-06-29  Andreas Jaeger  <aj@suse.de>
2590
2591         * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
2592         * system.h: Poison OBJ_FORMAT_ROSE.
2593         * doc/tm.texi (Macros for Initialization): Remove documentatin of
2594         OBJECT_FORMAT_ROSE.
2595         * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
2596         * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
2597
2598 2003-06-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2599
2600         * pa.c (update_total_code_bytes): New function.
2601         (last_address): Number of bytes output for a function and its
2602         associated thunks.
2603         (compute_frame_size): Use BITS_PER_UNIT.
2604         (pa_output_function_epilogue): Compute last_address.  Use
2605         update_total_code_bytes.
2606         (output_lbranch): Handle long branch on portable runtime.
2607         (attr_length_millicode_call, attr_length_call,
2608         attr_length_indirect_call): Only use total_code_bytes for calls in
2609         the text section.
2610         (output_call): Only use an indirect call sequence when the target is
2611         not local.
2612         (pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
2613         test to determine when an IA-relative branch can be used.  Add various
2614         long branch sequences.  Avoid using an indirect branch on all ports
2615         except SOM.
2616
2617 2003-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
2618
2619         * expr.c (clear_by_pieces): Fix prototype.
2620
2621 2003-06-29  Andreas Jaeger  <aj@suse.de>
2622
2623         * cse.c: Convert prototypes to ISO C90.
2624         * cselib.c: Likewise.
2625         * cselib.h: Likewise.
2626         * dbxout.c: Likewise.
2627         * debug.c: Likewise.
2628         * df.c: Likewise.
2629         * df.h: Likewise.
2630         * dojump.c: Likewise.
2631         * doloop.c: Likewise.
2632         * dominance.c: Likewise.
2633         * dwarf2asm.c: Likewise.
2634         * dwarf2out.c: Likewise.
2635         * dwarf2out.h: Likewise.
2636         * dwarfout.c: Likewise.
2637         * except.c: Likewise.
2638         * except.h: Likewise.
2639         * emit-rtl.c: Likewise.
2640         * et-forest.c: Likewise.
2641         * et-forest.h: Likewise.
2642         * except.c: Likewise.
2643         * explow.c: Likewise.
2644         * expmed.c: Likewise.
2645         * expr.c: Likewise.
2646         * expr.h: Likewise.
2647
2648 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2649
2650         * alloc-pool.c: Fix comment formatting.
2651         * bitmap.c: Likewise.
2652         * bitmap.h: Likewise.
2653         * bt-load.c: Likewise.
2654         * builtins.c: Likewise.
2655         * caller-save.c: Likewise.
2656         * cfganal.c: Likewise.
2657         * cfgrtl.c: Likewise.
2658         * collect2.c: Likewise.
2659         * cse.c: Likewise.
2660         * df.c: Likewise.
2661         * diagnostic.c: Likewise.
2662         * dwarf2out.c: Likewise.
2663         * dwarfout.c: Likewise.
2664         * expmed.c: Likewise.
2665         * final.c: Likewise.
2666         * flags.h: Likewise.
2667         * fold-const.c: Likewise.
2668         * gcc.c: Likewise.
2669         * gcov-io.h: Likewise.
2670         * gcov.c: Likewise.
2671         * genattrtab.c: Likewise.
2672         * genautomata.c: Likewise.
2673         * libgcov.c: Likewise.
2674         * mips-tfile.c: Likewise.
2675         * optabs.c: Likewise.
2676         * prefix.c: Likewise.
2677         * rtlanal.c: Likewise.
2678         * stmt.c: Likewise.
2679         * stor-layout.c: Likewise.
2680         * toplev.c: Likewise.
2681         * varasm.c: Likewise.
2682         * vmsdbgout.c: Likewise.
2683
2684 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2685
2686         * expr.c (emit_single_push_insn): If padding is needed
2687         downward, adjust the stack pointer first, and then store the
2688         data into the stack location using an offset.
2689
2690 2003-06-29  Andreas Jaeger  <aj@suse.de>
2691
2692         * collect2.h: Convert prototypes to ISO C90.
2693         * collect2.c: Likewise.
2694         * conflict.c: Likewise.
2695         * coverage.c: Likewise.
2696         * convert.h: Likewise.
2697         * convert.c: Likewise.
2698
2699 2003-06-29  Nathan Sidwell  <nathan@codesourcery.com>
2700
2701         * c-decl.c (c_init_decl_processing): Use a location_t. Set input
2702         filename to <internal>.
2703         * tree.c (make_node): Just copy the current location.
2704
2705 2003-06-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2706
2707         PR optimization/11210
2708         * fold-const (decode_field_reference): Revert 2003-06-26 patch.
2709
2710 2003-06-29  Neil Booth  <neil@daikokuya.co.uk>
2711
2712         * toplev.c (flag_dummy): Remove.
2713         (f_options): Restore flag pointers.
2714
2715 2003-06-29  David Edelsohn  <edelsohn@gnu.org>
2716
2717         * config/rs6000/rs6000.c (processor_target_table): Add 970.
2718         * config.gcc: Add 970.
2719
2720 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2721
2722         * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
2723         -1) with ggc_strdup.
2724         * stmt.c (expand_asm_operands): Likewise.
2725         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2726
2727 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2728
2729         * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
2730         definition.
2731
2732 2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2733
2734         * opts.c: Include insn-attr.h.
2735         * Makefile.in (opts.o): Depend on INSN_ATTR_H.
2736
2737 2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
2738
2739         * flow.c (propagate_one_insn): Use proper test for a register
2740         being part of the return value.
2741
2742 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2743
2744         * config/avr/avr.c: Fix a comment typo.
2745
2746 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2747
2748         * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
2749         with avr_simplify_comparison_p.
2750         * config/avr/avr.c: Likewise.
2751
2752 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2753
2754         * builtins.c: Follow spelling conventions.
2755         * cgraph.c: Likewise.
2756         * cpplex.c: Likewise.
2757         * config/arm/arm.c: Likewise.
2758         * config/arm/iwmmxt.md: Likewise.
2759         * config/c4x/c4x-modes.def: Likewise.
2760         * config/c4x/c4x.c: Likewise.
2761         * config/c4x/c4x.h: Likewise.
2762         * config/c4x/c4x.md: Likewise.
2763         * config/i386/i386-interix.h: Likewise.
2764         * config/mips/mips.h: Likewise.
2765
2766 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2767
2768         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
2769         __mc68020__ on TARGET_68020.
2770
2771 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2772
2773         * config/h8300/h8300.c: Fix a comment typo.
2774
2775 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
2776
2777         * c-parse.in (yylexstring): Use a location_t.
2778
2779         * diagnostic.h (diagnostic_set_info): Replace file and lineno
2780         parameters with a location_t.
2781         * diagnostic.c (diagnostic_set_info): Replace file and lineno
2782         parameters with a location_t.
2783         (inform, warning, pedwarn, error, sorry, fatal_error,
2784         internal_error, warning_with_decl, pedwarn_with_decl,
2785         error_with_decl): Adjust.
2786         * c-error.c (pedwarn_c99): Adjust.
2787         * c-format.c (status_warning): Adjust.
2788         * rtl-error.c (file_and_line_for_asm): Rename to ...
2789         (location_for_asm): Return a location_t.
2790         (diagnostic_for_asm): Adjust.
2791
2792 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2793
2794         * cpptrad.c (skip_macro_block_comment): New.
2795         (copy_comment): Use it if appropriate.
2796
2797 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2798
2799         * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
2800         definition.
2801         (store_killed_in_insn): Likewise.
2802         * print-rtl.c (print_rtx): Likewise.
2803         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2804         * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
2805         (m68hc11_reassign_regs): Likewise.
2806         (m68hc11_reorg): Likewise.
2807
2808 2003-06-28  Gabriel Dos Reis <gdr@integrable-solutions.net>
2809
2810         * diagnostic.c (output_integer_with_precision): New macro.
2811         (output_format): Use it.  Handle more format specifiers.
2812         (output_long_decimal): Remove.
2813         (output_unsigned_decimal): Likewise.
2814         (output_long_unsigned_decimal): Likewise.
2815         (output_octal): Likewise.
2816         (output_long_octal): Likewise.
2817         (output_hexadecimal): Likewise.
2818         (output_long_hexadecimal): Likewise.
2819         (output_long_long_decimal): Likewise.
2820
2821 2003-06-28  Andreas Schwab  <schwab@suse.de>
2822
2823         * config/ia64/ia64.md: Follow recent emit_note API change.
2824
2825 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
2826
2827         * c-parse.in (%union): Replace filename & lineno with location.
2828         (save_filename, save_lineno): Remove.
2829         (save_location): New.
2830         (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
2831         nested_function, notype_nested_function, if_prefix, lineno_stmt,
2832         lineno_label, label): Adjust.
2833
2834 2003-06-28  Jakub Jelinek  <jakub@redhat.com>
2835
2836         * builtins.c (c_strlen): Add only_value argument.
2837         Handle COND_EXPR and COMPOUND_EXPR.
2838         (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
2839         Adjust c_strlen callers.
2840         (expand_builtin_strcpy, expand_builtin_strncpy,
2841         expand_builtin_strcmp, expand_builtin_strncmp,
2842         expand_builtin_fputs, expand_builtin_sprintf,
2843         fold_builtin): Adjust c_strlen callers.
2844
2845 2003-06-28  Josef Zlomek  <zlomekj@suse.cz>
2846
2847         * bb-reorder.c (find_traces_1_round): Do not send basic block
2848         to next round when we are in the last round.
2849
2850 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2851
2852         * Makefile.in: Update.
2853         * opts.c: Include tm_p.h.
2854         (handle_options): Make static.
2855         (decode_options): Copied from toplev.c.
2856         * opts.h (decode_options): New.
2857         * toplev.c (parse_options_and_default_flags): Move most to opts.c,
2858         some to...
2859         (general_init): ...here.
2860         (toplev_main): Use decode_options instead.
2861         * toplev.h (save_argc, save_argv): New.
2862
2863 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2864
2865         * explow.c (find_next_ref): Remove.
2866         * rtl.h: Remove the prototype for find_next_ref.
2867
2868 2003-06-27  Roger Sayle  <roger@eyesopen.com>
2869
2870         * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
2871         call to match recent API change.
2872
2873 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
2874
2875         * dbxout.c (flag_debug_only_used_symbols): Delete redundant
2876         declaration.
2877
2878         * c-format.c (check_format_string, get_constant)
2879         * cfgrtl.c (rtl_split_edge):
2880         Mark the definition static, matching the forward declaration.
2881
2882 2003-06-27  Gunther Nikl <gni@gecko.de>
2883
2884         * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
2885
2886         PR target/11014
2887         * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
2888         syntax for MIT / MOTOROLA.
2889
2890         PR other/10240
2891         * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
2892         * configure: Rebuilt.
2893
2894 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
2895
2896         * config/mips/mips.c (mips_build_va_list): Make padding in
2897         va_list structure explicit to avoid -Wpadded warnings.
2898
2899 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
2900
2901         * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
2902         * config/s390/s390.c (s390_secondary_output_reload_class): New function.
2903         * config/s390/s390-protos.h (s390_secondary_output_reload_class):
2904         Declare it.
2905         * config/s390/s390.md ("reload_outti", "reload_outdi",
2906         "reload_outdf"): New expanders.
2907
2908         * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
2909         memory operands as source.
2910         ("movdi" + splitters): Likewise.
2911         ("movdf" + splitters): Likewise.
2912         * config/s390/s390.c (s390_split_ok_p): New function.
2913         * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
2914
2915 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2916
2917         * combine.c (force_to_mode): Replace the equality comparison
2918         of INTVALs with a pointer equality comparison.
2919         (simplify_comparison): Likewise.
2920
2921 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2922
2923         * jump.c (rtx_renumbered_equal_p): Replace an expression that
2924         is known to be 0 with 0.
2925
2926 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2927
2928         * gcse.c (expr_equiv_p): Replace expressions that are known to
2929         be 0 with 0.
2930
2931 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2932
2933         * cse.c (fold_rtx): Replace the equality comparison of INTVALs
2934         with a pointer equality comparison.
2935
2936 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2937
2938         * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
2939         are known to be not equivalent.
2940
2941 2003-06-27  Richard Henderson  <rth@redhat.com>
2942
2943         * config/alpha/alpha.c (function_arg): Don't pass small aggregates
2944         in floating point registers.  Validate that we don't receive complex
2945         values here.  Use #elif.
2946         (return_in_memory, function_value): New.
2947         (alpha_va_arg): Handle complex values as two arguments.
2948         * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
2949         (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
2950         (SPLIT_COMPLEX_ARGS): New.
2951         * config/alpha/alpha-protos.h: Update.
2952
2953 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
2954
2955         * ggc-page.c (inverse_table): Change type of mult to size_t.
2956         (compute_inverse): Compute inverse using size_t, not unsigned int.
2957         Compute inverse also for sizes larger than half a machine page.
2958
2959 Fri Jun 27 18:36:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
2960
2961         * toplev.c (rest_of_decl_compilation):  Only varpoolize argument
2962         when called before cgraph_optimize.
2963
2964 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
2965
2966         * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
2967         * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
2968         be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
2969
2970 Fri Jun 27 17:41:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
2971
2972         * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
2973         of known_decls.
2974
2975 2003-06-27  Hans-Peter Nilsson  <hp@axis.com>
2976
2977         * defaults.h (REGISTER_MOVE_COST): Define default here.
2978         * regclass.c: Don't define default REGISTER_MOVE_COST here.
2979         * reload.c, reload1.c: Ditto.
2980
2981 2003-06-27  Richard Earnshaw <rearnsha@arm.com>
2982
2983         * flags.h: Really install previous change.
2984
2985 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
2986
2987         * rtl.h (emit_note): Remove FILE parameter.
2988         * emit-rtl.c (emit_line_note): Adjust emit_note call.
2989         (emit_note): Remove FILE parameter. Adjust.
2990         * builtins.c (expand_builtin_expect): Adjust emit_note call.
2991         * c-semantics.c (genrtl_scope_stmt): Likewise.
2992         (expand_stmt): Likewise.
2993         * cfglayout.c (reemit_insn_block_notes): Likewise.
2994         (duplicate_insn_chain): Likewise.
2995         * except.c (expand_eh_region_start, expand_eh_region_end,
2996         sjlj_emit_function_enter): Likewise.
2997         * explow.c (probe_stack_range): Likewise.
2998         * expr.c (emit_block_move_via_loop): Likewise.
2999         * function.c (init_function_start, expand_function_start,
3000         expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
3001         * integrate.c (expand_inline_function, copy_insn_list): Likewise.
3002         * reg-stack.c (compensate_edge): Likewise.
3003         * reload1.c (reload): Likewise.
3004         * rtlanal.c (hoist_insn_to_edge): Likewise.
3005         * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
3006         expand_loop_continue_here, expand_end_loop, expand_continue_loop,
3007         expand_exit_loop_top_cond, expand_value_return,
3008         expand_start_bindings_and_block, expand_end_bindings,
3009         expand_decl_cleanup, expand_start_case): Likewise.
3010         * unroll.c (copy_loop_body
3011         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
3012         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3013         * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
3014         rs6000_emit_allocate_stack, rs6000_output_function_prologue,
3015         rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
3016         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3017         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3018
3019 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
3020
3021         * c-tree.h (grokfield): Remove unused filename and line parameters.
3022         * c-decl.c (grokfield): Remove unused filename and line parameters.
3023         * c-parse.in (component_decl): Adjust field grokking rules, adjust
3024         grokfield calls.
3025         (component_declarator): Likewise.
3026         (component_notype_declarator): Likewise.
3027         * objc/objc-act.c (build_module_descriptor): Adjust grokfield
3028         calls.
3029         (build_protocol_template, build_method_prototype_list_template,
3030         build_method_prototype_template, build_category_template,
3031         build_selector_template, build_class_template,
3032         build_super_template, build_ivar_template,
3033         build_ivar_list_template, build_method_list_template,
3034         build_method_template, add_instance_variable): Likewise.
3035
3036 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
3037
3038         * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
3039         OP2 are known to be not equivalent.
3040
3041 2003-06-26  Devang Patel <dpatel@apple.com>
3042
3043         * final.c (debug_flush_symbol_queue): New function.
3044         (debug_queue_symbol): New function.
3045         (debug_free_queue): New function.
3046         (debug_nesting): New variable.
3047         (symbol_queue): New variable.
3048         (symbol_queue_index): Same.
3049         (symbol_queue_size): Same.
3050         * debug.h (debug_flush_symbol_queue): New.
3051         (debug_queue_symbol): New.
3052         (debug_free_queue): New.
3053         (debug_nesting): New.
3054         (symbol_queue_index): New.
3055         * dbxout.c (DBXOUT_DECR_NESTING): New macro.
3056         (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
3057         (dbxout_init): Delay symbol output.
3058         (dbxout_global_decl): Save, set and reset TREE_USED bit around
3059         dbxout_symbol() call.
3060         (dbxout_begin_function): Same.
3061         (dbxout_finish): Free symbol queue.
3062         (dbxout_type): Put appropriate symbols in queue.
3063         (dbxout_symbol): Put info for symbol's type in queue.
3064         Decrement/Increment nesting counts flush symbol queue appropriately.
3065         (dbxout_parms): Increment dbxout nesting.
3066         (dbxout_reg_parms): Same.
3067         * flags.h (flag_debug_only_used_symbols): New.
3068         * toplev.c (flag_debug_only_used_symbols): New variable.
3069         (lang_independent_options): Add entries for new option
3070         -feliminate-unused-debug-symbols.
3071         * common.opt: Add entry for -feliminate-unused-debug-symbols.
3072         * opts.c (common_handle_options): Same.
3073         * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
3074         -feliminate-unused-debug-symbols.
3075         * doc/invoke.texi (Debugging Options): Document
3076         -feliminate-unused-debug-symbols.
3077
3078 2003-06-26  Roger Sayle  <roger@eyesopen.com>
3079             Jakub Jelinek  <jakub@redhat.com>
3080
3081         * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
3082         obtain the format string instead of using TREE_STRING_POINTER and
3083         TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
3084         return value is unused or the length of src is a known constant.
3085
3086 2003-06-26  Richard Henderson  <rth@redhat.com>
3087
3088         * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
3089
3090 2003-06-26  Richard Henderson  <rth@redhat.com>
3091
3092         * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
3093         (ia64_split_call): Only load descriptor for GP register inputs.
3094         (ia64_expand_epilogue): Check current_frame_info.mask not
3095         current_function_is_leaf to restore ar.pfs.
3096
3097 2003-06-26  Richard Henderson  <rth@redhat.com>
3098
3099         * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
3100         instead of replacing it.
3101
3102 2003-06-26  Richard Henderson  <rth@redhat.com>
3103
3104         * flow.c (propagate_one_insn): Kill function return value
3105         registers across tail calls.
3106
3107         * flow.c (propagate_one_insn): Preserve live-at-end registers
3108         across tail calls.
3109
3110 2003-06-26  J"orn Rennecke <joern.rennecke@superh.com>
3111
3112         * reload.c (can_reload_into): New function.
3113         (push_reload): Use it.
3114
3115 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3116
3117         * config/h8300/h8300.c (compute_a_rotate_length): Fix the
3118         references to the amount of a rotation.
3119
3120 2003-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
3121
3122         * config/sh/coff.h: Don't include dbxcoff.h.
3123         * config.gcc: List it here.
3124
3125 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3126
3127         * postreload.c (reload_cse_simplify_set): Call cselib_lookup
3128         earlier.  Don't check if SRC is a constant.
3129
3130 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3131
3132         * Makefile.in (OBJS): Add postreload.o.
3133         Remove cselib.h from the dependency list for reload1.o.
3134         Add a dependency list for postreload.o.
3135         * reload.h: Change the comment for the prototype of
3136         reload_cse_regs.
3137         * reload1.c: Don't include cselib.h.
3138         (reload_cse_regs): Move to postreload.c
3139         (reload_cse_regs_1): Likewise.
3140         (reload_cse_noop_set_p): Likewise.
3141         (reload_cse_simplify_set): Likewise.
3142         (reload_cse_simplify_operands): Likewise.
3143         (RELOAD_COMBINE_MAX_USES): Likewise.
3144         (reload_combine_ruid): Likewise.
3145         (LABEL_LIVE): Likewise.
3146         (reload_combine): Likewise.
3147         (reload_combine_note_use): Likewise.
3148         (reload_combine_note_store): Likewise.
3149         (reg_set_luid): Likewise.
3150         (reg_offset): Likewise.
3151         (reg_base_reg): Likewise.
3152         (reg_mode): Likewise.
3153         (move2add_luid): Likewise.
3154         (move2add_last_label_luid): Likewise.
3155         (MODES_OK_FOR_MOVE2ADD): Likewise.
3156         (reload_cse_move2add): Likewise.
3157         (move2add_note_store): Likewise.
3158         (reload_cse_simplify): Likewise.
3159         * postreload.c: New.
3160
3161 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3162
3163         * config/avr/avr.c (final_prescan_insn): Remove support for
3164         -mrtl.
3165         * config/avr/avr.h (MASK_RTL_DUMP): Remove.
3166         (TARGET_RTL_DUMP): Likewise.
3167         (TARGET_SWITCHES): Remove -mrtl.
3168
3169 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3170
3171         * config/h8300/h8300-protos.h: Change emit_a_rotate to
3172         output_a_rotate.  Add a prototype for compute_a_rotate_length.
3173         * config/h8300/h8300.c (emit_a_rotate): Change to
3174         output_a_rotate.
3175         (compute_a_rotate_length): New.
3176         (h8300_adjust_insn_length): Remove.
3177         * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
3178         * config/h8300/h8300.md (adjust_length): Remove.
3179         (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
3180         (*rotlhi3_1): Likewise.
3181         (*rotlsi3_1): Likewise.
3182
3183 2003-06-26  Roger Sayle  <roger@eyesopen.com>
3184             Richard Henderson  <rth@redhat.com>
3185
3186         * builtins.c (expand_builtin_mathfn): Always stabilize the argument
3187         list against re-evaluation.  If expand_unop fails, call expand_call
3188         with the stabilized argument list rather than return NULL_RTX.
3189         (expand_builtin_mathfn2): Likewise, always stabilize the argument
3190         list, and call expand_call ourselves if expand_binop fails.
3191
3192 2003-06-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
3193
3194         PR optimization/11210
3195         * fold-const (decode_field_reference): Strip only NOPs that
3196         don't affect the sign.
3197
3198 2003-06-26  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
3199
3200         * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
3201         (pop_fpscr, fpu_switch): Likewise.
3202
3203 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3204
3205         * value-prof.c: New.
3206         * value-prof.h: New.
3207         * Makefile.in (value-prof.o): New.
3208         (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
3209         (profile.o): Add value-prof.h and tree.h dependency.
3210         * flags.h (flag_profile_values): Declare.
3211         * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
3212         Add new counters.
3213         (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
3214         GCOV_COUNTER_V_DELTA): New counter sections.
3215         (__gcov_merge_single, __gcov_merge_delta): Declare.
3216         * flow.c (mark_used_regs): Set subregs_of_mode only when the
3217         structure is initialized.
3218         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
3219         * profile.c: Include value-prof.h and tree.h.
3220         (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
3221         gen_const_delta_profiler, instrument_values): New static functions.
3222         (get_exec_counts): Fix comment.
3223         (branch_prob): Invoke instrument_values.
3224         * toplev.c (flag_profile_values): New flag.
3225         * doc/invoke.texi (-fprofile-values): Document.
3226
3227 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3228
3229         * Makefile.in (cfgrtl.o): Add expr.h dependency.
3230         * cfgrtl.c: Include expr.h.
3231         (mark_killed_regs, safe_insert_insn_on_edge): New
3232         functions.
3233         * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
3234         * basic-block.h (safe_insert_insn_on_edge): Declare.
3235
3236 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
3237
3238         * c-opts.c (missing_arg): Make non-static.
3239         (c_common_handle_option): Don't check for missing arguments.
3240         * opts.c (handle_option): Check for missing arguments.
3241
3242 2003-06-26  David Edelsohn  <edelsohn@gnu.org>
3243
3244         * config/rs6000/power4.md (power4-veccomplex): Correct latency.
3245
3246 2003-06-25  Loren James Rittle  <ljrittle@acm.org>
3247
3248         * configure.in (ld_vers): Portability [sed].
3249         * configure: Regenerate with autoconf213.
3250
3251 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
3252
3253         * doc/extend.texi: Document new builtin functions for Intel
3254         Prescott New Intrunctions.
3255
3256         * doc/invoke.texi: Document new command-line options, -mpni and
3257         -mno-pni, for Intel Prescott New Intrunctions.
3258
3259         * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
3260
3261         * config/i386/i386.c (override_options): Turn on MASK_SSE2
3262         for -mpni. Turn on MASK_SSE for -msse2.
3263         (bdesc_2arg): Add PNI builtins with 2 args.
3264         (bdesc_1arg): Add PNI builtins with 1 arg.
3265         (ix86_init_mmx_sse_builtins): Handle PNI builtins.
3266         (ix86_expand_builtin): Likewise.
3267
3268         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
3269         MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
3270         MASK_TLS_DIRECT_SEG_REFS): Renumbered.
3271         (TARGET_PNI): New.
3272         (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
3273         -mpni and -mno-pni.
3274         (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
3275         (ix86_builtins): Add PNI builtins.
3276         (config/i386/i386.md): Add PNI patterns.
3277
3278         * config/i386/pmmintrin.h: New file.
3279
3280 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
3281
3282         * config/h8300/h8300.md (call): Fix the insn lengths.
3283         (call_value): Likewise.
3284
3285 Thu Jun 26 00:13:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
3286
3287         * c-common.c (handle_used_attribute): Use mark_referenced.
3288         * varasm.c (mark_referenced): Break out from ...
3289         (assemble_name): ... here.
3290         * tree.h (mark_referenced): Declare.
3291
3292 2003-06-25  Wolfgang Bangerth  <bangerth@dealii.org>
3293
3294         * gccbug.in: Add PCH to list of categories.
3295
3296 2003-06-25 Martin Schaffner <schaffner@gmx.li>
3297
3298         * cppfiles.c: Clarify comments.
3299         * cpphash.h: Likewise.
3300         * cpplib.h: Likewise.
3301         * cppmacro.c: Likewise.
3302         * mkdeps.h: Likewise.
3303
3304 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
3305
3306         * c-opts.c (complain_wrong_lang, write_langs): Remove.
3307         (c_common_handle_option): Complaints about wrong language are
3308         handled in opts.c now.
3309         * opts.c (complain_wrong_lang, write_langs, handle_options): New.
3310         (find_opt): Fix thinko.
3311         (handle_option): Update prototype.  Complain about switches for
3312         a different front end.
3313         * opts.h (lang_names, handle_options): New.
3314         (handle_option): Remove.
3315         * opts.sh: Write out language names array.
3316         * toplev.c (parse_options_and_default_flags): Use handle_options.
3317
3318 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
3319
3320         * config/i386/i386.c (MASK_SSE1): Removed.
3321         (MASK_SSE164): Removed.
3322         (MASK_SSE264): Removed.
3323         (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
3324         MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
3325         with MASK_SSE2 | MASK_64BIT.
3326         (bdesc_1arg): Likewise.
3327         (ix86_init_mmx_sse_builtins): Likewise.
3328
3329         * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
3330         (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
3331         -msse2.
3332
3333 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3334
3335         * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
3336         (HOST_WIDE_INT_PRINT_DEC_SPACE,
3337         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
3338         HOST_WIDEST_INT_PRINT_DEC_SPACE,
3339         HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
3340         (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
3341         HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
3342         terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
3343
3344         * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
3345         * ra-debug.c (dump_static_insn_cost): Likewise.
3346
3347 2003-06-26  Nick Clifton  <nickc@redhat.com>
3348
3349         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3350         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3351         Replace occurances of '???' with 'XXX' incase they are
3352         mistaken for trigraphs.
3353         (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
3354         does not have a register for the first operand.
3355
3356 2003-06-25      Dhananjay Deshpande <dhananjayd@kpitcummins.com>
3357
3358         * config/sh/sh.c (sh_register_move_cost):
3359         Add case for moving between MAC_REGS.
3360
3361 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
3362
3363         PR 10178
3364         * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
3365         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
3366         * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
3367         to true.
3368         * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
3369         return 0.
3370
3371 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3372
3373         * Makefile.in (bt-load.o): Depend on $(TM_P_H).
3374         * bt-load.c: Include "tm_p.h".
3375
3376 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
3377
3378         * config/h8300/h8300.c (compute_mov_length): Adjust for the
3379         new optimization.
3380         * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
3381         an SImode constant whose upper and lower are the same.
3382
3383 Wed Jun 25 11:31:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
3384
3385         * varasm.c (assemble_name): Mark needed variables even when
3386         global info is ready.
3387
3388 2003-06-24  Jerry Quinn  <jlquinn@optonline.net>
3389
3390         PR other/11280
3391         * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
3392         -freorder-functions description.
3393
3394 2003-06-25  Josef Zlomek  <zlomekj@suse.cz>
3395
3396         * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
3397
3398 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
3399
3400         * opts.c (common_handle_option): Add missing break;s.
3401
3402 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3403
3404         * config/h8300/h8300-protos.h: Add a prototype for
3405         compute_mov_length.
3406         * config/h8300/h8300.c (compute_mov_length): New.
3407         * config/h8300/h8300.md (*movqi_h8300): Use it.
3408         (*movqi_h8300hs): Likewise.
3409         (movstrictqi): Likewise.
3410         (*movhi_h8300): Likewise.
3411         (*movhi_h8300hs): Likewise.
3412         (movstricthi): Likewise.
3413         (*movsi_h8300): Likewise.
3414         (*movsf_h8300): Likewise.
3415         (*movsi_h8300hs): Likewise.
3416         (*movsf_h8300hs): Likewise.
3417
3418 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3419
3420         * jump.c (next_nondeleted_insn): Remove.
3421         * rtl.h: Remove the prototype for next_nondeleted_insn.
3422
3423 2003-06-24  Roger Sayle  <roger@eyesopen.com>
3424
3425         PR optimization/11311
3426         * builtins.c (powi_cost): Fix typo.  The number of multiplications
3427         required is the number to reduce the argument, result, plus the
3428         cost of calculating the residual, val [not n, the original value].
3429
3430 2003-06-24  Roger Sayle  <roger@eyesopen.com>
3431
3432         * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
3433
3434 2003-06-24  Richard Henderson  <rth@redhat.com>
3435             (blame to: Loren James Rittle  <ljrittle@acm.org>)
3436
3437         * real.h (ieee_extended_intel_96_round_53_format): New.
3438         * real.c (ieee_extended_intel_96_round_53_format): New.
3439         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
3440         for XFmode and TFmode.
3441
3442 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3443
3444         * config/h8300/h8300.md (4 anonymous patterns): Give internal
3445         names.
3446         (movsi_h8300): Change the name to *movsi_h8300.
3447         (movsi_h8300hs): Change the name to *movsi_h8300hs.
3448         (movsf_h8300): Change the name to *movsf_h8300.
3449         (movsf_h8300hs): Change the name to *movsf_h8300hs.
3450
3451 2003-06-24  Jakub Jelinek  <jakub@redhat.com>
3452
3453         * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
3454         src twice.
3455
3456 2003-06-24  J"orn Rennecke <joern.rennecke@superh.com>
3457
3458         Back out these patches:
3459          2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
3460           * sh.h (OLD_ARG_MODE): New macro.
3461           (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
3462           (FUNCTION_ARG_1): Break out of:
3463           (FUNCTION_ARG).  Use OLD_ARG_MODE.
3464          2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
3465           * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
3466           of the generated register.
3467
3468         * sh.h (FUNCTION_ARG_SCmode_WART): Define.
3469         (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
3470         an even number of floating point regs are in use, use the same
3471         sequence of argument passing registers for SCmode as would be
3472         used for two SFmode values.
3473         * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
3474         swap real / imaginary parts in incoming SCmode values passed
3475         in registers.
3476
3477 2003-06-24  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3478
3479         PR target/11260
3480         * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
3481
3482 Tue Jun 24 18:49:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
3483
3484         * Makefile.in (cgraph.o): Depend on output.h, not depend on
3485         tree-inline.h
3486         * cgraph.c: Do not include tree-inline.h; include output.h
3487         (known_fns): Rename to ...
3488         (known_decls): ... this one; update all uses.
3489         (cgraph_varpool_hash): New static variable.
3490         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
3491         variables.
3492         (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
3493         cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
3494         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3495         New functions.
3496         * cgraph.h (cgraph_varpool_node): New structure.
3497         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
3498         (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
3499         cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
3500         cgraph_varpool_asemble_pending_decls): Declare.
3501         * cgraphunit.c (record_call_1): Notice variable references.
3502         (cgraph_finalize_compilation_unit): Assemble pending variables.
3503         * toplev.c (wrapup_global_declarations): Use varpool.
3504         (compile_file): Assemble pending declarations.
3505         (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
3506         * varasm.c (assemble_name): Notice varpool references.
3507
3508 Tue Jun 24 13:52:11 CEST 2003  Jan Hubicka  <jh@suse.cz>
3509
3510         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
3511         * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
3512         * varasm.c (assemble_variable): Call prepare_assemble_variable.
3513
3514 2003-06-23  Roger Sayle  <roger@eyesopen.com>
3515
3516         * builtins.c (expand_builtin): Use expand_builtin_pow to expand
3517         calls for pow, powf, powl and their __builtin_ variants.
3518         (expand_builtin_pow): If the second argument is a constant
3519         integer and compiling with -ffast-math, use expand_powi to
3520         generate RTL if powi_cost is less than POWI_MAX_MULTS.
3521         (powi_cost): New function to return the number of multiplications
3522         necessary to evaluate an Nth power, for integer constant N.
3523         (expand_powi): New function to expand the RTL for evaluating
3524         the Nth power of a floating point value, for integer constant N.
3525
3526         * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
3527
3528 Mon Jun 23 23:07:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
3529
3530         * cgraph.c (cgraph_nodes_queue): Declare.
3531         (eq_node): Take identifier as p2.
3532         (cgraph_node): Update htab_find_slot_with_hash call.
3533         (cgraph_node_for_identifier): New.
3534         (cgraph_mark_needed_node): Move here from cgraphunit.c.
3535         * cgraph.h (cgraph_nodes_queue): Declare.
3536         (cgraph_node_for_identifier): Declare.
3537         * cgraphunit.c (cgraph_finalize_function): Collect entry points here
3538         instead of in cgraph_finalize_compilation_unit; constructors and
3539         destructors are entry points.
3540         (cgraph_finalize_compilation_unit): Reorganize debug outout;
3541         examine nested functions after lowerng; call collect_functions hook.
3542         (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
3543         (cgraph_finalize_compilation_unit): Do not collect entry points.
3544         * varasm.c: Include cgraph.h
3545         (assemble_name): Mark referenced identifier as needed.
3546
3547         * cgraphunit.c (record_call_1): Use get_callee_fndecl.
3548
3549 2003-06-23  Jakub Jelinek  <jakub@redhat.com>
3550
3551         * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
3552         just SYMBOL_REF.
3553         * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
3554         mode, as it requires pic register loaded.
3555
3556         * varasm.c (resolve_unique_section): Remove prototype.  No longer
3557         static.
3558         * tree.h (resolve_unique_section): New prototype.
3559
3560 2003-06-23  Andreas Schwab  <schwab@suse.de>
3561
3562         PR debug/9905
3563         * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
3564         recursing through first argument.
3565
3566 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3567
3568         * ChangeLog.1: Fix a typo.
3569         * cfgrtl.c: Fix comment typos.
3570         * dwarf2out.c: Likewise.
3571         * expmed.c: Likewise.
3572         * genrecog.c: Likewise.
3573         * jump.c: Likewise.
3574         * rtlanal.c: Likewise.
3575         * ssa-dce.c: Likewise.
3576         * toplev.c: Likewise.
3577
3578 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3579
3580         * doc/extend.texi: Fix typos.
3581         * doc/md.texi: Likewise.
3582         * doc/tm.texi: Likewise.
3583
3584 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3585
3586         * basic-block.h: Fix comment formatting.
3587         * bt-load.c: Likewise.
3588         * builtins.c: Likewise.
3589         * c-common.c: Likewise.
3590         * c-common.h: Likewise.
3591         * c-format.c: Likewise.
3592         * coverage.c: Likewise.
3593         * cpplib.h: Likewise.
3594         * cpppch.c: Likewise.
3595         * dbxout.c: Likewise.
3596         * diagnostic.c: Likewise.
3597         * dwarf2out.c: Likewise.
3598         * expr.c: Likewise.
3599         * fold-const.c: Likewise.
3600         * function.c: Likewise.
3601         * gcc.c: Likewise.
3602         * gcov-io.c: Likewise.
3603         * gcov-io.h: Likewise.
3604         * gcov.c: Likewise.
3605         * profile.c: Likewise.
3606         * real.h: Likewise.
3607         * sched-deps.c: Likewise.
3608
3609 2003-06-23  Roger Sayle  <roger@eyesopen.com>
3610             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3611
3612         * doc/contrib.texi (Contributors): Add a note on testing and
3613         remove duplicates from testers list.
3614
3615 2003-06-23  Nick Clifton  <nickc@redhat.com>
3616
3617         * read-rtl.c (read_braced_string): Check for EOF.  If
3618         encountered issue an error message.
3619
3620 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3621
3622         * doc/invoke.texi: Document dump options, dT and dW.
3623
3624 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3625
3626         * genrecog.c (pred_table): Remove the entry for
3627         mode_independent_operand.
3628         * recog.c (next_insns_test_no_inequality): Remove.
3629         (mode_independent_operand): Likewise.
3630         * recog.h: Remove the prototype for mode_independent_operand.
3631
3632 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3633
3634         * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
3635         store into bit 0.
3636         * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
3637         second alternative to set_znv.
3638         (*extzv_1_r_inv_h8300hs): Likewise.
3639
3640 2003-06-23  Hans-Peter Nilsson  <hp@bitrange.com>
3641
3642         * configure.in (in_tree_gas): Find out here whether GAS is ELF,
3643         set in_tree_gas_is_elf accordingly.
3644         (in_tree_ld): Find out whether LD emulation is ELF, set
3645         in_tree_ld_is_elf accordingly.
3646         (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
3647         (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
3648         (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
3649         (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
3650         grepping gas/Makefile.
3651         (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
3652         $in_tree_ld_is_elf instead of grepping ld/Makefile.
3653         * configure: Regenerate.
3654
3655 2003-06-22  Roger Sayle  <roger@eyesopen.com>
3656
3657         * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
3658         up the stabilized argument list, not build_tree_list.
3659         (expand_builtin_strcpy): Construct new argument list manually
3660         instead of using chainon to modify the original argument list.
3661         (expand_builtin_stpcpy): Construct new argument list manually
3662         instead of using copy_list and chainon.
3663         (expand_builtin_sprintf): New function.  Optimize calls to
3664         sprintf when the format is "%s" or doesn't contain a '%'.
3665         (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
3666         expand_builtin_sprintf.
3667
3668 2003-06-22  Andreas Schwab  <schwab@suse.de>
3669
3670         * function.c (set_insn_locators): Mark as unused.
3671
3672 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3673
3674         * common.opt: Add -finline-limit.
3675         * opts.c (common_handle_options): Handle it.
3676         * opts.sh: Temporary kludge for -finline-limit.
3677         * toplev.c (decode_f_option, independent_decode_option): Die.
3678         (parse_options_and_default_flags): No independent_decode_option.
3679
3680 2003-06-22  Andreas Jaeger  <aj@suse.de>
3681
3682         * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
3683
3684 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3685
3686         * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
3687
3688 2003-06-22  Andreas Schwab  <schwab@suse.de>
3689
3690         * doc/invoke.texi: Remove leading `-' from options in index.
3691
3692 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3693
3694         * bt-load.c: Follow spelling conventions.
3695
3696 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3697
3698         * expr.c (emit_move_insn_1): Fix a comment typo.
3699
3700 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3701
3702         * doc/invoke.texi: Alphabetize dump options.
3703
3704 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3705
3706         * doc/invoke.texi: Remove a duplicate -dk.
3707
3708 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3709
3710         * doc/invoke.texi: Update dump file names.
3711
3712 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
3713
3714         * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
3715         and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
3716
3717 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3718
3719         * doc/rtl.texi: Fix the @findex for pre_modify.
3720
3721 2003-06-22  Andreas Jaeger  <aj@suse.de>
3722
3723         * caller-save.c: Convert to ISO C90.
3724         * calls.c: Likewise.
3725         * cfg.c: Likewise.
3726         * cfganal.c: Likewise.
3727         * cfgbuild.c: Likewise.
3728         * cfgcleanup.c: Likewise.
3729         * cfghooks.c: Likewise.
3730         * cfglayout.c: Likewise.
3731         * cfglayout.h: Likewise.
3732         * cfgloop.c: Likewise.
3733         * cfgloop.h: Likewise.
3734         * cfgloopanal.c: Likewise.
3735         * cfgloopmainip.c: Likewise.
3736         * cfgrtl.c: Likewise.
3737
3738 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
3739
3740         * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
3741         64-bit alignment.
3742
3743 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
3744
3745         * arm.md (all call_value patterns): Remove register constraints on
3746         value operand.
3747
3748 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3749
3750         * common.opt: More -f switches.
3751         * opts.c (common_handle_options): Handle them.
3752         * toplev.c (time_report): Make extern.
3753         (f_options): USe flag_dummy.
3754         (decode_f_option): No need to use f_options now.
3755         * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
3756         flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
3757
3758 2003-06-22  Andreas Jaeger  <aj@suse.de>
3759
3760         * c-lex.c: Convert to ISO C90.
3761         * c-objc-common.c: Likewise.
3762         * c-opts.c: Likewise.
3763         * c-pch.c: Likewise.
3764         * c-ppoutput.c: Likewise.
3765         * c-pragma.h: Likewise.
3766         * c-pretty-print.c: Likewise.
3767         * c-pretty-print.h: Likewise.
3768         * c-semantics.c: Likewise.
3769         * c-tree.h: Likewise.
3770         * c-typeck.c: Likewise.
3771
3772         * c-lang.c: Convert to ISO C90.
3773
3774 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3775
3776         * opts.c (find_opt): Fix to always guarantee a find of a
3777         switch with joined parameter.
3778         * opts.h (struct cl_option): New member back_chain.
3779         * opts.sh: Update to calculate and add back_chain member.
3780
3781 2003-06-22  Gabriel Dos Reis <gdr@integrable-solutions.net>
3782
3783         * diagnostic.h (output_host_wide_integer): Declare.
3784         * diagnostic.c (output_long_long_decicaml): New function.
3785         (output_host_wide_integer): Likewise.
3786         (output_format): Use them.  Handle "%ll" and "%w".
3787
3788 2003-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
3789
3790         * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
3791
3792 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
3793
3794         * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
3795         * configure.in: Don't use gcc_AC_C_CHARSET.
3796         * configure, config.in: Regenerate.
3797         * config/i370/i370.c, config/i370/i370.h: Use
3798         (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
3799         instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.
3800
3801 2003-06-21  Neil Booth  <neil@daikokuya.co.uk>
3802
3803         * Makefile.in: Update.
3804         * common.opt: New switches.
3805         * opts.c: Include diagnostic.h.
3806         (common_handle_option): Handle new switches.
3807         * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
3808         flag_if_conversion2, flag_delete_null_pointer_checks,
3809         flag_rerun_cse_after_loop): Make extern.
3810         (flag_dummy): New.
3811         (f_options): Update to use flag_dummy for moved options.
3812         (decode_f_option): Some switches moved to opts.c.
3813         * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
3814         flag_if_conversion2, flag_delete_null_pointer_checks,
3815         flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
3816         flag_tracer, flag_thread_jumps, flag_unroll_loops,
3817         flag_unroll_all_loops, flag_unswitch_loops): New.
3818
3819 Sat Jun 21 13:41:00 CEST 2003  Jan Hubicka  <jh@suse.cz>
3820
3821         * i386.c (ix86_va_arg): Fix allocation of temporary slot.
3822
3823 2003-06-20  Kazu Hirata  <kazu@cs.umass.edu>
3824
3825         * config/h8300/h8300-protos.h: Add a prototype for
3826         same_cmp_preceding_p.
3827         * config/h8300/h8300.c (same_cmp_preceding): New.
3828         * config/h8300/h8300.md: Extend peephole2's that transform
3829         compare:SI into shorter sequences so that they can deal with
3830         signed comparisons.
3831
3832 2003-06-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3833
3834         * doc/contrib.texi (Contributors): Use Windows instead of Win32.
3835
3836         Update Andreas Jaeger's entry.
3837
3838         Merge the two entries of Kaveh Ghazi, David Edelsohn, and
3839         Loren J. Rittle.
3840
3841 2003-06-21  Nathanael Nerode  <neroden@gcc.gnu.org>
3842
3843         * mkconfig.sh: Add multiple inclusion guards to generated headers.
3844
3845 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
3846
3847         * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
3848         * common.opt: Add remaining -W options and -g.
3849         * diagnostic.c (warnings_are_errors): Remove.
3850         * flags.h: Make most warning flags boolean.
3851         * opts.c (common_handle_option): Handle remaining -W options, and -g.
3852         Move many warning flags from toplev.c, making them boolean.
3853         * toplev.c: Remove many warning flags.
3854         (decode_W_option): Remove.
3855         (decode_g_option): Make extern.  Error on unknown switch.
3856         (lang_independent_W_options): Use warn_dummy.
3857         (independent_decode_option): Just handle -f switches now.
3858         * toplev.h (decode_g_option): New.
3859
3860 2003-06-20  Aldy Hernandez  <aldyh@redhat.com>
3861
3862         PR/11092
3863         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
3864         vectors.
3865
3866 2003-06-20  Kelley Cook  <kelleycook@wideopenwest.com>
3867
3868         * opts.sh: Tweak awk script for portability.
3869
3870 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
3871
3872         PR c++/10888
3873         * tree-inline.c (expand_call_inline): Do not warn about failing to
3874         inline functions declared in system headers.
3875         * doc/invoke.texi (-Winline): Expand on documentation.
3876
3877 2003-06-20  Richard Henderson  <rth@redhat.com>
3878
3879         * config/alpha/alpha.c (alpha_file_start): Disable
3880         file_start_file_directive for ELF and not MDEBUG.
3881
3882 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
3883
3884         * sh.h (ROUND_TYPE_ALIGN): Remove.
3885
3886 2003-06-20  Richard Henderson  <rth@redhat.com>
3887
3888         * hooks.c (hook_int_void_no_regs): Rename from
3889         hook_reg_class_void_no_regs; change return type.
3890         * hooks.h: Update.
3891         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
3892         * target.h (branch_target_register_class): Change return type to int.
3893         Add documentation.
3894         * config/sh/sh.c (sh_target_reg_class): Change return type.
3895         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3896
3897 2003-06-20  Andreas Tobler <toa@pop.agri.ch>
3898
3899         * c-format.c: Change _Bool to bool reverting part of the last
3900         patch.
3901
3902 2003-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3903
3904         * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
3905         strip name encoding.
3906
3907 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3908
3909         * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
3910         * configure: Regenerate.
3911         Fixes PR driver/9362.
3912
3913 2003-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3914
3915         * config/alpha/alpha.c (alpha_file_start): Fix typo.
3916
3917 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3918
3919         * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
3920         to ASM_OUTPUT_SOURCE_LINE.
3921
3922 2003-06-20  Daniel Egger  <degger@fhm.edu>
3923             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3924
3925         * doc/install.texi (Building): Correct and improve statement
3926         about parallel builds.
3927
3928 2003-06-20  Andreas Jaeger  <aj@suse.de>
3929
3930         * c-common.c: Change _Bool to bool reverting part of the last
3931         patch.
3932
3933 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
3934
3935         * tree.h (expand_function_end): Remove all parameters.
3936         * function.c (expand_function_end): Remove all parameters.
3937         Use input_location. Never expand_end_bindings.
3938         * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
3939         * coverage.c (create_coverage): Likewise.
3940
3941 2003-06-20  Nick Clifton  <nickc@redhat.com>
3942
3943         * doc/extend.texi (ARM Built-in Functions): New node.  Document
3944         ARM builtin functions for iWMMXt support.
3945
3946 2003-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3947
3948         * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
3949         SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
3950         (--with-as): Add @anchor.
3951         (--with-gnu-ld): Fix typo.
3952         (--with-ld): Add @uref to --with-as.
3953
3954 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
3955
3956         * doc/tm.texi: Uniformly use @defmac for macros, rather than
3957         @table items.  Minor formatting and editorial corrections.
3958
3959 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
3960
3961         * line-map.c, line-map.h: Convert to ISO prototypes.
3962
3963 2003-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3964
3965         * gcse.c (store_killed_in_insn): Fix.
3966
3967 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
3968
3969         * target.h (asm_out.file_start, file_start_app_off,
3970         file_start_file_directive): New hooks.
3971         * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
3972         TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
3973         New hook-definition macros.
3974         * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
3975         * varasm.c (default_file_start): New.
3976         * output.h: Prototype it.
3977         * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
3978         * system.h: Poison ASM_FILE_START.
3979
3980         * config/alpha/alpha.c (alpha_write_verstamp): Delete.
3981         (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
3982         (unicosmk_asm_file_start): Rename unicosmk_file_start,
3983         make static, take no arguments.
3984         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
3985         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
3986         * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
3987         TARGET_ASM_FILE_END.  Remove reference to ASM_FILE_START in
3988         comment.
3989         * config/arc/arc.c (arc_asm_file_start): Rename
3990         arc_file_start, take no arguments, make static.
3991         (TARGET_ASM_FILE_START): Set it.
3992         * config/arm/arm.c (aof_file_start): New static function.
3993         (TARGET_ASM_FILE_START): Set it, when appropriate.
3994         * config/arm/coff.h, config/arm/elf.h:
3995         Set TARGET_ASM_FILE_START_APP_OFF to true.
3996         * config/avr/avr.c (asm_file_start): Rename avr_file_start,
3997         take no arguments, make static.
3998         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
3999         Set them.
4000         * config/c4x/c4x.c (c4x_file_start): New static function.
4001         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
4002         Set them.
4003         * config/cris/cris.c (cris_file_start): New static function.
4004         (TARGET_ASM_FILE_START): Set it.
4005         * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
4006         dsp16xx_file_start, make static.
4007         (luxworks_dsp16xx_file_start): Delete.
4008         (TARGET_ASM_FILE_START): Set it.
4009         * config/h8300/h8300.c (asm_file_start): Rename
4010         h8300_file_start, make static, take no arguments.
4011         (TARGET_ASM_FILE_START): Set it.
4012         * config/i370/i370.c (i370_file_start): New static function.
4013         (TARGET_ASM_FILE_START): Set it.
4014         * config/i386/i386.c (x86_file_start): New static function.
4015         (TARGET_ASM_FILE_START): Set it.
4016         * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
4017         X86_FILE_START_FLTUSED): New macros, default to false.
4018         * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
4019         * config/i386/sysv4.h, config/i386/sco5.h: Override
4020         X86_FILE_START_VERSION_DIRECTIVE to true.
4021         * config/ia64/ia64.c (ia64_file_start): New static function.
4022         (TARGET_ASM_FILE_START): Set it.
4023         (emit_safe_across_calls): Take no arguments.
4024         * config/ia64/ia64.md: Update to match.
4025         * config/m32r/m32r.c (m32r_asm_file_start): Rename
4026         m32r_file_start, make static, take no arguments.
4027         (TARGET_ASM_FILE_START): Set it.
4028         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
4029         m68hc11_file_start, make static, take no arguments.
4030         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4031         (print_options): Delete.
4032         * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
4033         (TARGET_ASM_FILE_START_APP_OFF): Set.
4034         * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
4035         m68k_hp320_file_start.
4036         * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
4037         Make static, take no arguments.
4038         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4039         * config/mmix/mmix.c (mmix_asm_file_start): Rename
4040         mmix_file_start, make static, take no arguments.
4041         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4042         * config/mn10300/mn10300.c (asm_file_start): Rename
4043         mn10300_file_start, make static, take no arguments.
4044         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4045         * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
4046         * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
4047         pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
4048         pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
4049         pa_hpux64_hpas_file_start): New static functions.
4050         * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
4051         * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
4052         pa_linux_file_start.
4053         * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
4054         pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
4055         appropriate.
4056         * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
4057         * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
4058         (rs6000_file_start): Make static, take no arguments.  Reset
4059         default_cpu under certain conditions.
4060         (rs6000_xcoff_file_start): New function.
4061         * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
4062         * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
4063         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
4064         * config/sh/sh.c (output_file_start): Rename
4065         sh_file_start, make static, take no arguments.  Merge in old
4066         code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
4067         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4068         * config/sh/sh.c (TARGET_ELF): Define to 0.
4069         * config/sh/elf.h (TARGET_ELF): Redefine to 1.
4070         * config/v850/v850.c (asm_file_start): Delete.
4071         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4072         * config/vax/vax.c (vax_file_start): New static function.
4073         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
4074
4075         * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
4076         * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
4077         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
4078         * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
4079         * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
4080         * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
4081
4082         * config/darwin.h, config/elfos.h, config/alpha/elf.h
4083         * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
4084         * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
4085         * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
4086         * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
4087         * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
4088         * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
4089         * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
4090         * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
4091         * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
4092         * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
4093         * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
4094         * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
4095         * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
4096         * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
4097         * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
4098         * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
4099         * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
4100
4101         * config/alpha/alpha-protos.h, config/arc/arc-protos.h
4102         * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
4103         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4104         * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
4105         * config/mips/mips-protos.h, config/mmix/mmix-protos.h
4106         * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
4107         * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
4108
4109         * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
4110         Remove reference to ASM_FILE_START in comment.
4111         * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
4112         * config/arm/linux-gas.h, config/arm/netbsd-elf.h
4113         * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
4114
4115 2003-06-19  Graeme Peterson <gp@qnx.com>
4116
4117         * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
4118         SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
4119         sysroot_hdrs_suffix_spec): New.
4120         (static_specs): Initialize new variables.
4121         (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
4122         * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
4123         New macros.
4124
4125 2003-06-19  Andreas Jaeger  <aj@suse.de>
4126
4127         * c-aux-info.c: Convert to ISO C90.
4128         * c-pragma.c: Likewise.
4129         * c-common.c: Likewise.
4130         * c-common.h: Likewise.
4131         * c-convert.c: Likewise.
4132         * c-cppbuiltin.c: Likewise.
4133         * c-dump.c: Likewise.
4134         * c-decl.c: Likewise
4135         * c-format.c: Likewise.
4136         * c-incpath.c: Likewise.
4137         * c-incpath.h: Likewise.
4138
4139 2003-06-19  Roger Sayle  <roger@eyesopen.com>
4140
4141         * builtins.c (expand_errno_check): Assume that flag_errno_math
4142         and HONOR_NANS have been tested before calling here.  Only try
4143         to set errno ourselves if the decl can't throw an exception.
4144         (expand_builtin_mathfn): Move the code to stabilize the arg
4145         after the main switch, so that that its only done when needed.
4146         BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
4147         Don't modify the original expr when stabilizing the argument.
4148         (expand_builtin_mathfn_2): Likewise, move the code to stabilize
4149         the args after the main switch, and don't modify the orginal exp.
4150
4151 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
4152
4153         * expr.c (const_vector_from_tree): Initialize remaining elements
4154         to 0.
4155
4156 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
4157
4158         * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
4159         Change "fix" to "float".
4160
4161 2003-06-19  Andreas Jaeger  <aj@suse.de>
4162
4163         * c-tree.h: Remove declaration of poplevel.
4164
4165         * tree.h: Remove declaration of approx_sqrt.
4166
4167         * c-lex.c: Remove redundant declaration of asm_out_file.
4168
4169         * flags.h: Remove declaration of warn_unknown_pragma and
4170         main_input_filename.
4171
4172         * rtl.h: Remove functions from fold-const.c since they're already
4173         declared in tree.h.
4174
4175         * regs.h: Remove redundant declaration of reg_names.
4176
4177         * bt-load.c (migrate_btr_defs): Correct printf arguments.
4178
4179         * protoize.c: Fix breakage from last patch.
4180
4181 2003-06-19  J"orn Rennecke <joern.rennecke@superh.com>
4182
4183         * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
4184         has been included.
4185
4186 2003-06-18  James A Morrison <ja2morri@student.math.uwaterloo.ca>
4187
4188         * config/sparc/sparc.c: Update copyright year.
4189
4190 2003-06-19  David Edelsohn  <edelsohn@gnu.org>
4191
4192         * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
4193         to ABI_V4.
4194
4195 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
4196
4197         PR bootstrap/4068
4198         * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
4199
4200 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
4201
4202         * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
4203         to the end of the file.  Remove unnecessary prototypes.
4204
4205 2003-06-19  Hans-Peter Nilsson  <hp@axis.com>
4206
4207         * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
4208         calls to insn_default_latency and result_ready_cost.  Initialize
4209         def_latency to 1.
4210
4211 2003-06-18  Richard Henderson  <rth@redhat.com>
4212
4213         * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
4214         (_Unwind_FindEnclosingFunction): Implement.
4215
4216 2003-06-18  Kazu Hirata  <kazu@cs.umass.edu>
4217
4218         * toplev.c (rest_of_handle_sched): Hide the entire function if
4219         INSN_SCHEDULING is not defined.
4220         (rest_of_compilation): Call rest_of_handle_sched() only when
4221         INSN_SCHEDULING is defined.
4222
4223 2003-06-18  Stephen Clarke <stephen.clarke@superh.com>
4224             J"orn Rennecke <joern.rennecke@superh.com>
4225
4226         * bt-load.c: New file.
4227         * Makefile.in (OBJS): Include bt-load.o
4228         (bt-load.o): Add dependencies.
4229         * flags.h (flag_branch_target_load_optimize): Declare.
4230         (flag_branch_target_load_optimize2): Likewise.
4231         * hooks.c (hook_reg_class_void_no_regs): New function.
4232         (hook_bool_bool_false): Likewise.
4233         * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
4234         * rtl.h (branch_target_load_optimize): Declare.
4235         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
4236         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4237         (TARGET_INITIALIZER): Include these.
4238         * target.h (struct gcc_target): Add branch_target_register_class
4239         and branch_target_register_callee_saved members.
4240         * toplev.c (enum dump_file_index): Add DFI_branch_target_load
4241         (dump_file) Add "tars" entry.
4242         (flag_branch_target_load_optimize): New variable.
4243         (flag_branch_target_load_optimize2): Likewise.
4244         (lang_independent_options): Add entries for new options.
4245         (rest_of_compilation): Call branch_target_load_optimize.
4246         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
4247         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4248         * doc/invoke.texi: Document -fbranch-target-load-optimize and
4249         -fbranch-target-load-optimize2.
4250         * rtl.h (epilogue_completed): Declare.
4251         * recog.c (epilogue_completed): New variable.
4252         * toplev.c (rest_of_compilation): Set it.
4253         * flow.c (mark_regs_live_at_end): Use it.
4254         * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
4255         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4256         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4257         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4258
4259         * sh.c (shmedia_space_reserved_for_target_registers): New variable.
4260         (sh_target_reg_class): New function.
4261         (sh_optimize_target_register_callee_saved): Likwise.
4262         (shmedia_target_regs_stack_space): Likewise.
4263         (shmedia_reserve_space_for_target_registers_p): Likewise.
4264         (shmedia_target_regs_stack_adjust): Likewise.
4265         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
4266         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4267         (calc_live_regs): If flag_branch_target_load_optimize2 and
4268         TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
4269         for target registers, make sure that we save all target registers.
4270         (sh_expand_prologue, sh_expand_epilogue): Take target register
4271         optimizations into account.  Collapse stack adjustments if that
4272         is beneficial.
4273         (initial_elimination_offset): Reserve space for target registers
4274         if necessary.
4275         * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
4276         (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
4277
4278 2003-06-18  Nick Clifton  <nickc@redhat.com>
4279
4280         * config.gcc: Add an extra_header for ARM targets.
4281         Support configuring with --with-cpu=iwmmxt.
4282         * doc/invoke.texi: Document new value for -mcpu= ARM switch.
4283         * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
4284         names.  Fix formatting.
4285         * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
4286         names.
4287         * config/arm/arm-protos.h (arm_emit_vector_const): New
4288         prototype.
4289         (arm_output_load_gr): New prototype.
4290         * config/arm/arm.c (extra_reg_names1): Delete.
4291         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
4292         * arch_is_iwmmxt): Define.
4293         (all_cores, all_architecture): Add entry for iwmmxt.
4294         (arm_override_options): Add support for iwmmxt.
4295         (use_return_insn, arm_function_arg, arm_legitimate_index_p,
4296         arm_print_value, arm_rtx_costs_1, output_move_double,
4297         arm_compute_save_reg_mask, arm_output_epilogue,
4298         arm_get_frame_size, arm_expand_prologue, arm_print_operand,
4299         arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
4300         Likewise.
4301         (arm_init_cumulative_args): Count iwmmxt registers.
4302         (arm_function_ok_for_sibcall): Return false of sibcall_blocked
4303         has been set.
4304         (struct minipool_node): Add fix_size field.
4305         (add_minipool_forward_ref): Add support for 8-byte aligning of
4306         the pool.
4307         (add_minipool_backward_ref, add_minipool_offsets,
4308         dump_minipool, push_minipool_fix): Likewise.
4309         (struct builtin_description): New struct.
4310         (builtin_description): New array of iwmmxt builtin functions.
4311         (arm_init_iwmmxt_builtins): New function.
4312         (arm_init_builtins): New function.
4313         (safe_vector_operand): New function.
4314         (arm_expand_binop_builtin): New function.
4315         (arm_expand_unop_builtin): New function.
4316         (arm_expand_builtin): New function.
4317         (arm_emit_vector_const): New function.
4318         (arm_output_load_gr): New function.
4319         * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
4320         TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
4321         TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
4322         DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
4323         (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
4324         (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
4325         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
4326         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4327         REG_CLASS_FOR_LETTER): Add iwmmxt registers.
4328         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
4329         registers unless the iwmmxt target is selected.
4330         (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
4331         FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
4332         IS_IWMMXT_GR_REGNUM): Define.
4333         (FIRST_PSEUDO_REGISTER): Bump to 63.
4334         (struct machine_function): Add sibcall_blocked field.
4335         (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
4336         nargs fields.
4337         (enum arm_builtins): New enum list.
4338         * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
4339         UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
4340         UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
4341         UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
4342         (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
4343         VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
4344         (movv2si, movv4hi, movv8qi): New expands for vector moves.
4345         Include iwmmxt.md.
4346         * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
4347         multilib.
4348         (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
4349         * config/arm/mmintrin.h: New ARM specific header file.
4350         * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
4351
4352 2003-06-18  J"orn Rennecke <joern.rennecke@superh.com>
4353
4354         * toplev.c (Remaining -d letters summary): Update.
4355
4356 2003-06-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4357
4358         * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
4359         argument.
4360         (function_arg): Handle CALL_LIBCALL flag.
4361         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
4362         prototype.
4363         * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
4364         (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
4365         (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
4366         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
4367
4368 2003-06-18  Neil Booth  <neil@daikokuya.co.uk>
4369
4370         * Makefile.in: Update.
4371         * common.opt: New options.
4372         * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
4373         set_Wunused): New.
4374         (common_handle_option): Handle new options.
4375         * toplev.c (set_target_switch): Export.
4376         (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
4377         (decode_W_option): -Wunused and -Wextra handled in opts.c now.
4378         (independent_decode_option): More options handled in opts.c now.
4379         Change prototype.
4380         * toplev.h (set_target_switch): New.
4381
4382 2003-06-17  Robert Abeles  <rabeles@archaelogic.com>
4383
4384         PR debug/4252
4385         * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
4386         to dump_switch_p().
4387         * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
4388         from static strings in dump_files.
4389
4390 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4391
4392         * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
4393         VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
4394         libiberty macros.
4395
4396 2003-06-17  Jason Merrill  <jason@redhat.com>
4397
4398         PR c++/10929
4399         * tree-inline.c (expand_call_inline): Don't warn about failing to
4400         inline a function which was made inline by -finline-functions.
4401
4402 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4403
4404         * config/h8300/h8300-protos.h: Update to ISO C.
4405         * config/h8300/h8300.c: Likewise.
4406         * config/h8300/h8300.h: Likewise.
4407         * config/h8300/h8300.md: Likewise.
4408
4409 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4410
4411         * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
4412         * configure: Regenerate.
4413         * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
4414
4415 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
4416
4417         * install.texi (Testing): Add information on how to run Java
4418         runtime tests separately.
4419
4420 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4421
4422         * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
4423
4424         * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
4425         (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
4426
4427 2003-06-17  Christopher Faylor  <cgf@redhat.com>
4428
4429         * doc/install.texi: Add msvc rebuild caveat.
4430
4431 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4432
4433         * config/sh/coff.h: Replace Hitachi with Renesas.
4434         * config/sh/elf.h: Likewise.
4435         * config/sh/embed-elf.h: Likewise.
4436         * config/sh/lib1funcs.asm: Likewise.
4437         * config/sh/sh-protos.h: Likewise.
4438         * config/sh/sh.c: Likewise.
4439         * config/sh/sh.h: Likewise.
4440         * config/sh/sh.md: Likewise.
4441
4442 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4443
4444         * ChangeLog.3: Fix comment typos.
4445         * ChangeLog.6: Likewise.
4446         * config/d30v/d30v.c: Likewise.
4447         * config/h8300/h8300.md: Likewise.
4448         * config/m32r/m32r.md: Likewise.
4449         * config/mips/mips.c: Likewise.
4450         * config/mips/mips.md: Likewise.
4451         * config/ns32k/NOTES: Likewise.
4452
4453 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
4454             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4455
4456         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
4457         to run Java runtime tests separately.
4458
4459 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4460
4461         * config/h8300/h8300-protos.h: Update a comment.
4462
4463 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
4464
4465         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
4466         are aligned like integral modes.
4467         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
4468
4469         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
4470         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
4471         * sh.md (*pt): Remove.
4472
4473         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
4474
4475         * sh.md (return_media_rte): New pattern.
4476         (return_media): Use it.
4477
4478 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4479
4480         * doc/contrib.texi: Replace Hitachi with Renesas.
4481         * doc/install.texi: Likewise.
4482         * doc/invoke.texi: Likewise.
4483
4484 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
4485
4486         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
4487         behaviour.
4488
4489 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4490
4491         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
4492
4493         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
4494         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
4495
4496         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
4497         -msdata=eabi usages.
4498
4499         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
4500
4501 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4502
4503         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
4504         * fixinc/gnu-regex.c: Don't define `volatile'.
4505         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
4506         * ggc-simple.c: Likewise.
4507         * system.h: Don't define `volatile'.
4508
4509         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
4510         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
4511         call these macros.
4512         * config.in, configure: Regenerated.
4513
4514 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4515
4516         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
4517         Handle POINTERS_EXTEND_UNSIGNED.
4518
4519 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4520
4521         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
4522         !TARGET_IRIX6]: Define as NULL.
4523
4524 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4525
4526         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
4527
4528 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4529
4530         * dbxout.c (dbxout_source_line_counter): New global variable.
4531         Mark it with GTY(()).
4532         (dbxout_source_line): Increment dbxout_source_line_counter
4533         and pass it to ASM_OUTPUT_SOURCE_LINE.
4534         * sdbout.c (sdbout_source_line_counter): New global variable.
4535         Mark it with GTY(()).
4536         (unnamed_struct_number): Mark it with GTY(()).
4537         (sdbout_source_line): Increment sdbout_source_line_counter
4538         and pass it to ASM_OUTPUT_SOURCE_LINE.
4539         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
4540         (xcoffout_source_line): Pass 0 as third argument to
4541         ASM_OUTPUT_SOURCE_LINE.
4542         (xcoffout_begin_prologue): Likewise.
4543         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4544         Use it instead of 'sym_lineno' but without incrementing it.
4545         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4546         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4547         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4548         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
4549         argument to ASM_OUTPUT_SOURCE_LINE.
4550         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4551         * config/arm/aout.h: Remove useless comment.
4552         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4553         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4554         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4555         Use it instead of 'sym_lineno' but without incrementing it.
4556         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4557         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
4558         parameter. Use it instead of 'sym_lineno' but without incrementing it.
4559         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
4560         argument to ASM_OUTPUT_SOURCE_LINE.
4561         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4562         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4563         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4564         Use it instead of 'sym_lineno' but without incrementing it.
4565         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4566         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4567         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4568         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4569         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
4570
4571 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
4572
4573         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
4574         (expand_block_move, output_block_move): Remove.
4575         * config/mips/mips.h (enum block_move_type): Remove.
4576         * config/mips/mips.c (block_move_call, output_block_move): Remove.
4577         (mips_block_move_straight, mips_adjust_block_mem): New function.
4578         (mips_block_move_loop): Renamed and reworked from block_move_loop.
4579         (mips_expand_block_move): Likewise expand_block_move.  Return false
4580         to fall back on the target-independent code.
4581         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
4582         (movstrsi_internal*): Remove.
4583
4584 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
4585
4586         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
4587         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
4588         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
4589         ISO C: new-style function declarations, no need for PARAMS,
4590         no special punctuation on indirect function calls, use string
4591         constant concatenation where convenient.
4592
4593 2003-06-17  Andreas Jaeger  <aj@suse.de>
4594
4595         * rtl.h: Remove declarations from coverage.h.
4596         * toplev.c: Include coverage.h.
4597         * Makefile.in (toplev.o): Depend on coverage.h.
4598
4599         * toplev.h: Remove extra declaration of print_time.
4600
4601         * gengtype.c (close_output_files): Remove duplicated declaration.
4602
4603 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4604
4605         * config/sparc/sysv4.h: Remove target-independent comment;
4606         replace "GNU CC" with "GCC".
4607         * config/vxworks.h: Replace "GNU compiler" with "GCC".
4608         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
4609         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4610         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
4611         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
4612         config/sparc/rtemself.h, config/sparc/sol2-64.h,
4613         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
4614         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
4615         config/sparc/sol2.h, config/sparc/sp64-aout.h,
4616         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
4617         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
4618         "GNU compiler", "GNU CC" with "GCC".
4619         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4620         config/sparc/sparc-modes.def, config/sparc/sparc.c,
4621         config/sparc/sparc.md, config/sparc/sparclet.md,
4622         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
4623         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
4624         "GNU C Compiler" with "GCC".
4625         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
4626
4627 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
4628
4629         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
4630         constants.
4631
4632         * testsuite/gcc.c-torture/execute/simd-4.c: New.
4633
4634 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4635
4636         * config/ip2k/ip2k.h: Remove target-independent comments.
4637
4638         * config.gcc: Explicitly mention elfos.h in ip2k entry.
4639         * config/ip2k/ip2k.h: Don't #include it here.
4640
4641 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4642
4643         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
4644         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
4645         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
4646         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
4647         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
4648         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
4649         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
4650         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
4651         the PTR macro.
4652
4653         * gengtype.c: Don't use UNION_INIT_ZERO.
4654         * system.h (UNION_INIT_ZERO): Delete.
4655
4656 2003-06-16  Richard Henderson  <rth@redhat.com>
4657
4658         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
4659         GET_MODE_UNIT_SIZE when simplifying constant vectors.
4660
4661 2003-06-16  Andreas Jaeger  <aj@suse.de>
4662
4663         * timevar.c (get_run_time): Remove function provided also by
4664         libiberty.
4665         * timevar.h: Remove get_run_time declaration.
4666
4667 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
4668
4669         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
4670         unreachable code.
4671
4672 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4673
4674         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
4675         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
4676         use macros from "symcat.h", instead rely on ISO C.
4677
4678         * system.h: Don't include "symcat.h".
4679         * configure.in (AC_C_STRINGIZE): Delete.
4680         * config.in, configure: Regenerate.
4681
4682 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4683
4684         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
4685
4686         * tree.h (STMT_CHECK): New macro.
4687         Also upper-case argument names on all checking macros and
4688         fix some whitespace problems; assume CODE argument does not
4689         have side-effects.
4690
4691 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4692
4693         * scan.h: Convert to ISO C.
4694         * system.h: Likewise.
4695
4696         * c-format.c (dynamic_format_types): New pointer for dynamic data.
4697         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
4698         New functions split out of...
4699         (handle_format_attribute): ...here.
4700
4701 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
4702
4703         * sh.h (REG_CLASS_FROM_LETTER): Change to:
4704         (REG_CLASS_FROM_CONSTRAINT).
4705         (CONST_OK_FOR_I): Rename to:
4706         (CONST_OK_FOR_I08).  Changed all users.
4707         (CONST_OK_FOR_J): Rename to:
4708         (CONST_OK_FOR_I16).  Changed all users.
4709         (CONST_OK_FOR_K): Rename to:
4710         (CONST_OK_FOR_P27).  Changed all users.
4711         (CONST_OK_FOR_L): Rename to:
4712         (CONST_OK_FOR_K08).  Changed all users.
4713         (CONST_OK_FOR_O): Rename to:
4714         (CONST_OK_FOR_I06).  Changed all users.
4715         (CONST_OK_FOR_P): Rename to:
4716         (CONST_OK_FOR_I10).  Changed all users.
4717         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
4718         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
4719         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
4720         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
4721         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
4722         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
4723         (CONST_OK_FOR_LETTER_P): Replace with
4724         (CONST_OK_FOR_CONSTRAINT_P).
4725         (EXTRA_CONSTRAINT_S): Rename to:
4726         (EXTRA_CONSTRAINT_C16).  Changed all users.
4727         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
4728         (EXTRA_CONSTRAINT_T): Rename to:
4729         (EXTRA_CONSTRAINT_Csy).  Changed all users.
4730         (EXTRA_CONSTRAINT_Z): Remove.
4731         (EXTRA_CONSTRAINT): Replace with:
4732         (EXTRA_CONSTRAINT_STR).
4733         (EXTRA_CONSTRAINT_U): Rename to:
4734          (EXTRA_CONSTRAINT_Z).  Changed all users.
4735         * sh.c (and_operand): Use CONST_OK_FOR_J16.
4736         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
4737         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
4738         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
4739         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
4740         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
4741         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
4742         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
4743         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
4744         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
4745         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
4746         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
4747         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
4748         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
4749         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
4750         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
4751         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
4752         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
4753         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
4754         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
4755         (sssubv4hi3): Likewise.
4756         (movsf_i): Change I[08]/r to G/r.
4757         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
4758
4759         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
4760
4761 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4762
4763         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
4764
4765 2003-06-16  Andreas Jaeger  <aj@suse.de>
4766
4767         * basic-block.h: Remove duplicate prototype of
4768         note_prediction_to_br_prob.
4769
4770         * tree.h: Remove duplicate prototype of strip_float_extensions.
4771
4772 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4773
4774         * config/c4x/c4x.c: Don't include "c-tree.h".
4775         * config/pa/pa.c: Likewise.
4776         * langhooks.c: Likewise.
4777         * tree.h (poplevel): Declare.
4778
4779 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
4780
4781         * config/h8300/h8300.c (const_costs): Move this to ...
4782         (h8300_rtx_costs): ... here.
4783
4784 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4785
4786         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
4787         (tan_optab, atan_optab): Define corresponding macros.
4788         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
4789         * genopinit.c (optabs): Implement tan_optab and atan_optab
4790         using tan?f2 and atan?f2 patterns.
4791         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
4792         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
4793         Change the default value of errno_set to false.
4794         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
4795         using expand_builtin_mathfn.
4796
4797         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
4798         expander patterns implemented using existing atan2?f3 patterns.
4799
4800 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4801
4802         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
4803         both operands of the addition equal, reuse the expanded RTL.
4804         (expand_expr <MULT_EXPR>): Likewise for multiplication.
4805
4806 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4807             Jeff Law  <law@redhat.com>
4808
4809         * fold-const.c (operand_equal_p): Consider two calls to "const"
4810         functions with identical non-volatile arguments to be equal.
4811         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
4812         built-in function to be equal to the "foo" form.
4813
4814 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4815
4816         * config/rs6000/sysv4le.h: Remove target-independent comment.
4817         Replace "GNU compiler" with "GCC" in comment.
4818
4819 2003-06-16  Andreas Jaeger  <aj@suse.de>
4820
4821         * tracer.c: Remove duplicate declaration.
4822
4823         * toplev.c: Remove extra declaration of decode_d_option.
4824
4825         * ssa.c: Remove duplicate declaration.
4826
4827         * sreal.c: Remove extra declaration of dump_sreal.
4828
4829         * reload1.c: Remove duplicate declarations.
4830
4831         * integrate.c: Remove extra declaration of
4832         set_decl_abstract_flags.
4833
4834         * flow.c: Remove extra declaration of dump_flow_info.
4835
4836         * alias.c: Remove extra declaration of get_addr.
4837
4838 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4839
4840         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
4841         config/vxworks.h: GNU CC -> GCC.
4842
4843         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
4844         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
4845         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
4846         ssa.h, tree.def: Replace overly specific references to "GNU C"
4847         and "GNU C Compiler" with references to "GCC".
4848
4849 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
4850
4851         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
4852         memory reference.  Fix test that checks if operand 1 is using r0.
4853         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
4854
4855         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
4856         defined.
4857
4858 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
4859
4860         * function.h (struct emit_status): Remove x_last_linenum,
4861         x_last_filename. Add x_last_location.
4862         * rtl.h: #include "input.h".
4863         (NOTE_DATA): New.
4864         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
4865         number notes.
4866         * emit-rtl.c (last_linenum, last_filename): Remove.
4867         (last_location): New.
4868         (emit_line_note_after): LINE must always be >= 0.
4869         (emit_line_note): Likewise. Check not duplicate here...
4870         (emit_note): ... rather than here.
4871         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
4872         * integrate.c (expand_inline_function): Use emit_line_note for
4873         line number notes.
4874         (copy_insn_list): Likewise.
4875         * unroll.c (copy_loop_body): Likewise.
4876         * Makefile.in (RTL_H): Add input.h.
4877
4878 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
4879
4880         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
4881
4882 2003-06-16  Richard Henderson  <rth@redhat.com>
4883
4884         * config/alpha/alpha-protos.h, config/alpha/elf.h,
4885         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
4886         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
4887         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
4888         Remove unneeded static function decls.
4889
4890 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
4891
4892         * c-opts.c (c_common_handle_option): s/on/value/.
4893         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
4894         directly rather than converting the argument.
4895         * c.opt: Update docs.  Use UInteger where appropriate.
4896         * common.opt: Use UInteger where appropriate.
4897         * opts.c (integral_argument): New.
4898         (handle_argument): Handle integral arguments, and optional
4899         joined arguments.
4900         (common_handle_option): Update.
4901         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
4902         * opts.sh: Handle JoinedOrMissing and UInteger flags.
4903
4904 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
4905
4906         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
4907         unnecessary extern declaration.
4908
4909 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
4910
4911         * config/gofast.h, config/interix.h, config/interix3.h,
4912         config/libgloss.h, config/linux-aout.h, config/linux.h,
4913         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
4914         * config/kaos.h: "GNU compiler" -> GCC.
4915         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
4916
4917         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
4918         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
4919         GNU CC -> GCC.
4920
4921         * config/svr3.h: Remove #if 0 code, misleading comments.
4922         GNU CC -> GCC.
4923
4924 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
4925
4926         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
4927         main_input_filename to avoid conflict with input_filename macro.
4928
4929 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4930
4931         * config/mips/mips.h (asm_file_name, g_switch_set,
4932         g_switch_value): Remove.
4933         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4934         unnecessary extern declarations.
4935
4936 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4937
4938         * config/frv/frv.h: Remove declaration of g_switch_value.
4939         * config/m32r/m32r.h: Remove declaration of g_switch_value.
4940         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
4941
4942 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4943
4944         * opts.sh: Quote '+' in regex.
4945
4946 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
4947
4948         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
4949         * config/rs6000/rs6000.c: Include cfglayout.h.
4950         * config/alpha/alpha.c: Likewise.
4951         * config/ia64/ia64.c: Likewise.
4952         * config/sparc/sparc.c: Likewise.
4953         * config/sh/sh.c: Likewise.
4954
4955 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4956
4957         * opts.sh: Quote '+' in regex.
4958
4959 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4960
4961         * c-opts.c (lang_flags): Update for new spelling of flags.
4962         (write_langs): Similarly.
4963         * c.opt: Specify languages.
4964         * opts.h: Remove languages.
4965         * opts.sh: Recognise front-end defined languages.
4966         * doc/sourcebuild.texi: Update.
4967
4968 2003-06-15  Andreas Jaeger  <aj@suse.de>
4969
4970         * alloc-pool.c: Convert to ISO C90 prototypes.
4971         * alloc-pool.h: Likewise.
4972         * alias.c: Likewise.
4973         * attribs.c: Likewise.
4974         * bb-reorder.c: Likewise.
4975         * bitmap.h: Likewise.
4976         * bitmap.c: Likewise.
4977         * builtins.c: Likewise.
4978
4979         * tree.h: Convert prototypes of attribs.c to ISO C90.
4980         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
4981         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
4982         * expr.h: Convert prototypes of builtins.c to ISO C90.
4983
4984 2003-06-15  Roger Sayle  <roger@eyesopen.com>
4985
4986         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
4987         implement exp, expf and expl built-ins as inline x87 intrinsics.
4988         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
4989         represent x87's fscale, frndint and f2xm1 insns respectively.
4990         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
4991         to encode x87's "fscale" instruction followed by a pop.
4992         (*frndintxf2): New insn pattern for "frndint".
4993         (*f2xm1xf2): New insn pattern for "f2xm1".
4994
4995         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
4996         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
4997         UNSPEC_FPATAN.
4998
4999 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5000
5001         * gencheck.c (main): Avoid generating duplicate macros.
5002
5003         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
5004         knowing names of language subdirectories.
5005
5006 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
5007
5008         * c-pch.c (asm_file_name): Remove.
5009         * common.opt: Add more switches.
5010         * flags.h (g_switch_set): Boolify.
5011         * opts.c (g_switch_value, g_switch_set, exit_after_options,
5012         version_flag): Move from toplev.c.
5013         (common_handle_option): Handle more switches from toplev.c.
5014         * toplev.c (display_help, display_target_options, decode_d_option,
5015         print_version): Make non-static, remove prototypes.
5016         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
5017         (version_flag, g_switch_value, g_switch_set, exit_after_options):
5018         Remove.
5019         (independent_decode_option): Move some handlers to opts.c.
5020         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
5021         exit_after_options, version_flag, display_help, display_target_options,
5022         print_version, decode_d_option): New.
5023
5024 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
5025
5026         * config/alpha/alpha.md: Follow spelling conventions.
5027         * config/arm/arm.c: Likewise.
5028         * config/arm/arm.h: Likewise.
5029         * config/arm/arm.md: Likewise.
5030         * config/arm/crtn.asm: Likewise.
5031         * config/m32r/m32r.c: Likewise.
5032         * config/m32r/m32r.md: Likewise.
5033         * config/rs6000/rs6000.c: Likewise.
5034
5035 2003-06-15  Richard Henderson  <rth@redhat.com>
5036
5037         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
5038         insn_locators_initialize.
5039         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5040         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5041         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5042         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
5043
5044 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
5045
5046         * builtins.c (expand_builtin_expect_jump): Remove redundant
5047         tests that are also in any_condjump_p().
5048
5049 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5050
5051         * libgcc2.c: Delete sysV68 L_trampoline section.
5052         * config/m68k/mot3300-crt0.S: Delete file.
5053         * config/m68k/mot3300Mcrt0.S: Likewise.
5054
5055 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
5056
5057         * config/aoutos.h: Remove.
5058         * config.gcc: Remove reference to aoutos.h.
5059         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
5060
5061 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
5062
5063         * doc/install.texi: Follow spelling conventions.
5064         * doc/tm.texi: Likewise.
5065         * config/fp-bit.c: Likewise.
5066         * config/arm/arm.c: Likewise.
5067         * config/frv/frv.c: Likewise.
5068         * config/ns32k/NOTES: Likewise.
5069         * config/ns32k/STATUS: Likewise.
5070
5071 2003-06-14  Roger Sayle  <roger@eyesopen.com>
5072             Zack Weinberg  <zack@codesourcery.com>
5073
5074         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
5075         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
5076         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
5077
5078         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
5079         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
5080         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
5081         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
5082         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
5083         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
5084         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
5085         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
5086         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
5087         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
5088         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
5089         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
5090         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
5091         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
5092         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
5093         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
5094         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
5095         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
5096         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
5097         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
5098
5099 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
5100
5101         * opts.sh (POSIXLY_CORRECT): Unset it.
5102
5103         * tree.h (init_function_start): Remove filename and line paramters.
5104         * function.c (init_function_start): Remove filename and line
5105         parameters. Use DECL_SOURCE_LOCATION.
5106         * c-decl.c (store_parm_decls): Adjust init_function_start call.
5107         (c_expand_body_1): Likewise.
5108         * coverage.c (create_coverage): Likewise.
5109         * objc/objc-act.c (build_tmp_function_decl): Set line number to
5110         zero.
5111         (hack_method_prototype): Adjust init_function_start call.
5112
5113 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
5114
5115         PR target/3724
5116         * arm/linux-elf.h (PROFILE_HOOK): Define.
5117
5118 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
5119
5120         PR target/11183
5121         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
5122
5123 2003-06-14  Roger Sayle  <roger@eyesopen.com>
5124
5125         * opts.sh: Work around a mysterious feature in cygwin's gawk
5126         where specifying the input files explicitly has a different
5127         behavior to piping them via stdin.
5128
5129 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
5130
5131         * doc/sourcebuild.texi: Update.
5132
5133 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
5134
5135         PR target/11183
5136         * arm.c (output_move_double): Pass SImode to adjust_address.
5137
5138 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
5139
5140         * Makefile.in: Update to use common.opt and lang_opt_files.
5141         (c-options.c, c-options.h): Remove.
5142         (options.c, options.h): Add.
5143         * c-opts.c: Include options.h not c-options.h.
5144         * common.opt: New file.
5145         * configure, configure.in: Add lang_opt_files.
5146         * opts.c: Include flags.h and diagnostic.h.
5147         (common_handle_option): New.
5148         (handle_option): Update to recognize common options and all
5149         language-dependent options.
5150         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
5151         (struct cl_option): Make flags of type int.
5152         * opts.h: Flag option with front ends to which it applies.
5153         Handle duplicate options.
5154         * toplev.c (filename): Remove.
5155         (independent_decode_option): Don't handle filenames and -quiet.
5156         (process_options, do_compile): Update.
5157
5158 2003-06-14  Nick Clifton  <nickc@redhat.com>
5159
5160         * doc/install.texi (Specific): Add description of different
5161         ARM supported file format targets.
5162
5163 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
5164
5165         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
5166         inside delay slots.
5167
5168 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
5169
5170         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
5171         * unwind-pe.h (size_of_encoded_value): Do not define if
5172         NO_SIZE_OF_ENCODED_VALUE is defined.
5173
5174 2003-06-13  Roger Sayle  <roger@eyesopen.com>
5175
5176         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
5177         expanding a complex constant into a CONCAT target.
5178
5179 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
5180
5181         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
5182         (ASM_FILE_START_1): Delete.
5183         * config/i386/att.h, config/i386/sco5.h,
5184         config/i386/sysv3.h
5185         (ASM_FILE_START_1): Delete.
5186
5187 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
5188
5189         * config/i386/bsd.h: Remove ASM_FILE_START.
5190         * config/i386/djgpp.h: Likewise.
5191         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
5192
5193         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
5194         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
5195
5196 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
5197
5198         PR bootstrap/10835
5199         * haifa-sched.c (max_lookahead_tries,
5200         cached_first_cycle_multipass_dfa_lookahead,
5201         cached_issue_rate): New variables.
5202         (max_issue): Check the number of tries.
5203         (choose_ready): Calculate max_lookahead_tries.
5204         (sched_init): Check cached_issue_rate.
5205
5206 2003-06-13  Richard Henderson  <rth@redhat.com>
5207
5208         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
5209         * cfgrtl.c (purge_dead_edges): Expect it too.
5210
5211 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
5212             Eric Botcazou  <ebotcazou@libertysurf.fr>
5213
5214         PR bootstrap/10983
5215         * combine.c (make_extraction): Use gen_lowpart_for_combine
5216         when extracting from a REG and not in the destination of a SET.
5217
5218 2003-06-13  Doug Evans  <dje@sebabeach.org>
5219
5220         * tsystem.h (abort): Declare in inhibit_libc case to remove build
5221         warnings for addvsi3, et.al.
5222
5223 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
5224
5225         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
5226
5227         * simplify-rtx.c (simplify_subreg): Same.
5228
5229         * emit-rtl.c (gen_lowpart_common): Same.
5230
5231 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
5232
5233         * builtins.c: Fix comment typos.
5234         * fold-const.c: Likewise.
5235
5236 2003-06-13  Doug Evans  <dje@sebabeach.org>
5237             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5238
5239         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
5240         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
5241         (m32r_va_arg): Use it.
5242         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
5243         (RETURN_IN_MEMORY): Ditto.
5244
5245 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5246
5247         * c-typeck.c: Remove #if 0 clauses.
5248
5249         PR other/1494
5250         * config/alpha/openbsd.h, config/i386/openbsd.h,
5251         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
5252         residual reference to EGCS.
5253
5254 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
5255
5256         * arm.c (output_call_mem): If the address references the link-register
5257         use an instruction sequence that avoids early-clobbering IP.
5258         (eliminate_lr2ip): Delete.
5259
5260 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5261
5262         * c-format.c (format_types_orig): Disallow '*' width/precision in
5263         asm_fprintf format checks.
5264
5265 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
5266
5267         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
5268         non-integral types from integer register save area slots.
5269
5270 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5271
5272         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
5273
5274 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
5275
5276         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
5277
5278 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5279
5280         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
5281         to file_end_indicate_exec_stack.
5282
5283 2003-06-12  Richard Henderson  <rth@redhat.com>
5284
5285         PR target/11089
5286         * config/i386/i386.md (sse_movaps): Use an expander to force
5287         one operand to be a register.
5288         (sse_movups): Likewise.
5289
5290 2003-06-13  Doug Evans  <dje@sebabeach.org>
5291
5292         Remove some build warnings.
5293         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
5294         (__do_global_ctors,__do_global_dtors): Ditto.
5295
5296 2003-06-12  Richard Henderson  <rth@redhat.com>
5297
5298         PR middle-end/10557
5299         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
5300
5301 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
5302
5303         * config/m32r/m32r.md: Fix a comment typo.
5304
5305 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
5306             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5307
5308         PR target/10142
5309         * config/sparc/sparc.c (function_arg_record_value_parms): Add
5310         new 'stack' field.
5311         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
5312         integer slots for an integer field.
5313         (function_arg_record_value_3): Shift vector index.
5314         (function_arg_record_value_2): Likewise.
5315         (function_arg_record_value): Initialize 'stack' to 0.
5316         Set 'stack' to 1 if we run out of integer slots for an integer field.
5317         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
5318
5319 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
5320
5321         PR optimization/10955
5322         * unroll.c (unroll_loop): Fix off-by-one bug.
5323
5324 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5325
5326         * config/rs6000/rs6000.c (function_arg): Remove typo.
5327
5328 2003-06-12  Richard Henderson  <rth@redhat.com>
5329
5330         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
5331         and UNSPEC_DTPOFF.
5332
5333 2003-06-12  Richard Henderson  <rth@redhat.com>
5334
5335         PR middle-end/10475
5336         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
5337         for extracting sub-words.
5338
5339 2003-06-12  Richard Henderson  <rth@redhat.com>
5340
5341         PR target/7594
5342         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
5343         (zero_extendqihi2, zero_extendqisi2): Likewise.
5344
5345 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5346
5347         * config/rs6000/rs6000.c (function_arg): Always split vectors for
5348         e500 if it's a stdarg function.
5349         (function_arg_advance): Advance 2 registers for vectors in a
5350         stdarg function.
5351         (init_cumulative_args): Initialize stdarg.
5352         (rs6000_spe_function_arg): New.
5353
5354         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
5355
5356 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5357
5358         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
5359
5360 2003-06-12  Roger Sayle  <roger@eyesopen.com>
5361
5362         PR middle-end/168
5363         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
5364         and multiplication of zero extensions, floating point division,
5365         and integer<->fp, fp<->fp and zero extension conversions.
5366         The built-in ceil and floor functions preserve signedness.
5367
5368 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
5369
5370         * ChangeLog: Follow spelling conventions.
5371         * ChangeLog.2: Likewise.
5372         * c-decl.c: Likewise.
5373         * cfgloop.h: Likewise.
5374         * cgraph.c: Likewise.
5375         * coverage.c: Likewise.
5376         * cppcharset.c: Likewise.
5377         * cpphash.h: Likewise.
5378         * cpplex.c: Likewise.
5379         * cpplib.c: Likewise.
5380         * dbxout.c: Likewise.
5381         * df.c: Likewise.
5382         * dwarf2out.c: Likewise.
5383         * dwarfout.c: Likewise.
5384         * emit-rtl.c: Likewise.
5385         * explow.c: Likewise.
5386         * gcov-io.c: Likewise.
5387         * gcov-io.h: Likewise.
5388         * gcov.c: Likewise.
5389         * gengtype.c: Likewise.
5390         * ggc.h: Likewise.
5391         * opts.c: Likewise.
5392         * real.c: Likewise.
5393         * reload.c: Likewise.
5394         * stmt.c: Likewise.
5395
5396 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
5397
5398         * doc/install.texi (m32r-*-elf): Change company to Renesas.
5399
5400 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
5401
5402         * basic-block.h (flow_delete_block_noexpunge): Kill.
5403         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
5404         rtl_delete_block.
5405
5406 2003-06-10  Richard Henderson  <rth@redhat.com>
5407
5408         PR inline-asm/4823
5409         * reg-stack.c (any_malformed_asm): New.
5410         (check_asm_stack_operands): Set it.
5411         (convert_regs_1): Check it before aborting.
5412
5413 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5414
5415         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
5416
5417 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
5418
5419         * c-opts.c (complain_wrong_lang): Add on argument.
5420         Print no- switch if on is false.
5421         (c_common_decode_option): Adjust caller.
5422
5423 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
5424
5425         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
5426         to initialize GOT register.
5427
5428 2003-06-12  Roger Sayle  <roger@eyesopen.com>
5429
5430         * fold-const.c (tree_expr_nonnegative_p): Add support for
5431         floating point constants, addition and multiplication.
5432
5433 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
5434
5435         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
5436         constraint modifier for operand 0.
5437
5438 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
5439
5440         Don't warn on dollars in builtin macro definitions,
5441         e.g. __REGISTER_PREFIX__.
5442         * cpphash.h (struct cpp_reader): Move member warn_dollars...
5443         * cpplib.h (struct cpp_options): ...to here.  Change type to
5444         unsigned char.
5445         * cppinit.c (cpp_create_reader): Set it to 1 here.
5446         (post_options): Don't set it here.
5447         * c-opts.c (c_common_init_options): Reset it to 0 here.
5448         (finish_options): Set it here.
5449         * cpplex.c (forms_identifier_p): Tweak for new location of
5450         warn_dollars.
5451
5452         * configure.in (assembler dwarf2 debug_line support): Define insn
5453         for cris-*-* and mmix-*-*.
5454         * configure: Regenerate.
5455
5456 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
5457
5458         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5459         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
5460         (sh-*-elf*): Add sh*-*-kaos* support.
5461         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
5462         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
5463         config/sh/kaos-sh.h: New files.
5464
5465 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
5466
5467         * gcse.c (fis_get_condition): Make it a global function.
5468         * reload1.c (reload_cse_move2add): Detect implicit sets.
5469         * rtl.h: Add a prototype for fis_get_condition.
5470
5471 2003-06-11  Richard Henderson  <rth@redhat.com>
5472
5473         * stmt.c (expand_asm_operands): Don't warn for memories with
5474         queued addresses.
5475
5476 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
5477
5478         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
5479         brackets.
5480
5481 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
5482
5483         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
5484         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
5485         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
5486         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
5487         * langhooks.c (lhd_decode_option): Remove.
5488         * langhooks.h (struct lang_hooks): Remove decode_option.
5489         * opts.c (handle_option): No longer use decode_option.
5490
5491 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5492
5493         * cfgloopanal.c (variable_initial_value): Update the set of altered
5494         registers correctly.
5495
5496 2003-06-11  Roger Sayle  <roger@eyesopen.com>
5497             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5498
5499         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
5500         * config/i386/netbsd-elf.h: Likewise.
5501         * config/m32r/m32r.h: Likewise.
5502         * config/mn10300/mn10300.h: Likewise.
5503         * config/stormy16/stormy16.h: Likewise.
5504         * config/v850/v850.h: Likewise.
5505         * config/vax/netbsd-elf.h: Likewise.
5506         * config/xtensa/elf.h: Likewise.
5507         * config/xtensa/linux.h: Likewise.
5508
5509 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5510
5511         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
5512         DWARF 2 default.
5513
5514         * config/mips/dbxmdebug.h: New file.
5515         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
5516         gas and --with-stabs.
5517
5518 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
5519
5520         * expr.c (can_move_by_pieces): align argument may be unused.
5521
5522 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
5523
5524         * expr.c (convert_move): Handle moves between two CONCATs.
5525
5526 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
5527
5528         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
5529         !TARGET_H8300.
5530
5531 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
5532
5533         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
5534         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
5535         (TARGET_RTL_DUMP): Likewise.
5536         (TARGET_SWITHCES): Remove -mrtl-dump.
5537
5538 2003-06-10  Richard Henderson  <rth@redhat.com>
5539
5540         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
5541
5542 2003-06-10  Richard Henderson  <rth@redhat.com>
5543
5544         * config/ia64/ia64.md (call_gp): Fix memory mode.
5545
5546 2003-06-10  James E Wilson  <wilson@tuliptree.org>
5547
5548         PR target/8812
5549         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
5550         hard regs for reload_reg_used_at_all and reg_class_contents checks.
5551
5552 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
5553
5554         * config/h8300/h8300.c (print_operand): Remove support for
5555         operand character 'b'.
5556         Add the AND case to operand character 'c'.
5557         * config/h8300/h8300.md (two anonymous patterns): Replace
5558         operand character 'b' with 'c'.
5559
5560 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
5561
5562         * config/h8300/h8300.c (print_operand): Remove support for
5563         operand character 'u'.
5564
5565 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
5566
5567         * configure.in: Fix typo.
5568         * configure: Regenerate.
5569
5570 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
5571
5572         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
5573         compilation guard.
5574
5575 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
5576
5577         * sh-protos.h (function_symbol): Declare.
5578         * sh.c (expand_block_move, expand_ashiftrt): Use it.
5579         (sh_expand_prologue, sh_expand_epilogue): Likewise.
5580         (sh_initialize_trampoline): Likewise.
5581         (function_symbol): New function.
5582         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
5583         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
5584         (call_value_pop, shcompact_return_tramp): Likewise.
5585
5586         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
5587
5588         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
5589         target register.
5590
5591 2003-06-10  DJ Delorie  <dj@redhat.com>
5592
5593         * doc/md.texi (Machine Constraints): Document stormy's Z
5594         constraint.
5595
5596 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
5597
5598         * except.c (call_site_base): Mark with GTY.
5599
5600 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
5601
5602         * arm-proto.h: Convert to ISO C90 prototypes.
5603         * arm.c: Likewise.
5604
5605 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
5606
5607         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
5608
5609 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
5610
5611         * calls.c (expand_call): Convert structure_value_addr to Pmode if
5612         necessary.
5613
5614 2003-06-10  Andrew Haley  <aph@redhat.com>
5615
5616         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
5617         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
5618         (lhd_decl_ok_for_sibcall): New.
5619         * langhooks.c (lhd_decl_ok_for_sibcall): New.
5620         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
5621         * calls.c (expand_call): Check lang_hook before generating a
5622         sibcall.
5623
5624 2003-06-10  DJ Delorie  <dj@redhat.com>
5625
5626         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
5627         which matches (const_int 0) for addhi3.
5628         * config/stormy16/stormy16.md: Document known constraints.
5629         (addhi3): Handle adding zero.
5630
5631 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5632
5633         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
5634         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
5635         * config/m32r/m32r-protos.h: Prototype it.
5636
5637 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
5638
5639         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
5640         common to rs6000 sysv targets.
5641         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
5642         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
5643
5644 2003-06-10  Nick Clifton  <nickc@redhat.com>
5645
5646         * config.gcc: Add arm-wince-pe target.
5647         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
5648         Add comment about default apcs26 support.
5649         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
5650         multilib.
5651         (MULTILIB_DIRNAMES): Add 'apcs32'.
5652         * config/arm/t-wince-pe: New makefile fragment.
5653         * config/arm/wince-pe.h: New file.  Overrides a few definitions
5654         in arm/pe.h
5655
5656 2003-06-10  Roger Sayle  <roger@eyesopen.com>
5657
5658         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
5659         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
5660         when x is easily negated and f is sin, tan or atan.
5661         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
5662         sin(x) with flag_unsafe_math_optimizations.
5663         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
5664         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
5665
5666 2003-06-10  Roger Sayle  <roger@eyesopen.com>
5667
5668         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
5669         is a floating point type *and* we currently honor NaNs.
5670         (fold <NE_EXPR>): Likewise.
5671
5672 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
5673
5674         PR c++/11131
5675         * tree-inline.c (inlinable_function_p): Call the language-specific
5676         hook early.
5677
5678 2003-06-09  David Taylor  <dtaylor@emc.com>
5679
5680         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
5681         the f_res field.
5682
5683 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
5684
5685         * configure.in: Remove references to host_truncate_target.
5686         * configure: Regenerate.
5687         * config.gcc: Remove references to truncate_target,
5688         host_truncate_target.
5689
5690         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
5691         Replace "build_canonical" with build, "host_canonical" with host.
5692         * configure.in: Use GCC_TOPLEV_SUBDIRS.
5693         * aclocal.m4: Include ../config/acx.m4.
5694         * configure: Regenerate.
5695
5696 2003-06-09  David Taylor  <dtaylor@emc.com>
5697
5698         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
5699         bytes of padding in the __va_list_tag structure a name (reserved).
5700
5701 2003-06-09  Jason Merrill  <jason@redhat.com>
5702
5703         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
5704
5705 2003-06-09  Osku Salerma  <osku@iki.fi>
5706
5707         * c-format.c (check_format_string, get_constant): New.
5708         (handle_format_attribute, handle_format_arg_attribute,
5709         decode_format_attr): Change to use above functions.
5710
5711 2003-06-09  Richard Henderson  <rth@redhat.com>
5712
5713         * stmt.c (expand_asm_operands): Re-word warning.
5714
5715 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
5716
5717         PR target/8787
5718         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
5719         if -masm=intel.
5720
5721 2003-06-09  James E Wilson  <wilson@tuliptree.org>
5722
5723         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
5724         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
5725         Add libgcc exception.
5726
5727 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
5728             Ayal Zaks  <gcchaifa@us.ibm.com>
5729
5730         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
5731         (insvsi*): Add insert_word attribute.
5732         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
5733         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5734         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
5735
5736 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
5737
5738         * fold-const.c (fold): Fix a comment typo.
5739
5740 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
5741
5742         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
5743         removed.
5744
5745 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
5746
5747         * sh.c (gen_block_redirect): Use locators.
5748
5749 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
5750
5751         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
5752         cast to int.
5753
5754 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5755
5756         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
5757         operators.
5758         * configure: Regenerated.
5759
5760 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5761             Alexandre Oliva  <aoliva@redhat.com>
5762
5763         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
5764         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
5765         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
5766         n32/64 PIC.
5767         (MUST_SAVE_REGISTERS): Delete.
5768         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
5769         (machine_function): Add global_pointer field.
5770         (mips_classify_constant): Check for (const $gp) using pointer equality
5771         with pic_offset_table_rtx.
5772         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
5773         (mips_restore_gp): Use current_function_outgoing_args_size.
5774         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
5775         GP_REG_FIRST + 28.  Handle relocation strings that have
5776         more than one '('.
5777         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
5778         (mips_global_pointer): New function.
5779         (mips_save_reg_p): New function, mostly split out from...
5780         (compute_frame_size): ...here.  Remove handling of extra_size.
5781         Reclaim args_size if no variables depend on it.  Don't treat gp
5782         as a special case: handle it in the main GPR loop.
5783         (mips_initial_elimination_offset): Fix comment.
5784         (save_restore_insns): Save every register in the GPR mask,
5785         removing distinction between mask and real_mask.
5786         (mips_output_function_prologue): Update .frame psuedo-op after
5787         the removal of extra_size.  Move the SVR4 PIC stack allocation
5788         and cprestore instructions to mips_expand_prologue.
5789         (mips_gp_insn): New function.
5790         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
5791         the chosen global pointer.  Handle SVR4 PIC stack allocation
5792         in the same way as other ABIs.  Adjust varargs code accordingly.
5793         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
5794         to emit the loadgp sequence.  Follow it with a loadgp_blockage
5795         if not using explicit relocs.
5796         (mips_output_function_epilogue): Reinstate the default gp register.
5797         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
5798         (mips16_optimize_gp): Likewise.
5799         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
5800         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
5801         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
5802         (loadgp): Remove.
5803         (loadgp_blockage, cprestore): New instructions.
5804         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
5805         pic_offset_table_rtx.
5806         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
5807         (builtin_longjmp): Use gen_raw_REG to force use of $28.
5808
5809 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5810
5811         * config/mips/mips-protos.h (mips_output_division): Declare.
5812         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
5813         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
5814         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
5815         (TARGET_CHECK_ZERO_DIV): New macro.
5816         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
5817         * config/mips/mips.c (mips_output_division): New function.
5818         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
5819         account when calculating the default length of a division.
5820         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
5821         Enable regardless of optimization level.  Use mips_output_division.
5822         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
5823         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
5824         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
5825         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
5826         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
5827         umoddi3_internal): Remove.
5828
5829 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5830
5831         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
5832         (mips_sw_reg_names): Likewise.
5833         (mips_regno_to_class): Change hilo entry to NO_REGS.
5834         (hilo_operand): Use MD_REG_P.
5835         (extend_operator): New predicate.
5836         (override_options): Remove 'a' constraint.
5837         (mips_secondary_reload_class): Remove hilo handling.  Also remove
5838         handling of (plus sp reg) reloads for mips16.
5839         (mips_register_move_cost): Remove hilo handling.
5840         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
5841         (MD_REG_LAST): Remove hilo from range.
5842         (HILO_REGNUM): Delete.
5843         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
5844         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5845         (PREDICATE_CODES): Add entry for extend_operator.
5846         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
5847         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
5848         Remove constraints from multiplication define_expands.  Remove
5849         clobbers from "decorative" define_expand patterns.
5850         (UNSPEC_HILO_DELAY): Delete.
5851         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
5852         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
5853         Adjust C code to just emit insns for !TARGET_64BIT.
5854         (mulsidi3_internal): Rename to mulsidi3_32bit.
5855         (mulsidi3_64bit): Use a "d" constraint for the destination.
5856         Use extend_operator so that the pattern can handle umulsidi3 as well.
5857         Split the instruction after reload.
5858         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
5859         (umulsidi3_internal): Rename to umulsidi3_32bit.
5860         (umulsidi3_64bit): Remove.
5861         (*smsac_di, *umsac_di): Line-wrap fixes.
5862         (udivsi3_internal): Don't allow operand 2 to be constant.
5863         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
5864         (movdi_internal2, movsi_internal): Remove hilo alternatives.
5865         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
5866
5867 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5868
5869         PR target/10913
5870         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
5871         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
5872         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
5873         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
5874         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
5875         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
5876         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
5877         asm_out_text_file with asm_out_file.
5878         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
5879         * config/mips/elf.h (TEXT_SECTION): Undefine.
5880         * config/mips/elf64.h (TEXT_SECION): Undefine.
5881         * config/mips/openbsd.h (TEXT_SECION): Undefine.
5882         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
5883         (override_options): Disable small-data optimizations unless using
5884         gas or explicit relocations.
5885         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
5886         iris6_asm_named_section, iris6_asm_file_start): Remove code for
5887         handling TARGET_FILE_SWITCHING.
5888         (copy_file_data): Move into TARGET_IRIX6 block.
5889
5890 2003-06-08  Richard Henderson  <rth@redhat.com>
5891
5892         * expr.h (EXPAND_MEMORY): New.
5893         * expr.c (expand_expr): Check it.
5894         * stmt.c (expand_asm_operands): Provide it when the constraint
5895         requires a memory.  Warn for memory input constraints without
5896         a memory operand.
5897
5898 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5899
5900         * varasm.c: Don't include c-tree.h.
5901
5902 2003-06-08  Andreas Jaeger  <aj@suse.de>
5903
5904         * predict.h: Convert to ISO C90 prototypes.
5905         * predict.c: Likewise.
5906         * tree-dump.h: Likewise.
5907         * tree-dump.c: Likewise.
5908         * diagnostic.h: Likewise.
5909         * diagnostic.c: Likewise.
5910         * combine.c: Likewise.
5911
5912         * rtl.h: Convert prototypes of combine.c to ISO C90.
5913
5914 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
5915
5916         * cfglayout.c (insn_scope): New static function
5917         (block_locators_*, line_locators*, file_locators*): New static varrays.
5918         (scope_to_insns_initialize): Use them.
5919         (insn_line, insn_file): New functions.
5920         (scope_to_insns_finalize): Use insn_scope.
5921         (prologue_locator, epilogue_locator): New global variables.
5922         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
5923         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
5924         (emit_insn_after_scope, emit_insn_before_scope
5925         emit_jump_insn_after_scope, emit_jump_insn_before_scope
5926         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5927         (emit_insn_after_setloc, emit_insn_before_setloc
5928         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5929         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5930         use locators.
5931         * final.c (notice_source_line): Use locators.
5932         (final_start_function): Set initial source file and line.
5933         (final_scan_insn): Use locators.
5934         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
5935         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
5936         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5937         noce_process_if_block, find_cond_trap): Likewise.
5938         * integrate.c (copy_insn_list): Likewise.
5939         * jump.c (duplicate_loop_exit_test): LIkewise.
5940         * print-rtl.c (print_rtx): Print locators.
5941         * recog.c (peephole2_optimize): Likewise.
5942         * rtl.h (INSN_SCOPE): Remove.
5943         (emit_insn_after_scope, emit_insn_before_scope
5944         emit_jump_insn_after_scope, emit_jump_insn_before_scope
5945         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5946         (emit_insn_after_setloc, emit_insn_before_setloc
5947         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5948         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5949         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
5950         * unroll.c (copy_loop_body): Use locators.
5951         * function.c (set_insn_locators): New function.
5952         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
5953
5954 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
5955
5956         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
5957         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
5958         _fixsfdi _fixunssfdi.
5959         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
5960         popcounthi2.
5961         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
5962         * config/h8300/clzhi2.c: New.
5963         * config/h8300/ctzhi2.c: Likewise.
5964         * config/h8300/parityhi2.c: Likewise.
5965         * config/h8300/popcounthi2.c: Likewise.
5966
5967 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
5968
5969         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
5970         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
5971
5972         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
5973         (dump_bb): New based on old dump_bb in cfgrtl.c
5974         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
5975         * cfghooks.h (cfgh_verify_flow_info): Return status.
5976         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
5977         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
5978         (dump_bb): Remove generic parts.
5979         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
5980         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
5981
5982 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
5983
5984         * Makefile.in: Rename options.c and options.h to c-options.c and
5985         c-options.h.
5986         (OBJS): Remove options.o.
5987         * c-opts.c: Don'tInclude c-options.h instead of options.h.
5988         * opts.c: Don't include options.h.
5989         (find_opt): Can't use enum opt_code or N_OPTS.
5990         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
5991         * opts.sh: ... here.
5992
5993 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5994             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5995
5996         PR pch/9830
5997         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
5998         if HAVE_MINCORE is defined.
5999         (MAP_FAILED): Define if not defined.
6000         (gt_pch_save): Test against MAP_FAILED.
6001         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
6002         the mapping address to the preferred base after checking it
6003         is possible to do so. Test against MAP_FAILED.
6004         * configure.in: Test for the presence of mincore in libc.
6005         * config.in: Regenerate.
6006         * configure: Regenerate.
6007
6008 2003-06-07  Richard Henderson  <rth@redhat.com>
6009
6010         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
6011         conditional compilation guard.
6012
6013 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
6014
6015         * optabs.c (expand_abs): Set result_unsignedp to 1 if
6016         flag_trav is zero.
6017
6018 2003-06-07  Richard Henderson  <rth@redhat.com>
6019
6020         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
6021
6022 2003-06-07  Richard Henderson  <rth@redhat.com>
6023
6024         * basic-block.h (EDGE_SIBCALL): New.
6025         (EDGE_ALL_FLAGS): Update.
6026         * cfg.c (dump_edge_info): Add sibcall name.
6027         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
6028         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
6029
6030 2003-06-07  Andreas Jaeger  <aj@suse.de>
6031
6032         * mklibgcc.in (lib2funcs): Remove _exit.
6033         * libgcc2.c: Remove L_exit.
6034         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
6035
6036         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
6037
6038         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
6039
6040         * ggc.h: Convert to ISO C90 prototypes.
6041         * ggc-none.c: Likewise.
6042         * ggc-common.c: Likewise.
6043         * ggc-page.c: Likewise.
6044         * ggc-simple.c: Likewise.
6045
6046         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
6047
6048         * system.h: Poison INIT_SECTION_PREAMBLE.
6049
6050 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
6051
6052         * config.gcc (with_cpu handling): Translate sparc64 in
6053         $machine to --with-cpu=v9.
6054         * config/alpha/alpha.c
6055         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
6056         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
6057
6058         * target.h: New hook asm_out.file_end.
6059         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
6060         * toplev.c (compile_file): Use targetm.asm_out.file_end.
6061         * system.h: Poison ASM_FILE_END.
6062         * varasm.c (file_end_indicate_exec_stack): New.
6063         * output.h: Prototype it.
6064         * doc/tm.texi: Document TARGET_ASM_FILE_END and
6065         file_end_indicate_exec_stack.  Delete references to attasm.h.
6066
6067         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
6068         (ASM_FILE_END): Delete; move code...
6069         * config/darwin.c (darwin_file_end): Here; new function.
6070         * config/darwin-protos.h: Prototype it.
6071         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
6072         rename unicosmk_file_end.
6073         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
6074         * config/arm/arm.c (aof_file_end): ... here; new static function.
6075         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
6076         Make aof_dump_imports and aof_dump_pic_table static.
6077         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
6078         Set TARGET_ASM_FILE_END to avr_file_end.
6079         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
6080         Set TARGET_ASM_FILE_END to c4x_file_end.
6081         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
6082         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
6083         h8300_file_end.
6084         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
6085         * config/i370/i370.c (i370_file_end): ... here; new static function.
6086         Set TARGET_ASM_FILE_END to i370_file_end.
6087          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
6088          Take no arguments.  Call file_end_indicate_exec_stack if
6089          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
6090         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
6091         Define NEED_INDICATE_EXEC_STACK to 0.
6092         * config/i386/linux.h, config/i386/linux64.h: Redefine
6093         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
6094         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
6095         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
6096         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
6097         ia64_hpux_file_end, make static.  Take no arguments.
6098         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
6099         commands_in_prologues, commands_in_epilogues): Delete.
6100         (function_epilogue): Update to match.
6101         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
6102         make static.  Take no arguments.
6103         (iris6_asm_file_end): Rename iris6_file_end, make static, use
6104         mips_file_end, take no arguments.
6105         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
6106         appropriate.
6107         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
6108         make static, take no arguments. Set TARGET_ASM_FILE_END to
6109         mmix_file_end.
6110         * config/pa/pa.c (output_deferred_plabels): Make static, take
6111         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
6112         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
6113         (ASM_FILE_END): Delete; move code...
6114         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
6115         new static function.
6116
6117         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
6118         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
6119         Don't set ASM_FILE_END.
6120         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
6121         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
6122         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
6123         file_end_indicate_exec_stack; don't set ASM_FILE_END.
6124         * config/alpha/unicosmk.h, config/i386/cygming.h
6125         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
6126         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
6127         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
6128         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
6129         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
6130         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
6131
6132 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
6133
6134         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
6135         specified.
6136
6137 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
6138
6139         * Makefile.in (stageprofile_build): Kill redundant target.
6140         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
6141
6142 2003-06-07  Andreas Jaeger  <aj@suse.de>
6143
6144         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
6145
6146         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
6147         * config/dsp16xx/dsp16xx.h: Likewise.
6148         * config/i386/i386.h: Likewise.
6149         * config/ip2k/ip2k.h: Likewise.
6150
6151 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
6152
6153         * Makefile.in (OJBS, c-opts.o): Update.
6154         (c-options.c, c-options.h): Rename options.h and options.c.
6155         (options.h): Rename options_.h.
6156         (opts.o): New.
6157         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
6158         (c_common_init_options): Update prototype.
6159         * c-lang.c (c_init_options): Update prototype.
6160         (LANG_HOOKS_HANDLE_OPTION): Override.
6161         (LANG_HOOKS_DECODE_OPTION): Drop.
6162         * c-opts.c: Include opts.h and options.h instead of c-options.h
6163         and c-options.c.
6164         (lang_flags): Move to file scope.
6165         (find_opt, c_common_decode_option): Remove.
6166         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
6167         CL_REJECT_NEGATIVE): Move to opts.h.
6168         (missing_arg): Update prototype.
6169         (c_common_init_options): Update for new prototype.
6170         (c_common_handle_options): Filenames are passed as N_OPTS.
6171         * hooks.c (hook_int_void_0): New.
6172         * hooks.h (hook_int_void_0): New.
6173         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
6174         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
6175         (LANG_HOOKS_INITIALIZER): Update.
6176         * langhooks.h (init_options): Update.
6177         (handle_option): New.
6178         * opts.c, opts.h: New files.
6179         * opts.sh: Update c file to include opts.h and options.h.
6180         * toplev.c: Include opts.h; change options.h to options_.h.
6181         (parse_options_and_default_flags): Get lang_mask, use
6182         handle_option for language-specific handling.
6183         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
6184         (LANG_HOOKS_HANDLE_OPTION): Override.
6185         (objc_init_options): Update.
6186
6187 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
6188             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
6189
6190         PR other/7031
6191         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
6192         gcov.
6193
6194 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
6195
6196         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
6197         section names.
6198         * configure: Regenerate.
6199
6200 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
6201
6202         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
6203
6204 2003-06-06  James E Wilson  <wilson@tuliptree.org>
6205
6206         PR inline-asm/10890
6207         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
6208         different in fields.
6209
6210 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
6211
6212         * configure.in: Make $(target_subdir) correspond with top level usage.
6213         * Makefile.in: Likewise.
6214         * configure: Regenerate.
6215
6216 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6217
6218         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
6219         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
6220         unsigned HOST_WIDE_INT.
6221         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
6222         Likewise.
6223         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
6224         Likewise.
6225
6226 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6227
6228         * doc/install.texi (Prerequisites): New section documenting
6229         tools and packages necessary prior to building and/or
6230         modifying GCC.
6231         * doc/install.texi2html: Also generate prerequisites.html.
6232
6233 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
6234
6235         PR target/11052
6236         * ifcvt.c (noce_process_if_block): Fail if the destination has
6237         side-effects.
6238
6239 2003-06-06  Jason Merrill  <jason@redhat.com>
6240
6241         * stmt.c (resolve_asm_operand_names): Rename from
6242         resolve_operand_names.  No longer static.  Avoid needless copying.
6243         Don't build array of constraints.
6244         (expand_asm_operands): Build it here.
6245         * tree.h: Declare resolve_asm_operand_names.
6246
6247         * stmt.c (expand_decl): Put artificial vars into registers even
6248         when not optimizing, and don't mark the regs as user vars.
6249
6250 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
6251
6252         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
6253         of the generated register.
6254
6255 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
6256
6257         * config.gcc: Add a missing sparc64 case.
6258
6259 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
6260
6261         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
6262         the .hidden assembly stubs.
6263
6264 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
6265
6266         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
6267         and x86_64-*-*.
6268
6269         * config/i386/mmintrin.h: Update version and add alternate
6270         intrinsic names.
6271         * config/i386/xmmintrin.h: Likewise.
6272
6273         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
6274         intrinsics to ...
6275         * config/i386/emmintrin.h: Here. New file.
6276
6277 2003-06-06  Roger Sayle  <roger@eyesopen.com>
6278
6279         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
6280         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
6281         when the ABS_EXPR (fabs or abs) is not required.
6282         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
6283         always nonnegative from fold to here.  Additionally, cabs and fabs
6284         are always non-negative, and pow and atan are non-negative if
6285         their first argument is non-negative.
6286
6287         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
6288         Evaluate cabs of a constant at compile-time.  Convert cabs of a
6289         non-complex argument into fabs.  Convert cabs(z) into
6290         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
6291         -funsafe-math-optimizations or -ffast-math.
6292         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
6293         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
6294
6295 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
6296
6297         * sourcebuild.texi (Front End Directory): Document new hooks.
6298
6299 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
6300
6301         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
6302         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
6303         stack frames.
6304         (pro_epilogue_adjust_stack_rex64_2): New pattern
6305
6306 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
6307                                Pop Sebastian
6308                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6309
6310         * cfghooks.h, cfghooks.c: New files.
6311         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
6312         (OBJS): Add cfghooks.o.
6313         (cfghooks.o): New rule.
6314         * basic-block.h (split_edge): Rename to rtl_split_edge.
6315         (verify_flow_info): Rename to rtl_verify_flow_info.
6316         (cfghooks.h): Included here.
6317         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
6318         (verify_flow_info): Renamed rtl_verify_flow_info.
6319         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
6320
6321         * basic-block.h (split_block, split_edge, flow_delete_block,
6322         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
6323         (flow_delete_block_noexpunge):  Return void.
6324         * cfg.c (verify_flow_info): New function.
6325         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
6326         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
6327         Use delete_block.
6328         * cfglayout.c (function_footer): Rename to...
6329         (cfg_layout_function_footer): ... this variable
6330         (unlink_insn_chain): Make global.
6331         (fixup_reorder_chain, record_effective_endpoints): Update.
6332         (cleanup_unconditional_jumps): Use delete_block.
6333         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
6334         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
6335         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
6336         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
6337         (cfg_layout_function_footer): Declare.
6338         * cfgloopmanip (split_loop_bb): Do not update RBI.
6339         (remove_bbs): Use delete_block.
6340         (loop_reidrect_edge, loop_delete_branch_edge): Use
6341         redirect_edge_and_branch.
6342         (create_preheader): Use split_block and redirect_edge_and_branch_force.
6343         (split_edge_with): Likewise.
6344         * cfgrtl.c: Include cfglayout.h
6345         (split_edge): Rename to ...
6346         (rtl_split_edge) ... this one; make local.
6347         (redirect_edge_and_branch): Rename to ...
6348         (rtl_redirect_edge_and_branch) ... this one; make local.
6349         (redirect_edge_and_branch_force): Rename to ...
6350         (rtl_redirect_edge_and_branch_force) ... this one; make local.
6351         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
6352         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
6353         cfglayout.c; update to directly call RTL counterparts.
6354         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
6355         * ifcvt.c (find_cond_trap): Use delete_block.
6356         (find_if_case_1): Use delete_block.
6357         (find_if_case_2): Use delete_block.
6358         * rtl.h (unlink_insn_chain): Declare.
6359         * toplev.c (rtl_reigster_cfg_hooks): New.
6360
6361 2003-06-05  Richard Henderson  <rth@redhat.com>
6362
6363         * recog.c (peephole2_optimize): Revert last change.
6364
6365 2003-06-05  Richard Henderson  <rth@redhat.com>
6366
6367         * recog.c (peephole2_optimize): Don't split block unless
6368         can_throw_internal.
6369
6370 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
6371
6372         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
6373         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
6374
6375 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
6376
6377         PR optimization/4490
6378         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
6379         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
6380         documentation to accurately reflect what these options do.
6381
6382 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
6383
6384         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
6385         (ENDFILE_SPEC): Redefine to handle -pie.
6386
6387 2003-06-05  Phil Edwards <phil@jaj.com>
6388
6389         * Makefile.in (qmtest-g++): Use target_alias, not target.
6390
6391 2003-06-05  Per Bothner  <pbothner@apple.com>
6392
6393         * toplev.c (push_srcloc):  Simplify behavior to save current location
6394         and set current location to parameters.
6395         (pop_srcloc):  Simplify semantics.
6396         (lang_dependent_init):  Remove now-useless initial push_srcloc.
6397
6398 2003-05-06  Richard Henderson  <rth@redhat.com>
6399
6400         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
6401         language-specific tree codes.
6402
6403 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6404
6405         PR middle-end/9986
6406         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
6407         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
6408
6409 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
6410
6411         * install.tex: Document profiledbootstrap.
6412
6413         * configure.in:  Add support for lang.stageprofile and
6414         lang.stagefeedback
6415         * Makefile.in (clean, distclean): Kill new stages
6416         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
6417         (STAGE2_FLAGS_TO_PASS): ... this one.
6418         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
6419         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
6420         (stageprofile_build, stageprofile_copy, stagefeedback_build,
6421         stagefeedback_copy): New.
6422         (restageprofile, restagefeedback, stageprofile-start,
6423         stageprofile, stagefeedback-start): Likewise.
6424
6425 2003-06-05  David Miller  <davem@redhat.com>
6426             Richard Henderson  <rth@redhat.com>
6427
6428         * optabs.c (HAVE_conditional_trap): Provide default.
6429         (gen_conditional_trap): Likewise.
6430         (init_optabs): Merge init_traps.
6431         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
6432
6433 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
6434
6435         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
6436         is REG for nonzero_bits (REG) == 8.
6437
6438 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
6439
6440         * i386.md (align): Fix warning; clarify what to do when no p2align
6441         is available.
6442
6443 2003-06-05  Nick Clifton  <nickc@redhat.com>
6444
6445         * config.gcc (m32r-elf): Revert previous delta.
6446         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
6447         multilibs.  Remove m32rx specific version.
6448         (crtfini.o): Likewise.
6449         (EXTRA_MULTILIB_PARTS): Define.
6450
6451 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
6452
6453         * doc/md.texi (Machine Constraints): Correct the meaning of
6454         constraints related to floating-point registers on SPARC.
6455
6456 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
6457             Paolo Bonzini  <bonzini@gnu.org>
6458
6459         PR target/10663
6460         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
6461         assembler and linker output to /dev/null.
6462         Use a 'sed' construct instead of 'grep -A1'.
6463         * configure: Regenerate.
6464
6465 2003-06-04  Richard Henderson  <rth@redhat.com>
6466
6467         * config/i386/i386.c (struct ix86_address): Add seg.
6468         (no_seg_address_operand): New.
6469         (ix86_decompose_address): Restructure PLUS loop.  Accept one
6470         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
6471         to test for a regnum, not stack_pointer_rtx.
6472         (ix86_address_cost): Reduce cost if non-default segment.
6473         (legitimate_address_p): Remove UNSPEC_TP check.
6474         (get_thread_pointer): Add to_reg argument.  Don't represent
6475         the thread pointer as a memory load.
6476         (legitimize_tls_address): Split out of ...
6477         (legitimize_address): ... here.
6478         (print_operand_address): Handle parts.seg.
6479         (ix86_expand_move): Use legitimize_tls_address.
6480         (ix86_rtx_costs): Handle UNSPEC_TP.
6481         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
6482         (TARGET_TLS_DIRECT_SEG_REFS): New.
6483         (TARGET_SWITCHES): Add tls-direct-seg-refs.
6484         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
6485         (PREDICATE_CODES): Add no_seg_address_operand.
6486         * config/i386/i386.md (lea_1): Use it.
6487         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
6488         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
6489         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
6490         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
6491         * doc/invoke.texi: Add -mtls-direct-seg-refs.
6492
6493 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
6494
6495         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
6496         (QMTEST_GPP_TESTS): Use "g++" by default.
6497         (stamp-qmtest): Tweak database creation.
6498         (QMTEST_DIR/context): Update context file format.
6499         (qmtest-g++): Tweak command-line.
6500
6501 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6502
6503         * Makefile.in (varasm.o): Don't set -Wno-error.
6504         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
6505
6506 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
6507
6508         PR bootstrap/3163
6509         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
6510         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
6511         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
6512         and AC_CHECK_FUNCS lists, respectively.  Use
6513         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
6514         AC_FUNC_MMAP_FILE.
6515         * configure, config.in: Regenerate.
6516
6517 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6518
6519         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
6520         * arm.c (arm_output_function_prologue): Fix format specifiers.
6521         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
6522         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
6523         HOST_WIDE_INT_PRINT_DEC.
6524         * vax.c (vax_output_function_prologue): Fix format specifiers.
6525
6526 2003-06-04  Richard Henderson  <rth@redhat.com>
6527
6528         * cse.c (find_best_addr): Consider binary operators even if second
6529         argument is not CONST_INT.
6530
6531 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6532
6533         * doc/invoke.texi (max-cse-path-length): Document.
6534
6535 2003-06-04  Richard Henderson  <rth@redhat.com>
6536
6537         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
6538
6539 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
6540
6541         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
6542         Remove semi-colon at the end of the expression.
6543
6544 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6545
6546         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
6547         * i370.h (mvs_function_name_length): Likewise.
6548         * i960.h (CONSTANT_ALIGNMENT): Likewise.
6549         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6550         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6551         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6552         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
6553         variable.
6554
6555 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6556
6557         * config.gcc: Reorganize --with-cpu logic.  Set
6558         configure_default_options according to the default CPU, --with-cpu,
6559         --with-arch, --with-tune, --with-schedule, --with-abi, and
6560         --with-float.  Check for legal values of various options.
6561         * configure.in: Define configure_default_options in configargs.h.
6562         * configure: Regenerated.
6563         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
6564         (TARGET_DEFAULT_FLOAT_P): New macros.
6565         * gcc.c (do_option_spec): New function.
6566         (struct default_spec, option_default_specs): New.
6567         (main): Call do_option_spec.
6568         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
6569         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
6570         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
6571
6572         * doc/install.texi: Update --with-cpu documentation.  Mention
6573         --with-arch, --with-schedule, --with-tune, --with-abi, and
6574         --with-float.
6575         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
6576
6577 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6578
6579         * config.gcc: Only process --with-cpu logic in the third pass.
6580
6581 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6582
6583         * config.gcc: Reorganize --with-cpu section.  Remove an
6584         obsolete comment about the default CPU for x86-64.  Fix
6585         a typo for the ep9312.  Update the list of supported PowerPC
6586         CPUs.  Support a limited set of new --with-cpu options
6587         for i386.
6588
6589 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
6590
6591         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
6592         complex numbers <= 32 bits into two registers.
6593
6594 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6595
6596         * alpha.c (print_operand_address): Fix format specifier warnings.
6597         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6598         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6599         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6600         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
6601         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
6602         ASM_OUTPUT_SKIP): Likewise.
6603         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6604         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6605         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
6606         Likewise.
6607         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6608         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
6609         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
6610         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6611         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
6612         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6613         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6614         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6615         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6616         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
6617
6618 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
6619
6620         * c-decl.c (c_init_decl_processing): Clear input_file_name
6621         while building common nodes.
6622         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
6623         Don't add working directory for strings like <built-in> .
6624
6625 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
6626
6627         * doc/install.texi (*-ibm-aix*): Native as and ld required
6628         to bootstrap on AIX 5L.
6629
6630 2003-06-04  Richard Henderson  <rth@redhat.com>
6631
6632         * c-common.c (handle_cleanup_attribute): New.
6633         (c_common_attributes): Add it.
6634         * c-decl.c (finish_decl): Honor the cleanup attribute.
6635         * doc/extend.texi (Variable Attributes): Document it.
6636
6637         * unwind-c.c: New file.
6638         * Makefile.in (LIB2ADDEH): Add it.
6639         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
6640         config/ia64/t-ia64: Likewise.
6641
6642 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
6643
6644         * function.c (trampolines_created): New variable.
6645         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
6646         * function.h (trampolines_created): Add.
6647         * config/s390/linux.h (ASM_FILE_END): Define.
6648         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
6649         * config/m68k/linux.h (ASM_FILE_END): Define.
6650         * config/rs6000/linux.h (ASM_FILE_END): Define.
6651         * config/rs6000/linux64.h (ASM_FILE_END): Define.
6652         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
6653         * config/sparc/linux.h (ASM_FILE_END): Define.
6654         * config/sparc/linux64.h (ASM_FILE_END): Define.
6655         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
6656         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
6657         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
6658
6659 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
6660
6661         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
6662         (ix86_reorg): Use it.
6663         * i386.md (align): New insn pattern.
6664
6665 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6666
6667         * toplev.c (rest_of_type_compilation): Fix typo.
6668
6669 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
6670             Alan Modra  <amodra@bigpond.net.au>
6671
6672         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
6673         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
6674         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
6675         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
6676         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
6677         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
6678         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
6679         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
6680
6681         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
6682         Pass it to $gcc_cv_as.
6683         * configure: Rebuilt.
6684
6685         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
6686         (print_operand): Allow TARGET_AIX to be non-constant.
6687         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
6688         Define unconditionally.
6689         (rs6000_elf_declare_function_name): New function.
6690         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
6691         non-constant.
6692         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
6693         to 1.
6694         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
6695         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
6696         is defined.
6697         (TARGET_AIX): Define to 1 if TARGET_64BIT.
6698         (PROCESSOR_DEFAULT): Remove.
6699         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
6700         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6701         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
6702         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
6703         -m32 and -m64.
6704         (MULTILIB_DEFAULTS): Define.
6705         (SUBSUBTARGET_EXTRA_SPECS): Define.
6706         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
6707         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
6708         (TARGET_NO_TOC): Remove.
6709         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
6710         TARGET_PROTOTYPE): Define to 0.
6711         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
6712         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
6713         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
6714         if !TARGET_64BIT.
6715         (USER_LABEL_PREFIX): Remove.
6716         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
6717         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
6718         if TARGET_64BIT.
6719         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
6720         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
6721         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
6722         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
6723         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6724         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
6725         TARGET_64BIT.
6726         (RS6000_CALL_GLUE): Likewise.
6727         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
6728         RESTORE_FP_SUFFIX): Likewise.
6729         (ASM_DECLARE_FUNCTION_NAME): Remove.
6730         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
6731         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
6732         name if TARGET_64BIT.
6733         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
6734         !TARGET_64BIT.
6735         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
6736         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
6737         (DRAFT_V4_STRUCT_RET): Define.
6738         (SIGNAL_FRAMESIZE): New enum value.
6739         (MD_FALLBACK_FRAME_STATE_FOR): Define.
6740         * config/rs6000/default64.h: New file.
6741         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
6742         options.
6743         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
6744         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
6745         if !TARGET_64BIT.
6746         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6747         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
6748         function.
6749         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
6750         (TARGET_OS_CPP_BUILTINS): Use it.
6751         (CPP_SYSV_SPEC): Remove.
6752         (CPP_SPEC): Remove cpp_sysv.
6753         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
6754         Add SUBSUBTARGET_EXTRA_SPECS.
6755         (SUBSUBTARGET_EXTRA_SPECS): Define.
6756         * config/rs6000/biarch64.h: New file.
6757         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
6758         New prototype.
6759         * config/rs6000/x-linux64: New file.
6760         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
6761         multilibs.
6762         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
6763         * config/rs6000/eabi-cn.asm: Likewise.
6764         * config/rs6000/tramp.asm: Likewise.
6765         * config/rs6000/sol-ci.asm: Likewise.
6766         * config/rs6000/sol-cn.asm: Likewise.
6767         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
6768         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
6769         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
6770         _CALL_AIXDESC section.
6771         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
6772         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
6773         or default32.
6774
6775 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6776
6777         * config.gcc: Revert accidentally committed ARM changes.
6778
6779 2003-06-04  Roger Sayle  <roger@eyesopen.com>
6780
6781         * builtins.c (dconstpi, dconste): New mathematical constants.
6782         (init_builtin_dconsts): New function to initialize dconstpi
6783         and dconste.
6784         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
6785         compile time with -ffast-math when x is an integer constant.
6786         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
6787         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
6788
6789 2003-06-04  Roger Sayle  <roger@eyesopen.com>
6790
6791         * calls.c (expand_call): Avoid calling pure or const functions
6792         when the result is ignored (or void) and none of the arguments
6793         are volatile.  Move warning diagnostic earlier in function.
6794
6795 2003-06-04  Andreas Jaeger  <aj@suse.de>
6796
6797         * system.h: Do not poison TDESC_SECTION_ASM_OP,
6798         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
6799
6800 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6801
6802         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
6803         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
6804         handle %ll, optimize regular character case.
6805
6806 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6807
6808         * Makefile.in (cse.o): Add params.h dependency.
6809         * cse.c: Include params.h.
6810         (PATHLENGTH): Removed.
6811         (struct cse_basic_block_data): Make path array dynamic.
6812         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
6813         of PATHLENGTH.
6814         (cse_main, cse_basic_block): Allocate path array.
6815         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
6816
6817 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
6818
6819         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
6820         * i386.md (UNSPEC_REP): New constant.
6821         (return_internal_long): New pattern.
6822
6823 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6824
6825         PR optimization/11018
6826         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
6827         consistently to decide whether the scratch register is really
6828         required.
6829
6830 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6831
6832         PR optimization/10876
6833         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
6834         new 'O' constraint for constant 4096.
6835         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
6836         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
6837         Do not transform into MINUS insn for constant 4096.
6838         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
6839         for constant 4096 as third operand.
6840         (addsi3 expander): Remove.
6841         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
6842         new alternative for constant 4096 as third operand.
6843         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
6844         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
6845         operand.
6846         (subsi3 expander): Remove.
6847         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
6848         constant 4096 as third operand.
6849         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
6850         the SPARC port.
6851
6852 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
6853
6854         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
6855
6856 2003-06-04  Andreas Jaeger  <aj@suse.de>
6857
6858         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
6859
6860         * config/i386/i386.c (ix86_expand_prologue): Do not use
6861         SUBTARGET_PROLOGUE.
6862
6863         * system.h: Poision SUBTARGET_PROLOGUE.
6864
6865         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
6866
6867         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
6868         dependend code.
6869
6870         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
6871
6872         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
6873         INSN_CACHE_LINE_WIDTH.
6874
6875         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
6876         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
6877         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6878
6879         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
6880         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6881
6882         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
6883         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
6884         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
6885         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
6886         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
6887         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
6888
6889         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
6890         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
6891         DBX_WORKING_DIRECTORY.
6892
6893         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
6894         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
6895
6896         * config/frv/frv-protos.h: Remove unused const_section
6897         declaration.
6898         * config/vax/vax-protos.h: Likewise.
6899
6900         * output.h: Remove CONST_SECTION_ASM_OP usage.
6901
6902         * system.h: Poison CONST_SECTION_ASM_OP.
6903
6904         * crtstuff.c (__do_global_dtors_aux): Remove usage of
6905         CRT_GET_RFIB_TEXT.
6906         (frame_dummy): Likewise.
6907         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
6908         * system.h: Poison CRT_GET_RFIB_TEXT.
6909
6910         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
6911
6912         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
6913         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
6914         (recognized_function): Likewise.
6915         (read_scan_file): Likewise.
6916
6917 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6918
6919         * optabs.c (expand_binop): Optimize complex multiplication for
6920         the case of squaring a complex argument.
6921
6922 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6923
6924         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
6925         non-volatile operands of binary operations.
6926         (prepare_cmp_insn): Likewise.
6927
6928 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6929
6930         * varasm.c (force_const_mem): Handle alignment of constants not
6931         representable as a type in the front-end language.
6932
6933 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
6934
6935         * flow.c (initialize_uninitialized_subregs): Use
6936         emit_move_insn instead of emitting a hardcoded move.
6937
6938 2003-06-03  Richard Henderson  <rth@redhat.com>
6939
6940         * optabs.c (expand_abs_nojump): Split out from ...
6941         (expand_abs): ... here.
6942         * optabs.h (expand_abs_nojump): Declare.
6943         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
6944         * Makefile.in (ifcvt.o): Depend on optabs.h.
6945
6946 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
6947
6948         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
6949
6950 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
6951
6952         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
6953         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
6954         to yes.
6955         * configure.in: Allow default_use_cxa_atexit to determine the
6956         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
6957         disabled.
6958         * configure: Regenerate.
6959
6960 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
6961
6962         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
6963         * doc/gcc.texi: Remove vms.texi section.
6964         * doc/vms.texi: Remove obsolete file.
6965
6966 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
6967
6968         * configure.in (inhibit_libc): Don't define when configuring
6969         with --with-newlib --with-headers.
6970         * configure: Regenerate.
6971
6972         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
6973
6974 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6975
6976         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
6977         IRIX 6 without GNU ld.
6978         * configure: Regenerate.
6979
6980 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6981
6982         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
6983         of a complex number rather than invoke mov_optab directly.
6984
6985 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
6986
6987         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
6988         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
6989
6990 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
6991
6992         * config/i386/x86-64.h: Remove two target-independent comments;
6993          replace "GNU CC" with "GCC".
6994
6995 2003-06-03  Anthony Green  <green@redhat.com>
6996
6997         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
6998
6999 2003-06-03  Roger Sayle  <roger@eyesopen.com>
7000
7001         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
7002         New builtins representing ISO C99's cabs, cabsf and cabsl.
7003         * builtins.c (expand_builtin_fabs): New function.
7004         (expand_builtin_cabs): New function.
7005         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
7006         using expand_builtin_fabs and expand_builtin_cabs respectively.
7007
7008         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
7009
7010 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
7011
7012         * function.c (assign_parms): Split complex arguments.
7013
7014         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
7015
7016         * expr.h (SPLIT_COMPLEX_ARGS): Define.
7017         (split_complex_types): Protoize.
7018         (split_complex_values): Protoize.
7019
7020         * calls.c (expand_call): Split complex arguments on architectures
7021         that require it.
7022         (split_complex_values): New.
7023         (split_complex_types): New.
7024
7025         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
7026         (rs6000_function_value): Handle complex values on AIX.
7027         (rs6000_complex_function_value): New.
7028
7029         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
7030
7031         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
7032         (SPLIT_COMPLEX_ARGS): New.
7033
7034 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
7035
7036         * configure.in (HAVE_LD_PIE): Check for ld -pie.
7037         * config.in: Rebuilt.
7038         * configure: Rebuilt.
7039         * toplev.c (flag_pie, flag_shlib): New variables.
7040         (f_options): Add -fpie and -fPIE.
7041         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
7042         Set flag_shlib if flag_pic and not -fpie/-fPIE.
7043         * flags.h (flag_pic, flag_shlib): Add.
7044         * varasm.c (default_binds_local_p): Use flag_shlib instead of
7045         flag_pic.
7046         * gcc.c (LINK_PIE_SPEC): Define.
7047         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
7048         (option_map): Add --pie -> -pie mapping.
7049         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
7050         and -fPIE the same way as -fPIC.
7051         * config/openbsd.h (ASM_SPEC): Likewise.
7052         * config/frv/frv.h (ASM_SPEC): Likewise.
7053         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
7054         * config/arm/semi.h (ASM_SPEC): Likewise.
7055         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
7056         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
7057         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
7058         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
7059         * config/m68k/linux.h (CPP_SPEC): Likewise.
7060         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
7061         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
7062         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
7063         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
7064         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
7065         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
7066         * config/netbsd-aout.h (ASM_SPEC): Likewise.
7067         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
7068         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
7069         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
7070         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
7071         * config/sparc/sparc.h (ASM_SPEC): Likewise.
7072         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7073         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
7074         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
7075         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
7076         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
7077         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
7078         Simplify.
7079         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7080         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7081         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7082         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7083         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7084         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7085         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7086         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
7087
7088 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
7089
7090         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
7091         != 0 handling.  Pass 0 to store_by_pieces.
7092         (expand_builtin_mempcpy): Add endp argument.  Don't call
7093         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
7094         directly.  If ignoring result, only do expand_call.
7095         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
7096         otherwise.
7097         (expand_builtin_strncpy, expand_builtin_memset): Adjust
7098         store_by_pices callers.
7099         (expand_builtin): Adjust expand_builtin_memcpy and
7100         expand_builtin_mempcpy callers.
7101         * expr.c (can_move_by_pieces): New function.
7102         (move_by_pieces): Add endp argument, return to resp. memory at end
7103         or one byte earlier depending on endp.
7104         (store_by_pieces): Likewise.
7105         (emit_block_move): Adjust call to move_by_pieces.
7106         (emit_push_insn): Adjust move_by_pieces caller.
7107         * expr.h (can_move_by_pieces): New prototype.
7108         (store_by_pieces): Adjust prototypes.
7109         * rtl.h (move_by_pieces): Adjust prototype.
7110         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
7111         caller.
7112
7113 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
7114
7115         * doc/md.texi (Processor pipeline description): Improve wording.
7116
7117 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
7118
7119         * c-opts.c (c_common_handle_option): New, pulled out of
7120         c_common_decode_option.  Substitute uses of argv.
7121         (c_common_decode_option): Broken into two.
7122
7123 2003-06-02  Roger Sayle  <roger@eyesopen.com>
7124             Zack Weinberg  <zack@codesourcery.com>
7125
7126         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
7127         test of TREE_CONSTANT_POOL_ADDRESS_P.
7128
7129 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7130
7131         * mips.c: Don't include output.h twice.
7132         * stormy16.c: Likewise.
7133         * xtensa.c: Likewise.
7134         * output.h: Protect against multiple inclusion.
7135
7136 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
7137
7138         * sh.h (OLD_ARG_MODE): New macro.
7139         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
7140         (FUNCTION_ARG_1): Break out of:
7141         (FUNCTION_ARG).  Use OLD_ARG_MODE.
7142
7143 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7144
7145         * gcc/config.gcc Add support multilib parts for m32rx processor.
7146
7147 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7148
7149         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
7150         (mostlyclean): Delete c-options.c and c-options.h.
7151
7152 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
7153
7154         * c-opts.c (CL_REJECT_NEGATIVE): New.
7155         (c_common_decode_option): Update to use it.
7156         * c.opt: Update documentation; use RejectNegative.
7157         * opts.sh: Handle RejectNegative.
7158
7159 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
7160
7161         * ggc-page.c (init_ggc): Give better diagnostics on failure to
7162         open /dev/zero.
7163         * toplev.c (crash_signal): Reset handling for received signal
7164         to SIG_DFL.
7165
7166 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
7167
7168         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
7169         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
7170         (arm_use_dfa_pipeline_interface): Implement.
7171         * config/arm/arm.md (arm): New automaton.
7172         (write_buf): Remove function units; new cpu unit.
7173         (write_blockage): Remove function units; new cpu unit.
7174         (core): Remove function units; new cpu unit.
7175         (r_mem_f_wbuf): New instruction reservation.
7176         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
7177         (store1_ldsched, store2, store3, store4): Likewise.
7178         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
7179         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
7180         (multi_cycle, single_cycle): Likewise.
7181         * config/arm/fpa.md (armfp): New automaton.
7182         (fpa): Remove function units; new cpu unit.
7183         (fpa_mem): Remove function unit; new cpu unit.
7184         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
7185         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
7186
7187 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7188
7189         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
7190         * c-format.c (enum format_type): Add asm_fprintf_format_type.
7191         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
7192         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
7193         (format_types_orig): Renamed from format_types.  Add new data.
7194         (format_types): Declare as pointer.
7195         (handle_format_attribute): Move later in file so we have all
7196         necessary declarations.  Add section to capture HOST_WIDE_INT.
7197         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
7198         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
7199
7200 2003-06-01  Andreas Jaeger  <aj@suse.de>
7201
7202         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
7203         ROUND_TYPE_SIZE_UNIT.
7204
7205         * stor-layout.c (finalize_record_size): Remove usages of
7206         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
7207         (finalize_type_size): Likewise.
7208         (layout_type): Likewise.
7209
7210         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
7211
7212         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
7213
7214         * config/d30v/d30v.h: Remove text copied from the manual.
7215
7216 2003-06-01  Roger Sayle  <roger@eyesopen.com>
7217             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7218             Geoffrey Keating  <geoffk@apple.com>
7219
7220         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
7221         constants as condition code values.
7222
7223 2003-06-01  DJ Delorie  <dj@redhat.com>
7224
7225         * cppmacro.c (warn_of_redefinition): Handle cases where the two
7226         definitions have different numbers of tokens.
7227
7228 2003-06-01  Andreas Jaeger  <aj@suse.de>
7229
7230         * gen-protos.c (main): Readd unused attribute for argc.
7231
7232 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
7233
7234         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
7235         * c.opt: End in blank line.
7236         * opts.sh: Take AWK from environment if available; use C locale.
7237
7238 2003-06-01  Andreas Schwab  <schwab@suse.de>
7239
7240         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
7241
7242 2003-06-01  Andreas Jaeger  <aj@suse.de>
7243
7244         * gen-protos.c (main): Revert patch to check for argument.
7245
7246 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
7247
7248         PR target/11044
7249         * config/i386/i386.md (length attribute): Set length to 4
7250         for instructions of type "fcmp".
7251
7252 2003-06-01  Andreas Jaeger  <aj@suse.de>
7253
7254         * toplev.c: Use ISO C90 prototypes.
7255
7256         * toplev.h: Use ISO C90 prototypes.
7257
7258         * genrecog.c: Use ISO C90 prototypes.
7259         (nodes_identical): Correct declaration to match prototype.
7260         (maybe_both_true): Likewise.
7261         (merge_trees): Likewise.
7262
7263         * genpeep.c (gen_peephole): Remove #if 0 code.
7264         Use ISO C90 prototypes.
7265
7266         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
7267         Remove #if 0'ed function simplify_by_alternatives.
7268         (optimize_attrs): Remove #if 0'ed code.
7269         Remove ^L.
7270         Use ISO C90 prototypes.
7271         (make_canonical): Remove #if 0'ed code.
7272         (convert_const_symbol_ref): Remove #if 0'ed function.
7273
7274         * gen-protos.c (main): Check for argument.
7275
7276         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
7277
7278         * params.h: Use ISO C90 prototypes.
7279         * params.c: Likewise.
7280         * intl.c: Likewise.
7281         * intl.h: Likewise.
7282         * lists.c: Likewise.
7283         * errors.c: Likewise.
7284         * errors.h: Likewise.
7285         * gencodes.c: Likewise.
7286         * genpreds.c: Likewise.
7287         * genattr.c: Likewise.
7288         * gen-protos.c: Likewise.
7289         * genflags.c: Likewise
7290         * genconditions.c: Likewise.
7291         * genautomata.c: Likewise.
7292         * gencheck.c: Likewise.
7293         * genconfig.c: Likewise.
7294         * genconstants.c: Likewise.
7295         * genemit.c: Likewise.
7296         * genextract.c: Likewise.
7297         * gengenrtl.c: Likewise.
7298         * gengtype.c: Likewise.
7299         * gengtype.h: Likewise.
7300         * genopinit.c: Likewise.
7301         * genoutput.c: Likewise.
7302         * gensupport.c: Likewise.
7303         * gensupport.h: Likewise.
7304
7305         * sdbout.h: Use ISO C90 prototypes.
7306
7307         * sdbout.c (CONTIN): Removed empty macro.
7308         (sdbout_one_type): Remove CONTIN usages.
7309         Remove ^Ls.
7310         (tag_of_ru_type): Remove #if 0'ed function.
7311         (sdbout_symbol): Remove #if 0'ed code.
7312         (sdbout_one_type): Remove a #if 1.
7313         (sdbout_one_type): Remove #if 0'ed code.
7314         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
7315         Remove PARAMS, use ISO C90 prototypes for all functions.
7316
7317 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
7318
7319         * rtl.def (CONST_DOUBLE): Update comment.
7320
7321 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
7322
7323         * opts.sh: Remove path from sort.
7324
7325 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
7326
7327         PR/9680
7328         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
7329         TARGET_SPE for SPE_VECTOR_MODE.
7330
7331 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
7332
7333         * toplev.c (botch): Remove.
7334         (do_abort): Remove.
7335         (set_Wunused): Comment.
7336         (set_Wextra): Comment.
7337         Remove ^L's.
7338         (rest_of_compilation): Factor out common code into functions.
7339         (rest_of_handle_inlining): New.
7340         (rest_of_handle_ssa): New.
7341         (rest_of_handle_cse): New.
7342         (rest_of_handle_gcse): New.
7343         (rest_of_handle_loop_optimize): New.
7344         (rest_of_handle_jump_bypass): New.
7345         (rest_of_handle_sibling_calls): New.
7346         (rest_of_handle_null_pointer): New.
7347         (rest_of_handle_addresof): New.
7348         (rest_of_handle_flow): New.
7349         (rest_of_handle_branch_prob): New.
7350         (rest_of_handle_if_conversion): New.
7351         (rest_of_handle_tracer): New.
7352         (rest_of_handle_loop2): New.
7353         (rest_of_handle_cse2): New.
7354         (rest_of_handle_life): New.
7355         (rest_of_handle_combine): New.
7356         (rest_of_handle_if_after_combine): New.
7357         (rest_of_handle_regmove): New.
7358         (rest_of_handle_sched): New.
7359         (rest_of_handle_old_regalloc): New.
7360         (rest_of_handle_new_regalloc): New.
7361         (rest_of_handle_regrename): New.
7362         (rest_of_handle_reorder_blocks): New.
7363         (rest_of_handle_sched2): New.
7364         (rest_of_handle_new_regalloc): New.
7365         (rest_of_handle_old_regalloc): New.
7366         (rest_of_handle_regrename): New.
7367         (rest_of_handle_reorder_blocks): New.
7368         (rest_of_handle_stack_regs): New.
7369         (rest_of_handle_machine_reorg): New.
7370         (rest_of_handle_delay_slots): New.
7371         (rest_of_handle_final): New.
7372
7373         * toplev.h (botch): Remove prototype.
7374         (do_abort): Same.
7375
7376 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
7377
7378         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
7379         * c-opts.c: Include c-options.h and c-options.c.
7380         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
7381         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
7382         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
7383         OPT, opt_comp): Remove.
7384         (missing_arg, c_common_init_options, c_common_decode_option,
7385         write_langs): Update for macro redefinitions and enumeration
7386         name changes.
7387         * c.opt, opts.sh: New files.
7388         * doc/passes.texi: Update.
7389
7390 2003-05-31  Andreas Jaeger  <aj@suse.de>
7391
7392         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
7393         usage.
7394
7395         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
7396
7397         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
7398
7399         * system.h: Poison ALLOCATE_TRAMPOLINE.
7400
7401         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
7402         * system.h: Poison HANDLE_PRAGMA.
7403
7404 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
7405
7406         * doc/invoke.texi: Update dump file names.
7407
7408 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7409
7410         * c-format.c (format_length_info, format_char_info,
7411         format_flag_spec, format_flag_pair, format_kind_info):
7412         De-const-ify structure members.
7413
7414 2003-05-31  Roger Sayle  <roger@eyesopen.com>
7415
7416         * flags.h (flag_wrapv): New flag controlling overflow semantics.
7417         * toplev.c (flag_wrapv): Declare the variable with default false.
7418         (lang_independent_options): New option "-fwrapv" to set the above.
7419
7420         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
7421         as x, when signed arithmetic overflow wraps around.
7422         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
7423         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
7424         overflow when flag_wrapv is true.
7425
7426         * doc/invoke.texi: Document new -fwrapv command line option.
7427         * doc/c-tree.texi: Mention that the overflow semantics of
7428         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
7429         upon both flag_wrapv and flag_trapv.
7430
7431 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7432
7433         * doc/install.texi (mips-sgi-irix5): Add missing
7434         HTML <hr> marker.
7435
7436 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7437
7438         * doc/md.texi (Machine Constraints): Document
7439         missing SPARC constraints.
7440
7441 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7442
7443         * doc/md.texi (Automaton pipeline description): Use
7444         "type" instead of "cpu" as the attribute in the examples.
7445
7446 2003-05-30  Stan Shebs  <shebs@apple.com>
7447
7448         * system.h: Poison OBJC_PROLOGUE.
7449
7450 2003-05-30  Roger Sayle  <roger@eyesopen.com>
7451
7452         * emit-rtl.c (gen_complex_constant_part): New function for getting
7453         the constant real or imaginary part of a complex constant.
7454         (gen_realpart): Use it.
7455         (gen_imagpart): Likewise.
7456
7457 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
7458
7459         * doc/invoke.texi: Fix typos.
7460         * doc/rtl.texi: Likewise.
7461
7462 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
7463
7464         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
7465         mode.
7466         * config/h8300/crtn.asm: Likewise.
7467         * config/h8300/lib1funcs.asm: Likewise.
7468         * config/h8300/h8300.c (asm_file_start): Likewise.
7469         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
7470         h8300snelf emulations for normal mode.
7471         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
7472         emulations for normal mode.
7473
7474 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
7475
7476         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
7477         true if TARGET_NORMAL_MODE.
7478
7479 2003-05-30  Roger Sayle  <roger@eyesopen.com>
7480
7481         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
7482         making a substitution.
7483         (dead_libcall_p): If directly replacing a libcall with a
7484         constant value produces an invalid instruction, also try forcing
7485         the constant into the constant pool.
7486         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
7487         obvious that the source is a constant.
7488         (compress_float_constant): Use set_unique_reg_note to place
7489         REG_EQUAL notes on instructions.
7490
7491 2003-05-30  Eric Christopher  <echristo@redhat.com>
7492
7493         * config/mips/mips.c (extern_list): Add GTY marker.
7494         (extern_head): Separate out definition. Add marker.
7495         (mips_output_external): Use ggc_alloc for extern_list
7496         allocation.
7497         (mips_output_external_libcall): Ditto.
7498
7499 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
7500
7501         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
7502         later.
7503
7504 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7505
7506         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
7507         warnings.
7508         (PRINT_OPERAND): Likewise.
7509
7510 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7511
7512         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
7513         -mdebug/-no-mdebug switches ...
7514         (MDEBUG_ASM_SPEC): ... here.
7515         Use only with gas.
7516         (EXTRA_SPECS): Initialize mdebug_asm_spec.
7517
7518 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
7519
7520         * gthr-gnat.c: Remove #undef UNUSED.
7521         (__gnat_default_lock, __gnat_default_unlock): Prototype.
7522         (__gnat_task_lock, __gnat_task_unlock): Make declarations
7523         prototypes.
7524         (__gnat_install_locks): Convert declaration to ISO C90, make
7525         parameter declarations prototypes, and remove blank line.
7526         * gthr-gnat.h (__gnat_install_locks): Make parameter
7527         declarations prototypes.
7528
7529 2003-05-29  Jason Merrill  <jason@redhat.com>
7530
7531         * Makefile.in (unstrap): Remove stage_last after make unstage1.
7532
7533 2003-05-29  Roger Sayle  <roger@eyesopen.com>
7534
7535         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
7536
7537 2003-05-29  Roger Sayle  <roger@eyesopen.com>
7538             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
7539
7540         PR bootstrap/10169
7541         * mips-tfile.c (main): Use getopt_long instead of getopt.
7542         Add new command line option --version to display version.
7543         Treat --verbose like -v to report a single line version.
7544         (options): New global variable for getopt_long.
7545         * mips-tdump.c (main): Use getopt_long instead of getopt.
7546         New command line options -v, --version and -verbose to display
7547         the program version number (to match mips-tfile's behavior).
7548         (options): New global variable for getopt_long.
7549
7550         * gcov.c (options): Zero-terminate getopt_long array.
7551         * gcov-dump.c (options): Likewise.
7552
7553         * Makefile.in (mips-tdump.o): Add dependency on version.h.
7554
7555 2003-05-29  Stan Shebs  <shebs@apple.com>
7556
7557         Remove OBJC_PROLOGUE everywhere.
7558         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
7559         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
7560         * config/d30v/d30v.h: Similarly.
7561         * config/ip2k/ip2k.h: Similarly.
7562         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
7563
7564 2003-05-29  Roger Sayle  <roger@eyesopen.com>
7565
7566         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
7567         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
7568         (expand_unreachable_stmt): Expand unreachable while statements
7569         using genrtl_do_stmt_1.
7570
7571 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
7572
7573         * config/mips/mips-protos.h (mips_output_load_label): Declare.
7574         * config/mips/mips.c (mips_output_load_label): New function.
7575         (mips_output_conditional_branch): Use it.
7576         * config/mips/mips.md (jump): And here.
7577
7578 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
7579
7580         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
7581         (xtensa_split_operand_pair): New proto.
7582         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
7583         (smalloffset_double_mem_p): Delete.
7584         (gen_float_relational, printx, print_operand, xtensa_va_arg):
7585         Fix whitespace.
7586         (xtensa_split_operand_pair): New.
7587         (xtensa_dbx_register_number): Fix formatting.
7588         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
7589         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
7590         instead of splitting them into single-word moves.  Remove unnecessary
7591         checks for reload_in_progress and reload_completed.
7592         (movdi_internal, movdf_internal): Change to post-reload split patterns.
7593         Add constraints to allow constant operands.
7594         (movsf_internal): Allow CONST_INT operands.
7595
7596 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
7597
7598         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
7599         fragment i386/x-mingw32.
7600         * config/i386/x-mingw32: New file. Make local_includedir
7601         relative to EXEC_PREFIX.
7602
7603 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
7604
7605         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
7606         (MD_STARTFILE_PREFIX): Define.
7607
7608 2003-05-27  Denis Chertykov  <denisc@overta.ru>
7609
7610         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
7611         VOIDmode.
7612         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
7613         call of cselib_invalidate_regno.
7614
7615 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
7616
7617         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
7618         -lthread to -lpthread.
7619
7620 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7621             Bruce Korb  <bkorb@gnu.org>
7622             Arno Klaassen  <arno@heho.snv.jussieu.fr>
7623
7624         * fixinc/inclhack.def: Add missing declaration of getpagesize()
7625         to unistd.h on Solaris 2.5.1.
7626         Fix prototype of recv() and send() in sys/socket.h on
7627         Solaris 2.5.1 and 2.6.
7628         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
7629         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
7630         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
7631         * fixinc/fixincl.x: Regenerate.
7632
7633 2003-05-27  Jason Merrill  <jason@redhat.com>
7634
7635         * tree.c (expr_first, expr_length): New fns.
7636         * tree.h: Declare them.
7637
7638         * tree.c (iterative_hash_expr): Hash commutative expressions
7639         consistently.
7640
7641 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7642
7643         * tree.h (contains_placeholder_p): Now returns bool.
7644         (CONTAINS_PLACEHOLDER_P): New macro.
7645         (type_contains_placeholder_p): New function.
7646         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
7647         (contains_placeholder_p): Now returns bool.
7648         Rework to use CONTAINS_PLACEHOLDER_P macro.
7649         (type_contains_placeholder_p): New function.
7650         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
7651         type_contains_placeholder_p.
7652         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
7653         Use CONTAINS_PLACEHOLDER_P macro.
7654         * builtins.c (fold_builtin): Likewise.
7655         * calls.c (initialize_argument_information): Likewise.
7656         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7657         * explow.c (expr_size): Likewise.
7658         * expr.c (store_constructor, get_inner_reference): Likewise.
7659         * function.c (assign_parms): Likewise.
7660         * stor-layout.c (variable_size): Likewise.
7661
7662 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
7663
7664         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
7665         attribute.
7666
7667 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7668
7669         * doc/contrib.texi (Contributors): Update Kean Johnston.
7670
7671 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
7672
7673         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
7674
7675 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7676
7677         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
7678         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
7679         Replace "GNU CC" with "GCC".
7680
7681 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
7682
7683         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
7684         intermediate computation.
7685
7686 2003-05-23  Eric Christopher  <echristo@redhat.com>
7687
7688         * config/mips/mips.md (clzsi, clzdi): New patterns.
7689
7690 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
7691
7692         * gcc.c (default_compilers): Use -o to specify preprocessor's output
7693         file.  Make -no-integrated-cpp work when building PCH files.
7694         * objc/lang-specs.h: Likewise.
7695
7696 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
7697
7698         * fixinc/Makefile.in: Correct description.
7699         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
7700         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
7701         fixinc/genfixes: Replace "GNU CC" with "GCC".
7702
7703 2003-05-23  Roger Sayle  <roger@eyesopen.com>
7704
7705         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
7706         builtin functions (and their __builtin_* variants).
7707         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
7708         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
7709         optimizing.
7710
7711         * doc/extend.texi: Document new tan and atan builtins, and
7712         their float and long double variants.
7713
7714 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7715
7716         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
7717         __sparcv9 in the TARGET_ARCH64 case.
7718
7719 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
7720
7721         * i386.c (ix86_reorg): Calls are also jumps.
7722
7723 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
7724
7725         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
7726         note containing an EXPR_LIST, process all the arguments.
7727
7728 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
7729                                Andreas Jaeger  <aj@suse.de>
7730
7731         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
7732         do not use assertion.
7733
7734 2003-05-23  Mike Stump  <mrs@apple.com>
7735
7736         * tlink.c (scan_linker_output): Add support for darwin linker, as it
7737         emits unresolved symbols one per line, consuming the entire line.
7738
7739 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
7740             Zack Weinberg <zack@codesourcery.com>
7741
7742         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
7743         * config/m68k/m68k.c (m68k_output_function_prologue):
7744         Remove code under #if NEED_PROBE.
7745         * config/m68k/m68k.h: Don't define NEED_PROBE.
7746         * config/m68k/m68k.md: Remove "probe" insn.
7747         * doc/md.texi: Remove documentation of "probe" pattern.
7748
7749 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
7750
7751         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
7752
7753 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7754
7755         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
7756         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
7757
7758 2003-05-22  Roger Sayle  <roger@eyesopen.com>
7759
7760         * real.c (real_maxval): New function to return the largest finite
7761         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
7762         * real.h (real_maxval): Prototype here.
7763         * fold-const.c (fold_inf_compare): Transform comparisons against
7764         +-Infinity into comparisons against DBL_MAX (or equivalent).
7765
7766 2003-05-22  Mike Stump  <mrs@apple.com>
7767
7768         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
7769         default.
7770
7771 2003-05-22  DJ Delorie  <dj@redhat.com>
7772
7773         * calls.c (expand_call): If the arg block is going to grow
7774         downward, we need argblock to point to the top of the block,
7775         not the bottom.
7776
7777 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7778
7779         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
7780
7781         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
7782         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
7783
7784 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7785
7786         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
7787         * m68k.c: Likewise.
7788         * m68k.h: Likewise.
7789
7790 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
7791
7792         PR other/2873
7793         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
7794         expressions to prevent triggering on recent curses.h,
7795         linux/nls.h, or X11/Xlib.h.
7796         (stdio_va_list): Add _G_va_list to bypass pattern.
7797         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
7798         * fixinc/fixincl.x: Regenerate.
7799
7800 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
7801
7802         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
7803         switches when --target-help option is specified.
7804
7805 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7806
7807         PR bootstrap/10805
7808         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
7809         failure with Sun assembler 5.0 Alpha 03/27/98.
7810
7811 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
7812
7813         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
7814         to match system compiler convention.
7815
7816 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
7817
7818         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
7819         value, not just if defined.
7820         Update copyright year.
7821
7822 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7823
7824         PR target/6428
7825         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
7826         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
7827         option is used without `-static'.
7828         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
7829         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
7830
7831 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
7832
7833         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
7834         TARGET_SERIALIZE_VOLATILE): Delete.
7835         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
7836         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
7837         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
7838         "-mno-serialize-volatile".
7839         * config/xtensa/xtensa.c (print_operand): Remove checks of
7840         TARGET_SERIALIZE_VOLATILE.
7841         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
7842         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
7843         "-mserialize-volatile" and "-mno-serialize-volatile" options.
7844
7845 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
7846
7847         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
7848         (nested_function): Likewise.
7849         (notype_nested_function): Likewise.
7850
7851 2003-05-21  Nick Clifton  <nickc@redhat.com>
7852
7853         * config/stormy16/stormy-abi: Update overflow type for
7854         R_XSTORMY16_16 reloc.
7855
7856 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
7857
7858         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
7859         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
7860         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
7861         * print-tree.c (print_node): Remove ambient-boundedness.
7862         * tree.h (tree_common): Remove bounded_flag.
7863         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
7864         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
7865         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
7866         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
7867         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
7868         Remove.
7869         (TYPE_QUALS): Remove BOUNDED.
7870         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
7871         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
7872         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
7873         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
7874         VA_LIST_POINTER_DEPTH): Remove.
7875         (struct tree_type): Remove pointer_depth.
7876
7877 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7878
7879         * c-pretty-print.c (pp_c_integer_literal): Use
7880         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
7881
7882 2003-05-20  Roger Sayle  <roger@eyesopen.com>
7883             Kazu Hirata  <kazu@cs.umass.edu>
7884             Joern Rennecke  <joern.rennecke@superh.com>
7885
7886         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
7887         setcc and jump, if they exist.  If substituted instruction
7888         fails to validate, store current effort in a REG_EQUAL note.
7889         (cprop_insn): Don't attempt further substitutions if the
7890         current instruction has been deleted.
7891         (local_cprop_pass): Likewise.
7892
7893         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
7894         one is attached to the jump instruction.
7895         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
7896
7897 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
7898
7899         PR c++/9738
7900         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
7901         even if not first.
7902
7903 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7904
7905         * genautomata.c (output_description, output_automaton_units,
7906         output_state_arcs): Add missing specifiers.
7907
7908 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
7909
7910         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
7911         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
7912         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
7913         (nsau): Rename to do_nsau.  Provide alternate version for use when
7914         the NSAU instruction is available.
7915         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
7916         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
7917         * config/xtensa/xtensa-config.h: Update comments to match binutils.
7918         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
7919         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
7920         (TARGET_ABS, TARGET_ADDX): Define.
7921         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
7922         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
7923         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
7924         *subx8): Set predicate condition to TARGET_ADDX.
7925         (abssi2): Set predicate condition to TARGET_ABS.
7926         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
7927         "-maddx", and "-mno-addx" options.
7928         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
7929
7930 2003-05-20  Kevin Ryde <user42@zip.com.au>
7931             Wolfgang Bangerth <bangerth@dealii.org>
7932
7933         PR/10355
7934         * doc/extend.texi: Put a warning into the documentation
7935         of attribute regparm.
7936
7937 2003-05-20  Jason Merrill  <jason@redhat.com>
7938
7939         * tree.c (expr_last): New fn.
7940         * tree.h: Declare it.
7941         * objc/objc-act (expr_last): Rename to objc_expr_last.
7942
7943 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
7944
7945         * sh.c (sh_register_move_cost): Add clase for moving between
7946         FP registers and MAC registers.
7947
7948 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
7949
7950         * pa/milli64.S ($$mulI): Fix typo.
7951
7952 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
7953
7954         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
7955         (nonlocal_set_p): Remove initial blank line.
7956         * dwarf2out.c (simple_type_size_in_bits): Likewise.
7957         * et-forest.c (et_forest_create): Likewise.
7958         * explow.c (stabilize): Likewise.
7959         * fix-header.c (write_lbrac): Likewise.
7960         * graph.c (start_fct, node_data): Likewise.
7961         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
7962         * rtlanal.c (global_reg_mentioned_p): Likewise.
7963         * tree.c (bit_position): Likewise.
7964
7965 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
7966
7967         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
7968         -lthread to -lpthread.
7969
7970 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
7971
7972         * c-opts.c (c_common_decode_option): Don't accept dollars
7973         as identifier characters in assembly.
7974         * doc/cpp.texi: Document this.
7975
7976 2003-05-19  Seth Arnold  <sarnold@wirex.com>
7977             Aldy Hernandez  <aldyh@redhat.com>
7978
7979         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
7980         vrsave_size twice.
7981
7982 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
7983
7984         * doc/tm.texi (function_arg): Fix typo.
7985
7986 2003-05-19  Matt Austern  <austern@apple.com>
7987
7988         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
7989         * c-common.h (warn_invalid_offsetof): Declare.
7990         * c-common.c (warn_invalid_offsetof): Define.
7991         * doc/invoke.texi: Document -Winvalid-offsetof.
7992         * testsuite/g++.dg/other/offsetof3.C: New.
7993         * testsuite/g++.dg/other/offsetof4.C: New.
7994
7995 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
7996             David Edelsohn  <edelsohn@gnu.org>
7997
7998         * config/rs6000/rs6000.c (rs6000_alignment_string,
7999         rs6000_alignment_flags): New variables.
8000         (rs6000_parse_alignment_option): New function.
8001         (rs6000_override_options): Call it.
8002         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
8003         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
8004         macros.
8005         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
8006         natural alignment if TARGET_NATURAL_ALIGNMENT
8007         (ROUND_TYPE_ALIGN): Always use default record alignment if
8008         TAGET_NATURAL_ALIGNMENT.
8009         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
8010         (ROUND_TYPE_ALIGN): Same.
8011         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
8012         (ROUND_TYPE_ALIGN): Same.
8013         * doc/invoke.texi (Option Summary, PowerPC Options): Document
8014         new options.
8015
8016 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
8017
8018         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
8019         of a function using ASMSPEC, prepend a star.
8020
8021 2003-05-19  Jason Merrill  <jason@redhat.com>
8022
8023         * tree-inline.c (copy_body_r): Avoid generating &* during inline
8024         substitution.
8025
8026 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
8027
8028         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
8029         not mark assignments to the hard frame pointer as being stack
8030         frame related.
8031         (xstormy16_expand_epilogue): Mark adjustments to the stack
8032         pointer as being stack frame related.
8033
8034 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8035
8036         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
8037         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
8038         (PREDICATE_CODES): Add hilo_operand.
8039         * config/mips/mips.c (hilo_operand): New predicate.
8040         (mips_adjust_insn_length): Account for the number nops that might
8041         be needed to avoid hardware hazards.
8042         * config/mips/mips.md (dslot): Remove attribute.
8043         (hazard): New attribute.
8044         (can_delay): Use it.  Check for calls, branches & jumps.
8045         (muldi3): Use the standard dmult pattern for mips16 code.
8046         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
8047
8048 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8049
8050         * config/mips/mips-protos.h (final_prescan_insn,
8051         mips_count_memory_refs, mips_fill_delay_slot): Remove.
8052         * config/mips/mips.h (delay_type, dslots_load_total,
8053         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
8054         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
8055         mips_load_reg3, mips_load_reg4): Remove.
8056         (MASK_STATS): Remove.
8057         (MASK_EXPLICIT_RELOCS): Reuse its value.
8058         (TARGET_STATS): Remove.
8059         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
8060         Warn that -mstats is now ignored.
8061         (FINAL_PRESCAN_INSN): Undefine.
8062         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
8063         (ASM_OUTPUT_REG_POP): Likewise.
8064         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
8065         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
8066         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
8067         mips_fill_delay_slot, mips_count_memory_refs,
8068         final_prescan_insn): Remove.
8069         (output_block_move): Remove calls to mips_count_memory_refs.
8070         (print_operand): Remove printing of #nop for TARGET_STATS.
8071         (mips_output_function_epilogue): Remove TARGET_STATS code.
8072         Reorganize setting of fnnmae.
8073         * config/mips/mips.md: Remove handling of dslot statistics
8074         throughout file.  Change all fcmp patterns into normal asm
8075         templates, removing calls to mips_fill_delay_slot.
8076         * doc/invoke.texi: Remove documentation of -mstats.
8077
8078 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8079
8080         * config/mips/mips.c (mips_class_max_nregs): Return the number of
8081         words in the mode.
8082
8083 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8084
8085         * config/mips/mips.c (override_options): Disable explicit
8086         relocs for old ABIs unless using gas.
8087
8088 2003-05-18  Eric Christopher  <echristo@redhat.com>
8089
8090         * config/mips/mips.h: Remove definition of g_switch_value.
8091
8092 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
8093
8094         * flags.h (g_switch_value): Change to an unsigned
8095         HOST_WIDE_INT.
8096         * toplev.c (g_switch_value): Likewise.
8097
8098         * config/alpha/alpha.c (small_symbolic_operand): Remove
8099         g_switch_value cast.
8100         (alpha_in_small_data_p): Cast size to an unsigned
8101         HOST_WIDE_INT.
8102
8103         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
8104         unsigned HOST_WIDE_INT.
8105         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
8106         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
8107
8108         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
8109         unsigned HOST_WIDE_INT.
8110         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
8111         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
8112         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
8113
8114         * config/rs6000/rs6000.c (rs6000_file_start): Use
8115         HOST_WIDE_INT_PRINT_UNSIGNED.
8116         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
8117         (rs6000_elf_in_small_data_p): Cast size to unsigned
8118         HOST_WIDE_INT.
8119         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
8120         Remove.
8121         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
8122         g_switch_set.
8123         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
8124         g_switch_value cast.
8125
8126 2003-05-18  Roger Sayle  <roger@eyesopen.com>
8127             Zack Weinberg  <zack@codesourcery.com>
8128
8129         PR middle-end/10472
8130         * builtins.c (expand_builtin_memcpy):  Call force_operand on
8131         expressions and use simplify_gen_binary to create the addition.
8132
8133 2003-05-18  Andreas Schwab  <schwab@suse.de>
8134
8135         * config/m68k/m68k.md: Use define_constants for unspec numbers.
8136
8137 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
8138
8139         * config/sparc/sparc.h: Define sparc for now.
8140
8141 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
8142
8143         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
8144
8145         * config/stormy16/stormy16.h: Remove about 3000 lines of
8146         target-independent comments.  Update copyright notice.
8147
8148         * doc/collect2.texi: GNU CC -> GCC.
8149         * doc/headerdirs.texi: GNU CC -> GCC.
8150
8151 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
8152
8153         * hashtable.h (struct ht_identifier): Add data member "hash_value".
8154         * hashtable.c (ht_lookup): Use it when searching, remember.
8155         (ht_expand): Do not recompute.
8156         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
8157
8158 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
8159
8160         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
8161
8162 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
8163
8164         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
8165         Default here.
8166         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
8167         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
8168         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
8169         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
8170         config/arm/linux-elf.h, config/arm/rtems-elf.h,
8171         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
8172         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
8173         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
8174         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
8175         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
8176         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
8177         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
8178         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
8179         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
8180         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
8181         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
8182         Don't define __ELF__.
8183         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
8184         Define __ELF__.
8185         * doc/cpp.texi: Document __ELF__.
8186         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
8187
8188 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8189
8190         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
8191         always use stdarg.
8192         * c-errors.c (pedwarn_c99): Likewise.
8193         * c-format.c (status_warning): Likewise.
8194         * c-semantics.c (build_stmt): Likewise.
8195         * calls.c (emit_library_call, emit_library_call_value): Likewise.
8196         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
8197         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
8198         * diagnostic.c (build_message_string, output_printf,
8199         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
8200         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
8201         error_with_decl, fnotice): Likewise.
8202         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
8203         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
8204         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
8205         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
8206         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
8207         dw2_asm_output_encoded_addr_rtx): Likewise.
8208         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
8209         * errors.c (warning, error, fatal, internal_error): Likewise.
8210         * final.c (output_operand_lossage, asm_fprintf): Likewise.
8211         * fix-header.c (fatal): Likewise.
8212         * gcc.c (fatal, error, notice): Likewise.
8213         * gcov.c (fnotice): Likewise.
8214         * genattrtab.c (attr_rtx, attr_printf): Likewise.
8215         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
8216         * gensupport.c (message_with_line): Likewise.
8217         * mips-tfile.c (fatal, error): Likewise.
8218         * protoize.c (notice): Likewise.
8219         * ra-debug.c (ra_debug_msg): Likewise.
8220         * read-rtl.c (fatal_with_file_and_line): Likewise.
8221         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
8222         * tree.c (build, build_nt, build_function_type_list): Likewise.
8223
8224 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8225
8226         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
8227         * gcc.c (cpp_predefines): Remove.
8228         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
8229         (static_specs): Remove predefines.
8230         * system.h: Poison CPP_PREDEFINES.
8231         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
8232         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
8233
8234 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8235
8236         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
8237         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
8238         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
8239         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
8240
8241 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8242
8243         PR c/9209
8244         * c-common.c, c-common.h (dollars_in_ident): Remove.
8245         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
8246         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
8247         * cpphash.h (warned_dollar): Rename warn_dollars.
8248         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
8249         Permit dollars regardless of -std=.
8250         (post_options): Set warn_dollars.
8251         * cpplex.c (forms_identifier_p): Use warn_dollars.
8252         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
8253         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
8254         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
8255         Update documentation.
8256
8257 2003-05-17  Andreas Schwab  <schwab@suse.de>
8258
8259         * config/m68k/m68k.c (m68k_output_function_prologue): Use
8260         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
8261         formatting a HOST_WIDE_INT.
8262         (m68k_output_function_epilogue): Likewise.
8263
8264 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
8265
8266         * doc/install.texi: Remove information about desupported targets.
8267
8268 2003-05-17  Andreas Schwab  <schwab@suse.de>
8269
8270         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
8271         * config/m68k/linux.h: Likewise.
8272         * config/m68k/m68k-none.h: Likewise.
8273         * config/m68k/netbsd-elf.h: Likewise.
8274         * config/m68k/sgs.h: Likewise.
8275         * config/m68k/m68k.h: Likewise.
8276         * config/m68k/m68k.md: Likewise.
8277         * config/m68k/m68k.c: Likewise.
8278         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
8279         constraints.
8280         * doc/invoke.texi (Option Summary): Remove -mfpa.
8281         (M680x0 Options): Likewise.
8282
8283 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
8284
8285         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
8286
8287 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8288
8289         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
8290         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
8291         config/sparc/rtemself.h, config/sparc/sol2-64.h,
8292         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
8293         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
8294
8295 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8296
8297         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
8298         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
8299
8300 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8301
8302         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
8303         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
8304         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
8305         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
8306         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
8307         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
8308         sparc/sysv4.h,
8309         * sparc/sysv4-only.h: New.
8310
8311 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
8312
8313         * function.c (assign_parms): Check for zero size args.
8314
8315 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8316
8317         * cfgloopanal.c (test_for_iteration): Use string concatentation on
8318         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
8319         function calls into one.
8320         * dbxout.c (dbxout_symbol): Likewise.
8321         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
8322         * dwarf2asm.c (dw2_asm_output_data_uleb128,
8323         dw2_asm_output_data_sleb128): Likewise.
8324         * genrecog.c (debug_decision_2): Likewise.
8325         * loop.c (emit_prefetch_instructions): Likewise.
8326         * print-rtl.c (print_rtx): Likewise.
8327         * print-tree.c (print_node_brief, print_node): Likewise.
8328         * ra-debug.c (dump_igraph, dump_graph_cost,
8329         dump_static_insn_cost): Likewise.
8330         * ra-rewrite.c (dump_cost): Likewise.
8331         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
8332         * sreal.c (dump_sreal): Likewise.
8333         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
8334         * varasm.c (assemble_vtable_entry): Likewise.
8335
8336         * avr.c (avr_output_function_prologue,
8337         avr_output_function_epilogue, print_operand): Fix format specifier
8338         warnings.
8339         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
8340         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
8341
8342 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
8343
8344         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
8345         and ! TARGET_STRING cases.
8346
8347         * doc/cppopts.texi (-undef): Fix texinfo warning.
8348
8349         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
8350         * cppfiles.c (validate_pch): When -H is used, print some information
8351         about PCH files found.
8352
8353 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8354
8355         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
8356         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
8357         * config/mips/t-sr71k: Likewise.
8358
8359 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8360
8361         * arc.c (arc_output_function_prologue,
8362         arc_output_function_epilogue): Fix format specifier warnings.
8363         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
8364
8365         * v850.c (print_operand): Fix format specifier warnings.
8366
8367         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
8368         specifier warnings.
8369
8370         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
8371         format specifier warnings.
8372
8373         * ip2k.c (function_prologue, function_epilogue, print_operand):
8374         Fix format specifier warnings.
8375         * ip2k.md: Likewise.
8376
8377         * i960.c (i960_output_function_prologue, i960_print_operand,
8378         i960_print_operand_addr): Fix format specifier warnings.
8379
8380         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
8381         (i370_output_function_prologue): Fix format specifier warnings.
8382         * i370.h (PRINT_OPERAND): Likewise.
8383
8384         * fr30.c (fr30_print_operand): Fix format specifier warnings.
8385
8386         * dsp16xx.c (print_operand_address): Fix format specifier warning.
8387         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
8388
8389         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
8390         specifier warnings.
8391
8392         * alpha.c (print_operand_address, alpha_start_function,
8393         unicosmk_output_ssib): Use string concatentation on
8394         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
8395         function calls into one.
8396         * arm.c (arm_print_operand): Likewise.
8397         * cris.c (cris_asm_output_mi_thunk): Likewise.
8398         * frv.c (frv_asm_output_mi_thunk): Likewise.
8399         * ia64.c (ia64_print_operand, process_set): Likewise.
8400         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
8401         Likewise.
8402         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
8403         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
8404         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
8405         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
8406         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
8407         * s390.c (s390_assemble_integer): Likewise.
8408         * sparc.c (sparc_flat_function_prologue,
8409         sparc_flat_function_epilogue): Likewise.
8410         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
8411         * vax.c (vax_output_mi_thunk): Likewise.
8412
8413         * frv.c (frv_print_operand_memory_reference): Fix format specifier
8414         warning.
8415         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
8416
8417         * m68k.c (m68k_output_function_epilogue): Fix format specifier
8418         warnings.
8419
8420         * stormy16-protos.h (xs_hi_general_operand,
8421         xs_hi_nonmemory_operand): Prototype.
8422         * stormy16.c (xstormy16_output_shift): Fix format specifier
8423         warnings.
8424
8425         * cris.c: Fix format specifier warnings.
8426
8427 2003-05-16  Nick Clifton  <nickc@redhat.com>
8428
8429         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
8430
8431 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
8432
8433         * doc/bugreport.texi: Remove most of the of the preface of the
8434         bugs section.
8435
8436 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
8437
8438         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
8439         .save XX, r0.
8440
8441 2003-05-15  Roger Sayle  <roger@eyesopen.com>
8442
8443         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
8444
8445 2003-05-15  Eric Christopher  <echristo@redhat.com>
8446
8447         * cfgcleanup.c (merge_blocks): Fix return value.
8448
8449 2003-05-15 Eric Christopher <echristo@redhat.com>
8450
8451         * combine.c (expand_compound_operation): Make sure
8452         that zero_extend operation is profitable.
8453
8454 2003-05-15  Richard Henderson  <rth@redhat.com>
8455
8456         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
8457         code protected by USE_GNULIBC_1.
8458
8459 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
8460
8461         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
8462         remove hppa*-*-mpeix* which could not be built, and prune
8463         files from tmake_file= or tm_file= lists that don't exist.
8464
8465         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
8466         * config/alpha/t-interix, config/arm/conix-elf.h
8467         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
8468         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
8469         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
8470         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
8471         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
8472         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
8473         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
8474         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
8475         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
8476         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
8477         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
8478         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
8479         * config/m68k/tower-as.h, config/m68k/tower.h
8480         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
8481         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
8482         * config/m88k/m88k-protos.h, config/m88k/m88k.c
8483         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
8484         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
8485         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
8486         * config/mips/rtems64.h, config/mips/sni-gas.h
8487         * config/mips/sni-svr4.h, config/mips/t-ecoff
8488         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
8489         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
8490         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
8491         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
8492         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
8493         * config/romp/romp-protos.h, config/romp/romp.c
8494         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
8495         * config/rs6000/aix3newas.h, config/rs6000/mach.h
8496         * config/sparc/bsd.h, config/sparc/hal.h
8497         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
8498         * config/sparc/lynx.h, config/sparc/netbsd.h
8499         * config/sparc/sp86x-aout.h, config/sparc/splet.h
8500         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
8501         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
8502         * config/sparc/t-halos, config/sparc/t-sparcbare
8503         * config/sparc/t-splet, config/sparc/t-sunos41
8504         * config/v850/rtems.h: Delete file.
8505
8506 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
8507
8508         * config/rs6000/rs6000-protos.h (function_value): Protoize.
8509
8510         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
8511
8512         * config/rs6000/rs6000.c (rs6000_function_value): New.
8513
8514 2003-05-15  Philip Blundell  <philb@gnu.org>
8515
8516         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
8517         All uses updated.
8518         (arm_tune_xscale): New variable.
8519         (arm_override_options): Set it.
8520         (arm_adjust_cost): Use it in place of arm_arch_xscale.
8521         (arm_gen_load_multiple): Likewise.
8522         (arm_gen_store_multiple): Likewise.
8523         * config/arm/arm.md (is_xscale): Likewise.
8524         * config/arm/arm.h (arm_tune_xscale): Declare.
8525
8526 2003-05-15  Philip Blundell  <philb@gnu.org>
8527
8528         PR target/10730
8529         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
8530         involving invalid constants.
8531
8532 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8533
8534         * pa.c (hppa_expand_prologue): Remove blockage.
8535
8536 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
8537
8538         * doc/bugreport.texi: Remove most of the bug reporting
8539         instructions and merge them into bugs.html.
8540
8541 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
8542
8543         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
8544         g_switch_value to unsigned HOST_WIDE_INT.
8545
8546 2003-05-14  Eric Christopher  <echristo@redhat.com>
8547
8548         * combine.c: Fix header comments.
8549         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
8550         to all calls and prototype.
8551
8552 2003-05-14  Roger Sayle  <roger@eyesopen.com>
8553
8554         PR optimization/10764
8555         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
8556         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
8557         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
8558         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
8559         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
8560         the corresponding *fyl2x_?fxf3 instructions.
8561
8562 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
8563
8564         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
8565         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
8566         XCHAL_HAVE_L32R): New.
8567         * config/xtensa/xtensa-protos.h (non_const_move_operand,
8568         xtensa_load_constant, xtensa_function_prologue,
8569         xtensa_function_epilogue): Delete prototypes.
8570         (xtensa_expand_prologue): New.
8571         * config/xtensa/xtensa.c (frame_size_const,
8572         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
8573         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
8574         xtensa_function_prologue): Delete.
8575         (add_operand, xtensa_mem_offset): Formatting.
8576         (move_operand): If the const16 option is available, allow any SFmode
8577         and SImode constants.
8578         (xtensa_emit_move_sequence): Inline the former contents of
8579         xtensa_load_constant with modifications to handle the const16 option.
8580         (override_options): Add xtensa_char_to_class['W'] and set it to
8581         the general register class only if the const16 option is enabled.
8582         Fix formatting.  Disallow PIC when using the const16 option.
8583         (print_operand): Reorganize to switch on "letter" instead of the
8584         RTL code.  Add output_operand_lossage calls for invalid cases.
8585         Add support for 't' and 'b' letters.
8586         (xtensa_expand_prologue): New function to replace
8587         xtensa_function_prologue and xtensa_reorg.
8588         (xtensa_function_epilogue): Declare this as static.  Delete code
8589         to print the retw.n or retw instruction.
8590         (xtensa_return_addr): Use A0_REG instead of 0.
8591         (xtensa_rtx_costs): Add costs for using the const16 option.
8592         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
8593         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
8594         (TARGET_SWITCHES): Add "const16" and "no-const16".
8595         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
8596         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
8597         using the const16 option.
8598         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
8599         (TRAMPOLINE_SIZE): Change from 49 to 59.
8600         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
8601         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
8602         when using the const16 option.
8603         (PREDICATE_CODES): Delete non_const_move_operand.
8604         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
8605         UNSPECV_ENTRY.
8606         (movdi, movdf): If the source is a constant, always expand to a
8607         sequence of movsi insns.
8608         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
8609         (movsi_internal, movsf_internal): Add alternative using const16 insns.
8610         (movsf): Add const16 support.
8611         (entry, prologue, epilogue): New.
8612         (set_frame_ptr): Add missing mode for unspec_volatile operation.
8613         Likewise for subsequent split pattern.
8614         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
8615         "-mconst16" and "-mno-const16" options.
8616
8617 2003-05-14  Richard Henderson  <rth@redhat.com>
8618
8619         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
8620         to be DImode register.  Merge load_symptr.
8621         * config/ia64/ia64.md (load_symptr): Remove.
8622
8623 2003-05-14  Richard Henderson  <rth@redhat.com>
8624
8625         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
8626         DEFERRED_CONSTANT_P.
8627         * integrate.c (copy_rtx_and_substitute): Update use.
8628         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
8629         to the copy generated.
8630         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
8631         of the constant to see if we should emit.
8632         (mark_constant): Similarly.
8633         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
8634
8635 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
8636
8637         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
8638         move record condition.
8639         (movdi_internal2): Same.
8640
8641 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
8642
8643         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
8644         (GCOV_TAG_*) Force type to gcov_unsigned_t.
8645         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
8646         (struct gcov_var): Remove modified. Add start, length, offset,
8647         overread. Have buffer array for libgcov.
8648         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
8649         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
8650         * gcov-io.c (gcov_open): Set mode, do not read anything.
8651         (gcov_close): Write final block.
8652          (gcov_write_block, gcov_allocate): New.
8653         (gcov_write_bytes): Make static. Write or allocate buffer.
8654         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
8655         null.
8656         (gcov_write_string): Adjust.
8657         (gcov_write_tag)
8658         (gcov_write_length): Adjust. Flush the block.
8659         (gcov_write_tag_length): Buffer can never be null.
8660         (gcov_read_bytes): Make static. Read in block.
8661         (gcov_sync): Moved here. Adjust.
8662         (gcov_seek): Moved here. Adjust.
8663         * coverage.c (read_counts_file): Adjust.
8664         * gcov-dump.c (print_prefix): Add position parameter.
8665         (flag_dump_positions): New flag.
8666         (options, main, print_usage): Add it.
8667         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
8668         tag_summary): Adjust.
8669         * gcov.c (read_graph_file, read_count_file): Adjust.
8670         * libgcov.c (gcov_exit): Adjust.
8671
8672         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
8673         (libgcov.a): Depend on libgcc.a.
8674         (gcov.o, gcov-dump.o): Add gcov-io.c.
8675         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
8676
8677         * loop.c (check_dbra_loop): Factor common test.
8678
8679 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
8680
8681         * doc/md.texi (Automaton pipeline description): Grammar fixes.
8682
8683 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
8684
8685         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
8686         (TARGET_INITIALIZER): Include it.
8687         * target.h (struct gcc_target): Add machine_dependent_reorg field.
8688         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
8689         * system.h: Poison MACHINE_DEPENDENT_REORG.
8690
8691         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
8692         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
8693         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8694         (alpha_handle_trap_shadows): Remove "first insn" parameter.
8695         (alpha_align_insns): Likewise.
8696         (alpha_reorg): Likewise.  Make static.  Update calls to above
8697         functions.
8698
8699         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
8700         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
8701         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8702         (arm_reorg): Remove parameter.  Make static.
8703
8704         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
8705         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
8706         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8707         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
8708         Remove parameter.
8709
8710         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
8711         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
8712         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8713         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
8714         Remove parameter.
8715
8716         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
8717         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
8718         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
8719
8720         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
8721         * config/frv/frv.c: Remove orphaned comment.
8722
8723         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
8724         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
8725         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8726         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
8727         Remove parameter.
8728
8729         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
8730         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
8731         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8732         (emit_insn_group_barriers): Remove "first insn" parameter.
8733         (emit_all_insn_group_barriers): Likewise.
8734         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
8735         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
8736
8737         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
8738         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
8739         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8740         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
8741         Remove parameter.
8742
8743         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
8744         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
8745         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8746         (m68hc11_reorg): Make static.  Remove parameter.
8747
8748         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
8749         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
8750         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8751         (conditionalize_optimization): Remove parameter.
8752         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
8753         Make static.  Update call to conditionalize_optimization.
8754
8755         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
8756         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
8757         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8758         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
8759         Make static.
8760
8761         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
8762         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
8763         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8764         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
8765         Remove parameter.
8766
8767         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
8768         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
8769         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8770         (pa_combine_instructions): Remove "first insn" parameter.
8771         (remove_useless_addtr_insns): Likewise.
8772         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
8773
8774         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
8775         commented-out definition.
8776
8777         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
8778         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
8779         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8780         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
8781         Remove parameter.
8782
8783         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
8784         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
8785         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8786         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
8787         Remove parameter.
8788         (sh_output_mi_thunk): Call sh_reorg directly.
8789         * config/sh/sh.md: Update comment.
8790
8791         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
8792         commented-out definition.
8793
8794         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
8795         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
8796         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8797         (v850_reorg): Make static.  Remove parameter.
8798
8799         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
8800         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
8801         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8802         (xtensa_reorg): Make static.  Remove parameter.
8803
8804         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
8805         (TARGET_MACHINE_DEPENDENT_REORG): Document.
8806
8807 2003-05-13  Richard Henderson  <rth@redhat.com>
8808
8809         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
8810         the old decl had instantiated DECL_RTL.
8811
8812 2003-05-13  Mike Stump  <mrs@apple.com>
8813
8814         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
8815
8816 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
8817
8818         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
8819         HOST_WIDE_INT argument.
8820
8821 2003-05-13  Jason Merrill  <jason@redhat.com>
8822
8823         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
8824
8825         * tree.c (iterative_hash_expr): New fn.
8826
8827         * c-semantics.c (emit_local_var): Don't mess with temp slots if
8828         there's no initializer.
8829
8830 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
8831
8832         * final.c (final_scan_insn): Apply the effects of frame-related
8833         delay slot insns before emitting a delayed branch.
8834
8835 2003-05-13  Nick Clifton  <nickc@redhat.com>
8836
8837         * config/mcore/mcore.md (jump): Use emit_jump_insn.
8838
8839 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8840
8841         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
8842         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
8843
8844 2003-05-12  DJ Delorie  <dj@redhat.com>
8845
8846         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
8847         (emit_push_insn): Don't use push when the source alignment is less
8848         than the stack's push rounding.
8849
8850 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
8851
8852         * diagnostic.c (output_format): Add support for %m.
8853         (output_printf, output_verbatim, diagnostic_set_info,
8854         verbatim): Set err_no field of the text_info structure being
8855         initialized.
8856         (fatal_io_error): Delete function.
8857         * diagnostic.h (text_info): Add err_no field.
8858         * toplev.h (fatal_io_error): Delete prototype.
8859
8860         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
8861         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
8862         * objc/objc-act.c: Replace all calls to fatal_io_error with
8863         calls to fatal_error; add ": %m" to the end of all the affected
8864         error messages.
8865
8866 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
8867
8868         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
8869         * rtl.h: Prototype it.
8870         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
8871         when appropriate.
8872
8873 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8874
8875         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
8876         ("*iorsi3_oi"): Likewise.
8877
8878 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
8879
8880         * arm.md (compare_scc): Use shorter sequence for EQ case.
8881         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
8882         (and_scc_scc): Ensure split only applies when there is a dominance
8883         of the comparisons.
8884         (and_scc_scc_nodom): New insn-and-split pattern.
8885
8886 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
8887
8888         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
8889         to _Unwind_SetGRPtr().
8890
8891 2003-05-13  Michael Eager <eager@mvista.com>
8892
8893         * Makefile.in: Initialize program_transform_cross_name from
8894         @program_transform_name@ instead of target_alias.
8895
8896 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
8897             Alan Modra  <amodra@bigpond.net.au>
8898             Jakub Jelinek  <jakub@redhat.com>
8899
8900         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
8901         * configure: Rebuild.
8902         * config/rs6000/rs6000-protos.h: Update.
8903         * config/rs6000/rs6000.c (rs6000_tls_size): New.
8904         (rs6000_tls_size_string): New.
8905         (rs6000_parse_tls_size_option): New.
8906         (rs6000_legitimize_tls_address): New.
8907         (rs6000_tls_get_addr): New.
8908         (rs6000_got_sym): New.
8909         (rs6000_tls_symbol_ref): New.
8910         (rs6000_tls_symbol_ref_1): New.
8911         (rs6000_get_some_local_dynamic_name): New.
8912         (rs6000_get_some_local_dynamic_name_1): New.
8913         (TARGET_HAVE_TLS): New.
8914         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8915         (rs6000_override_options): Handle -mtls-size option.
8916         (constant_pool_expr_1): Handle TLS symbols.
8917         (rs6000_legitimize_address): Handle TLS symbols.
8918         (rs6000_tls_referenced_p): New.
8919         (rs6000_legitimate_address): Handle TLS symbols.
8920         (rs6000_emit_move): Handle TLS symbols.
8921         (print_operand): Handle TLS symbols.
8922         (uses_TOC): Handle TLS symbols.
8923         (rs6000_emit_prologue): Use symbol for unspec constant.
8924         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
8925         (some_ld_name): New.
8926         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
8927         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
8928         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
8929         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
8930         Support TLS.
8931         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
8932         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
8933         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
8934         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
8935         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
8936         tls_tls_64): New.
8937         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
8938
8939 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
8940
8941         * Makefile.in (stage2_build, stage3_build, stage4_build):
8942         Set BUILD_CC to the same as CC.
8943
8944 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
8945
8946         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
8947
8948 2003-05-12  Andreas Schwab  <schwab@suse.de>
8949
8950         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
8951         as unused.
8952         (bundling): Initialize 'pos'.
8953         (ia64_expand_builtin): Initialize 'rmode'.
8954
8955 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
8956
8957         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
8958         (ASM_OUTPUT_ALIGNED_COMMON): Same.
8959         (ASM_OUTPUT_LOCAL): Same.
8960
8961 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
8962
8963         * varasm.c (output_constant):  Fix underflow.
8964
8965 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
8966
8967         PR other/10745
8968         * configure.in: Correct detection of GNU ld version number.
8969         * configure: Regenerated.
8970
8971 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
8972
8973         * diagnostic.c (diagnostic_for_decl): Take a
8974         diagnostic_context argument.  Restructure to be consistent
8975         with diagnostic_report_diagnostic.
8976         (diagnostic_count_diagnostic): Now static.  Take a
8977         diagnostic_info argument, not just a diagnostic_t.  Some code
8978         moved here from internal_error.  Move a case label for
8979         clarity.
8980         (diagnostic_action_after_output): New function.  Code moved
8981         here from internal_error and fatal_error.
8982         (bug_report_request): New #define so that this text appears in
8983         only one place.
8984         (diagnostic_report_diagnostic): Update to match changes to
8985         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
8986         (diagnostic_set_info): Call gettext here.
8987
8988         (pedwarn): Update comment.  Don't call gettext here.
8989         (sorry): Use report_diagnostic.  Don't call gettext here.
8990         (fatal_error): Remove final fnotice and exit, but call
8991         real_abort to prevent warnings about noreturn function returning.
8992         (internal_error): Likewise.  Don't do ICE suppression here nor
8993         call context->internal_error.
8994         (warning_with_decl): Suppress for decls in system headers.
8995         Adjust call to diagnostic_for_decl.
8996         (pedwarn_with_decl): Likewise.
8997         (error_with_decl): Adjust call to diagnostic_for_decl.
8998         (error_recursion): Use bug_report_request.
8999
9000         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
9001         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
9002         diagnostic_count_diagnostic.
9003
9004 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9005
9006         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
9007
9008 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
9009
9010         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
9011         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
9012         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
9013
9014 2003-05-12  Roger Sayle  <roger@eyesopen.com>
9015
9016         * doc/rtl.texi: Document zero_extract as a valid destination
9017         of a set insn.
9018
9019 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
9020
9021         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
9022         '.'.  Change all local symbol definitions and references to use LSYM.
9023
9024 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
9025
9026         * expr.h (assemble_static_space): Update prototype.
9027         * output.h (assemble_zeros, output_constant): Likewise.
9028         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
9029         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
9030         it 64bit clean.
9031         * elf.h (ASM_OTUPUT_SKIP): Likewise.
9032         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
9033         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9034         Expect HOST_WIDE_INT operand.
9035         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9036         Expect HOST_WIDE_INT operand.
9037         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9038         Expect HOST_WIDE_INT operand.
9039         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
9040         HOST_WIDE_INT operand.
9041         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
9042         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
9043         * aout.h (ASM_OTUPUT_SKIP): Likewise.
9044         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
9045         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
9046         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
9047         * frv.h (ASM_OTUPUT_SKIP): Likewise.
9048         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
9049         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9050         Make it 64bit
9051         clean.
9052         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
9053         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9054         Make it 64bit clean.
9055         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
9056         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
9057         HOST_WIDE_INT operand
9058         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9059         Expect HOST_WIDE_INT operand
9060         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
9061         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
9062         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
9063         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9064         Likewise.
9065         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
9066         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9067         Likewise.
9068         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9069         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9070         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9071         ASM_OUTPUT_SKIP): Likewise.
9072         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9073         Likewise.
9074         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9075         ASM_OUTPUT_SKIP): Likewise.
9076         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9077         ASM_OUTPUT_SKIP): Likewise.
9078         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
9079         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
9080         ASM_OUTPUT_SKIP): Likewise.
9081         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
9082         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
9083         ASM_OUTPUT_SKIP): Likewise.
9084         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
9085         Likewise.
9086         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
9087         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
9088         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
9089         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9090         ASM_OUTPUT_SKIP): Make it 64bit clean.
9091         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
9092         Make it 64bit clean.
9093         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
9094         ASM_OUTPUT_SKIP): Make it 64bit clean.
9095         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
9096         64bit clean.
9097         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
9098         HOST_WIDE_INT argument
9099         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
9100         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
9101         HOST_WIDE_INT argument
9102         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
9103         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
9104         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
9105         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9106         HOST_WIDE_INT argument
9107         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
9108         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
9109         * varasm.c (asm_output_bss, asm_output_aligned_bss,
9110         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
9111         HOST_WIDE_INT argument
9112
9113 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
9114
9115         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
9116         favor of walk_tree_without_duplicates.  Add comments.
9117
9118 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
9119
9120         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
9121         (struct alloc_pool_def): New element 'id'.
9122         * alloc-pool.c (fancy_abort): Extern function prototype.
9123         (abort): Macro which uses fancy_abort.
9124         (struct allocation_object_def): New structure.
9125         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
9126         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
9127         (last_id): New variable.
9128         (create_alloc_pool): Add the offset of u.data to size of element,
9129         increase and use last_id.
9130         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
9131         (pool_alloc): Likewise. Set ID for elements.
9132         (pool_free): Check whether the PTR was allocated from POOL.
9133
9134 2003-05-11  Richard Henderson  <rth@redhat.com>
9135
9136         PR c/10675
9137         * c-decl.c: Include hashtab.h.
9138         (detect_field_duplicates): New.
9139         (finish_struct): Use it.
9140         * Makefile.in (c-decl.o): Update.
9141         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
9142         (component_decl_list, component_decl_list2,
9143         components, components_notype): Build list in reverse order.
9144         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
9145
9146         * tree.c (chainon): Special case op2 null as well.
9147         Reorg for clarity.
9148
9149 2003-05-11  Roger Sayle  <roger@eyesopen.com>
9150
9151         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
9152         to implement log, logf and logl built-ins as inline x87 intrinsics.
9153         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
9154         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
9155         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
9156
9157         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
9158         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
9159
9160 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9161
9162         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
9163
9164         * sparc.c (print_operand): Fix uninitialized warning.
9165
9166 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9167
9168         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
9169         real insns.
9170         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
9171         condition.
9172
9173 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
9174
9175         * doc/cpp.texi: Fix typos.
9176
9177 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
9178
9179         * config/s390/s390.c (s390_function_arg_float): New function.
9180         (s390_function_arg_pass_by_reference): Use it.
9181         (s390_function_arg_advance): Likewise.
9182         (s390_function_arg): Likewise.
9183         (s390_va_arg): Likewise
9184
9185 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
9186
9187         * coverage.h (coverage_counter_alloc): New function.
9188         * function.h (struct function): Remove arc_profile flag.
9189         * coverage.c (fn_ident): Remove.
9190         (fn_b_ctrs, no_coverage): New.
9191         (get_coverage_counts): Use current_function_funcdef_no.
9192         (coverage_counter_alloc): New.
9193         (coverage_counter_ref): Adjust.
9194         (coverage_begin_output): Check no_coverage. Use
9195         current_function_funcdef_no.
9196         (coverage_end_function): Likewise.
9197         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
9198         than clearing flag_inline_functions. Do not clear arc_profile
9199         flag.
9200         * function.c (prepare_function_start): Do not set arc_profile
9201         flag.
9202         * profile.c (instrument_edges): Return number of instrumented
9203         edges. Use a for loop.
9204         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
9205         local to here and simplify. Use profile_arc_flag not arc_profile
9206         flag.
9207         (find_spanning_tree): Reformat.
9208         * toplev.c (rest_of_compilation): Use profile_arc_flags and
9209         flag_test_coverage rather than arc_profile flag.
9210
9211 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
9212
9213         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
9214
9215 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9216
9217         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
9218
9219 2003-05-11  Bruno Haible  <bruno@clisp.org>
9220
9221         * cppfiles.c (find_or_create_entry): Preserve errno.
9222
9223 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
9224
9225         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
9226         cpplib as it's a Standard Predefined Macro.
9227         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
9228         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
9229         __STDC_HOSTED__ appropriately.
9230         * cpplib.h (_cpp_init_builtins): Update.
9231         * fix-header.c (read_scan_file): Update.
9232         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
9233
9234 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9235
9236         PR C++/689
9237         PR C++/9257
9238         * c-opts.c (c_common_decode_option): Don't set
9239         warn_ctor_dtor_privacy wen -Wall.
9240         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
9241
9242 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
9243
9244         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
9245         patch.
9246
9247 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
9248
9249         * diagnostic.c: Reorder functions for clarity, putting all the
9250         functions in the "error" family next to each other, and
9251         likewise all the functions in the "error_with_decl" family.
9252         Some other routines were moved too.  Add comments.
9253         (vbuild_message_string): Fold into sole caller.
9254
9255
9256 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
9257
9258         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
9259         (EH_RETURN_HANDLER_RTX): Likewise.
9260         (expand_builtin_eh_return): Do not copy stack adjustment
9261         if EH_RETURN_STACKADJ_RTX is not defined.
9262         (expand_eh_return): Likewise.  Also, do not pass stack
9263         adjustment as argument to the eh_return pattern.
9264         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
9265         because EH_RETURN_STACKADJ_RTX is not defined.
9266         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
9267         is not defined, treat stack pointer like a regular register.
9268         (uw_init_context_1): Set up fake initial stack pointer register.
9269         (uw_install_context_1): Do not compute stack adjustment if
9270         EH_RETURN_STACKADJ_RTX is not defined.
9271
9272         * config/i386/i386.md ("eh_return"): Remove first argument.
9273         * config/mips/mips.md ("eh_return"): Likewise.
9274         * config/rs6000/rs6000.md ("eh_return"): Likewise.
9275         * config/sh/sh.md ("eh_return"): Likewise.
9276
9277         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
9278
9279 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
9280
9281         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
9282
9283 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
9284
9285         * defaults.h (GCOV_TYPE_SIZE): Remove.
9286         * gcov-io.h (gcov_type): Set to specific mode int on target.
9287         (gcov_unsigned_t, gcov_position_t): New.
9288         (GCOV_TYPE_NODE): New.
9289         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
9290         (GCOV_COUNTERS_SUMMABLE): New.
9291         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
9292         gcov_ctr_info, gcov_info): Adjust types.
9293         (gcov_var): Adjust types.
9294         (gcov_write_unsigned, gcov_write_tag,
9295         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
9296         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
9297         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
9298         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
9299         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
9300         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
9301         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
9302         __gcov_init, __gcov_merge_add): Adjust gcov types.
9303         * coverage.c (ctr_merge_functions): Constify.
9304         (ctr_names): New.
9305         (read_counts_file): Adjust gcov types. Only summarize & merge
9306         summable counters.
9307         (coverage_counter_ref): Use GCOV_TYPE_NODE.
9308         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9309         build_ctr_info_value, build_gcov_info): Adjust types.
9310         * profile.c (branch_prob): Adjust gcov types.
9311         * gcov_dump (dump_file): Adjust gcov types.
9312
9313 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
9314
9315         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
9316         constants.
9317         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
9318         * arm.c (arm_select_dominance_cc_mode): Renamed from
9319         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
9320         Callers updated.
9321         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
9322
9323 2003-05-09  Roger Sayle  <roger@eyesopen.com>
9324
9325         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
9326         as unsigned to avoid signed/unsigned comparison warnings.
9327
9328 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
9329
9330         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
9331         instruction if the Xtensa density option is enabled.
9332
9333 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
9334
9335        * mklibgcc.in: Remove extra quotes.
9336
9337 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
9338
9339         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
9340         of int_ftype_void.
9341
9342 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
9343
9344         * reload1.c (reload_cse_move2add): Don't turn an implicit
9345         truncation into a self-set in the narrow mode.
9346
9347 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
9348
9349         * arm.md (clzsi2): The CLZ instruction is predicable.
9350
9351 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
9352
9353         * config/xtensa/xtensa.c: Formatting.
9354
9355 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
9356
9357         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
9358         instead of TREE_OPERAND to access the operand of a
9359         CONSTRUCTOR node.
9360
9361 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
9362
9363         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
9364         one operand.
9365
9366 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
9367
9368         * toplev.h (warning_with_file_and_line): Don't declare.
9369         (error_with_file_and_line): Likewise.
9370         * diagnostic.c (error_with_file_and_line): Remove.
9371         (warning_with_file_and_line): Likewise.
9372
9373 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
9374
9375         * c-parse.in (if_stmt_locus): New object.
9376         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
9377         (select_or_iter_stmt rule): Likewise.
9378         (if_stmt_file): Remove.
9379         (if_stmt_line): Likewise.
9380         * jump.c: include "diagnostic.h"
9381         (never_reached_warning): Don't use warning_with_file_and_line.
9382         * Makefile.in (jump.o): Add dependce on diagnostic.h
9383
9384 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
9385
9386         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
9387         Move code handling pieces not larger than a word to..
9388         * function.c (assign_parms): ..here, but use change_address instead
9389         of adjust_address and operand_subword, and expand_binop instead of
9390         expand_shift.  Adjust calls to move_block_from_reg.
9391         * expr.h (move_block_from_reg): Update declaration.
9392         (copy_blkmode_from_reg): Formatting.
9393         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
9394         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
9395         move_block_from_reg calls.
9396         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
9397         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
9398         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9399         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
9400         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
9401         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
9402         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
9403         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
9404         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
9405
9406 2003-05-08  DJ Delorie  <dj@redhat.com>
9407
9408         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
9409         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
9410         variable-sized types).
9411         (xstormy16_function_arg): New.  Pass them that way too.
9412         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
9413         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
9414
9415 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
9416
9417         * mklibgcc.in: Use mkinstalldirs when installing multilib
9418         directories.
9419
9420 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
9421
9422         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
9423         instead of CODE_FOR_jump
9424
9425 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
9426
9427         * objc/objc-act.c (error_with_ivar): Don't use
9428         error_with_file_and_line.
9429         (warn_with_method): Don't use warning_with_file_and_line.
9430
9431 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9432
9433         * stmt.c (emit_locus): New macro.
9434         (emit_filename): Remove.
9435         (emit_lineno): Likewise.
9436         (struct stmt_status): Replace members x_emit_filename and
9437         x_emit_lineno with x_emit_locus.
9438         (set_file_and_line_for_stmt): Adjust.
9439         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
9440         (warn_if_unused_value): Likewise.
9441         (check_seenlabel): Likewise.
9442
9443 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9444
9445         * c-decl.c (define_label): Tidy.  Don't use any of
9446         error_with_file_and_line or warning_with_file_and_file.
9447         (pending_xref_error): Likewise.
9448         (store_parm_decls): Likewise.
9449         (current_function_prototype_locus): New object.  Package from
9450         current_function_prototype_file and current_function_prototype_line.
9451         (start_function): Use it.
9452         (current_function_prototype_file): Remove.
9453         (current_function_prototype_line): Remove;
9454
9455 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9456
9457         * builtins.c (readonly_data_expr): New function.
9458         (expand_builtin_memmove): Optimize any rodata source, not just
9459         strings.
9460
9461 2003-05-07  David Mosberger <davidm@hpl.hp.com>
9462
9463         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
9464
9465 2003-05-07  Richard Henderson  <rth@redhat.com>
9466
9467         * config/i386/i386.c (ix86_split_long_move): Fix base register
9468         mode for XFmode splits for TARGET_64BIT.
9469
9470 2003-05-07  Richard Henderson  <rth@redhat.com>
9471
9472         * sched-ebb.c (schedule_ebb): Supply the correct starting
9473         block number to save_line_notes.
9474
9475 2003-05-07  Richard Henderson  <rth@redhat.com>
9476
9477         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
9478         (dump_file): Likewise.
9479
9480 2003-05-07  David Mosberger <davidm@hpl.hp.com>
9481
9482         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
9483         forget to preserve gp.
9484         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
9485
9486         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
9487         .prologue directive.
9488         Use .skip instead of data8 for .bss section to make Intel
9489         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
9490         explicit in the .mib bundles and remove the unnecessary stop
9491         bits.  Replace local labels with normal labels, to make ias
9492         happy.  Don't register __do_global_ctors_aux here, do it in
9493         crtend.asm instead.
9494
9495         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
9496         __do_global_ctors_aux in .init_array section instead of
9497         declaring it as a hidden global.  Replace local labels with
9498         ordinary labels to make ias happy.
9499
9500 2003-05-07  Richard Henderson  <rth@redhat.com>
9501
9502         PR c++/10570
9503         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
9504         * flags.h, toplev.c, doc/invoke.texi: Likewise.
9505
9506         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
9507         * unwind.inc (_Unwind_DeleteException): Check for null
9508         exception_cleanup.
9509
9510         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
9511         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
9512         * unwind.h: Declare them.
9513         * libgcc-std.ver (GCC_3.3): Export them.
9514
9515 2003-05-07  Richard Henderson  <rth@redhat.com>
9516
9517         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
9518         not _Unwind_Word.
9519
9520 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
9521
9522         * stmt.c (force_label_rtx): New function, based on logic
9523         formerly found in expand_expr.
9524         * expr.h: Prototype it.
9525         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
9526         appropriate.
9527         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
9528
9529         * print-tree.c (debug_tree): Free the table after we're done
9530         with it.  Use putc.
9531
9532 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
9533
9534         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
9535         Unreverse arguments for __ev_subw.
9536
9537         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
9538
9539 2003-05-07  Nick Clifton  <nickc@redhat.com>
9540
9541         * config/stormy16/stormy-abi: Update to include
9542         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
9543         R_XSTORMY16_12 relocs.
9544
9545 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
9546
9547         * function.c (assign_parms): Correct reversed reg_parm_stack_space
9548         test.  Add partial in-regs size to stack_args_size.
9549
9550 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9551
9552         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
9553         as a C only option.
9554
9555 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
9556
9557         * gcov-io.h (GCOV_LOCKED): New #define.
9558         (GCOV_LINKAGE): Make sure it is #defined.
9559         (gcov_write_string, gcov_write_tag, gcov_write_length,
9560         gcov_read_string, gcov_time): Poison in libgcov.
9561         (gcov_seek_end): Remove.
9562         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
9563         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9564         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9565         GCOV_TAG_SUMMARY_LENGTH): New #defines.
9566         (gcov_write_tag, gcov_write_length): Not in libgcov.
9567         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
9568         (gcov_write_tag, gcov_write_length): Not in libgcov.
9569         (gcov_write_tag_length): New.
9570         (gcov_write_summary): Use gcov_write_tag_length.
9571         * libgcov.c: Always #include gcov-io.h.
9572         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
9573         (GCOV_LINKAGE): Define to nothing for L_gcov.
9574         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
9575         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
9576         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
9577         (read_count_file): Likewise.
9578         * gcov-dump.c (dump_file): Likewise.
9579         * coverag.c (read_counts_file): Likewise.
9580
9581 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
9582
9583         PR other/10658
9584         * gcc.c (process_command): Update copyright date.
9585
9586 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
9587
9588         * doc/install.texi (mips-*-*):  Add note about libstdc++.
9589
9590 2003-05-06  DJ Delorie  <dj@redhat.com>
9591
9592         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
9593         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
9594         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
9595
9596 2003-05-06    <neil@cat.daikokuya.co.uk>
9597
9598         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
9599         and -Wstrict-prototypes if C++.
9600
9601 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
9602
9603         * config/rs6000/linuxspe.h: New file.
9604
9605         * config.gcc: Add powerpc-*-linux-gnuspe* target.
9606
9607 2003-05-06  Richard Henderson  <rth@redhat.com>
9608
9609         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
9610         previous frame didn't save sp.  Clear sp for next frame.
9611         (uw_install_context_1): Honor saved sp from frame.
9612
9613 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
9614
9615         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
9616         (mips_move_1word, mips_move_2words): Remove declaration.
9617         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
9618         (mips_restore_gp): Remove insn argument.
9619         * config/mips/mips.h (FP_REG_RTX_P): New macro.
9620         * config/mips/mips.c (volatile_buffer): Remove.
9621         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
9622         (mips_move_1word, mips_move_2words): Remove, replacing with...
9623         (mips_output_move): ...this new function.
9624         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
9625         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
9626         handling of floating-point constants.  Handle zero CONST_DOUBLE
9627         arguments.
9628         (mips_annotate_frame_insn): Replace with...
9629         (mips_set_frame_expr): ...this, which just takes one argument.
9630         (mips_frame_set): Change the register argument to an rtx.
9631         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
9632         check whether moves should be split.  Use mips_split_64bit_move
9633         to split them.  Use mips_subword to generate the high and low
9634         parts of a paired FPR.  Adjust calls to frame_set and
9635         mips_set_frame_expr.
9636         (mips_expand_prologue): Simplify due to above changes.
9637         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
9638         targets, replacing xisting register-only versions.
9639         (UNSPEC_STORE_DF_HIGH): New unspec.
9640         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
9641         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
9642         (*paradoxical_extendhidi2): Remove.
9643         (movdi_internal, movdi_internal2): Use mips_output_move.
9644         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
9645         (movsf_internal1, movsf_internal2): Likewise.
9646         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
9647         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
9648         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
9649         Add m <- G alternative.
9650         (load_df_low, load_df_high, store_df_low): New patterns.
9651         (movhi_internal): Use @ template instead of calling a function.
9652         Remove unnecessary 'z' alternatives.
9653         (movqi_internal): Likewise.
9654         (exception_receiver): Update call to mips_restore_gp.
9655
9656 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
9657
9658         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
9659         (mips_delegitimize_address): Declare.
9660         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
9661         (FIND_BASE_TERM): Define.
9662         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Defi~e.
9663         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
9664         Handle small-data addresses.
9665
9666 2003-05-05  Roger Sayle  <roger@eyesopen.com>
9667
9668         * real.c (real_powi): New function to calculate the value of
9669         a real raised to an integer power, i.e. pow(x,n) for int n.
9670         (real_sqrt): Convert to using the faster do_add, do_multiply
9671         and do_divide API for consistency with the rest of real.c.
9672         * real.h (real_powi): Prototype here.
9673         * builtins.c (fold_builtin):  Avoid local variable mode when
9674         evaluating sqrt at compile time.  Attempt to evaluate pow at
9675         compile-time, by checking for an integral exponent.
9676
9677 2003-05-05  Richard Henderson  <rth@redhat.com>
9678
9679         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
9680
9681 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
9682
9683         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
9684         other FreeBSD ports.
9685         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
9686         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
9687
9688 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
9689
9690         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
9691         expanded variables.
9692         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
9693
9694 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
9695
9696         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
9697         * varasm.c (struct varasm_status): Add deferred_constants field.
9698         (n_deferred_strings): Delete variable.
9699         (n_deferred_constants): New #define.
9700         (struct constant_descriptor_tree): Kill next and label fields.
9701         (const_hash_table, MAX_HASH_TABLE): Delete.
9702         (const_desc_htab): New static variable.
9703         (const_hash): Rename const_desc_hash, and make it fit the
9704         hashtab.h interface.
9705         (const_desc_eq): New.
9706         (const_hash_1, compare_constant): Const-ify arguments.
9707         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
9708         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
9709         (output_constant_def): Do the lookup/insert using the
9710         hashtab.h interface.  Don't muck with n_deferred_constants or
9711         DEFERRED_CONSTANT_P here.
9712         Always call maybe_output_constant_def_contents.
9713         (maybe_output_constant_def_contents): Take a pointer to the
9714         descriptor, not the EXP and RTL separately.  Return
9715         immediately if this constant is not deferred.  Defer output of
9716         everything, except writable string constants.  Update
9717         n_deferred_constants here.
9718         (output_constant_def_contents): Now takes just one argument,
9719         an rtx.  Clear DEFERRED_CONSTANT_P here.
9720         (mark_constant_pool): Update for rename of n_deferred_strings.
9721         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
9722
9723         (init_varasm_status): Clear p->deferred_constants.
9724         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
9725
9726 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9727
9728         * builtins.c (expand_builtin_stpcpy): Only expand when the length
9729         of the source string can be evaluated at compile-time.
9730
9731 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9732
9733         * testsuite/gcc.c-torture/compile/simd-6.c: New.
9734
9735         * c-typeck.c (digest_init): Handle arrays of vector constants.
9736
9737 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
9738
9739         * builtins.c (expand_builtin_mempcpy): New function.
9740         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
9741         ignored into strcpy no matter what arguments it has.
9742         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
9743         expand_builtin_mempcpy.
9744
9745 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9746
9747         * testsuite/gcc.dg/20030505.c: New.
9748
9749         * c-typeck.c (convert_for_assignment): Opaque pointers can
9750         interconvert.
9751
9752         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
9753         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
9754         (spe_init_builtins): Rename all pv2si_type_node to
9755         opaque_p_V2SI_type_node.
9756         Remove declaration of pv2si_type_node.
9757         (is_ev64_opaque_type): Accept opaque pointers.
9758
9759 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
9760
9761         * config/rs6000/rs6000.c (validate_condition_mode): Use
9762         flag_finite_math_only.
9763         (rs6000_reverse_condition): Never return UNKNOWN; use
9764         flag_finite_math_only.
9765         (rs6000_generate_compare): Use flag_finite_math_only.
9766         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
9767         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
9768         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
9769
9770         * toplev.c (check_global_declarations): Suppress not-used warning
9771         for volatile variables.
9772
9773 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
9774
9775         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
9776         usage of bitfield instructions for mode1 != BLKmode, only ignoring
9777         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
9778         (store_field): Likewise.
9779
9780 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9781
9782         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
9783         evsubifw to builtins accepting 5-bit unsigned constants.
9784         (easy_vector_constant): Return if V1DImode.  Fix typo.
9785
9786 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9787
9788         * config/rs6000/spe.h: Revert licensing change from last patch.
9789
9790 2003-05-05  DJ Delorie  <dj@redhat.com>
9791
9792         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
9793         before reload, but defer the split until after.
9794         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
9795         to match.
9796
9797 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
9798
9799         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
9800         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
9801
9802 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9803
9804         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
9805         is defined.
9806
9807 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9808
9809         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
9810         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
9811         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
9812
9813         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
9814         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
9815         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
9816         New.
9817
9818         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
9819         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
9820
9821         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
9822         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
9823         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
9824         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
9825         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
9826         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
9827         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
9828         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
9829         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
9830         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
9831         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
9832         BUILT_IN_STRDUP): Add "nonnull" attribute.
9833
9834 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9835
9836         * expr.c (store_field): Don't clobber TEMP in shift: it might be
9837         a variable.
9838         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
9839         whose purpose is to step up the alignment.
9840         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
9841
9842         * stor-layout.c (compute_record_mode): Relax restriction
9843         on fields crossing word boundaries forcing BLKmode.
9844
9845 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
9846
9847         * cppinit.c (cpp_create_reader, post_options): Warn about
9848         trigraphs unless explicity set or -trigraphs.
9849         * cpplex.c (warn_in_comment): New.
9850         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
9851         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
9852         * doc/cppopts.texi, doc/cpp.texi: Update.
9853
9854 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9855
9856         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
9857         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
9858         namespace clash.
9859         (GCOV_MERGE_FUNCTIONS): New.
9860         (gcov_merge_fn): Declare.
9861         (struct gcov_ctr_info): New field "merge".
9862         (__gcov_merge_add): Declare.
9863         * coverage.c (ctr_merge_functions): New.
9864         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
9865         of gcov_ctr_info type.
9866         * libgcov.c (__gcov_merge_add): New.
9867         (gcov_exit): Call a hook to merge values of counters.
9868
9869 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
9870
9871         * toplev.h (pedwarn_with_file_and_line): Don't declare.
9872         * diagnostic.c (pedwarn_with_file_and_line): Remove.
9873
9874 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9875
9876         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
9877
9878 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9879
9880         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
9881         expand_builtin_frame_address): Update prototypes.
9882         (expand_builtin_constant_p, expand_builtin_strlen,
9883         expand_builtin_strcpy, expand_builtin_memset,
9884         expand_builtin_bzero, expand_builtin_args_info,
9885         expand_builtin_frame_address): Pass in just the argument(s)
9886         needed, not the entire expression `exp'.
9887         (expand_builtin): Update all calls to these functions.
9888
9889 2003-05-03  Richard Henderson  <rth@redhat.com>
9890
9891         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
9892         <BUILT_IN_DWARF_SP_COLUMN>: New.
9893         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
9894         (BUILT_IN_DWARF_SP_COLUMN): New.
9895         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
9896         (expand_builtin_dwarf_sp_column): New.
9897         * except.h: Update to match.
9898         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
9899         (execute_cfa_program): Record location expression address
9900         before extracting length.
9901         (uw_update_context_1): Install old CFA into stack pointer column.
9902         (uw_init_context_1): Set cfa_reg to stack pointer column.
9903
9904 2003-05-03  Richard Henderson  <rth@redhat.com>
9905
9906         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
9907         return bool.
9908         (toc_relative_expr_p): Likewise.
9909         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
9910         (legitimate_constant_pool_address_p): Move from rs6000.h, change
9911         into a function, downcase all users.
9912         (legitimate_small_data_p): Likewise.
9913         (legitimate_offset_address_p): Likewise.
9914         (legitimate_indexed_address_p): Likewise.
9915         (legitimate_indirect_address_p): Likewise.
9916         (legitimate_lo_sum_address_p): Likewise.
9917         (rs6000_mode_dependent_address): Likewise.
9918         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
9919         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
9920         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
9921         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
9922         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
9923         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
9924         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
9925         * config/rs6000/rs6000-protos.h: Update.
9926
9927 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
9928
9929         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
9930         (REVERSE_CONDITION): Define.
9931
9932         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
9933         to branch_positive_comparison_operator.
9934         (ccr_bit): Check that sCOND conditions are actually a positive bit.
9935         (print_operand): Remove %D substitution.
9936         (rs6000_emit_sCOND): Generate complement operation to ensure that
9937         sCOND input is a positive bit.
9938         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
9939         same order as bCOND, and add the missing ones.  Remove the %D
9940         substitutions from the scc patterns.
9941
9942         * simplify-rtx.c (simplify_relational_operation): Add case for
9943         ! (fabs(x) < 0.0).
9944
9945 2003-05-03  Bruce Korb  <bkorb@gnu.org>
9946
9947         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
9948         in fixincl.x
9949         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
9950
9951 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
9952
9953         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
9954
9955 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
9956
9957         PR c/10604
9958         * c-common.c (warn_sign_compare): Initialize to -1.
9959         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
9960         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
9961         for C++ only.
9962         (c_common_post_options): Set warn_sign_compare from extra_warnings
9963         if it's still -1 at this point.
9964
9965         * toplev.c (maybe_warn_unused_parameter): New static variable.
9966         (set_Wextra): New static function.
9967         (W_options): Remove "extra".
9968         (decode_W_option): Call set_Wextra.
9969         (independent_decode_option): Likewise.
9970         (set_Wunused): Cooperate with set_Wextra in setting
9971         warn_unused_parameter.
9972         (rest_of_compilation): No need to check extra_warnings as
9973         well as warn_uninitialized.
9974
9975         * c-typeck.c (build_binary_op, build_conditional_expr):
9976         No need to check extra_warnings as well as warn_sign_compare.
9977         (internal_build_compound_expr): No need to check extra_warnings
9978         as well as warn_unused_value.
9979         * function.c (expand_function_end): No need to check extra_warnings
9980         as well as warn_unused_parameter.
9981         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
9982         as well as warn_unused_value.
9983
9984         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
9985
9986         * Makefile.in: Disable -Werror for gengtype-lex.o.
9987
9988 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
9989
9990         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
9991         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
9992         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
9993         * calls.c (emit_call_1): Likewise.
9994         (expand_call): For calls initializing constant memory, replace
9995         emission of standalone mem /u clobber with function usage entry.
9996         * expr.c (emit_block_move_via_libcall): Likewise.
9997         * cse.c (count_reg_usage, case EXPR_LIST): New case.
9998         * flow.c (propagate_one_insn): Pass entire operand of
9999         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
10000         * integrate.c (try_constants): For CALL_INSNs, substitute constants
10001         within the FUNCTION_USAGE also.
10002         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
10003         FUNCTION_USAGE lists.
10004         * reload1.c (replace_pseudos_in): Renamed.
10005         (reload): Use it for clobbers surviving until the end of the reload.
10006
10007 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10008
10009         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
10010         gen_lowpart on non-integer modes.
10011
10012         * stor-layout.c (place_field): When adjusting offset_align, use
10013         desired_align, not DECL_ALIGN.
10014
10015 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
10016
10017         * c-decl.c (pending_invalid_xref_file): Remove.
10018         (pending_invalid_xref_line): Remove.
10019         (pending_invalid_xref_location): New.
10020         (lookup_label): Use location_t and input_location directly.
10021         (lookup_tag): Likewise.
10022         (pending_xref_error): Likewise.
10023         (c_expand_body_1): Likewise.
10024         * c-common.c (x_expand_start_cond): Likewise.
10025         * c-semantics.c (genrtl_for_stmt): Likewise.
10026         (find_reachable_label): Likewise.
10027         * expr.c (expand_expr): Likewise.
10028         * integrate.c (output_inline_function): Likewise.
10029         * tree-inline.c (find_alloca_call): Likewise.
10030         (find_builtin_longjmp_call): Likewise.
10031         * gcc.c (input_filename): Make static.
10032
10033 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
10034
10035         * config/mips/mips.md: Fix comment typo.
10036
10037         * config/mips/mips.c (mips_integer_op): New structure.
10038         (MIPS_MAX_INTEGER_OPS): Define.
10039         (mips_const_insns): Use mips_build_integer to determine the number
10040         of instructions needed to load a CONST_INT.
10041         (move_operand): Reject compound CONST_INTs.
10042         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
10043         (mips_move_integer): New fn.
10044         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
10045         (mips_legitimize_move): Only legitimize constants when moving
10046         word or subword values.
10047
10048 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
10049
10050         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
10051
10052 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10053
10054         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
10055         modifying it.
10056
10057 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
10058             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10059
10060         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
10061         Hernandez, and Kazu Hirata.  Update Richard Henderson.
10062
10063 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
10064
10065         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
10066         to tentative declaration.
10067
10068         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
10069         (SYMBOL_FLAG_SMALL_V4): Delete.
10070         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
10071         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
10072         (rs6000_elf_in_small_data_p): Add extra section names.  Add
10073         comment about TREE_PUBLIC test.
10074
10075         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
10076         expand_stmt on result of expand_unreachable_stmt.
10077
10078 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10079
10080         * doc/contrib.texi (Contributors): Add Daniel Berlin.
10081
10082 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
10083
10084         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
10085         number of automata.
10086
10087         * config/rs6000/rs6000.c (symbol_ref_operand): Check
10088         SYMBOL_REF_FUNCTION_P on AIX.
10089         (current_file_function_operand): Same.
10090         * config/rs6000/rs6000.md (call,call_value): Force non-function
10091         symbol_ref into register on AIX.
10092
10093 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
10094
10095         * calls.c (struct arg_data): Move offset, slot_offset, size and
10096         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
10097         (initialize_argument_information): Adjust call to locate_and_pad_parm.
10098         Delete alignment_pad var.  Don't calculate slot_offset here.
10099         (emit_library_call_value_1): Delete alignment_pad, offset and size
10100         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
10101         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
10102         partial in-regs here.  Formatting fixes.
10103         * expr.h (struct locate_and_pad_arg_data): New struct.
10104         (locate_and_pad_parm): Adjust declaration.
10105         * function.c (assign_parms): Localize vars.  Use "locate" instead of
10106         other arg location vars.  Don't invoke FUNCTION_ARG or
10107         FUNCTION_INCOMING_ARG unless pretend_named is different from
10108         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
10109         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
10110         Use slot_offset for stack home of reg parms.  Correct test for
10111         parm passed in memory.  Formatting fixes.
10112         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
10113         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
10114         Correct initial_offset_ptr handling.  Localize vars.  Always pad
10115         locate->offset even when in_regs.
10116
10117 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10118
10119         * Makefile.in (TREE_H): Replace location.h with input.h.
10120         (GTFILES) Remove location.h
10121         (gt-lists.h): Replace gt-location.h with gt-input.h
10122         * input.h (input_filename, input_line): Remove variables.
10123         (location_s, location_t): Move from location.h.
10124         (input_location): New.
10125         (input_filename, input_line): New #defines.
10126         * location.h: Remove.
10127         * tree.h: Replace location.h with input.h.
10128         (input_filename, input_line): Remove.
10129         * diagnostic.h: Replace location.h with input.h.
10130         * gcc.h (input_filename, input_filename_length): Remove declarations.
10131         * toplev.c (input_filename, input_line): Remove.
10132         (input_location): Define.
10133         (push_srcloc, pop_srcloc): Adjust.
10134         * diagnostic.c (diagnostic_report_current_module): Adjust.
10135
10136 2003-05-02  Nick Clifton  <nickc@redhat.com>
10137
10138         * configure.in: Add xstormy16 to list of targets that has a nop
10139         instruction and hence which can be tested to see if the
10140         assembler supports the --gdwarf2 switch.
10141         * configure: Regenerate.
10142
10143 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10144
10145         PR target/8257
10146         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
10147         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
10148         Avoid undefined shifts by making the shift operand unsigned.
10149
10150 2003-05-01  DJ Delorie  <dj@redhat.com>
10151
10152         * reload.c (find_reloads): Also check that all of a multi-reg
10153         value is in the class.
10154
10155 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
10156
10157         * scan.h (lineno): Revert the rename here.
10158
10159 2003-05-01  Stan Shebs  <shebs@apple.com>
10160
10161         * config/darwin.c (darwin_encode_section_info): Call
10162         default_encode_section_info.
10163
10164 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
10165
10166         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
10167         (movsi_internal1): Use new mfjmpr attribute.
10168         (movhi_internal): Same.
10169         (movqi_internal): Same.
10170         (movcc_internal1): Same.
10171         (movdi_internal64): Same.
10172         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
10173         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
10174         * config/rs6000/40x.md: Add fpu_405.
10175         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
10176         into power4misc automata.  Remove extraneous parentheses.
10177         * config/rs6000/440.md: New file.
10178         * config/rs6000/rs6000.c (processor_target_table): Add 440,
10179         440fp.  Rename 405f to 405fp.
10180         (function_arg_padding): Correct formatting.
10181         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
10182
10183 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
10184
10185         * input.h (lineno): Rename to ...
10186         (input_line): ... here.
10187         * tree.h (lineno): Rename to ...
10188         (input_line): ... here.
10189         * scan.h (lineno): Rename to ...
10190         (input_line): ... here.
10191         * toplev.c (lineno): Rename to ...
10192         (input_line): ... here.
10193         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
10194         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
10195         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
10196         store_parm_decls, c_expand_body_1): Likewise.
10197         * c-errors.c (pedwarn_c99): Likewise.
10198         * c-format.c (status_warning): Likewise.
10199         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
10200         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
10201         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
10202         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
10203         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
10204         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
10205         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
10206         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
10207         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
10208         * coverage.c (create_coverage): Likewise.
10209         * diagnostic.c (pedwarn, sorry, error, fatal_error,
10210         internal_error, warning, diagnostic_report_current_module,
10211         inform): Likewise.
10212         * expr.c (expand_expr): Likewise.
10213         * integrate.c (expand_inline_function,
10214         output_inline_function): Likewise.
10215         * rtl-error.c (file_and_line_for_asm): Likewise.
10216         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
10217         walk_tree): Likewise.
10218         * tree.c (make_node): Likewise.
10219         * ada, cp, f, java, objc, treelang: Likewise.
10220         * objc/objc-act.c (objc_init): Rename lineno to input_line.
10221         (build_module_descriptor, build_selector_translation_table,
10222         build_protocol_template, build_method_prototype_list_template,
10223         build_category_template, build_selector_table,
10224         build_class_template, build_super_template, build_ivar_template,
10225         build_ivar_list_template, build_method_list_template,
10226         build_method_template, add_instance_variable): Likewise.
10227
10228         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
10229         name from input_filename.
10230
10231 2003-04-30  Eric Christopher  <echristo@redhat.com>
10232             Richard Sandiford <rsandifo@redhat.com>
10233
10234         * configure: Regenerate from patches below.
10235         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
10236         for all symbolic operands.
10237         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
10238         to function.
10239         * config/mips/linux.h: Fix typo.
10240         * Merge from mips-3_4-rewrite branch:
10241
10242         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
10243
10244                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
10245                 handling local labels when TARGET_ABICALLS.
10246
10247         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
10248
10249                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
10250                 integer argument.
10251                 (mips_expand_call): Likewise.
10252                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
10253                 (FIXED_REGISTERS): Clear $31 entry.
10254                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
10255                 (EPILOGUE_USES): Define.
10256                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
10257                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
10258                 (override_options): Add a 'j' register class.
10259                 (mips_expand_call): Handle sibcalls
10260                 (mips_expand_epilogue): Handle epilogues for sibcalls.
10261                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
10262                 (sibcall_epilogue): New pattern.
10263                 (call, call_value): Adjust calls to mips_expand_call.
10264                 (sibcall, sibcall_value): New expanders.
10265                 (sibcall_internal, sibcall_value_internal): New patterns.
10266                 (sibcall_value_multiple_internal): New pattern.
10267
10268         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
10269
10270                 * config/mips/mips.md (extended_mips16): New attribute.
10271                 (define_attr length): Default to 8 if extended_mips16 == yes.
10272                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
10273                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
10274                 (call_internal): Set extended_mips16 to yes for direct jumps.
10275                 Remove redundant mode attribute.
10276                 (call_value_internal, call_value_multiple_internal): Likewise.
10277                 (call_split): Remove redundant mode attribute.
10278                 (call_value_split, call_value_multiple_split): Likewise.
10279
10280                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
10281                 of unaligned offsets.
10282
10283                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
10284                 of SYMBOL_GENERAL.
10285
10286         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
10287
10288                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
10289                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
10290                 for mips16 code.
10291
10292         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
10293
10294                 * config/mips/mips.h (ADDRESS_COST): Define.
10295
10296         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
10297
10298                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
10299                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
10300                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
10301
10302         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
10303
10304                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
10305                 of a two-instruction sequence.  Add register->memory alternative.
10306                 (truncdihi2, truncdiqi2): Likewise.
10307                 Rework shift/truncate instructions so that they only handle right
10308                 shifts of 32 (or more, in the case of arithmetic shifts).
10309                 Add patterns for truncate/sign-extend.
10310
10311         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10312
10313                 * configure.in (mips*-*-*): Check for explicit relocation support.
10314                 * configure: Regenerate.
10315
10316         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10317
10318                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
10319                 and -mno-explicit-relocs.
10320                 (MASK_EXPLICIT_RELOCS): Define.
10321                 (TARGET_EXPLICIT_RELOCS): Use it.
10322                 (mips_split_addresses): Remove declaration.
10323                 * config/mips/mips.c (override_options): Update comment for
10324                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
10325
10326         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10327
10328                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
10329                 a CONST as identity.  Check the return value of gen_lowpart_common.
10330
10331         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10332
10333                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
10334                 references for TARGET_EXPLICIT_RELOCS.
10335                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
10336                 !TARGET_MIPS16.
10337
10338         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10339
10340                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
10341                 (addsi3): Remove redundant constraints.
10342                 (addsi3_internal): Use separate register & constant alternatives.
10343                 Use a 'Q' constraint and "addiu" insn for the latter.
10344                 (adddi3_internal_3, addsi3_internal_2): Likewise.
10345
10346         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10347
10348                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
10349                 (mips_expand_unaligned_store): Declare.
10350                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
10351                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
10352                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
10353                 (UNSPEC_ULD, UNSPEC_USD): Remove.
10354                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
10355                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
10356                 (extv, extzv): Use mips_expand_unaligned_load.
10357                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
10358                 predicate for operand 3.
10359                 (movsi_ulw, movsi_usw): Replace with...
10360                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
10361                 (movdi_uld, movdi_usd): Likewise replace with...
10362                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
10363
10364         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
10365
10366                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
10367                 * config/mips/mips.h (LEA_REGS): New register class.
10368                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
10369                 (GR_REG_CLASS_P): Include LEA_REGS.
10370                 (DANGEROUS_FOR_LA25_P): New macro.
10371                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
10372                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
10373                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
10374                 entries to LEA_REGS.
10375                 (mips_global_pic_constant_p): New function.
10376                 (override_options): Add 'e' register constraint.
10377                 (mips_secondary_reload_class): Return LEA_REGS when reloading
10378                 a dangerous constant into a class containing $25.
10379                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
10380                 (movsi_internal): Likewise.
10381
10382         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
10383
10384                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
10385                 * config/mips/mips.md (call_split): New insn.
10386                 (call_value_split, call_value_multiple_split): New insns.
10387                 (call_internal): Turn into a define_insn_and_split.  Split the
10388                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
10389                 (call_value_internal, call_value_multiple_internal): Likewise.
10390
10391         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
10392
10393                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
10394                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
10395                 (mips_encode_section_info): Don't take symbol visibility into
10396                 account if TARGET_ABICALLS.  Add more commentary.
10397                 * config/mips/mips.md: Add commentary above reloc constants.
10398
10399         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
10400
10401                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
10402                 from mips_legitimize_move.  Legitimize constant pool references.
10403                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
10404                 a REG_EQUAL note to the last instruction.
10405
10406         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
10407
10408                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
10409                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
10410                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
10411                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
10412                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
10413                 (UNSPEC_RELOC_GPREL16): Rename to...
10414                 (RELOC_GPREL16): ...this.
10415                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
10416                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
10417                 (macro_calls): New attribute.
10418                 (length): Use it to set the default length of calls.  Don't allow
10419                 calls to have delay slots if macro_calls is "yes".
10420                 (luisi, luidi): New patterns.
10421                 (lowsi, lowdi): Use '%R' to print the relocation.
10422                 (lowdi_extend): Remove.
10423                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
10424                 (call_internal): Merge alternatives.  Always use "jal".
10425                 (call_value_internal, call_value_multiple_internal): Likewise.
10426                 (reloc_gprel16): Remove.
10427                 * config/mips/mips.c (mips_got_alias_set): New variable.
10428                 (mips_classify_constant): Handle the new relocation constants.
10429                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
10430                 (mips_symbolic_address_p): Return false if generating explicit relocs.
10431                 Otherwise allow local PIC symbols to have an offset.
10432                 (mips_splittable_symbol_p): New function.
10433                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
10434                 (mips_const_insns): Always accept HIGH.
10435                 (call_insn_operand): Don't accept global symbols if using explicit
10436                 relocs.
10437                 (move_operand): Don't accept HIGH when generating PIC.
10438                 (mips_reloc, mips_lui_reloc): New functions.
10439                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
10440                 be a valid right-hand-side for a SET pattern.
10441                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
10442                 (mips_emit_high): New function.
10443                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
10444                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
10445                 address should be used.  Use mips_emit_high to generate the
10446                 high part of such an address.  Adjust the global symbol + offset
10447                 case to match the change to mips_force_temprorary.
10448                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
10449                 If generating explicit-reloc PIC, load the address of global
10450                 symbols from the GOT.  Use mips_emit_high to emit the high part
10451                 of an address.
10452                 (mips_simplify_dwarf_addr): New function.
10453                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
10454                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
10455                 (mips_expand_call): Load the addresses of global functions using
10456                 %call* relocs if generating explicit-reloc PIC.  Don't generate
10457                 an exception_receiver pattern.
10458                 (override_options): Initialize mips_got_alias_set.
10459                 (print_relocation): Remove in favor of...
10460                 (mips_reloc_string): ...this new function.
10461                 (print_operand): Handle '%R'.  Use mips_reloc_string.
10462                 (print_operand_address): Use print_operand to print the symbolic
10463                 part of a LO_SUM address.
10464                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
10465                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
10466                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
10467                 for local symbols.
10468
10469         2003-02-02  Eric Christopher  <echristo@redhat.com>
10470
10471                 * config/mips/mips.c (mips_sign_extend): Remove.
10472                 * config/mips/mips-protos.h: Ditto.
10473                 * config/mips/mips.md (movdi_internal2_extend): Remove.
10474                 (extendsidi2): Fix mode of convert_memory_address.
10475
10476         2003-01-24  Eric Christopher  <echristo@redhat.com>
10477
10478                 * config/mips/mips.md: Rewrite zero_extend* and extend*
10479                 patterns. Use explicit instructions and split after reload
10480                 for register extensions.
10481                 (ashlsi3_internal1_extend): New combiner pattern for
10482                 shift and extend combinations.
10483                 * config/mips/mips.h: Change Pmode back to ptr_mode
10484                 for performance enhancement.
10485                 * combine.c (expand_compound_operation): Make sure
10486                 that zero_extend operation is profitable.
10487
10488         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
10489
10490                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
10491                 addresses depend on ptr_mode rather than Pmode.
10492                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
10493                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
10494                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
10495                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
10496                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
10497                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
10498                 (tablejump_internal1): Remove condition.
10499                 (tablejump_internal2): Change condition to TARGET_64BIT.
10500                 (cpaddsi): Rename to...
10501                 (cpadd): ...this.
10502                 (cpadddi): Remove.
10503
10504         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
10505
10506                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
10507                 mips_address_cost, mips_check_split, double_memory_operand,
10508                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
10509                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
10510                 (mips_legitimate_address_p): Return bool.
10511                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
10512                 mips_legitimize_address, mips_legitimize_move,
10513                 mips_expand_call): Declare.
10514                 (mips_return_addr): Move outside #ifdef RTX_CODE.
10515
10516                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
10517                 (PIC_FN_ADDR_REG): New reg_class.
10518                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
10519                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
10520                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
10521                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
10522                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
10523                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
10524                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
10525                 (LEGITIMATE_PIC_OPERAND): Undefine.
10526                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
10527                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
10528                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
10529                 (FUNCTION_MODE): Change to SImode.
10530                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
10531                 most constants.  Treat const_artih_operands specially if they
10532                 occur in a PLUS or MINUS.
10533                 (CONSTANT_POOL_COST): New macro.
10534                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
10535                 Add LO_SUM handling.
10536                 (ADDRESS_COST): Undefine.
10537                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
10538                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
10539                 to call_insn_operand and remove CONST_INT.
10540
10541                 * config/mips/mips.c: Include integrate.h.
10542                 (SINGLE_WORD_MODE_P): New macro.
10543                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
10544                 (mips_constant_info, mips_address_info): New structs.
10545                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
10546                 (mips_classify_constant, mips_classify_symbol,
10547                 mips_valid_base_register_p, mips_symbolic_address_p,
10548                 mips_classify_address, mips_symbol_insns,
10549                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
10550                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
10551                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
10552                 mips_print_relocation): New functions.
10553                 (const_arith_operand): New operand predicate.
10554                 (arith_operand): Use it.
10555                 (mips_const_double_ok, mips16_simple_memory_operand,
10556                 simple_memory_operand, double_memory_operand, mips_check_split,
10557                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
10558                 mips16_gp_offset_p, mips16_output_gp_offset,
10559                 mips16_constant_after_function_p, mips16_constant): Remove.
10560                 (call_insn_operand): Be more fussy about symbolic constants.
10561                 Use register_operand.
10562                 (move_operand): Use mips_symbolic_address_p to check symbolic
10563                 operands and general_operand to check the rest.
10564                 (symbolic_operand): Use mips_classify_constant.
10565                 (mips_legitimate_address_p): Use mips_classify_address.
10566                 (mips_move_1word): Combine handling of symbolic addresses.
10567                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
10568                 (move_move_2words): Likewise.  Assume addresses are offsettable
10569                 if they need to refer to more than one word.  Add HIGH handling.
10570                 (mips_restore_gp): Use ptr_mode for the GP save slot.
10571                 (mips_expand_call): New function, combining the old mips.md
10572                 call and call_internal define_expands.  If the address isn't
10573                 a call_insn_operand, force it into a register.  For SVR4 PIC,
10574                 emit an exception_receiver instruction after the call.
10575                 (override_options): Only override flag_pic for TARGET_ABICALLS
10576                 if it is currently zero.  Allow mips_split_addresses when
10577                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
10578                 Add new register class letter, 'c'.
10579                 (print_operand): Use mips_classify_constant for constant operands.
10580                 (print_operand_address): Use mips_classify_address.
10581                 (mips_output_function_prologue): Don't use .cprestore.
10582                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
10583                 via the frame pointer if current_function_calls_eh_return.
10584                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
10585                 to mark whether a symbol is local or global.
10586                 (build_mips16_call_stub): Expect the address of the function rather
10587                 than a MEM reference to it.  Update call generation sequences.
10588                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
10589                 small-data adjustments.
10590
10591                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
10592                 length for loads and stores.
10593                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
10594                 (define_attr type): Add const and prefetch.
10595                 (define_attr length): Use mips_const_insns for const instructions.
10596                 Use mips_fetch_insns for load and store instructions.
10597                 (define_attr single_insn): New.
10598                 (define_attr can_delay): Use it.
10599                 (define_attr abicalls): Remove.
10600                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
10601                 (addsi3_internal_2): Add 'Q' constraint.
10602                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
10603                 (high): Remove.
10604                 (lowsi): Renamed from low.
10605                 (lowdi): New pattern.
10606                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
10607                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
10608                 (loadgp): Change operand 0 to an immediate_operand.
10609                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
10610                 beforehand.
10611                 (cpaddsi, cpadddi): New patterns.
10612                 (tablejump_internal3, tablejump_internal4): Remove define_expands
10613                 and associated define_splits.
10614                 (call, call_value): Use mips_expand_call.
10615                 (call_internal): New, replacing all existing call_internal* insns.
10616                 (call_value_internal): Likewise call_value_internal*.
10617                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
10618                 (untyped_call): Remove if (operands[0]) magic.
10619                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
10620                 (prefetch_di_address, prefetch_di): Likewise.
10621                 (leasi, leadi): Remove.
10622                 (reloc_gprel16): New.
10623
10624                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
10625                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
10626                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
10627
10628         2003-01-08  Eric Christopher  <echristo@redhat.com>
10629
10630                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
10631                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
10632                 configure check for libgloss.
10633                 * config/mips/elf64.h: Ditto.
10634                 * config/mips/mips.c: Remove ABI_MEABI.
10635                 * config/mips/mips.h: Ditto.
10636
10637         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
10638
10639                 Fix merge fallout.
10640                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
10641                 (muldi3_internal): Remove outdated comment.
10642                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
10643                 (*smsac_di, *umsac_di): Likewise.  Reformat.
10644                 (umulsi3_highpart): Minor formatting tweaks.
10645                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
10646                 redundant scratch operand.  Minor formatting tweak.
10647                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
10648                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
10649                 (smulsi3_highpart): As for the unsigned version.
10650                 (smulsi3_highpart_internal): Likewise.
10651                 (smulsi3_highpart_mulhi_internal): Likewise.
10652                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
10653                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
10654                 (*smul_acc_di): Remove duplicated pattern.
10655                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
10656                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
10657                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
10658
10659         2002-10-22  Eric Christopher  <echristo@redhat.com>
10660
10661                 * config/mips/mips-protos.h (mips_return_addr): New.
10662                 * config/mips/mips.c (mips_return_addr): New.
10663                 (movdi_operand): Remove.
10664                 (se_register_operand): Ditto.
10665                 (se_reg_or_0_operand): Ditto.
10666                 (se_uns_arith_operand): Ditto.
10667                 (se_arith_operand): Ditto.
10668                 (se_nonmemory_operand): Ditto.
10669                 (extend_operator): Ditto.
10670                 (highpart_shift_operator): Ditto.
10671                 (mips_initial_elimination_offset): Remove return address pointer
10672                 elimination.
10673                 (mips_reg_names): Remove $ra.
10674                 (mips_regno_to_class): Ditto.
10675                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
10676                 and TARGET_64BIT.
10677                 (POINTER_BOUNDARY): Remove.
10678                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
10679                 (PROMOTE_MODE): Promote to Pmode.
10680                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
10681                 (Pmode): Define to TARGET_64BIT.
10682                 (FUNCTION_MODE): Define as Pmode.
10683                 (mips_args): Remove deleted functions.
10684                 (SIZE_TYPE): Depend on POINTER_SIZE.
10685                 (PTRDIFF_TYPE): Ditto.
10686                 (FIXED_REGISTERS): Fix extra registers.
10687                 (CALL_USED_REGISTERS): Ditto.
10688                 (CALL_REALLY_USED_REGISTERS): Ditto.
10689                 (RAP_REG_NUM): Remove.
10690                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
10691                 (RETURN_ADDR_RTX): Define to mips_return_addr.
10692                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10693                 (CAN_ELIMINATE): Ditto.
10694                 * config/mips/mips.md: For DImode patterns, take into account
10695                 deletions above. Split mulsidi patterns into sign_extend and
10696                 zero_extend.
10697
10698         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
10699                     Michael Meissner  <meissner@redhat.com>
10700
10701                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
10702                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
10703                 mop up unnecessarly moves through LO.
10704                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
10705                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
10706                 change mtlo/macc sequences into mul/add sequences when a three-
10707                 address mul is available.
10708                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
10709                 (*mul_sub_si): Fix contraint for operand 5.
10710                 (*muls): Use in 32-bit code as well.
10711                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
10712                 if the destination is LO.  Remove duplicate define_split.
10713                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
10714                 (*msac_di): Likewise.  Fix formatting.
10715                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
10716                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
10717                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
10718                 (*xmulsi3_neg_highpart_mulhi): Likewise.
10719                 (*mul_acc_64bit_di): Remove.
10720                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
10721
10722         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
10723
10724                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
10725                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
10726                 (MULTILIB_DIRNAMES): Remove long32.
10727                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
10728                 (MULTILIB_REDUNDANT_DIRS): Remove.
10729
10730         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
10731
10732                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
10733                 * gcc.c (driver_self_specs): New variable.
10734                 (do_self_spec): New function.
10735                 (main): Use it to process driver_self_specs.
10736
10737         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
10738
10739                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
10740                 Remove DImode define_split for !TARGET_64BIT.
10741                 (anddi3): Remove !TARGET_64BIT support from here as well.
10742                 Change operand 2's predicate to se_uns_arith_operand.
10743                 Add constant alternatives to define_insn.
10744                 (iordi3, xordi3, *nordi3): Likewise.
10745                 (anddi3_internal1, xordi3_immed): Remove.
10746
10747         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10748
10749                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
10750                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
10751                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
10752                 * config/mips/mips.md: Apply same renaming here.
10753
10754         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10755
10756                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
10757                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
10758                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
10759                 * config/mips/mips.md (define_attr cpu): Remove r4320.
10760                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
10761
10762         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10763
10764                 * config/mips/mips.c (mips16_strings): New variable.
10765                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
10766                 symbol in mips16_strings.  Free the list.
10767                 (mips_encode_section_info): Keep track of local strings.
10768
10769         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10770
10771                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
10772                 (sordered_df, sordered_sf): Remove.
10773                 * config/mips/mips.c (get_float_compare_codes): New fn.
10774                 (gen_int_relational, gen_conditional_move): Use it.
10775
10776         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10777
10778                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
10779                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
10780                 * config/mips/mips.c (fcc_register_operand): New function.
10781                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
10782                 (override_options): Allow TFmode values in float registers
10783                 if ISA_HAS_8CC.
10784                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
10785                 to fcc_register_operand.  Remove misleading source constraint.
10786                 Use mips_emit_fcc_reload.
10787                 (reload_outcc): Duplicate reload_incc.
10788
10789
10790 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
10791
10792         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
10793
10794 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
10795
10796         * tree-inline.c (inlinable_function_p): Back out last change, it's
10797         unnecessary.
10798
10799 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10800
10801         * ggc-page.c (TREE_EXP_SIZE): Define.
10802         (extra_order_size_table): New entry for expr trees with
10803         two operands.
10804
10805 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10806
10807         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
10808         (c_expand_start_cond): Adjust.
10809         (c_expand_end_cond): Don't use warning_with_file_and_file.
10810         (shadow_warning): Likewise.
10811
10812 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
10813
10814         * tree.h (DECL_POINTER_DEPTH): Remove.
10815         (struct tree_decl): Remove pointer_depth.
10816
10817 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
10818
10819         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
10820         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
10821         (rs6000_xcoff_encode_section_info): Remove.
10822         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
10823         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
10824         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
10825         Use SYMBOL_REF_FLAGS.
10826         (rs6000_elf_encode_section_info): Call default_encode_section_info for
10827         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
10828         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
10829         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
10830         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
10831         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
10832
10833 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10834
10835         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
10836
10837 2003-04-30  Andreas Schwab  <schwab@suse.de>
10838
10839         * doc/extend.texi (Other Builtins): Enclose multiple word data
10840         type in braces for @deftypefn.
10841
10842 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10843
10844         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
10845
10846         * doc/install.texi (--enable-threads): Document "gnat" option.
10847
10848 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10849
10850         * diagnostic.h (output_formatted_scalar): Tweak.
10851         * diagnostic.c (output_long_decimal): Likewise.
10852         (output_unsigned_decimal): Likewise.
10853         (output_long_unsigned_decimal): Likewise.
10854         (output_octal): Likewise.
10855         (output_long_octal): Likewise.
10856         (output_hexadecimal): Likewise.
10857         (output_long_hexadecimal): Likewise.
10858         (output_pointer): New function.
10859         (output_format): Use it.  Recognize "%p" format specifier.
10860
10861 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10862
10863         * function.c (purge_addressof_1): Postpone insn in fewer cases.
10864
10865 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
10866
10867         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
10868         call abort() after running out of stack space.
10869
10870         * c-typeck.c (function_types_compatible_p): Ignore incompatible
10871         'volatile' qualifiers on a function's return type in GNU mode.
10872
10873 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
10874
10875         * expr.c (emit_group_load): Dump parallels of simd types to
10876         memory.
10877
10878 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
10879
10880         * genautomata.c (add_vect): Check undefined value for range type
10881         too.
10882
10883 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
10884
10885         * configure.in:  More general test for cmp --ignore-initial.
10886         * configure:  Regenerate.
10887
10888 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10889
10890         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
10891         (layout_decl, place_field): Likewise.
10892         Also make minor type and whitespace changes.
10893
10894         * tree.c (save_expr): Don't fold a COMPONENT_REF.
10895
10896 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
10897
10898         * calls.c (expand_call): When modes of target and valreg match, force
10899         sibcall failure when target is a MEM.
10900
10901 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
10902
10903         * tree-inline.c (inlinable_function_p): Don't support inlining
10904         functions using varargs.
10905
10906         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
10907
10908         * dwarf2out.c (output_call_frame_info): No need to output EH
10909         unwind information if all_throwers_are_sibcalls.
10910
10911         * c-semantics.c (expand_unreachable_stmt): Return a tree.
10912         (expand_stmt): Update for change to expand_unreachable_stmt.
10913         (expand_unreachable_if_stmt): Likewise.
10914
10915         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
10916
10917 2003-04-29  Jason Merrill  <jason@redhat.com>
10918
10919         PR middle-end/10336
10920         * jump.c (never_reached_warning): Really stop looking if we reach
10921         the beginning of the function.
10922
10923 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
10924
10925         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
10926         Remove redundant macros.
10927         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
10928         (LOCAL_LABEL_PREFIX): Define unconditionally.
10929         (NO_DOT_IN_LABEL): Clarify comment.
10930         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
10931         definition to "long int".
10932
10933 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
10934
10935         bootstrap/10452
10936         * gengtype-yacc.y: Improve portability.
10937
10938 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
10939
10940         * config.gcc: Install obsolete target list for GCC 3.3.
10941         * doc/install.texi: Mention in specific-target instructions
10942         that certain configurations are deprecated.
10943
10944 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
10945
10946         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
10947
10948 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
10949
10950         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
10951         * gcc.c (display_help): Likewise.
10952         * toplev.c (f_options): Likewise.
10953         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
10954         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
10955         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
10956         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
10957         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
10958
10959 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
10960
10961         * varasm.c (default_assemble_visibility): Use assemble_name.
10962
10963 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
10964
10965         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
10966         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
10967         (SIZE_TYPE): New macro.
10968         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
10969         (SET_ASM_OP): New macro.
10970         (HANDLE_SYSV_PRAGMA): New macro.
10971         (ASM_WEAKEN_LABEL): New macro.
10972
10973 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
10974
10975         PR c++/10180
10976         * tree-inline.c (expand_call_inline): Call push_srcloc when
10977         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
10978
10979 2003-04-28  Mike Stump  <mrs@apple.com>
10980
10981         * gdbinit.in: Update to reflect new identifier structure.
10982
10983 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
10984
10985         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
10986         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
10987         struct tree_complex, struct tree_vector): Remove RTL field.
10988         (CONSTRUCTOR_ELTS): Use elt 0.
10989         * tree.def (CONSTRUCTOR): Delete first of its two operands.
10990         * varasm.c (output_constant_def): Remove early exit if
10991         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
10992         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
10993         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
10994         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
10995
10996 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
10997
10998         * c-decl.c (finish_decl): When prototype with asmspec is found
10999         for built-in, adjust built_in_decls as well as expr.c decls.
11000         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
11001         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
11002         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
11003
11004 2003-04-28  Richard Henderson  <rth@redhat.com>
11005
11006         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
11007         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
11008         integral constant mult operand.
11009         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
11010         (const_smulsi3_highpart_v8plus): Likewise.
11011         (const_smulsi3_highpart): Likewise.
11012         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
11013         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
11014         (const_umulsi3_highpart_v8plus): Likewise.
11015         (const_umulsi3_highpart): Likewise.
11016
11017 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
11018
11019         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
11020         Define as 1.
11021
11022 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
11023
11024         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
11025
11026 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
11027
11028         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
11029         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
11030         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
11031         functions.
11032         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
11033
11034 2003-04-28  Nick Clifton  <nickc@redhat.com>
11035
11036         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
11037
11038 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
11039
11040         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
11041         output_constant_def, use its result instead of TREE_CST_RTL (exp).
11042         Can assume it has the form (mem (symbol_ref ".LCxxx")).
11043         (expand_expr <COMPONENT_REF>): Can always just extract the
11044         relevant field of a CONSTRUCTOR.
11045         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
11046         ARRAY_RANGE_REF>): Make control flow explicit.
11047         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
11048         an INTEGER_CST.
11049
11050 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
11051
11052         * reload1.c (reg_set_luid): Fix a comment typo.
11053
11054 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
11055
11056         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
11057         struct deferred_string, const_str_htab): Kill.
11058         (n_deferred_strings): New static variable.
11059         (build_constant_desc): Set SYMBOL_REF_DECL of the new
11060         symbol_ref to point to the constant.
11061         (output_constant_def): When a deferred string is forced out,
11062         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
11063         (mark_constant): Likewise.
11064         (maybe_output_constant_def_contents): When deferring a string
11065         constant, just set STRING_POOL_ADDRESS_P and increment
11066         n_deferred_strings.
11067         (mark_constant_pool): Check n_deferred_strings, not the size
11068         of const_str_htab.
11069         (init_varasm_once): No need to create const_str_htab.
11070
11071         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
11072         SYMBOL_REF_DECL points to a constant.
11073
11074 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
11075
11076         * varasm.c (output_constant_def): Split out two new static
11077         functions, build_constant_desc and maybe_output_constant_def_contents.
11078         Restructure for comprehensibility.  Don't call
11079         output_addressed_constants.  Treat defstr being non-NULL for
11080         STRING_POOL_ADDRESS_P constants as an invariant.
11081         (struct deferred_string): Remove labelno field.
11082         (output_constant_def_contents): Kill labelno argument. Call
11083         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
11084         asm_out.internal_label.
11085         (mark_constant): Update call to output_constant_def_contents.
11086         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
11087         constants as an invariant.
11088
11089 2003-04-26  Richard Henderson  <rth@redhat.com>
11090
11091         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
11092         (ix86_expand_call, ix86_rtx_consts): Likewise.
11093
11094 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11095
11096         * doc/md.texi (cmpstr): Document additional restrictions.
11097
11098 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
11099
11100         * flags.h (time_report): Remove.
11101         * timevar.c (timevar_enable): New.
11102         (TIMEVAR_ENABLE): Remove, use timevar_enable.
11103         (timevar_init): Rename from init_timevar.
11104         * timevar.h (timevar_init): Rename from init_timevar.
11105         * toplev.c (time_report): Make static.
11106         (do_compile): Conditionally call init_timevar first.
11107         (preprocess_options): Move some code to do_compile.
11108
11109 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
11110
11111         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
11112
11113 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
11114
11115         * _cpp_lex_direct: Remove pointless code.
11116
11117 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
11118
11119         * doc/extend.texi (Function Attributes): Document "near" and "far"
11120         for 68HC11 and 68HC12.
11121
11122 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11123
11124         * expr.c (store_field): When making temporary for store, don't
11125         make it TYPE_QUAL_CONST.
11126
11127 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
11128
11129         * toplev.c (read_integral_parameter):  Use "argument" in error
11130         message to distinguish it from actual invalid options.
11131
11132 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
11133
11134         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
11135         addition of __PIC__ and __pic__ macros.
11136         * config/xtensa/xtensa.h: Clean up indentation.
11137
11138 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
11139
11140         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
11141         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
11142         (SUBTARGET_CPP_SPEC): Define.
11143         (LIB_SPEC): Delete.
11144         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
11145         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
11146         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
11147         Define.
11148         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11149         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
11150
11151 2003-04-25  H.J. Lu <hjl@gnu.org>
11152
11153         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
11154         for return mode.
11155         (ia64_expand_builtin): Set rmode to SImode for
11156         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
11157         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
11158         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
11159         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
11160
11161 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
11162
11163         * configure.in (make_compare_target):  Test for GNU cmp and set this
11164         variable appropriately.
11165         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
11166         compare4-lean): Rename actual targets to slowcompare*.  New compare*
11167         targets depend on names based on make_compare_target.
11168         * configure:  Regenerated.
11169
11170 2003-04-25  Richard Henderson  <rth@redhat.com>
11171
11172         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
11173         to clobber ar.pfs and ar.unat.
11174         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
11175         fix test for spilling ar.pfs to the stack.
11176
11177 2003-04-25  Richard Henderson  <rth@redhat.com>
11178
11179         PR opt/10315
11180         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
11181         checks during reload; use validize_mem instead of adjust_address.
11182
11183 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
11184
11185         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
11186         return values from recog_memoized().
11187
11188 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11189
11190         PR opt/8705
11191         * gcse.c (try_replace_reg): On a successful substitution of a constant
11192         into a single set, try to simplify the source of the set.
11193         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
11194         constant source.
11195
11196 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
11197
11198         * cpplex.c (cpp_token_len): Tighten up.
11199         (cpp_token_as_text): Need extra byte now.
11200         * cpplib.c (glue_header_name): Need extra 2 bytes.
11201         * cppmacro.c (cpp_macro_definition): Need extra byte.
11202
11203 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
11204
11205         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
11206         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
11207         where they might be not present. Use their _sp64 equivalent
11208         instead.
11209
11210 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
11211
11212         * i386.md (cvtsi2sdq): Fix typo in previous patch.
11213
11214 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
11215
11216         * configure.in: Check whether mbstowcs works.
11217         * configure, config.in: Regenerate.
11218         * intl.c: Use HAVE_WORKING_MBSTOWCS.
11219
11220 2003-04-24  H.J. Lu <hjl@gnu.org>
11221
11222         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
11223         for __sync_bool_compare_and_swap_di for int return type.
11224
11225         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
11226         Change return type to int.
11227         (__sync_bool_compare_and_swap): Likewise.
11228
11229 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
11230
11231         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
11232         looking for fallthru edge.
11233
11234         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
11235         Fix.
11236         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
11237         athlon-fvector): New.
11238         (athlon_*): Revisit to match new optimization guide.
11239         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
11240         * i386.md (cvt??2?? patterns): Fix modes.
11241         (fistp patterns): Set modes.
11242
11243         Accidentaly commited with my earlier reload patch:
11244         PR c/10308
11245         * reload.c (find_reloads_address_1): Reload plus at the place of
11246         index register.
11247
11248 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
11249
11250         New GCOV_TAG_FUNCTION layout
11251         * coverage.c (struct function_list): Replace name with ident.
11252         (struct counts_entry): Likewise.
11253         (fn_ident): New.
11254         (htab_counts_entry_hash, htab_counts_entry_eq,
11255         htab_counts_entry_del): Adjust.
11256         (reads_count_file, get_coverage_counts,
11257         coverage_begin_output, coverage_end_function): Adjust.
11258         (build_fn_info_type, build_fn_info_value): Likewise.
11259         * gcov-dump.c (tag_function): Adjust.
11260         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
11261         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
11262         * gcov.c (struct function_info): Add ident.
11263         (read_graph_file, read_count_file): Adjust.
11264         * libgcov.c (gcov_exit): Adjust.
11265
11266 2003-04-23  Richard Henderson  <rth@redhat.com>
11267
11268         PR opt/8300
11269         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
11270         after initialize_uninitialized_subregs; update reg info assuming
11271         new pseudos were created.
11272
11273 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
11274
11275         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
11276         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
11277         (lex_string): Take cpp_string with full spelling.
11278         (cb_ident): Update.
11279         (c_lex): Update diagnostics.
11280         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
11281         (create_literal): New.
11282         (lex_string): Unterminated literals have type CPP_OTHER.
11283         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
11284         for CPP_OTHER.
11285         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
11286         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
11287         * cpplib.c (parse_include, do_line, do_linemarker,
11288         destringize_and_run): Update for token storing full spelling.
11289         * cpplib.h: Update token spelling types.
11290         * cppmacro.c (stringify_arg, check_trad_stringification):
11291         Update for token storing full spelling.
11292
11293 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
11294
11295         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
11296
11297 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
11298
11299         * arm.h (TARGET_OPTIONS): Add value field.
11300
11301 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
11302
11303         * doc/extend.texi: Remove duplicate 2003 copyright date.
11304
11305 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
11306
11307         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
11308         (libgcov.a): Depends on LIBGCC_DEPS.
11309         * basic-block.h (profile_info): Moved here from coverage.h. Made
11310         a pointer.
11311         * coverage.c (struct function_list): Fixed array of counter types.
11312         (struct counts_entry): Keyed by counter type, contains summary.
11313         (profile_info): Moved to profile.c.
11314         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
11315         vars.
11316         (profiler_label): Remove.
11317         (ctr_labels): New.
11318         (set_purpose, label_for_tag, build_counter_section_fields,
11319         build_counter_section_value, build_counter_section_data_fields,
11320         build_counter_section_data_values, build_function_info_fields,
11321         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
11322         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
11323         build_ctr_info_value, build_gcov_info): New.
11324         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
11325         (reads_counts_file): Adjust.
11326         (get_coverage_counts): Takes counter number. Add summary
11327         parameter. Adjust.
11328         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
11329         create counter array labels.
11330         (coverage_end_function): Adjust.
11331         (create_coverage): Adjust.
11332         (find_counters_section): Remove.
11333         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
11334         (struct section_info, struct profile_info): Remove.
11335         (profile_info): Moved to basic-block.h.
11336         (coverage_counter_ref): Takes a counter number.
11337         (get_coverage_counts): Takes a counter number. Added summary
11338         parameter.
11339         (find_counters_section): Remove.
11340         * gcov-dump.c (tag_arc_counts): Rename to ...
11341         (tag_counters): ... here. Adjust.
11342         (tag_table): Move tag_counters to 3rd entry. Remove
11343         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
11344         (dump_file): Check for counter tag values here.
11345         (tag_summary): Adjust.
11346         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
11347         * gcov-io.h (GCOV_LOCKED): New.
11348         (GCOV_TAG_ARC_COUNTS): Rename to ...
11349         (GCOV_TAG_COUNTS_BASE): ... here.
11350         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
11351         Remove.
11352         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
11353         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
11354         GCOV_TAG_IS_COUNTER): New.
11355         (struct gcov_ctr_summary): New.
11356         (struct gcov_summary): Adjust.
11357         (struct gcov_counter_section): Remove.
11358         struct gcov_counter_section_data): Remove.
11359         (struct gcov_function_info): Rename to ...
11360         (struct gcov_fn_info): ... here. Adjust.
11361         (struct gcov_ctr_info): New.
11362         (struct gcov_info): Adjust.
11363         * gcov.c (read_count_file): Adjust.
11364         (output_lines): Adjust.
11365         * libgcov.c (gcov_exit): Adjust.
11366         (__gcov_flush): Adjust.
11367         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
11368         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
11369         probably_never_executed_bb_p, compute_frequency_function): Adjust
11370         profile_info use.
11371         * profile.c (struct counts_entry): Remove.
11372         (profile_info): Define here.
11373         (get_exec_counts): Adjust get_coverage_counts call.
11374         (compute_branch_probablilities): Remove find_counters_section
11375         call.
11376         (gen_edge_profiler): Adjust coverage_counter_ref call.
11377         * tracer.c (tail_duplicate): Adjust profile_info use.
11378
11379 2003-04-23  Roger Sayle  <roger@eyesopen.com>
11380
11381         PR optimization/10339
11382         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
11383         directly instead of unsafely transforming call into a memcmp.
11384         (expand_builtin_strncmp): Likewise.
11385
11386 2003-04-22  Roger Sayle  <roger@eyesopen.com>
11387
11388         * alias.c (mark_constant_function):  Check for constancy and
11389         purity even of void functions.  Update both the function decl
11390         and the cgraph RTL info with the results.
11391
11392 2003-04-22  Roger Sayle  <roger@eyesopen.com>
11393
11394         * real.c (do_add): Change to return a bool indicating that the
11395         result of the operation may be inexact due to loss of precision.
11396         (do_multiply): Likewise.
11397         (do_divide): Likewise.
11398
11399 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
11400             Loren James Rittle  <ljrittle@acm.org>
11401
11402         * dwarf2out.c (fde_table_allocated): Mark with GTY.
11403         (decl_die_table_allocated): Likewise.
11404         (abbrev_die_table_allocated): Likewise.
11405         (line_info_table_allocated): Likewise.
11406         (separate_line_info_table_allocated): Likewise.
11407         (pubname_table_allocated): Likewise.
11408         (arange_table_allocated): Likewise.
11409         (ranges_table_allocated): Likewise.
11410         (decl_die_table_in_use): Unconditionalize; mark with GTY.
11411         (abbrev_die_table_in_use): Likewise.
11412         (line_info_table_in_use): Likewise.
11413         (separate_line_info_table_in_use): Likewise.
11414         (pubname_table_in_use): Likewise.
11415         (arange_table_in_use): Likewise.
11416         (ranges_table_in_use): Likewise.
11417         (have_location_lists): Likewise.
11418         (emitcount): New GTY-marked static, moved...
11419         (maybe_emit_file): ...from here.
11420         (label_num): New GTY-marked static, moved...
11421         (gen_internal_sym): ...from here.
11422
11423 2003-04-22  Richard Henderson  <rth@redhat.com>
11424
11425         PR 8866
11426         * rtl.h (MEM_NOTRAP_P): New.
11427         (MEM_COPY_ATTRIBUTES): Copy it.
11428         * rtlanal.c (may_trap_p): Check it.
11429         * expr.c (do_tablejump): Set it.
11430         * doc/rtl.texi (Flags): Document it.
11431
11432         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
11433
11434 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
11435
11436         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
11437         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
11438
11439 2003-04-22  Vincent Celier <celier@gnat.com>
11440
11441         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
11442         --enable-threads=gnat.
11443         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
11444         * configure.in: Add gnat to the list of thread packages
11445         * configure: Rebuild.
11446         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
11447
11448 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
11449
11450         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
11451
11452 2003-04-22  Devang Patel  <dpatel@apple.com>
11453
11454         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
11455         parameter count.
11456         (_cpp_copy_replacement_text): Same.
11457
11458 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
11459
11460         * c-lex.c (c_lex): Handle CPP_OTHER differently.
11461         * cppexp.c (_cpp_parse_expr): Similarly.
11462         * cpplex.c (SPELL_CHAR): Remove.
11463         (_cpp_lex_direct): Stray chars are saved as byte strings.
11464         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
11465         handle SPELL_CHAR.
11466         (cpp_avoid_paste): Update handling of CPP_OTHER.
11467         * cpplib.h: Spell CPP_OTHER like a number.
11468         (struct cpp_token): Remove member c.
11469         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
11470
11471 2003-04-22  David Turner <novalis@gnu.org>
11472
11473         * gbl-ctors.h: Add special license exception.
11474         * libgcc2.h: Likewise.
11475         * tsystem.h: Likewise.
11476         * gcov-io.h: Likewise.
11477
11478 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
11479
11480         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
11481         macro defaulting to original BRANCH_COST heuristic.
11482         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
11483
11484         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
11485
11486 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
11487
11488         * config/rs6000/t-spe: Merge in t-fprules into file.
11489
11490         * config.gcc: Add t-spe to powerpc-eabispe.
11491
11492 2003-04-22  Kean Johnston  <jkj@sco.com>
11493
11494         * tlink.c (recompile_files): Add missing '=' to putenv calls
11495
11496 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
11497
11498         * ginclude/stddef.h: Provide C++ safe offsetof.
11499
11500 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
11501
11502         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
11503         for reg notes, if there are no substitutions, just use a SUBREG.
11504
11505 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11506
11507         * Makefile.in (calls.o): Depend on except.h.
11508         * calls.c: Include except.h.
11509         (emit_call_1): Call note_eh_region_may_contain_throw if
11510         appropriate.
11511         * except.c (eh_region): Add may_contain_throw.
11512         (expand_eh_region_end_cleanup): Do not include handler code when
11513         it cannot be reached.
11514         (note_eh_region_may_contain_throw): New function.
11515         * except.h (note_eh_region_may_contain_throw): New function.
11516
11517 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11518
11519         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
11520         changes.
11521
11522 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
11523
11524         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
11525         64-bit long doubles.
11526
11527 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
11528
11529         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
11530         a number of conversions required for type consistency and previously
11531         stripped off by STRIP_NOPS.
11532
11533         * calls.c (expand_call): Prevent sibcall optimization for calls to
11534         nested subprograms.
11535
11536         * expmed.c (extract_bit_field): Reverse operands of && condition to
11537         prevent a potential division by zero in the previously first branch.
11538         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
11539
11540 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
11541
11542         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
11543         (subrange_type_die): Likewise.
11544         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
11545         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
11546
11547 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
11548
11549         Break out coverage routines to new file.
11550         * Makefile.in (COVERAGE_H): New variable
11551         (C_OBJS): Add coverage.o
11552         (coverage.o): New target.
11553         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
11554         dependencies.
11555         (GTFILES): Adjust.
11556         (gt-coverage.h): New target.
11557         (gt-profile.h): Remove.
11558         * profile.h: Remove. Move to ...
11559         * coverage.h: ... here. New. #include gcov-io.h.
11560         * gcov-io.h: Move function definitions to ...
11561         * gcov-io.c: ... here. New.
11562         * profile.c: Move coverage routines to coverage.c.
11563         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
11564         end_branch_prob): Adjust.
11565         * coverage.c: New. Coverage routines from profile.c
11566         (coverage_counter_ref, coverage_init, coverage_finish,
11567         coverage_end_function, coverage_begin_output,
11568         coverage_counter_ref, get_coverage_counts): Define.
11569         * gcov-dump.c, gcov.c: #include gcov-io.c.
11570         * libgcov.c: Likewise. Adjust.
11571         * loop-init.c: Don't #include profile.h
11572         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
11573         * rtl.h: Add coverage prototypes.
11574         * toplev.c (compile_file): Init coverage, not branch_prob.
11575         Always call coverage_finish.
11576         (rest_of_compilation): Call coverage_end_function.
11577
11578 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
11579
11580         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
11581
11582 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
11583
11584         * c-ppoutput.c (cb_include): Don't take a cpp_token.
11585         * cppfiles.c: Don't undef strcmp.
11586         (find_include_file): Don't take a cpp_token.  Check for empty
11587         file names.
11588         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
11589         (cpp_push_include): Simplify.
11590         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
11591         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
11592         (parse_include): Similary.  Don't check for zero-length filenames.
11593         (do_include_common, do_pragma_dependency): Update accordingly.
11594         * cpplib.h (struct cpp_callbacks): Change prototype of include.
11595
11596 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11597
11598         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
11599         details of conflict handling.
11600
11601         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
11602         when conversion overflows.
11603
11604         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
11605
11606         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
11607         before clearing.
11608
11609 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11610
11611         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
11612         have the same form as the old RTL.
11613
11614 2003-04-21  Andreas Jaeger  <aj@suse.de>
11615
11616         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
11617
11618 2003-04-20  Chris Lattner  <sabre@nondot.org>
11619             Zack Weinberg  <zack@codesourcery.com>
11620
11621         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
11622         genrtl_cleanup_stmt.  Correct comment at head of
11623         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
11624
11625         * stmt.c (struct nesting): Kill n_function_calls.
11626         (expand_start_bindings): Don't set
11627         thisblock->data.block.n_function_calls.
11628         (expand_end_bindings): Compare function_call_count against 0.
11629         (expand_cleanups): Kill DONT_DO argument; all callers passed
11630         NULL_TREE. All callers updated to match.
11631
11632 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
11633
11634         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
11635         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
11636         (output_constant_def): Remove code predicated on
11637         defer_addressed_constants_flag.
11638
11639         * output.h: Remove prototypes of deleted functions.
11640         * c-typeck.c (constructor_subconstants_deferred): Kill.
11641         (struct initializer_stack): Remove 'deferred' field.
11642         (start_init): Remove all references to the above.
11643         (finish_init): Likewise. Also remove never-executed call to
11644         output_deferred_addressed_constants.  Pull assignment to
11645         defstr out of if expression.
11646
11647 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
11648
11649         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
11650         NOTE_NEWLINE): Remove.
11651         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
11652         to handle new form of line note type.
11653
11654 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
11655
11656         * target.h (encode_section_info): Add new argument carrying
11657         the RTL to be modified by the hook.
11658
11659         * varasm.c (make_decl_rtl, output_constant_def): Update calls
11660         to encode_section_info.
11661         (default_encode_section_info): Take and use RTL argument,
11662         don't use TREE_CST_RTL or DECL_RTL.
11663         * output.h: Update prototype of default_encode_section_info.
11664         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
11665         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11666         Update calls to encode_section_info.
11667
11668         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
11669         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
11670         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
11671         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
11672         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
11673         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
11674         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
11675         except for PE dllimport/dllexport.  Update calls to
11676         default_encode_section_info.
11677
11678         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
11679         Update prototypes.
11680
11681         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
11682
11683 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11684
11685         PR/8705
11686         * pa.md (movccfp): New expander.
11687         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
11688         Reverse fcmp conditions.
11689
11690 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11691
11692         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
11693         of operand 1 correctly.
11694
11695 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11696
11697         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
11698         * gcov.c (output_lines): Don't be so fussy about going past EOF.
11699
11700 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
11701
11702         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
11703         (cppcharset.o): New target.
11704         * c-lex.c (is_extended_char): Move to cppcharset.c.
11705         (utf8_extend_token): Delete.
11706         * cppcharset.c: New file.
11707         * cpphash.h (_cpp_valid_ucn): New.
11708         * cpplex.c (lex_identifier): Update prototype.
11709         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
11710         escapes.
11711         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
11712         in cppcharset.c.
11713         (lex_number, lex_identifier, cpp_parse_escape): Update.
11714         (_cpp_lex_direct): Update to handle UCNs.
11715         (cpp_avoid_paste): Don't paste to form a UCN.
11716
11717 2003-04-19  Roger Sayle  <roger@eyesopen.com>
11718
11719         * builtins.c (expand_builtin):  Don't expand a pure or const
11720         built-in function if the result will be ignored and none of
11721         its arguments are volatile.
11722
11723 2003-04-19  Kean Johnston  <jkj@sco.com>
11724
11725         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
11726         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
11727         target fragment now: t-sco5; dont compile crti.o.
11728         * config/i386/sco5.h: major overhaul to remove all COFF remnants
11729         and to use elfos.h for most definitions.
11730         (BSS_SECTION_ASM_OP): set correct segment attributes.
11731         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
11732         (DWARF2_UNWIND_INFO): Always set to 1.
11733         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
11734         (MD_STARTFILE_PREFIX_1): Define.
11735         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
11736         (DEFAULT_LINKER): Define if not specified to configure.
11737         (CTORS_SECTION_ASM_OP): Remove COFF crud.
11738         (DTORS_SECTION_ASM_OP): Remove COFF crud.
11739         (WINT_TYPE): Define.
11740         (SDB_DEBUGGING_INFO): Remove.
11741         (EXTRA_SECTIONS): Likewise.
11742         (EXTRA_SECTION_FUNCTIONS): Likewise.
11743         (CTOR_LIST_BEGIN): Likewise.
11744         (CTOR_LIST_END): Likewise.
11745         (INIT_SECTION_FUNCTION): Likewise.
11746         (FINI_SECTION_FUNCTION): Likewise.
11747         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
11748         (LOCAL_LABEL_PREFIX): Likewise.
11749         (NON_SAVING_SETJMP): Likewise.
11750         (RETURN_POPS_ARGS): Likewise.
11751         (ASM_OUTPUT_SKIP): Likewise.
11752         (TARGET_ASM_NAMED_SECTION): Likewise.
11753         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11754         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11755         (ASM_OUTPUT_IDENT): Likewise.
11756         (ASM_OUTPUT_CASE_LABEL): Likewise.
11757         (ASM_OUTPUT_ASCII): Likewise.
11758         (ASM_OUTPUT_LIMITED_STRING): Likewise.
11759         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
11760         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11761         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11762         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11763         (ASM_DECLARE_OBJECT_NAME): Likewise.
11764         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11765         (ASM_DECLARE_FUNCTION_NAME): Likewise.
11766         (ASM_DECLARE_RESULT): Likewise.
11767         (ASM_WEAKEN_LABEL): Likewise.
11768         (SUPPORTS_WEAK): Likewise.
11769         (APPLY_RESULT_SIZE): Likewise.
11770         (LPREFIX): Likewise.
11771         (ALIGN_ASM_OP): Likewise.
11772         (ASCII_DATA_ASM_OP): Likewise.
11773         (IDENT_ASM_OP): Likewise.
11774         (ASM_SHORT): Likewise.
11775         (ASM_LONG): Likewise.
11776         (TYPE_ASM_OP): Likewise.
11777         (SIZE_ASM_OP): Likewise.
11778         (STRING_ASM_OP): Likewise.
11779         (SKIP_ASM_OP): Likewise.
11780         (EH_FRAME_SECTION_ASM_OP): Likewise.
11781         (READONLY_DATA_SECTION_ASM_OP): Likewise.
11782         (INIT_SECTION_ASM_OP): Likewise.
11783         (FINI_SECTION_ASM_OP): Likewise.
11784         (TEXT_SECTION_ASM_OP): Likewise.
11785         (DATA_SECTION_ASM_OP): Likewise.
11786         (TYPE_OPERANT_FORMAT): Likewise.
11787         (ASM_SPEC): Remove COFF code.
11788         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
11789         cause -pg to emit an error; use pcrt1elf.o with -pp
11790         (ENDFILE_SPEC): Likewise.
11791         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
11792         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
11793         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
11794         add -z alt_resolve to support weak symbols the way GCC wants them.
11795         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
11796         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
11797         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
11798         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
11799         (CRTSTUFF_T_CFLAGS_S): Define.
11800         (MULTILIB_OPTIONS): Likewise.
11801         (MULTILIB_DIRNAMES): Likewise.
11802         (MULTILIB_MATCHES): Likewise.
11803         (MULTILIB_EXTRA_OPTS): Likewise.
11804         (LIBGCC): Likewise.
11805         (INSTALL_LIBGCC): Likewise.
11806         (crti.o): Remove.
11807         * config/i386/t-sco5gas: Remove.
11808         * doc/install.texi: Updated for new OpenServer instructions.
11809         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
11810
11811 2003-04-19  Kean Johnston  <jkj@sco.com>
11812
11813         * fixinc/check.tpl: Allow user to over-ride diff program.
11814         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
11815         (sco_math): Added test for SCO math header files.
11816         (sco_regset): Added check for conflicts with ieeefp.h.
11817         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
11818         * fixinc/fixincl.x: Regenerated
11819         * fixinc/tests/base/math.h: Added sco_math tests.
11820         * fixinc/tests/base/string.h: New file.
11821         * fixinc/tests/base/sys/regset.h: New file.
11822
11823 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11824
11825         * cpphash.h (struct cpp_buffer): Remove backup_to.
11826         * cpplex.c (BACKUP, get_effective_char): Die.
11827         (_cpp_skip_block_comment): Assume '*' is location on entry.
11828         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
11829         (IF_NEXT_IS): Update.
11830         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
11831
11832 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
11833
11834         * README.Portability: Move to a new section and obsolete K+R
11835         portability issues.
11836
11837 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
11838
11839         * rtlanal.c (subreg_offset_representable_p):  Fix call of
11840         subreg_lowpart.
11841
11842 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11843
11844         * cpphash.h (struct cpp_reader): New member warned_dollar.
11845         * cpplex.c (continues_identifier_p): New function.
11846         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
11847         lex_number and lex_string, and simplify.
11848         (parse_slow, unescaped_terminator_p): Die.
11849         (_cpp_lex_direct): Update.
11850
11851 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11852
11853         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
11854
11855 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
11856
11857         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
11858         fork behavior.
11859
11860 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11861
11862         * cppexp.c (eval_token): Permit true and false even if pedantic.
11863
11864 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11865
11866         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
11867
11868 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11869
11870         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
11871         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
11872         (struct include_file): Remove fefcnt, mapped members.
11873         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
11874         (read_include_file): Don't use mmap, terminate buffers in '\r'.
11875         (purge_cache): Don't use munmap.
11876         * cpphash.h (CPP_BUF_COLUMN): Update.
11877         (lexer_state): Remove lexing_comment.
11878         (struct _cpp_line_note): New.
11879         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
11880         next_line and need_line.  Remove col_adjust and saved_flags.
11881         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
11882         _cpp_skip_block_comment, scan_out_logical_line): New.
11883         (_cpp_init_mbchar): Remove.
11884         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
11885         (cpp_read_main_file): Set line to 1 earlier.
11886         (post_options): -traditional-cpp doesn't want trigraphs.
11887         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
11888         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
11889         _cpp_get_fresh_line): New.
11890         (handle_newline, skip_escaped_newlines, trigraph_p,
11891         continue_after_nul, _cpp_init_mbchar): Remove.
11892         (get_effective_char): Update.
11893         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
11894         (skip_line_comment): Simplify.
11895         (skip_whitespace, parse_identifier, parse_slow, parse_number,
11896         parse_string): Update.
11897         (cpp_lex_direct): Use clean lines and process line notes.  Update.
11898         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
11899         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
11900         directly.
11901         (_cpp_handle_directive): Don't set saved_flags.
11902         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
11903         cpp_undef, handle_assertion, cpp_push_buffer): Update.
11904         (_cpp_pop_buffer): Free notes.
11905         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
11906         * cpppch.c (cpp_read_state): \n terminate buffer.
11907         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
11908         (copy_comment): Use _cpp_skip_block_comment.
11909         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
11910         Simplify.
11911         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
11912         save_replacement_text): Update.
11913         (scan_out_logical_line): Update to use clean lines and process
11914         line notes.
11915         * fix-header.c (read_scan_file): Update.
11916
11917 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
11918
11919         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
11920         null begin parameter (as well as pointer to null).
11921         (__deregister_frame_info_bases): Likewise.
11922
11923 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11924
11925         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
11926         hard or virtual register and copy into pseudo if replacement fails.
11927
11928         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
11929
11930         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
11931
11932 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
11933
11934         * calls.c (expand_call): Move special case for constructor calls
11935         to right place. Ensures constructor calls used to initialize
11936         arguments get a clean outgoing argument block for themselves.
11937         Move check for stack deallocation completeness until after last
11938         deallocation.  Add stack_pointer_delta to set of state
11939         variables saved and restored along with current stack_level.
11940
11941         * integrate.c (expand_inline_function): Ensure non-const actuals
11942         don't end up const in the caller's flow after conversion to possibly
11943         const formal type.
11944
11945 2003-04-18  Vincent Celier  <celier@gnat.com>
11946
11947         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
11948         and *_DIV_EXPR as TRUNC_*_EXPR.
11949
11950 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
11951
11952         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
11953         for orphaned jump tables.
11954
11955 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
11956
11957         * reload1.c: Revert my previous patch on 2002-04-17.
11958
11959 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11960
11961         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
11962         Add Segher Boessenkool.
11963
11964 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
11965
11966         PR c/9177
11967         * c-decl.c (c_expand_body): Don't garbage collect the function
11968         body if we are going to dump it later.
11969
11970 2003-04-18  Richard Henderson  <rth@redhat.com>
11971
11972         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
11973         (alpha_end_function): Don't set them.
11974         (decl_in_text_section): Remove.
11975         (alpha_encode_section_info): Remove.
11976         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
11977         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
11978         sections, rather than decl_in_text_section results.
11979
11980 2003-04-18  Roger Sayle  <roger@eyesopen.com>
11981
11982         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
11983         and SIGN_EXTRACT.
11984
11985 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
11986
11987         PR optimization/7675
11988         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
11989         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
11990         nested functions if they refer to declarations from parent functions.
11991         * stmt.c (expand_decl): Don't put automatic variables in registers
11992         if the DECL_NONLOCAL flag is set.
11993
11994 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
11995
11996         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
11997         consider those to be movable where the source matches
11998         want_to_gcse_p.
11999         (update_ld_motion_stores): In comment, refer to
12000         compute_ld_motion_mems for validity of replacement.
12001
12002 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
12003
12004         * gcov-dump.c (tag_summary): Remove max_sum
12005         * gcov-io.h (gcov_summary, gcov_write_summary,
12006         gcov_read_summary): Kill max_sum.
12007         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
12008         message more verbose.
12009
12010         * emit-rtl.c (subreg_hard_regno):  Check that register is
12011         representable.
12012
12013         * reload.c (reload_inner_reg_of_subreg):  When register is not
12014         representable, reload the whole thing.
12015         (find_reloads): Likewsie.
12016         * rtlanal.c (subreg_representable_p):  New function.
12017
12018         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
12019         allow negative probabilities for edges from the call to exit.
12020         (branch_prob): Do not add fake edges for functions that may return
12021         twice.
12022
12023 2003-04-17  DJ Delorie  <dj@redhat.com>
12024
12025         * toplev.c (target_options): Add value field.
12026         (set_target_switch): Handle target options with values.
12027         * doc/tm.texi: Document how fixed vs variable target
12028         options work.
12029         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12030         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
12031         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12032         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
12033         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12034         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12035         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
12036         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
12037         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
12038         Add value initializer to target options.
12039
12040 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
12041
12042         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
12043
12044 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
12045
12046         * reload1.c (move2add_last_cc0): New.
12047         (reload_cse_move2add): Detect implicit sets.
12048         (move2add_note_store): Notice a store into cc0.
12049
12050 2003-04-17  Roger Sayle  <roger@eyesopen.com>
12051
12052         PR c/10375
12053         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
12054         function attributes.
12055
12056 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
12057
12058         * doc/sourcebuild.texi (Test Suites): Document support for testing
12059         binary compatibility (moved from testsuite/README.compat).
12060
12061 2003-04-17  Richard Henderson  <rth@redhat.com>
12062
12063         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
12064
12065 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
12066
12067         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
12068         the one provided by the FSF.
12069
12070 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12071
12072         * doc/install.texi (Binaries): Update URL and list of platforms
12073         provided by ftp.thewrittenword.com.
12074
12075 2003-04-17  Richard Henderson  <rth@redhat.com>
12076
12077         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
12078         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
12079         * config/xtensa/xtensa.md (call, call_value): Likewise.
12080
12081 2003-04-17  Richard Henderson  <rth@redhat.com>
12082
12083         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
12084         (print_operand_address): Likewise.
12085         (ep_memory_operand): Likewise.
12086         (special_symbolref_operand): Likewise.
12087         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
12088         (v850_encode_section_info): Call default_encode_section_info.
12089         (v850_strip_name_encoding): Remove.
12090         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
12091         (ASM_OUTPUT_LABELREF): Remove.
12092         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
12093         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
12094         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
12095         (ENCODED_NAME_P): Remove.
12096         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
12097         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
12098         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
12099
12100 2003-04-17  Richard Henderson  <rth@redhat.com>
12101
12102         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
12103         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
12104         SYMBOL_REF_FUNCTION_P.
12105
12106 2003-04-17  Richard Henderson  <rth@redhat.com>
12107
12108         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
12109         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
12110         (text_segment_operand): Likewise.
12111
12112 2003-04-17  Richard Henderson  <rth@redhat.com>
12113
12114         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
12115         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12116         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
12117         (sh_encode_section_info): Remove.
12118         (sh_strip_name_encoding): Remove.
12119         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
12120         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
12121         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
12122         (ASM_OUTPUT_LABELREF): Remove.
12123         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
12124         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
12125
12126 2003-04-17  Richard Henderson  <rth@redhat.com>
12127
12128         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
12129         (tls_model_chars): Remove.
12130         (larl_operand): Use SYMBOL_REF_FLAGS.
12131         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12132         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
12133         (s390_output_mi_thunk): Likewise.
12134         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
12135         (s390_function_profiler): Likewise.
12136         (s390_encode_section_info): Use default_encode_section_info
12137         and SYMBOL_FLAG_ALIGN1.
12138         (s390_strip_name_encoding): Remove.
12139         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
12140         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
12141         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
12142
12143 2003-04-17  Richard Henderson  <rth@redhat.com>
12144
12145         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
12146         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
12147         (print_operand_address): Likewise.
12148
12149         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
12150         * config/ns32k/ns32k.c (expand_block_move): Don't check
12151         flag_unroll_loops.
12152
12153 2003-04-17  Richard Henderson  <rth@redhat.com>
12154
12155         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
12156         SYMBOL_REF_FLAG.
12157
12158 2003-04-17  Richard Henderson  <rth@redhat.com>
12159
12160         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
12161
12162         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
12163         (SYMBOL_REF_MODEL): New.
12164         (LIT_NAME_P): Move from m32r.h.
12165         (m32r_select_section): Remove.
12166         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
12167         (m32r_strip_name_encoding): Remove.
12168         (m32r_in_small_data_p): New.
12169         (small_data_operand): Use SYMBOL_REF_SMALL_P.
12170         (addr24_operand): Use SYMBOL_REF_MODEL.
12171         (call26_operand): Likewise.
12172         (addr32_operand): Tidy.
12173         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
12174         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
12175         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
12176         (READONLY_DATA_SECTION_ASM_OP): Remove.
12177         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
12178         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
12179         (TARGET_ASM_SELECT_SECTION): Remove.
12180         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
12181         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
12182         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
12183         (ASM_OUTPUT_LABELREF): Remove.
12184
12185 2003-04-17  Richard Henderson  <rth@redhat.com>
12186
12187         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
12188         (encode_section_info): Remove.
12189         * config/ip2k/ip2k-protos.h: Update.
12190
12191 2003-04-17  Richard Henderson  <rth@redhat.com>
12192
12193         * varasm.c (default_encode_section_info): Don't set
12194         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
12195         * config/i370/i370.c (i370_encode_section_info): Remove.
12196         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
12197         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
12198         * config/i370/i370.md (movsi): Likewise.
12199
12200         * config/i370/t-i370: Add missing backslash.
12201
12202 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12203
12204         * doc/invoke.texi (inline-limit): Fix pasto.
12205
12206 2003-04-17  Richard Henderson  <rth@redhat.com>
12207
12208         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
12209         (small_call_insn_operand): Use it.
12210         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
12211         (h8300_eightbit_constant_address_p): Use it.
12212         (SYMBOL_FLAG_TINY_DATA): New.
12213         (h8300_tiny_constant_address_p): Use it.
12214         (h8300_encode_label, h8300_strip_name_encoding): Remove.
12215         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
12216         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
12217         (ASM_OUTPUT_LABELREF): Remove.
12218
12219 2003-04-16  Richard Henderson  <rth@redhat.com>
12220
12221         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
12222         all users with SYMBOL_REF_SMALL_P.
12223         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
12224         (frv_encode_section_info): Remove.
12225         (frv_strip_name_encoding): Remove.
12226         (frv_in_small_data_p): Merge tests from encode_section_info.
12227         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
12228         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
12229         (SDATA_NAME_P): Remove.
12230         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
12231         (ASM_OUTPUT_LABELREF): Remove.
12232         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
12233
12234         * config/frv/frv.c (frv_asm_out_constructor): New.
12235         (frv_asm_out_destructor): New.
12236         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
12237         (DTORS_SECTION_ASM_OP): New.
12238         (ASM_OUTPUT_CONSTRUCTOR): Remove.
12239         (ASM_OUTPUT_DESTRUCTOR): Remove.
12240
12241 2003-04-16  Richard Henderson  <rth@redhat.com>
12242
12243         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
12244         SYMBOL_REF_LOCAL_P; abort if not pic.
12245         (cris_encode_section_info): Remove.
12246
12247 2003-04-16  Richard Henderson  <rth@redhat.com>
12248
12249         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
12250         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
12251
12252         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
12253         flag_inline_trees.
12254
12255 2003-04-16  Richard Henderson  <rth@redhat.com>
12256
12257         * config/avr/avr.c (avr_encode_section_info): Remove.
12258         (avr_insert_attributes): New.
12259         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
12260         (avr_assemble_integer): Likewise.
12261
12262 2003-04-16  Richard Henderson  <rth@redhat.com>
12263
12264         * arc.c (arc_encode_section_info): Remove.
12265         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
12266         (arc_print_operand, arc_print_operand_address): Likewise.
12267         * arc.h (EXTRA_CONSTRAINT): Likewise.
12268
12269 2003-04-16  Roger Sayle  <roger@eyesopen.com>
12270
12271         * c-semantics.c (find_reachable_label): New function to find a
12272         potentially reachable label in an expression.
12273         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
12274         assumes the start of the IF_STMT is unreachable (dead) code.
12275         (expand_unreachable_stmt): Similar to expand_stmt but assumes
12276         the start of the statement list is unreachable (dead) code.
12277         (genrtl_if_stmt):  If the controlling expression of the IF
12278         is constant, use expand_unreachable_stmt for the THEN or ELSE
12279         clause as appropriate.
12280         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
12281         the body of a SWITCH statement.
12282         (expand_stmt): The code immediately following a "return",
12283         "break", "continue" or "goto" is unreachable.
12284         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
12285
12286 2003-04-16  Richard Henderson  <rth@redhat.com>
12287
12288         * rtl.h (MEM_ALIAS_SET): Update documentation.
12289         * doc/rtl.texi (Special Accessors): New node.
12290         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
12291
12292 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
12293
12294         * reload1.c (reload_cse_noop_set_p): Return false if mode of
12295         SET_DEST is not the same as that returned by...
12296         * cselib.h (cselib_reg_set_mode): ... new function.
12297         * cselib.c (cselib_reg_set_mode): Define it.
12298         (REG_VALUES): Document semantics of first element as set mode.
12299         (cselib_subst_to_values): Skip first element if ELT is NULL.
12300         (cselib_lookup): Likewise.  Insert past the first element.
12301         (cselib_invalidate_regno): NULLify first element.
12302         (cselib_record_set): Set first element.
12303
12304 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
12305
12306         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
12307         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
12308         * tree.h: Add prototypes for the two new functions.
12309         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
12310         updates introduced in the previous revision by call to saved_expr_p.
12311         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
12312
12313         * expr.c (store_field): Force usage of bitfield instructions when
12314         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
12315         (expand_expr, case BIT_FIELD_REF): likewise.
12316
12317 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
12318
12319         PR middle-end/8866
12320         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
12321         jumptables.
12322
12323 2003-04-16  Richard Henderson  <rth@redhat.com>
12324
12325         * config/ia64/ia64.c (sdata_symbolic_operand): Use
12326         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
12327         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12328         (function_operand): Use SYMBOL_REF_FUNCTION_P.
12329         (ia64_expand_load_address): Likewise.
12330         (ia64_assemble_integer): Likewise.
12331         (ia64_encode_section_info): Remove.
12332         (ia64_strip_name_encoding): Remove.
12333         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
12334         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
12335
12336 2003-04-16  Richard Henderson  <rth@redhat.com>
12337
12338         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
12339         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
12340         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
12341         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
12342         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
12343         (global_symbolic_operand): Similarly.
12344         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
12345         (tls_symbolic_operand_type): Likewise.
12346         (alpha_encode_section_info): Use default_encode_section_info.
12347         (alpha_strip_name_encoding): Remove.
12348         (get_tls_get_addr): Split out from ...
12349         (alpha_legitimize_address): ... here.
12350         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
12351         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
12352         (alpha_initialize_trampoline): Use init_one_libfunc.
12353         (alpha_setup_incoming_varargs): Mark unused parameters.
12354         (alpha_initial_elimination_offset): Likewise.
12355         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
12356         (unicosmk_unique_section): Use default_strip_name_encoding.
12357         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
12358
12359 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
12360
12361         * config.gcc: Add t-spe for eabispe.
12362
12363         * config/rs6000/t-spe: New.
12364
12365 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
12366
12367         Re-apply this patch:
12368
12369         2002-05-16  Dale Johannesen  <dalej@apple.com>
12370           * combine.c (cant_combine_insn_p):  Reenable combinations
12371           involving hard regs unless CLASS_LIKELY_SPILLED_P.
12372
12373 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12374
12375         PR/10271
12376         * pa-protos.h (function_arg): Remove last argument.
12377         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
12378         * pa.h (struct hppa_args): Add member incoming.
12379         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
12380         member incoming.
12381         (FUNCTION_ARG): Revise call to function_arg.
12382         (FUNCTION_INCOMING_ARG): Delete.
12383
12384 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
12385
12386         * configure.in: Unify the code which creates symlinks to a
12387         just-built as, ld, objdump, and nm with the code that detects
12388         their presence for purposes of feature tests.
12389         * configure: Regenerate.
12390
12391 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
12392
12393         * varasm.c (output_constant_def): Do not consult
12394         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
12395         (after_function_constants, output_after_function_constants): Delete.
12396         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
12397         * config/mips/mips-protos.h, config/mips/mips.c
12398         (mips16_constant_after_function_p): Delete.
12399         * config/mips/mips.h: Delete #if-0-ed definition of
12400         CONSTANT_AFTER_FUNCTION_P.
12401         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
12402         mention of CONSTANT_AFTER_FUNCTION_P in comment.
12403
12404 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
12405
12406         * tree.c (next_decl_uid): Mark with GTY.
12407         (next_type_uid): Likewise.
12408
12409 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
12410
12411         PR target/9594:
12412         * sh.c (barrier_align): Also recognize stuff_delay_slot as
12413         an indicator that a barrier was created by branch splitting.
12414
12415 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
12416
12417         * c-decl.c (implicitly_declare): Copy declarations that are going
12418         to be placed in a local scope.
12419
12420 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
12421
12422         * invoke.texi (Spec Files): Wrap if-exists-else example.
12423         (MCore): Remove duplicate @itemx entries and @opindex entries.
12424
12425 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
12426
12427         * unwind.inc (_Unwind_Backtrace): New function.
12428         * unwind.h (_Unwind_Backtrace): Declare it.
12429         * libgcc-std.ver (_Unwind_Backtrace): Export it.
12430
12431 2003-04-14  Jason Merrill  <jason@redhat.com>
12432
12433         PR middle-end/10336, c++/10401
12434         * jump.c (never_reached_warning): Also stop looking if we reach the
12435         beginning of the function.
12436
12437 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12438
12439         PR target/10338
12440         PR bootstrap/10198
12441         PR bootstrap/10140
12442         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
12443
12444 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
12445
12446         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
12447
12448 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12449
12450         * optabs.c (expand_binop): In multi-word add cases, ensure
12451         XTARGET is copied to TARGET if they are different.
12452
12453 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
12454
12455         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
12456         to region, possible after integration of function with unreachable
12457         regions that were optimized away.
12458
12459 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
12460
12461         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
12462         instead of TOC_REGISTER in epilogue in
12463         current_function_calls_eh_return functions.
12464
12465 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
12466
12467         * doc/extend.texi (Empty Structures): Correct description of G++'s
12468         handling of these structures.
12469
12470         * c-decl.c (grokdeclarator): Reject extern redeclarations of
12471         static variables.
12472
12473 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
12474
12475         * config/rs6000/rs6000.md (define_constants): Define constants for
12476         all UNSPEC usage, including new values for TLS support.
12477         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
12478         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
12479         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
12480         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
12481         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
12482         eh_set_lr_di): Use them.
12483         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
12484         rs6000_emit_epilogue) Use them.
12485
12486         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
12487
12488 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
12489
12490         * Makefile.in (c-opts.o): Use custom action.
12491
12492 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
12493
12494         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
12495
12496 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12497
12498         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
12499         handle "superflat arrays" in Ada.
12500
12501         * integrate.c (expand_inline_function): Don't inline if would
12502         lose /u on a BLKmode TARGET.
12503
12504 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
12505
12506         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
12507         extracted from dbxout_type.
12508         (dbxout_range_type): print large bounds in octal format.
12509         (dbxout_type): Replace extracted code by call to
12510         print_int_cst_bounds_in_octal_p.
12511
12512         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
12513         of DW_LANG_Ada83 for Ada units.
12514
12515 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
12516
12517         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
12518         temporary used to round CONST_INT sizes.
12519
12520         * tree.c (int_fits_type_p): Extract generic checks from the case
12521         of constant type bounds. Refine the checks against constant type
12522         bounds to allow for possible decisions against each of these bounds
12523         without requiring both bounds to be constant.
12524         (tree_int_cst_msb): Put back.
12525         * tree.h (tree_int_cst_msb): Likewise.
12526
12527         * global.c (global_conflicts): Prevent allocation of call clobbered
12528         hard regs to pseudos live across abnormal edges, as later passes are
12529         not ready to handle them.
12530
12531         * fold-const.c (fold): Reorder tests for conditional expressions.
12532
12533         * expr.c (highest_pow2_factor): Return unsigned.
12534         * expr.h (offset_address): Likewise.
12535         * emit-rtl.c (offset_address): POW2 argument now unsigned.
12536
12537 2003-04-14  Roger Sayle  <roger@eyesopen.com>
12538
12539         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
12540         string literals at compile-time.
12541
12542 2003-04-14  Roger Sayle  <roger@eyesopen.com>
12543
12544         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
12545         comparison operation and c1/c2 are floating point constants into
12546         x swap(cmp) (c1 - c2).
12547
12548 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
12549
12550         * genautomata.c (output_translate_vect): Fix a typo in loop
12551         condition.
12552
12553 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
12554
12555         PR target/10377
12556         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
12557         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
12558         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
12559         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
12560         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
12561         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
12562         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
12563         ("*extopqihi_swap_side", "*extopqisi_swap_side")
12564         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
12565         When next to constraint R, replace constraint i with n.
12566
12567 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
12568
12569         PR opt/10024
12570         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
12571
12572 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
12573
12574         * doc/contrib.texi (Contributors): Correct my entry.
12575
12576 2003-04-13  Roger Sayle  <roger@eyesopen.com>
12577
12578         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
12579         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
12580         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
12581         implies DECL_BUILT_IN to simplify logic.
12582         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
12583
12584 2003-04-13  Roger Sayle  <roger@eyesopen.com>
12585
12586         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
12587         (BT_FN_PTR_SIZE_SIZE): Likewise.
12588         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
12589         New built-in functions for malloc, calloc and strdup respectively.
12590         * calls.c (special_function_p): No need to handle malloc-like
12591         functions any longer.  ECF_MALLOC is set via built-in attributes.
12592
12593         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
12594
12595         * doc/extend.texi: Document these new built-in functions.
12596
12597 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12598
12599         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
12600         (expand_builtin_stpcpy): New.
12601         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
12602         * builtins.def: Add mempcpy & stpcpy support.
12603         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
12604
12605 2003-04-13  Nick Clifton  <nickc@redhat.com>
12606
12607         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
12608         "GCC".
12609         * config/rs6000/40x.md, config/rs6000/603.md,
12610         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
12611         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
12612         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
12613         config/rs6000/aix43.h, config/rs6000/aix51.h,
12614         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
12615         config/rs6000/altivec.h, config/rs6000/altivec.md,
12616         config/rs6000/beos.h, config/rs6000/darwin.h,
12617         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
12618         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
12619         config/rs6000/freebsd.h, config/rs6000/gnu.h,
12620         config/rs6000/host-darwin.c, config/rs6000/linux.h,
12621         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
12622         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
12623         config/rs6000/netbsd.h, config/rs6000/power4.md,
12624         config/rs6000/rios1.md, config/rs6000/rios2.md,
12625         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
12626         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12627         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
12628         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
12629         config/rs6000/spe.md, config/rs6000/sysv4.h,
12630         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
12631         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
12632
12633 2003-04-13  Nick Clifton  <nickc@redhat.com>
12634
12635         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
12636         support for -mcall-aix switch.
12637         * config/rs6000/eabiaix.h: Delete.
12638         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
12639         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
12640         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
12641         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
12642         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
12643         debug_stack_info, output_function_profiler,
12644         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
12645         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
12646         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
12647         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
12648         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
12649         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
12650         multilibs.
12651         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
12652         (MULTILIB_EXCEPTIONS): Delete.
12653         (MULTILIB_MATCHES): Remove mcall-aix matches.
12654
12655         * doc/fragments.texi: Replace -mcall-aix example with an ARM
12656         one.
12657         * doc/install.texi: Delete powerpc-*-eabiaix target.
12658         * doc/invoke.texi: Remove documentation of mcall-aix switch.
12659         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
12660         * config.gcc: Delete powerpc-*-eabiaix target.
12661
12662 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
12663
12664         * doc/invoke.texi: Fix typos.
12665         * doc/tm.texi: Likewise.
12666
12667 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12668
12669         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
12670
12671 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12672
12673         * tree.c (build_constructor): New function.
12674         * tree.h: Prototype it.
12675
12676         * c-typeck.c (build_c_cast, pop_init_level)
12677         * profile.c (build_function_info_value, build_gcov_info_value)
12678         (create_profiler):
12679         Use build_constructor.
12680
12681         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
12682
12683         * objc/objc-act.c (build_constructor):
12684         Rename objc_build_constructor. Use build_constructor.
12685         (build_objc_string_object, objc_add_static_instance)
12686         (init_def_list, init_objc_symtab, init_module_descriptor)
12687         (generate_static_references, build_selector_translation_table)
12688         (build_descriptor_table_initializer, generate_descriptor_table)
12689         (build_protocol_initializer, build_ivar_list_initializer)
12690         (generate_ivars_list, build_dispatch_table_initializer)
12691         (generate_dispatch_table, generate_protocol_list)
12692         (build_category_initializer, build_shared_structure_initializer):
12693         Update to match.
12694
12695 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12696
12697         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
12698
12699 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12700
12701         * config/m68hc11/m68hc11-protos.h
12702         (m68hc11_eq_compare_operator): Declare
12703         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
12704         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
12705         (d_register_operand): Check the operand mode.
12706         (hard_addr_reg_operand): Likewise.
12707
12708 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12709
12710         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
12711         pattern for dbcc/ibcc generation for 68HC12.
12712         ("doloop_end"): New pattern.
12713         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
12714         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
12715         ("m68hc12_dbcc_dec_qi"): New pattern.
12716         ("m68hc12_dbcc_inc_qi"): New pattern.
12717         (split): Add split for the above when we can't use dbcc/ibcc due to
12718         reloading.
12719         (peephole2): Add peephole2 to generate the above when possible.
12720
12721 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12722
12723         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
12724         mode of operand 0.
12725         (peephole2 optimize const load): Likewise for operand 2.
12726         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
12727         clobbers CC_REGNUM.
12728         ("*rotrhi3_with_carry"): Likewise.
12729         (ashift:DI 1 split): Update pattern to create the above rotate.
12730         (lshiftrt:DI 1 split): Likewise.
12731
12732 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12733
12734         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
12735         ("tstqi_z_used" split): Use it.
12736         ("cmphi_z_used"): Likewise.
12737         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
12738         ("cmpqi_z_used"): Likewise.
12739
12740 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
12741
12742         PR c++/7910
12743         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
12744
12745 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12746
12747         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
12748         * configure, config.in: Regenerate.
12749         * intl.c (gcc_gettext_width): New function.
12750         * intl.h: Prototype it.
12751
12752 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12753
12754         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
12755         recognize -mnorelax.
12756         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
12757         (REG_CLASS_NAMES): Add its name.
12758         (REG_CLASS_CONTENTS): Define its content.
12759
12760 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12761
12762         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
12763         parameters so that offsets are valid for far definition.
12764         (__mulsi3): Likewise and use ret to return.
12765         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
12766
12767 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
12768
12769         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
12770
12771 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
12772
12773         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
12774         containing a libgcc.a, move lib* to the corresponding stage dir.
12775
12776         * Makefile.in (stage1-start, stage2-start, stage3-start,
12777         stage4-start): Move $(SPECS) to specs in stage dir.
12778         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
12779         back as $(SPECS).
12780
12781         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
12782         object files from the non-libgcc/ multilib directories as well.
12783
12784 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
12785
12786         * profile.c (read_counts_file): Initialise 'checksum'.
12787
12788         * emit-rtl.c (gen_rtx): Really correct typo.
12789
12790         PR c++/9393
12791         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
12792         * configure.in: Check for gettimeofday.
12793         * tree.c (flag_random_seed): Define.
12794         (default_flag_random_seed): New.
12795         (append_random_chars): Use flag_random_seed rather than trying
12796         to acquire randomness here.
12797         * tree.h (default_flag_random_seed): Declare.
12798         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
12799         descriptions.
12800         (decode_f_option): Handle -frandom-seed.
12801         (print_switch_values): Call default_flag_random_seed.
12802         * flags.h (flag_random_seed): Declare.
12803         * configure: Regenerate.
12804         * config.in: Regenerate.
12805         * config/alpha/t-crtfm: Use -frandom-seed.
12806
12807         * doc/extend.texi (Empty Structures): New.
12808
12809         * c-pch.c: Include flags.h.  Add comments to routines.
12810         (struct c_pch_validity): New.
12811         (get_ident): Update PCH file version number.
12812         (pch_init): Output current debugging type.
12813         (c_common_valid_pch): Check debugging type.
12814         * Makefile.in (c-pch.o): Update dependencies.
12815         * flags.h (debug_type_names): Declare.
12816         * toplev.c (debug_type_names): Move out of decode_g_option.
12817
12818 2003-04-11  Eric Christopher  <echristo@redhat.com>
12819
12820         * emit-rtl.c (gen_rtx): Fix typos.
12821
12822 2003-04-11  Richard Henderson  <rth@redhat.com>
12823
12824         * emit-rtl.c (gen_rtx): Zero '0' fields.
12825
12826 2003-04-11  Richard Henderson  <rth@redhat.com>
12827
12828         PR c++/10202
12829         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
12830         not COMPLETE_TYPE_P for re-invoking layout_decl.
12831
12832 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
12833
12834         * doc/bugreport.texi: Fix paragraph breaking between sections
12835         in preparation for TeXinfo's paragraph indentation fixes.
12836         * doc/extend.texi: Ditto.
12837         * doc/invoke.texi: Ditto.
12838         * doc/objc.texi: Ditto.
12839         * doc/gcov.texi: Wrap 'gcov' in @command{}.
12840         * doc/invoke.texi (Darwin Options): Add a preamble.
12841
12842 2003-04-11  Richard Henderson  <rth@redhat.com>
12843
12844         * config/i386/i386.c (tls_model_chars): Remove.
12845         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
12846         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
12847         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12848         (tls_symbolic_operand_1): Likewise.
12849         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
12850         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
12851         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
12852         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
12853         bits "copied from i386.h" with default_encode_section_info.
12854
12855 2003-04-11  Richard Henderson  <rth@redhat.com>
12856
12857         * rtl.def (SYMBOL_REF): Add two 0 fields.
12858         * gengtype.c (adjust_field_rtx_def): Handle them.
12859         * print-rtl.c (print_rtx): Print them.
12860         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
12861         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
12862         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
12863         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
12864         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
12865         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
12866         (SYMBOL_FLAG_MACH_DEP): New.
12867         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
12868         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
12869         (assemble_static_space): Set SYMBOL_REF_FLAGS.
12870         (assemble_trampoline_template): Likewise.
12871         (output_constant_def, force_const_mem): Likewise.
12872         (default_encode_section_info): New.
12873         * output.h: Declare it.
12874         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
12875
12876 2003-04-11  Richard Henderson  <rth@redhat.com>
12877
12878         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
12879         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
12880         * optabs.c (init_optabs): Initialize them.
12881         (init_libfuncs): Use init_one_libfunc.
12882         * calls.c (expand_call): Use gcov_flush_libfunc.
12883         * expr.c (store_constructor): Use setbits_libfunc.
12884         * function.c (expand_main_function): Use init_one_libfunc.
12885         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
12886
12887 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
12888
12889         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
12890         documentation; add DECL_FRIEND_CONTEXT.
12891
12892 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12893
12894         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
12895         notes on linker selection and configuration for 64-bit HP-UX port.
12896         * doc/invoke.texi (hppa): Remove hppa text from description for
12897         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
12898         and -threads options.
12899
12900         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
12901         libc.a on libdld.sl when -static is specified and -nolibdld is not
12902         specified.
12903         * pa64-hpux.h (LIB_SPEC): Likewise.
12904         * pa-hpux11.h (LIB_SPEC): Likewise.
12905         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
12906         is not specified.
12907
12908 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
12909
12910         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
12911         not IDENTIFIER_LOCAL_VALUE.
12912
12913 2003-04-11  Richard Henderson  <rth@redhat.com>
12914
12915         PR c/10201
12916         * expr.c (expand_expr): Move DECL_RTL frobbing ...
12917         * stor-layout.c (layout_decl): ... here.
12918
12919 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
12920
12921         * doc/invoke.texi: Eliminate extra white-space caused by
12922         @gccoptlist{ on its own line.
12923         * doc/invoke.texi: Ensured there are two spaces between each option.
12924         * doc/invoke.texi: Re-wrapped option lines that were too wide.
12925         Added @gol to options that didn't have them.
12926
12927 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
12928
12929         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
12930         gcov-iov.h.
12931
12932         Simplify interface to gcov reading and writing.
12933         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
12934         gcov_alloc, gcov_modified, gcov_errored): Move into ...
12935         (struct gcov_var gcov_var): ... this static structure.
12936         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
12937         Return void.
12938         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
12939         read object.
12940         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
12941         (gcov_reserve_length): Remove.
12942         (gcov_write_tag): New.
12943         (gcov_write_length): Adjust.
12944         (gcov_read_summary, gcov_write_summary): Adjust.
12945         (gcov_eof, gcov_ok): Rename to ...
12946         (gcov_is_eof, gcov_is_error): ... here. Return error code.
12947         (gcov_save_position, gcov_resync): Rename to ...
12948         (gcov_position, gcov_seek): ... here.
12949         (gcov_skip, gcov_skip_string): Remove.
12950         (gcov_error): Remove.
12951         (gcov_open, gcov_close): Adjust.
12952         * gcov.c (find_source): Take const char *, copy it on allocation.
12953         (read_graph_file): Adjust.
12954         (read_count_file): Adjust.
12955         * libgcov.c (gcov_exit): Adjust.
12956         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
12957         tag_arc_counts, tag_summary): Return void. Adjust.
12958         (struct tag_format): Adjust proc member.
12959         (dump_file): Adjust gcov calls.
12960
12961 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
12962
12963         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
12964         mkfixinc.sh.
12965         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
12966         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
12967         build != host sysrooted builds.
12968         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
12969         TARGET_SYSTEM_ROOT even on sysrooted natives.
12970         * configure: Rebuilt.
12971
12972 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
12973
12974         * c-decl.c (struct binding_level): Add shadowed_tags and
12975         function_body; remove this_block, tag_transparent, and
12976         subblocks_tag_transparent; update comments.
12977         (clear_binding_level, lookup_tag_reverse): Kill.
12978         (make_binding_level): Use ggc_alloc_cleared or memset.
12979         (lookup_tag): Remove struct binding_level* parameter.  All
12980         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
12981         current_binding_level->tags if asked for thislevel_only or if
12982         we might have to diagnose "struct foo; union foo;"
12983         (pushlevel): Ignore argument.  Do not push another binding
12984         level on the transition from the parameters to the top level
12985         of the function body; just tweak the flags and proceed.
12986         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
12987         a function body, separate the parameter list from the
12988         top-level local variables.
12989         (set_block): Do nothing.
12990         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
12991         shadowed_tags if necessary.
12992         (warn_if_shadowing): Nuke the special case for local shadowing
12993         parameter.
12994         (pushdecl): Do not create a shadow entry if we are replacing
12995         an older decl in the same binding level.
12996         (pushdecl_function_level): Tweak for new way of indicating
12997         function scope.
12998         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
12999         (start_function): Don't set subblocks_tag_transparent.
13000         (finish_function): Fix up the binding_level stack for totally
13001         empty functions.  Otherwise, don't call poplevel.
13002
13003         * c-common.c (shadow_warning): MANDATORY argument is no longer
13004         necessary.  Always use plain warning.
13005         * c-common.h: Update to match.
13006
13007         * cfglayout.c (scope_to_insns_initialize): Clear block when we
13008         hit the FUNCTION_DECL.
13009         * function.c: Do not create cyclic tree structure.
13010
13011 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
13012
13013         * c-tree.h (struct lang_identifier): Replace global_value,
13014         local_value members with symbol_value, tag_value.  Kill
13015         implicit_decl and limbo_value.
13016         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
13017         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
13018         C_MISSING_PROTOTYPE_WARNED): Kill.
13019         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
13020         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
13021         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
13022         (implicit_decl_warning, lookup_name_current_level,
13023         record_function_scope_shadow): Don't prototype.
13024         (pushdecl_function_level): Prototype.
13025
13026         * c-decl.c (truly_local_externals): New variable.
13027         (struct binding_level): Adjust commentary.
13028         (get_function_binding_level, clear_limbo_values,
13029         record_function_scope_shadow): Kill.
13030         (lookup_name_current_level, implicit_decl_warning): Are now static.
13031         (any_external_decl, record_external_decl): New static functions.
13032         (clone_underlying type): Split out of pushdecl.
13033         (c_print_identifier): Update to match changes to struct
13034         lang_identifier.
13035         (poplevel): Delete #if 0 block.  Make externals invisible
13036         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
13037         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
13038         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
13039         (duplicate-decls): For real parm decl after a forward decl,
13040         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
13041         foo(...) { } with only a warning.  Say whether a previous
13042         declaration was implicit.
13043         (warn_if_shadowing): Now handles all shadowing, not just
13044         local-over-local.  Clarify comments.
13045         (pushdecl): Rewritten.  There is no longer a distinction
13046         between global and local symbol values; they're all
13047         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
13048         DECL_EXTERNAL decls, and use any_external_decl to check
13049         against previous externals.  Kill #if 0 blocks.  Don't
13050         tolerate error_mark_node being NULL.
13051         (pushdecl_top_level): Handle only those cases which
13052         Objective C (the only user) needs.
13053         (pushdecl_function_level): New function.
13054         (implicitly_declare): Create ordinary decls with
13055         C_DECL_IMPLICIT set.  Recycle old decls, however they got
13056         created.
13057         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
13058         for C_DECL_INVISIBLE symbols.
13059         (lookup_name_current_level): Likewise.  Use chain_member.
13060         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
13061         Use pushdecl_function_level.
13062         (builtin_function): Use C_DECL_INVISIBLE.
13063         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
13064         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
13065         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
13066         (identifier_global_value): Same.  Must scan
13067         global_binding_level in extremis.
13068
13069         * c-typeck.c (undeclared_variable): New static function, split
13070         from build_external_ref.
13071         (build_external_ref): Use DECL_CONTEXT, not
13072         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
13073         an instance variable.  Restructure for clarity.
13074         * objc/objc-act.c: Use identifier_global_value, not
13075         IDENTIFIER_GLOBAL_VALUE.
13076
13077 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
13078
13079         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
13080         not Working Paper.
13081         * doc/invoke.texi (C++ Dialect Options): Same.
13082
13083 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
13084
13085         * tree.c (tree_operand_check_failed): New function.
13086         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
13087         TREE_RTL_OPERAND_CHECK): New checking macros.
13088         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
13089         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
13090         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
13091         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
13092         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
13093         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
13094         checking macros.
13095
13096 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
13097
13098         PR inline-asm/8803
13099         * function.c (instantate_virtual_regs):  Verify that all ASM statements
13100         match after the virutal regs instantiation.
13101
13102 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
13103
13104         * ia64-protos.h (addp4_optimize_ok): New.
13105         * ia64.c (addp4_optimize_ok): New.
13106         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
13107         (*ptr_extend_plus_2): Ditto.
13108
13109 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
13110
13111         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
13112         not with convert_memory_address.
13113         (store_constructor): Ditto, and same for copy_size_rtx.
13114         (expand_expr): Ditto.
13115
13116 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
13117
13118         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
13119
13120 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
13121
13122         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
13123         even if it is configured to be write-through.
13124
13125 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
13126
13127         * config/s390/s390.c (larl_operand): Do not allow symbols
13128         marked with '@'.
13129         (s390_encode_section_info): Mark symbols with forced 1-byte
13130         alignment with '@'.
13131         (s390_strip_name_encoding): Strip '@'.
13132         (legitimize_pic_address): Handle symbols that are not valid
13133         LARL operands in 64-bit mode.
13134
13135 2003-04-10  Andrew Haley  <aph@redhat.com>
13136
13137         * tree-inline.c (inlinable_function_p): Disable inlining for
13138         synchronized methods.
13139
13140 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
13141
13142         * c-common.h (lang_statement_code_p): Remove declaration.
13143         (statement_code_p): Ditto.
13144         (c_common_stmt_codes): Define; list of c-common statement codes.
13145         (statement_code_p): New extern declaration.
13146         (STATEMENT_CODE_P): Define.
13147         (INIT_STATEMENT_CODES): Define.
13148         * c-common.c (statement_code_p): Kill the function, declare
13149         as an array of bools instead.
13150         (lang_statement_code_p): Remove.
13151         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
13152         (c_safe_from_p): Ditto.
13153         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
13154         to initialize the statement_code_p array.
13155         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
13156         statement_code_p.
13157         (copy_tree_r): Ditto.
13158         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
13159         statement tree codes.
13160         * cp/lex.c (cxx_init): Add missing print line break.  Use
13161         INIT_STATEMENT_CODES to initialize the statement_code_p array.
13162         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
13163         instead of statement_code_p.
13164         * cp/pt.c (tsubst_expr): Ditto.
13165         * cp/tree.c (verify_stmt_tree_r): Ditto.
13166         (cp_statement_code_p): Remove.
13167         (init_tree): Don't set lang_statement_code_p, it's gone.
13168
13169 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
13170             Zack Weinberg  <zack@codesourcery.com>
13171
13172         * regrename.c (struct du_chain): Use a bitfield for reg_class.
13173         * cse.c (struct qty_table_elem, struct table_elt, struct set):
13174         Use bitfields for fields holding enum rtx_code or
13175         enum machine_mode values.  Add comments explaining size choices.
13176
13177 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
13178
13179         * config/fp-bit.c (unpack_d): Handle pair of doubles with
13180         different signs correctly.
13181
13182 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
13183
13184         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
13185         (reg_pending_barrier): Make it of the enumeration type.
13186         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
13187         TRUE_BARRIER.
13188         (sched_analyze): Ditto.
13189         (sched_analyze_insn): Ditto.  Use anti-dependencies for
13190         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
13191         (init_deps_global): Initialize the barrier as NO_BARRIER.
13192
13193 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
13194
13195         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
13196         Check that asm insn starts on a new cycle.  Add nops after asm
13197         insn to end bundle.
13198         (bundling): Move insn type evaluation from the loop.  Call
13199         issue_nops_and_insn with the new parameter.  Ignore changing
13200         position for nops after asm insn.
13201
13202 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
13203
13204         * optabs.c: Comment that gen_add2_insn and others may actually
13205         return emitted insns, if the gen functions turn out to return
13206         emitted insns.
13207         * reload1.c (reload_cse_move2add): Cope with emitted insns from
13208         gen_add2_insn.
13209
13210 2003-04-09  Richard Henderson  <rth@redhat.com>
13211
13212         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
13213         but not tls_symbolic_operand.
13214         (ia64_expand_load_address): Remove scratch operand.
13215         (ia64_expand_tls_address): Split out from ia64_expand_move.
13216         (ia64_expand_move): Split symbolics only after reload.
13217         (ia64_emit_cond_move): New.
13218         * config/ia64/ia64-protos.h: Update.
13219         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
13220         (symbolic splitter): Accept SImode operands too.
13221         (cmove splitter): Use ia64_emit_cond_move.
13222
13223 2003-04-09  Nick Clifton  <nickc@redhat.com>
13224
13225         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
13226         newer.
13227         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
13228         instead of -mno-fpu.
13229         * config/arm/semi.h (ASM_SPEC): Likewise.
13230         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
13231         but only if -msoft-float is specified pass.  Otherwise pass
13232         -mfpu=softvfp.
13233
13234 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13235
13236         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
13237         free_EXPR_LIST_node.
13238
13239 2003-04-08  Roger Sayle  <roger@eyesopen.com>
13240
13241         * fold-const.c (fold):  Use "fold" following build in more places.
13242         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
13243         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
13244
13245 2003-04-08  Roger Sayle  <roger@eyesopen.com>
13246
13247         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
13248         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
13249         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
13250         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
13251         Delete function scope "fcode" variable to avoid shadowing.
13252
13253 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
13254
13255         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
13256         Take into account DWARF_INITIAL_LENGTH_SIZE.
13257
13258 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
13259
13260         * reorg.c (fill_slots_from_thread): When considering changing the
13261         insn following a reg-to-reg copy insn to use the source reg of the
13262         copy, bail out if there's overlap between the registers.
13263
13264 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13265
13266         * function.c (postponed_insns): New.
13267         (purge_addressof_1): Postpone processing of insns if addressofs
13268         are not put into stack.
13269         (purge_addressof): Process postponed insns.
13270
13271 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
13272
13273         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
13274         this is FP_MODE_DOUBLE .
13275         * sh.c (ra.h): #include.
13276         (push_regs): Add second parameter.  Changed all callers.
13277         If necessary, set fpscr before saving floating point registers.
13278         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
13279         do saves / restores with SZ == 1.
13280         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
13281         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
13282         registers are being restored, restore FPSCR only after restoring them.
13283
13284 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
13285
13286         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
13287         regardless of architecture.
13288         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
13289
13290 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
13291
13292         * sh.c (push_regs, calc_live_regs): Return int.  Take single
13293         HARD_REG_SET * parameter.  Changed all callers.
13294
13295 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
13296
13297         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
13298         GOTOFF operand.
13299         (legitimize_pic_address): Move plus outside the unspec.
13300         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
13301         for validity.
13302
13303 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
13304
13305         * gcov-io.h (gcov_save_position): Remove __inline__ from
13306         declaration.
13307
13308 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
13309
13310         * doc/install.texi: Use @command and @samp for single- and
13311         multi-word commands respectively.
13312         * doc/makefile.texi: Likewise.
13313         * doc/sourcebuild.texi: Likewise.
13314
13315 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13316             Richard Henderson  <rth@redhat.com>
13317
13318         PR c/9516
13319         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
13320         favor of looping and tail recursion for TREE_LIST and binops.
13321
13322 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13323
13324         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
13325         for insns without luid.
13326
13327 2003-04-07  Glen Nakamura  <glen@imodulo.com>
13328
13329         PR opt/8634
13330         * explow.c (maybe_set_unchanging): Don't flag non-static const
13331         aggregate type initializers with RTX_UNCHANGING_P.
13332
13333 2003-04-07  Richard Henderson  <rth@redhat.com>
13334
13335         PR opt/8634
13336         * function.c (purge_addressof_1): Don't try arithmetics for
13337         unchanging memories.
13338
13339 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
13340
13341         * doc/sourcebuild.texi (Test Suites): Document testing support for
13342         gcov and profile-directed optimizations; describe gcc.misc-tests.
13343
13344 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
13345
13346         PR target/10077
13347         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
13348
13349 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13350
13351         * doc/rtl.texi (Comparison operations): Update to
13352         record the allowed comparison modes.
13353
13354 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
13355
13356         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
13357         V2SI_type_node to opaque_V2SI_type_node.  Rename all
13358         V2SF_type_node to opaque_V2SF_type_node.
13359         (rs6000_init_builtins): Define opaque_V2SI_type_node and
13360         opaque_V2SF_type_node.
13361         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
13362         opaque_V2SF_type_node are opaque types.
13363
13364 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
13365
13366         * gcse.c (replace_store_insn): Use single_set.
13367
13368 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
13369
13370         Change gcov file interface to single file at a time.
13371         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
13372         Convert to C89 prototypes.
13373         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
13374         gcov_error, gcov_modified): New static variables.
13375         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
13376         functions.
13377         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13378         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13379         (gcov_read_summary, gcov_write_summary): Adjust.
13380         (gcov_save_position, gcov_reserve_length, gcov_write_length):
13381         Adjust.
13382         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
13383         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
13384         (da_file_position, da_file_seek, da_file_write, da_file_read):
13385         Remove.
13386         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
13387         * gcov.c (gcov_type): Don't typedef here.
13388         (IN_GCOV): #define
13389         (read_graph_file, read_count_file): Adjust.
13390         * gcov-dump.c (gcov_type): Don't typedef here.
13391         (IN_GCOV): #define.
13392         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
13393         Remove FILE parameter, adjust.
13394         (struct tag_format): Adjust proc member.
13395         (dump_file): Adjust.
13396         * libgcov.c (IN_LIBGCOV): #define.
13397         (gcov_exit): Adjust.
13398         * loop-init.c: Don't #include gcov-io.h
13399         * profile.c (struct counts_entry): New structure to hold counter
13400         values.
13401         (struct section_reference, struct da_index_entry): Remove.
13402         (bbg_file, da_file): Remove.
13403         (htab_counts_index_hash, htab_counts_index_eq,
13404         htab_counts_index_del): Replace with ...
13405         (htab_counts_entry_hash, htab_counts_entry_eq,
13406         htab_counts_entry_del): ... these.
13407         (cleanup_counts_index, index_counts_file): Remove.
13408         (read_counts_file): New function.
13409         (get_exec_counts): Adjust.
13410         (compute_branch_probabilities): Don't free the exec counts here.
13411         (branch_prob): Adjust.
13412         (init_branch_prob): Adjust.
13413         (end_branch_prob): Adjust.
13414
13415 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
13416
13417         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13418         -mfloat-gprs.
13419
13420         * config/rs6000/rs6000.c: Delete rs6000_fprs.
13421         Declare rs6000_float_gprs.
13422         Declare rs6000_float_gprs_string.
13423         (rs6000_parse_float_gprs_option): New.
13424         (rs6000_override_options): Genericize rs6000_parse_* calls to use
13425         rs6000_parse_yes_no_option.
13426         Change check for cpu=8540, to use TARGET_E500.
13427         (rs6000_parse_isel_option): Delete.
13428         (rs6000_parse_spe_option): Delete.
13429         (rs6000_parse_vrsave_option): Delete.
13430
13431         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
13432         Define rs6000_float_gprs_string.
13433         (TARGET_OPTIONS): Add rs6000_float_gprs option.
13434
13435         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
13436
13437         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
13438
13439 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
13440
13441         PR opt/10024
13442         * cfglayout.c (cfg_layout_redirect_edge):
13443         Redirect any branch edges unified with the fallthru one.
13444         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
13445         case fallthru edges when called via cfglayout.c
13446
13447 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
13448
13449         * c-typeck.c (output_init_element): Check for type == error_mark_node.
13450
13451 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
13452
13453         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
13454         split.
13455         (a splitter): Do zero-extension via HImode.
13456
13457 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
13458
13459         * doc/invoke.texi: Eliminate extra white-space caused by
13460         @gccoptlist{ on its own line.
13461         * doc/invoke.texi: Ensured there are two spaces between each option.
13462         * doc/invoke.texi: Re-wrapped option lines that were too wide.
13463         Added @gol to options that didn't have them.
13464
13465 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
13466
13467         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
13468
13469 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
13470
13471         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
13472         at the sizes of the relevant structures, rather than relying
13473         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
13474         sizes of any such we don't know about.  Use
13475         lang_hooks.identifier_size for IDENTIFIER_NODE.
13476
13477         (initializer_zerop): Use CONSTRUCTOR_ELTS.
13478         * tree.def: Update commentary.  Make fourth element of
13479         the definition for all 'c' and 'x' nodes zero.
13480
13481         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
13482         * langhooks-def.h: Update to match.
13483         * langhooks.c: New default, lhd_tree_size.
13484
13485         * c-common.def (SRCLOC): Kill.
13486         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
13487         Remove entirely - was already #if-ed out.
13488
13489
13490 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
13491
13492         * mklibgcc.in: Use a here document to avoid running afoul of
13493         shells that generate control-A from "echo \1".
13494
13495 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
13496
13497         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
13498         option.
13499
13500         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13501         rs6000_spe.
13502
13503         * config/rs6000/eabi.h (TARGET_E500): Define.
13504
13505         * config/rs6000/rs6000.h (TARGET_E500): Define.
13506         (TARGET_OPTIONS): Add spe= option.
13507         Declare rs6000_spe and rs6000_spe_string extern.
13508
13509         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
13510         Change TARGET_SPE to TARGET_E500.
13511         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
13512         !TARGET_FPRS.
13513         (print_operand): Same.
13514         (rs6000_generate_compare): Same.
13515         (output_cbranch): Same.
13516         (rs6000_spe): Declare.
13517         (rs6000_spe_string): Declare.
13518         (rs6000_override_options): Call rs6000_parse_spe_option.
13519         (rs6000_parse_spe_option): New.
13520
13521 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
13522
13523         * hashtable.c (gcc_obstack_init): Delete this function
13524         and everything related to it.
13525         * hashtable.h: Remove prototype.
13526         * bitmap.c (bitmap_element_allocate): Cleanup redundant
13527         defines.  Cleanup some unnecessary whitespace.
13528         * defaults.h (obstack_chunk_alloc): Redefine with
13529         appropriate casts for libiberty obstacks.
13530         (obstack_chunk_free): Ditto.
13531         (OBSTACK_CHUNK_SIZE): Define, default to 0.
13532         (gcc_obstack_init): Define as a call to _obstack_begin.
13533         * tree.c (print_obstack_statistics): Delete this unused
13534         function.
13535         * tree.h (obstack): Don't forward-declare.
13536         (print_obstack_statistics): Delete prototype.
13537         (print_obstack_name): Ditto.
13538         (gcc_obstack_init): Ditto.
13539         * rtl.h (gcc_obstack_init): Ditto.
13540         * java/jv-scan.c (gcc_obstack_init): Delete this
13541         function, its prototype and related defines.
13542         * java/jvgenmain.c (gcc_obstack_init): Delete this
13543         function, and related defines.
13544         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
13545         (obstack_chunk_free): Ditto
13546
13547 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
13548
13549         * dbxout.c (dbxout_handle_pch): Move prototype out from
13550         #if defined DBX_DEBUGGING_INFO.
13551
13552 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
13553
13554         * gcov.c (struct arc_info): Replace local_span with cycle.
13555         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
13556         (solve_flow_graph): Set is_call_return.
13557         (add_line_counts): Adjust. In block mode, blocks attach to last line.
13558         (accumulate_line_counts): Find graph cycles, not spanning tree.
13559         (output_branch_count): Adjust.
13560         (output_lines): Adjust.
13561         * doc/gcov.texi: Update.
13562
13563 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
13564
13565         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
13566         the second alternative to "#".
13567
13568 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
13569
13570         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
13571         (single_zero_operand): Likewise.
13572
13573 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
13574
13575         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
13576         * df.c: Include alloc-pool.h, not obstack.h.
13577         (df_ref_obstack): Remove.
13578         (df_ref_pool, df_link_pool): Add pools.
13579         (df_alloc): Init the new pools.
13580         (df_free): And free them.
13581         (df_link_create): Use the pools.
13582         (df_ref_create): Ditto.
13583
13584 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
13585
13586         * simplify-rtx.c: Fix formatting.
13587
13588 2003-04-05  Andrew Pinski  <apinski@apple.com>
13589
13590         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
13591         reg with reg1 == reg2 and offset1 = -8.
13592
13593 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
13594
13595         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
13596         multiply costs.  Correct Power4 divide costs.
13597         * config/rs6000/power4.md: Restore multiply and FP latency.
13598
13599 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13600
13601         * alias.c (find_base_term): Export.
13602         * rtl.h (find_base_term): Declare.
13603         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
13604         instead of flag_exceptions.  Move test for parameter passing ...
13605         (store_killed_in_insn): ... here.
13606
13607 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13608
13609         PR bootstrap/10267
13610         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
13611         for configuring.
13612
13613 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
13614
13615         * dbxout.c (scope_labelno): Add GTY.
13616         (have_used_extensions): Add GTY.
13617         (source_label_number): Add GTY.
13618         (lastfile): Add GTY.
13619         (lastfile_is_base): New.
13620         (base_input_file): New.
13621         (dbxout_handle_pch): New.
13622         (dbx_debug_hooks): Add handle_pch.
13623         (xcoff_debug_hooks): Likewise.
13624         (dbxout_function_end): Remove scope_labelno.
13625         (dbxout_init): Set base_input_file.
13626         (dbxout_handle_pch): New.
13627         (dbxout_source_file): Honour lastfile_is_base.
13628         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
13629         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
13630         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
13631         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
13632         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
13633         * debug.h (struct gcc_debug_hooks): Add handle_pch.
13634         * c-pch.c (pch_init): Don't call start_source_file, but do call
13635         handle_pch.
13636         (c_common_write_pch): Call handle_pch.
13637         (c_common_read_pch): Don't call start_source_file,
13638         or end_source_file.
13639
13640 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
13641
13642         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
13643         use of default attributes to agree MEM_ALIGN macro.
13644
13645 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
13646
13647         * dbxout.c (dbxout_type): When printing type index of range type
13648         whose bounds are printed in octal format, print type of parent type if
13649         it exists so enumerated type descriptions are not transformed
13650         into unsigned types.
13651
13652 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
13653
13654         * config/h8300/h8300-protos.h: Add a prototype for
13655         compute_a_shift_cc.
13656         * config/h8300/h8300.c (shift_one): Update the CC status.
13657         (shift_two): Likewise.
13658         (output_a_shift_cc): Set cc_inline and cc_special.
13659         (compute_a_shift_cc): New.
13660         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
13661
13662 2003-04-04  Richard Henderson  <rth@redhat.com>
13663
13664         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
13665
13666 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
13667
13668         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
13669         * fixinc/fixincl.x: Rebuilt.
13670         * fixinc/tests/base/stdio.h: Regenerated.
13671
13672 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
13673
13674         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
13675
13676 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
13677
13678         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
13679         (NORMAL_MODE).
13680         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
13681
13682 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13683
13684         * doc/contrib.texi (Contributors): Add entries for Wolfgang
13685         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
13686         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
13687         Danny Smith, and Ulrich Weigand.
13688         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
13689         entry.
13690
13691 2003-04-04  Nick Clifton  <nickc@redhat.com>
13692
13693         * config/sparc/sol2-bi.h: Revert previous delta.
13694         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
13695
13696 2003-04-04  Nick Clifton  <nickc@redhat.com>
13697
13698         * config/v850/v850.c (expand_prologue): Only use register save
13699         helper functions if long calls are not being used.
13700         Add a clobber of r11 id using long calls.
13701         (pattern_is_ok_for_prologue): Account for the extra clobber.
13702         (construct_save_jarl): Likewise.
13703         * config/v850/v850.md (prolog pattern): Do not use this pattern
13704         for v850e's.
13705
13706 2003-04-04  Andreas Schwab  <schwab@suse.de>
13707
13708         * stor-layout.c (layout_decl): Avoid syntax error in last change
13709         when PCC_BITFIELD_TYPE_MATTERS is defined but not
13710         EMPTY_FIELD_BOUNDARY.
13711
13712 2003-04-03  Jason Merrill  <jason@redhat.com>
13713
13714         PR c/10175
13715         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
13716         Look backwards for a line note.
13717
13718 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
13719
13720         * fix-header.c (read_scan_file): Defer switch processing.
13721
13722 2003-04-03  Matt Austern  <austern@apple.com>
13723
13724         * cpppch.c (reset_ht): Remove.
13725         (cpp_read_state): Remove loop to reset hashtable identifiers.
13726         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
13727         after pch file is written.
13728         * ggc.h (gt_pch_fixup_stringpool): Declare.
13729         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
13730         hashnode's value to another hashtable, then clear the original.
13731         (saved_ident_hash): Define.
13732         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
13733         store definitions in ident_hash, and clear ident_hash.
13734         (gt_pch_fixup_stringpool): Define.  Restore definitions from
13735         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
13736
13737 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
13738
13739         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
13740
13741 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13742
13743         PR optimization/10157
13744         * gcse.c (can_copy_p): Rename it to can_copy.
13745         (can_copy_init_p): Remove.
13746         (compute_can_copy): Use can_copy instead of can_copy_p.
13747         (can_copy_p): New exported function. Call compute_can_copy.
13748         (hash_scan_set): Use it.
13749         (gcse_main): Don't call compute_can_copy.
13750         (bypass_jumps): Don't call compute_can_copy.
13751         * rtl.h (can_copy_p): Declare.
13752         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
13753         copy if the mode doesn't support copy operations.
13754
13755 2003-04-03  Jason Merrill  <jason@redhat.com>
13756
13757         * Makefile.in (unstrap): Also remove stage_last.
13758
13759         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
13760         (dwarf2out_source_line): Don't do anything if line==0.
13761
13762         * stor-layout.c (do_type_align): New fn, split out from...
13763         (layout_decl): ...here.  Do all alignment calculations for
13764         FIELD_DECLs here.
13765         (update_alignment_for_field): Not here.
13766         (start_record_layout, debug_rli): Remove unpadded_align.
13767         * tree.h (struct record_layout_info_s): Remove unpadded_align.
13768         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
13769         or DECL_MODE on the CONST_DECLs.
13770         (finish_struct): Don't mess with DECL_ALIGN.
13771
13772 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
13773
13774         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
13775
13776 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
13777
13778         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
13779         function is an interrupt handler.
13780
13781         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
13782         restoring target registers with EH_RETURN_STACKADJ_RTX; use
13783         multiple registers in round-robin fashion.
13784
13785 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13786
13787         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
13788         * system.h (CHAR_BITFIELD): New.
13789
13790 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
13791
13792         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
13793         and LE.
13794         (another peephole2): Likewise.
13795
13796 2003-04-03  Nick Clifton  <nickc@redhat.com>
13797
13798         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
13799         (DEF_ARCH64_SPEC): Likewise.
13800
13801 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
13802
13803         * i386.c (constant_address_p): Use legitimate_constant_p.
13804         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
13805
13806 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13807
13808         * config/h8300/h8300-protos.h: Add a prototype for
13809         gtle_operator.
13810         * config/h8300/h8300.c (gtle_operator): New.
13811         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
13812         gtle_operator.
13813         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
13814         and LE.
13815
13816 2003-04-02  Richard Henderson  <rth@redhat.com>
13817
13818         * libgcc-std.ver (_Unwind_GetCFA): New.
13819         * unwind-dw2.c (_Unwind_GetCFA): New.
13820         * unwind-libunwind.c (_Unwind_GetCFA): New.
13821         * unwind-sjlj.c (_Unwind_GetCFA): New.
13822         * unwind.h: Declare it.
13823
13824 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
13825
13826         PR inline-asm/8088
13827         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
13828         when MMX/SSE is not available.
13829
13830 2003-04-02  Mike Stump  <mrs@apple.com>
13831
13832         * doc/install.texi (Specific): Update pointers to apple.com.
13833
13834 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
13835
13836         * i386.c (override_options):  Disable red zone by default on i386.
13837         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
13838         Do not test TARGET_64BIT together with TARGET_RED_ZONE
13839
13840 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13841
13842         * config/h8300/h8300.md (a peephole2): Tighten the condition.
13843
13844 2003-04-02  Richard Henderson  <rth@redhat.com>
13845
13846         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
13847
13848 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13849
13850         * config/h8300/h8300.md (a peephole2): New.
13851
13852 2003-04-02  Richard Henderson  <rth@redhat.com>
13853
13854         * except.c (sjlj_find_directly_reachable_regions): Recognize when
13855         must-not-throw region has been deleted.
13856
13857 2003-04-02  Richard Henderson  <rth@redhat.com>
13858
13859         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
13860         optimization when flag_exceptions not enabled.
13861
13862 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
13863
13864         * config/rs6000/rs6000.c
13865         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
13866         macros.
13867         (rs6000_issue_rate): Add case for 8540.
13868         (rs6000_use_sched_lookahead): New function.
13869
13870         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
13871         units into MU ones.
13872         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
13873         reservation before retirement.
13874         (ppc8540_multiply, ppc8540_load, ppc8540_store,
13875         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
13876         Remove additional cycle in the reservation before retirement.
13877         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
13878         reservation of ppc8540_issue.
13879
13880 2003-04-02  Andreas Schwab  <schwab@suse.de>
13881
13882         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
13883
13884 2003-04-01  Richard Henderson  <rth@redhat.com>
13885
13886         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
13887         notes for nothrow calls if flag_forced_unwind_exceptions.
13888         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
13889         (sjlj_find_directly_reachable_regions): Likewise.
13890         (reachable_handlers): Likewise.
13891         (can_throw_external): Likewise.
13892         (collect_one_action_chain): Record cleanups after catch-all and
13893         must-not-throw if flag_forced_unwind_exceptions.
13894         * flags.h (flag_forced_unwind_exceptions): Declare.
13895         * toplev.c (flag_forced_unwind_exceptions): New.
13896         (lang_independent_options): Add it.
13897         * doc/invoke.text: Add it.
13898
13899 2003-04-01  David Mosberger <davidm@hpl.hp.com>
13900
13901         * config/ia64/crti.asm: Clean up trailing whitespace.
13902         Remove trailing hashes (#) from identifiers.
13903
13904         * config/ia64/crtn.asm: Ditto.
13905
13906         * config/ia64/crtend.asm: Remove trailing hashes (#) from
13907         identifiers.
13908         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
13909         directives.  Drop explicit bundling---it just makes the code
13910         harder to read.  Don't save/restore gp needlessly.
13911
13912         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
13913         identifiers (they're only needed if the identifier would clash
13914         with a register name otherwise).
13915         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
13916         directives.  Drop explicit bundling---it just makes the code
13917         harder to read.
13918         (__do_jv_register_classes): Ditto.
13919         (.fini_array): Remove "progbits" (newer
13920         assemblers don't like wrong section-types).
13921         (.init_array): Ditto.
13922
13923 2003-04-01  Roger Sayle  <roger@eyesopen.com>
13924
13925         PR fortran/9974
13926         * gcse.c (reg_killed_on_edge): New function to test whether the
13927         given reg is overwritten by any instruction queued on an edge.
13928         (bypass_block): Ignore substitutions killed on incoming edges.
13929         Don't bypass outgoing edges that have queued instructions.
13930
13931 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
13932
13933         * real.h (EXP_BITS): Make room for...
13934         (struct real_value): ... added canonical bit.
13935         (struct real_format): Added pnan.
13936         (mips_single_format, mips_double_format, mips_extended_format,
13937         mips_quad_format): New.
13938         * real.c: Copy p to pnan in all formats.
13939         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
13940         (real_nan): Use pnan to compute significand's shift.
13941         (real_identical): Disregard significand in canonical
13942         NaNs.
13943         (real_hash): Likewise.  Take signalling into account.
13944         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
13945         Disregard significand bits in canonical NaNs.  Set all bits of
13946         canonical NaN if !qnan_msb_set.
13947         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
13948         qnan_msb_set to tell the base double format.
13949         (ibm_extended_format): Use 53 as pnan.
13950         (mips_single_format, mips_double_format, mips_extended_format,
13951         mips_quad_format): Copied from the corresponding ieee/ibm
13952         formats, with qnan_msb_set false.
13953         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
13954         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
13955         * config/mips/mips.c (override_options): Use mips_single_format
13956         and mips_double_format.  Default TFmode to mips_quad_format.
13957         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
13958         * config/mips/t-irix6: Likewise.
13959         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
13960         * config/fp-bit.c (pack_d, unpack_d): Obey it.
13961
13962 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
13963
13964         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
13965         (live_image_destructor): Reset image to initial state.
13966         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
13967
13968 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
13969
13970         * config/sparc/sparc.c (input_operand): Accept bare
13971         CONSTANT_P_RTX operands.
13972
13973 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13974
13975         * gcse.c (struct ls_expr): Added pattern_regs field.
13976         (ldst_entry): Initialize it.
13977         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
13978         (store_ops_ok): Use regs precomputed by them.
13979         (find_loads, store_killed_in_insn, load_kills_store): Change return
13980         type to bool.
13981         (store_killed_before, store_killed_after): Take position of register
13982         set in account.
13983         (reg_set_info): Store position of the setter.
13984         (gcse_main): Enable store motion.
13985         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
13986         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
13987         sharing.
13988         (simple_mem): Enable store motion of non-symbol mems.
13989         (regvec): Type changed.
13990         (LAST_AVAIL_CHECK_FAILURE): New.
13991         (compute_store_table_current_insn): New.
13992         (build_store_vectors): Computation of availability and anticipatability
13993         moved ...
13994         (compute_store_table, find_moveable_store): ... here.
13995         (delete_store): Remove senseless comment.
13996         (store_motion): Reorganize.
13997
13998 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
13999
14000         * config/mips/mips.c (override_options): Provide mappings for
14001         HI_REGNUM and LO_REGNUM.
14002         * config/mips/mips.h (MD_DBX_FIRST): Define.
14003
14004 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14005
14006         * combine.c (merge_outer_ops): Fix typo.
14007
14008         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
14009
14010 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
14011
14012         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
14013         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
14014         imul_compare.  Add lmul_compare.
14015         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
14016         in second pair of dispatch slots.  Model stores more accurately.
14017         Tweak multiply model.  Add bypasses for CR instructions dependent
14018         on complicated compares.
14019         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
14020         (muldi3): Add lmul_compare patterns.
14021         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
14022         and FPSTORE_UX to split instructions and add COMPARE,
14023         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
14024         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
14025         (rs6000_rtx_costs): Separate POWER4 multiply case.
14026
14027 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
14028
14029         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
14030         Do nothing if __builtin_return_address was not used.
14031
14032 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
14033
14034         * i386.md (test patterns):  Allow memory operand in operand1.
14035
14036 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
14037
14038         * testsuite/gcc.c-torture/execute/simd-3.c: New.
14039
14040         * expr.c (expand_expr): Handle VECTOR_CST.
14041         (const_vector_from_tree): New.
14042
14043         * varasm.c (output_constant): Handle VECTOR_CST.
14044
14045         * c-typeck.c (digest_init): Build a vector constant from a
14046         VECTOR_TYPE.
14047
14048         * config/rs6000/rs6000.c: Remove prototype for
14049         easy_vector_constant.
14050         (easy_vector_constant): Add mode parameter.  Rewrite to handle
14051         more easy constants.
14052         (rs6000_emit_move): Pass mode to easy_vector_constant.
14053         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
14054         (emit_easy_vector_insn): New.
14055         (easy_vector_same): New.
14056         (EASY_VECTOR_15): New macro.
14057         (EASY_VECTOR_15_ADD_SELF): New macro.
14058         (bdesc_2arg): Rename to xorv2si3.
14059         (easy_vector_constant_add_self): New.
14060         (input_operand): Allow vector constants.
14061
14062         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14063         easy_vector_constant, easy_vector_constant_add_self.
14064         (EXTRA_CONSTRAINT): Add 'W'.
14065
14066         * config/rs6000/rs6000-protos.h: Add prototype for
14067         easy_vector_constant, emit_easy_vector_insn.
14068
14069         * config/rs6000/altivec.md (xorv8hi3): New.
14070         (xorv16qi3): New.
14071         Remove all _const0 patterns.
14072         (movv4si_internal): Rewrite to use code.  Add vector constant to
14073         vector alternative.  Add splitter.
14074         (movv8hi_internal): Same.
14075         (movv16qi_internal): Same.
14076         (movv4sf_internal): Same.
14077         Change the unspecs for vspltis* to use constants.
14078
14079         * config/rs6000/spe.md ("xorv4hi3"): New.
14080         ("spe_evxor"): Rename to xorv2si3.
14081         ("xorv1di3"): New.
14082         Remove all _const0 patterns.
14083         (movv2si_internal): Rewrite to use code.  Add vector constant to
14084         alternatives.  Add splitter.
14085         (movv4hi_internal): Add vector constant to alternatives.
14086         (movv1di_internal): Same.
14087         (movv2sf_internal): Same.
14088
14089 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
14090
14091         PR c/9936
14092         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
14093         variably-sized arrays in parameters.
14094         (set_save_expr_context): New function.
14095         (c_expand_body): Use it, via walk_tree.
14096
14097 2003-03-31  Eric Christopher  <echristo@redhat.com>
14098
14099         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
14100         (combinable_i3pat): Remove call to expand_field_assignment and
14101         #if 0'd code.
14102
14103 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
14104
14105         PR c++/10278
14106         * c-common.c (finish_label_address_expr): Handle the
14107         error_mark_node.
14108
14109 2003-03-31  Richard Henderson  <rth@redhat.com>
14110
14111         * real.c (real_identical): Reorg so as to not compare
14112         signalling for normals.
14113
14114 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
14115
14116         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
14117
14118 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
14119
14120         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
14121         notes as they are boggus.
14122         (m68hc11_gen_movqi): Likewise.
14123
14124 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
14125
14126         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
14127         save the soft registers after the frame pointer so that gdb can unwind
14128         the frame more easily.
14129         (expand_epilogue): Likewise in opposite order; allow to use X register
14130         as scratch if the return value is by reference.
14131
14132 2003-03-31  Jason Merrill  <jason@redhat.com>
14133
14134         PR java/10145
14135         * stor-layout.c (update_alignment_for_field): Respect
14136         DECL_USER_ALIGN for zero-length bitfields, too.
14137         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
14138         fields.
14139
14140 2003-03-31  Matt Austern  <austern@apple.com>
14141
14142         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
14143         (count_defs): Keep track of number of defs as well as total size.
14144         (write_defs): Put every definition in cpp_savedstate's defs array.
14145         (comp_hashnode): Define.  Comparison function for qsort.
14146         (cpp_write_pch_deps): Sort definitions before writing them.
14147         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
14148         (collect_ht_nodes): Define.
14149         (cpp_valid_state): When verifying that undefined identifiers in
14150         the pch file are still undefined, read a sorted list of undefined
14151         identifiers, collect all defined identifiers into a sorted list,
14152         and walk through both lists to make sure there's no match.
14153
14154 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
14155
14156         * config/h8300/h8300.md (a peephole2): New.
14157
14158 2003-03-31  Michael Matz  <matz@suse.de>
14159
14160         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
14161
14162 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
14163
14164         PR target/10177
14165         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
14166         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
14167         all call-clobbered registers as used.
14168
14169 2003-03-31  Michael Matz  <matz@suse.de>
14170
14171         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
14172         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
14173
14174 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
14175
14176         * gcov.c: Add -a & -u options.
14177         (struct arc_info): Add local_span, is_call_non_return,
14178         is_nonlocal_return, is_unconditional flags, remove is_call flag.
14179         (struct block_info): Add flags, is_call_site, is_nonlocal_return
14180         members. Make encodings a union with span member.
14181         (struct function_info): Add blocks_executed, line, src, line_next
14182         members.
14183         (struct coverage_info): Make branches a union with blocks member.
14184         (struct source_info): Add functions member.
14185         (object_summary, program_count): New global variables.
14186         (flag_all_blocks, flag_unconditional): New flags.
14187         (find_source, output_branch_count): New functions.
14188         (print_usage): Adjust.
14189         (options): Adjust.
14190         (process_args): Adjust.
14191         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
14192         <GCOV_TAG_BLOCKS>: Read flags.
14193         <GCOV_TAG_LINES>: Adjust.
14194         (read_count_file): Process SUMMARY tags.
14195         (solve_flow_graph): Set is_unconditional and clear is_call_site
14196         appropriately.
14197         (add_branch_counts): Adjust. Don't count unconditional branches.
14198         (add_line_counts): Deal with all-blocks mode, accumulate block
14199         coverage.
14200         (accumulate_line_counts): Adjust, generate local spanning tree for
14201         all-blocks mode.
14202         (output_lines): Adjust.
14203         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
14204         * doc/gcov.texi: Document.
14205
14206 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
14207
14208         * config/h8300/h8300.md: Organize peephole2's that transform
14209         (compare (reg:HI) (const_int)).
14210
14211 2003-03-31  Roger Sayle  <roger@eyesopen.com>
14212
14213         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
14214         (init_emit_once): Initialize dconstm2 and dconsthalf here.
14215         * real.h (dconstm2, dconsthalf): Add prototypes here.
14216         * real.c (real_sqrt): Use dconsthalf rather than local copy.
14217         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
14218         exp(x/2.0) remember to fold the division if possible.
14219         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
14220         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
14221         1.0/(x*x) and pow(x,0.5) as sqrt(x).
14222
14223 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
14224
14225         * config/h8300/h8300.md (a new peephole2): New.
14226
14227 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
14228
14229         * gcse.c (simple_mem): Return false for floating-point accesses
14230         if flag_float_store is true.
14231
14232 2003-03-30  Roger Sayle  <roger@eyesopen.com>
14233
14234         * gcse.c (gcse_constant_p): New function to identify constants
14235         suitable for constant propagation, including COMPARE with two
14236         integer constant arguments.
14237         (hash_scan_set): Use gcse_constant_p.
14238         (find_avail_set): Likewise.
14239         (cprop_insn): Likewise.
14240         (do_local_cprop): Likewise.
14241         (find_implicit_sets): Likewise.
14242         (find_bypass_set): Likewise.
14243
14244 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
14245
14246         * except.h: Remove definition of varray_type.
14247
14248 2003-03-30  Richard Henderson  <rth@redhat.com>
14249
14250         PR opt/10011, opt/10252:
14251         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
14252         before post-gcse cse pass.
14253
14254 2003-03-30  Roger Sayle  <roger@eyesopen.com>
14255
14256         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
14257
14258 2003-03-30  DJ Delorie  <dj@redhat.com>
14259
14260         * profile.c (instrument_edges): Make sure any newly created
14261         jump insns have correct jump label info.
14262
14263 2003-03-30  Richard Henderson  <rth@redhat.com>
14264
14265         * cfgbuild.c (make_edges): Use tablejump_p.
14266         * cfgcleanup.c (label_is_jump_target_p): Likewise.
14267         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
14268         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
14269         (try_redirect_by_replacing_jump): Likewise.
14270         (redirect_edge_and_branch): Likewise.
14271         * cse.c (fold_rtx): Likewise.
14272         * jump.c (delete_related_insns): Likewise.
14273         * rtlanal.c (get_jump_table_offset): Likewise.
14274         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
14275
14276 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14277
14278         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
14279         (STRICT2_WARN): Likewise.
14280
14281 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14282
14283         PR other/6955
14284         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
14285         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
14286
14287 2003-03-30  Richard Henderson  <rth@redhat.com>
14288
14289         PR c/10083
14290         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
14291         don't zero_extend const inputs.
14292
14293 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
14294
14295         * reload1.c (reload_cse_move2add): Fix a comment typo.
14296
14297 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
14298
14299         * config/h8300/h8300.md (a peephole2): Remove useless code.
14300
14301 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
14302
14303         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
14304         (*iorsi3_and_lshiftrt): Likewise.
14305         (*iorsi3_zero_extract): Likewise.
14306
14307 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
14308
14309         * config/h8300/h8300.md (*insv_si_8_8): New.
14310         (*insv_si_8_8_lshiftrt_8): Likewise.
14311         (a peephole2): Likewise.
14312
14313 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14314
14315         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
14316         Uniformly use bugfix instead of bug fix.
14317
14318 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14319
14320         PR doc/895
14321         * ONEWS: Remove those items that already appear in the EGCS
14322         release notes on our web pages.
14323
14324 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
14325
14326         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
14327         TARGET_HARD_FLOAT.  Reformat.
14328         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
14329
14330 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
14331
14332         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
14333         work on Solaris 2.5.1.
14334
14335 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
14336
14337         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
14338         section of h8300.md
14339         (*addsi3_and_nor_r_1): Likewise.
14340
14341 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
14342
14343         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
14344         set up before any trapping memory access if flag_non_call_exceptions.
14345
14346 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
14347
14348         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
14349
14350         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
14351
14352 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
14353
14354         * configure.in: Clarify comments.
14355         * configure: Regenerate.
14356
14357 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
14358
14359         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
14360         label even if pool empty when generating PIC.
14361         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
14362
14363 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
14364             Dhananjay Deshpande  <dhananjayd@kpit.com>
14365
14366         PR target/10205
14367         * config/h8300/h8300.c (h8300_initial_elimination_offset):
14368         Correct the offset computation when TARGET_NORMAL.
14369
14370 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
14371
14372         PR target/10067
14373         * config/sparc/sparc.md (jump pattern): Correct order
14374         when issuing the annuling marker.
14375
14376 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
14377
14378         PR c/8281
14379         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
14380         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
14381
14382 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
14383
14384         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
14385         globalize_label.
14386         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14387         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14388         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14389         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14390         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14391         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14392         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
14393
14394 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
14395
14396         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
14397         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
14398         notes after hoisting.
14399         (load_mems): Adjust replace_loop_mems call.
14400
14401 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
14402             Richard Henderson  <rth@redhat.com>
14403
14404         PR target/10114 and PR target/10084
14405         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
14406
14407 2003-03-27  Richard Henderson  <rth@redhat.com>
14408
14409         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
14410
14411 2003-03-27  Roger Sayle  <roger@eyesopen.com>
14412
14413         * fold-const.c (fold_inf_compare):  New function to simplify FP
14414         comparisons against +Infinity or -Infinity.
14415         (fold):  Optimize floating point comparisons against Infs and NaNs.
14416
14417 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
14418
14419         * libgcov.c: Provide only dummy functions if libc is not available.
14420
14421 2003-03-27  Richard Henderson  <rth@redhat.com>
14422
14423         * real.h (struct real_value): Add signalling.
14424         (EXP_BITS): Decrement.
14425         * real.c (get_canonical_qnan): Don't set MSB-1.
14426         (get_canonical_snan): Likewise.  Set signalling.
14427         (real_identical): Compare signalling.
14428         (round_for_format): Remove force-one-bit on code.
14429         (real_nan): Likewise.  Set signalling.
14430         (encode_ieee_single): Add force-one-bit code; honor signalling.
14431         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
14432         (decode_ieee_single): Set signalling.
14433         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
14434
14435 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
14436
14437         PR ada/9953
14438         * ada/Makefile.in (gnatlib configuration for HPUX): Split
14439         the general section for HPUX into specific sections for
14440         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
14441         11 case.
14442
14443 2003-03-27  Glen Nakamura  <glen@imodulo.com>
14444
14445         PR opt/10087
14446         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
14447         while incrementing giv.
14448         (record_biv): Check for duplicate biv locations and
14449         set (struct induction *) v->same if found.
14450
14451 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
14452
14453         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
14454         v0.9 API change: replace read of UNW_REG_HANDLER with
14455         unw_get_proc_info().
14456         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
14457         with unw_get_proc_info().
14458         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
14459         unw_get_proc_info().
14460
14461 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14462
14463         * config/rs6000/8540.md: Use presence_set instead of absence_set.
14464
14465 2003-03-26  Richard Henderson  <rth@redhat.com>
14466
14467         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
14468
14469 2003-03-26  Roger Sayle  <roger@eyesopen.com>
14470
14471         PR bootstrap/10051, PR bootstrap/10169.
14472         * mips-tfile.c (init_file): Don't provide a static initializer.
14473         (initialize_init_file): Initialize the contents of init_file.
14474         (add_file): Call initialize_init_file if not already initialized.
14475
14476 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
14477
14478         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
14479         registers used for global asm variables.
14480         (s390_frame_info, s390_arg_frame_offset): Likewise.
14481         (s390_emit_prologue, s390_emit_epilogue): Likewise.
14482
14483 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14484
14485         * config/rs6000/8540.md: New file.
14486
14487         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
14488         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
14489         reservations for imul.
14490
14491         * config/rs6000/rs6000.md: Include 8540.md.  Change
14492         delayed_compare onto mult_compare for insns generating
14493         multiplication.
14494         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
14495         New type attribute values.
14496
14497         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
14498         fpsimple instead of fp.
14499         (*divsf3_gpr): Use type vecfdiv instead of fp.
14500         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
14501         instead of vecfloat.
14502         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
14503         (spe_brinc): Use type brinc instead of veccomplex.
14504         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
14505         veccomplex.
14506         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
14507         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
14508         *movv2sf_internal): Define type attribute values for all
14509         alternatives.
14510         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
14511         of fpcompare.
14512         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
14513         instead of fpcompare.
14514
14515 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
14516
14517         * config/rs6000/power4.md: Allow delay between dispatch and
14518         function units for simple instructions.  Correct store units.
14519         Allow branch to occupy as many dispatch slots as necessary.
14520
14521 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
14522
14523         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
14524         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
14525         zero extend old to it.
14526         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
14527         operand.
14528
14529 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
14530
14531         PR target/7784
14532         * reload.c (find_reloads_address): Handle
14533         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
14534         all base registers.
14535
14536 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
14537
14538         PR other/10203
14539         * version.c: Reference the GCC web site in the URL.
14540
14541 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
14542
14543         * c-incpath.c (add_standard_paths): Add both "translated" and
14544         non-translated header paths.
14545
14546 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
14547
14548         * doc/install.texi (*-*-freebsd*): Update with known status.
14549
14550 2003-03-21  Jason Merrill  <jason@redhat.com>
14551
14552         PR optimization/10171
14553         * unroll.c (unroll_loop): Don't delete the jump at the end unless
14554         we also delete a jump at the beginning.
14555
14556 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
14557
14558         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
14559         contributor.
14560
14561 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
14562
14563         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
14564         constants are not expensive.
14565
14566 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
14567
14568         PR opt/10056
14569         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
14570         jump jumping to the next instruction.
14571         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
14572
14573 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14574
14575         * doc/passes.texi (Passes): Properly document that we do not
14576         perform jump2 any longer; remove command-line option -dJ.
14577
14578 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
14579
14580         PR optimization/8746
14581         * config/i386/i386.md (and promoting splitters): Disable HImode to
14582         SImode promoting when the sign bit matters and is not preserved, or
14583         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
14584         for size.
14585
14586 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14587
14588         * config/h8300/h8300.md (a peephole2): Extend to support loads
14589         in QImode and HImode.
14590
14591 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
14592
14593         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
14594         _return_far
14595         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
14596         (MULTILIB_EXCEPTIONS): Likewise.
14597         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
14598         by calling some board support routine.
14599         ("call_value"): Likewise.
14600         ("*return_void"): Likewise for return.
14601         ("*return_16bit"): Likewise.
14602         ("*return_32bit"): Likewise.
14603         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
14604         for 68HC11 too.
14605         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
14606         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
14607         -mlong-calls for 68HC11.
14608         * config/m68hc11/larith.asm (declare_near): New macro.
14609         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
14610         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
14611         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
14612         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
14613         (__mulhi32): Likewise.
14614         (ret): Update macro for 68HC11.
14615         (__far_trampoline): Implement for 68HC11.
14616         (__call_a16, __call_a32, __return_void, __return_16): New support
14617         routines for 68HC11 memory bank switching calling support.
14618         (__return_32): Likewise.
14619
14620 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
14621
14622         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
14623
14624 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
14625
14626         * doc/install.texi (Testing): Mention test result links from build
14627         status pages.
14628
14629 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
14630
14631         * function.c (put_var_into_stack): Change bool parameter to int.
14632         (gen_mem_addressof): Likewise.
14633         * rtl.h (gen_mem_addressof): Likewise.
14634         * tree.h (put_var_into_stack): Likewise.
14635         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
14636         gen_mem_addressof or put_var_into_stack.
14637         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14638         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
14639
14640 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14641
14642         * config/h8300/h8300.md (a peephole2): New.
14643
14644 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
14645
14646         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
14647
14648 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14649
14650         * doc/contrib.texi (Contributors): Update Janis Johnson.
14651
14652 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
14653
14654         PR target/10072
14655         * combine.c (simplify_if_then_else): Check that the mode
14656         has MODE_INT class before applying the (OP Z (mult COND C2))
14657         transformation.
14658
14659 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
14660
14661         PR optimization/9414
14662         * config/sparc/sparc.md (widening peepholes): Use
14663         widen_memory_access instead of change_address.
14664
14665 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
14666
14667         PR c++/7086
14668         * c-typeck.c (c_mark_addressable): Adjust calls to
14669         put_var_into_stack.
14670         * expr.c (expand_expr): Likewise.
14671         * function.c (put_var_into_stack): Add rescan parameter.  Do not
14672         call fixup_var_refs when rescan is false.
14673         (gen_mem_addressof): Likewise.
14674         (assign_parms): Adjust calls to put_var_into_stack.
14675         (setjmp_protect): Likewise.
14676         (setjmp_protect_args): Likewise.
14677         * rtl.h (gen_mem_addressof): Change prototype.
14678         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
14679         * tree.h (put_var_into_stack): Change prototype.
14680
14681 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
14682
14683         PR middle-end/9967
14684         * builtins.c (expand_builtin_fputs): When optimizing for size,
14685         don't transform fputs into fwrite.
14686
14687 2003-03-23  Glen Nakamura <glen@imodulo.com>
14688
14689         PR c/8224
14690         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
14691         when signedness changes for division or modulus.
14692
14693 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
14694
14695         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
14696         globalize_label.
14697
14698 2003-03-23  Roger Sayle  <roger@eyesopen.com>
14699
14700         PR c/10178
14701         * stmt.c (expand_end_case_type): Check for overflow in range when
14702         determining whether to use a bit-test implementation.
14703
14704 2003-03-23  Richard Henderson  <rth@redhat.com>
14705
14706         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
14707         before flow2.
14708         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
14709
14710 2003-03-23  Richard Henderson  <rth@redhat.com>
14711
14712         PR opt/10116
14713         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
14714         from then_bb or else_bb after flow2.
14715
14716 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
14717
14718         * configure.in: Check whether it is necessary to link against
14719         libm to use ldexp.
14720         * configure: Regenerate.
14721         * Makefile.in: Add LDEXP_LIB substitution variable.
14722
14723 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
14724
14725         * config/h8300/h8300.md: Fix comment typos.
14726
14727 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14728
14729         * pa.c (output_cbranch): Fix typo in comment.
14730
14731 2003-03-22  Richard Henderson <rth@redhat.com>
14732
14733         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
14734         after reload.
14735
14736 2003-03-22  DJ Delorie  <dj at redhat dot com>,
14737         Bruce Korb  <bkorb at gnu dot org>
14738
14739         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
14740         buggy Solaris 2.6 mutex/cond initializers.
14741         (solaris_mutex_init): Rename to solaris_mutex_init_2.
14742         * fixinc/fixincl.x: Regenerate.
14743         * fixinc/tests/base/pthread.h: Update.
14744         * fixinc/fixincl.c(initialize): be explicit about the default case
14745         and indicate verbose level when being very, very verbose.
14746         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
14747
14748 2003-03-22  Andreas Jaeger  <aj@suse.de>
14749
14750         * config/i386/i386.c (ix86_init_machine_status): Return value.
14751
14752 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14753
14754         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
14755         conditional branch to the following instruction.  Use next_real_insn
14756         instead of next_active_insn.
14757         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
14758         instead of next_active_insn.
14759
14760 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
14761
14762         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
14763         instead of 'm' constraint in forced-split alternatives.
14764         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
14765         VALIDATE_ADDRESS parameter to operand_subword.
14766
14767 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14768
14769         * config/h8300/h8300.c (notice_update_cc): Correctly handle
14770         the case where the set destination is STRICT_LOW_PART.
14771
14772 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
14773
14774         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
14775         c30 instead of a c40 processor.
14776
14777 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
14778
14779         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
14780
14781 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
14782
14783         * c-common.c: Include intl.h.
14784         (shadow_warning): Rewrite to allow better diagnostic translations.
14785         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
14786         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
14787         use it throughout.
14788         * Makefile.in (c-common.o): Add intl.h.
14789
14790 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
14791
14792         * config.gcc: Remove 'float_format'.
14793
14794         * fixproto: Define NULL and size_t in generated stdlib.h and
14795         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
14796         Rearrange file generation loop for readability.  Generate time.h,
14797         string.h if missing.
14798         * tsystem.h: Include <string.h>, <time.h> unconditionally.
14799         * config.gcc: Blow away POSIX defines.
14800
14801 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
14802
14803         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
14804
14805 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
14806
14807         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
14808         writing .interrupt command.
14809         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
14810         if it's a far or near function.
14811         ("call_value"): Likewise.
14812         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
14813         near attributes.
14814         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
14815         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
14816         (m68hc11_initial_elimination_offset): Set current_function_far
14817         according to attributes.
14818         (expand_prologue): Likewise.
14819         (trap_handler_symbol): New global to keep track of trap handlers.
14820         (m68hc11_encode_section_info): Mark symbol as far if needed; set
14821         trap symbol.
14822         (m68hc11_is_far_symbol): New function.
14823         (m68hc11_is_trap_symbol): New function.
14824         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
14825         (m68hc11_is_trap_symbol): Declare.
14826
14827 2003-03-21  Jan Hubicka  <jh@suse.cz>
14828
14829         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
14830         only when amount of saved regs changed.
14831         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
14832         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
14833
14834 2003-03-21  Jan Hubicka  <jh@suse.cz>
14835
14836         PR inline-asm/7916
14837         * function.c (instantiate_virtual_regs_lossage): New function.
14838         (instantiate_virtual_regs_1): Use it.
14839         (instantiate_virtual_regs): Do not continue in substition when insn has
14840         been deleted.
14841
14842 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14843
14844         * combine.c (make_field_assignment): Fix a warning.
14845
14846 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14847
14848         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
14849
14850 2003-03-21  Dale Johannesen  <dalej@apple.com>
14851
14852         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
14853         priority for R2 on Darwin.
14854         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
14855
14856 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14857
14858         * combine.c (make_field_assignment): Remove unnecessary AND
14859         when storing into zero_extract.
14860
14861 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
14862
14863         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
14864         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
14865         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
14866         in comment.
14867
14868 2003-03-21  DJ Delorie  <dj@redhat.com>
14869
14870         * optabs.c (init_integral_libfuncs): Make sure we init at least up
14871         to "long long" size words.
14872
14873 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
14874
14875         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
14876         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
14877         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
14878
14879 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14880
14881         PR doc-bug/9813
14882         * doc/extend.texi: Move misplaced paragraph about underscores in
14883         variables in macros.
14884
14885 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
14886             Richard Henderson  <rth@redhat.com>
14887
14888         PR optimization/8366
14889         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
14890         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
14891         PIC+SYMBOLIC_CONST in other modes than Pmode.
14892         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
14893         the form PIC+SYMBOLIC_CONST as mode dependent.
14894
14895 2003-03-21  DJ Delorie  <dj@redhat.com>
14896
14897         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
14898         sure we always emit at least one insn.
14899
14900 2003-03-21  Christopher Faylor  <cgf@redhat.com>
14901
14902         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
14903         stub t-cygming. Use common target header cygming.h. Add extra
14904         c_target_obj and cxx_target_obj file. Default cygwin to posix
14905         threading. Enforce i386 as float format.
14906         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
14907         Remove cygwin.h as target header. Use common target header
14908         cygming.h  Enforce i386 as float format. Correct typo.
14909         * config/i386/cygming.h: New file, containing definitions
14910         common to mingw32 and cygwin.
14911         * config/i386/cygwin.h: Remove definitions common to cygwin and
14912         mingw.  Simplify special spec logic.  Define "wrappers" around
14913         certain include path defines to accommodate -mno-cygwin.
14914         Remove some #if 0'ed code.
14915         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
14916         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
14917         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
14918         * config/i386/mingw32.h: Remove definitions common to cygwin and
14919         mingw.
14920         (EXTRA_OS_CPP_BUILTINS): Adjust.
14921         (TARGET_VERSION): Define.
14922         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
14923         mingw32.h definitions.
14924         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
14925         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
14926         Add compilation rules for cygwin1.o cygwin2.o.
14927         * config/i386/cygwin1.c: New file.
14928         * config/i386/cygwin2.c: New file.
14929         * config/i386/t-cygming: New makefile stub.
14930
14931 2003-03-20  Richard Henderson  <rth@redhat.com>
14932
14933         * fold-const.c (extract_muldiv_1): Revert changing order of
14934         operands in case MULT_EXPR of 2003-02-16 patch.
14935
14936 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
14937         Merge changes from new-regalloc-branch
14938
14939         From Michael Matz  <matz@suse.de>
14940         * df.c (df_ref_record_1): Move init of loc to safe point.
14941         Only recurse on interesting things in parallels.
14942         Handle CLASS_CANNOT_CHANGE_MODE smarter.
14943         (df_uses_record): Ditto.
14944
14945         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
14946         it's already okay to use memory operands in (IE doesn't require
14947         adding another insn or anything).
14948
14949 2003-03-20  Richard Henderson  <rth@redhat.com>
14950
14951         PR middle-end/6348
14952         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
14953         different from word_mode.
14954
14955 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14956
14957         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
14958         source operand to those that can be extracted with bld.
14959
14960 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
14961
14962         PR 10066
14963         * arm.md (UNSPEC_PIC_BASE): New constant.
14964         (pic_add_dot_plus_four): Wrap with unspec.
14965         (pic_add_dot_plus_eight): Likewise.
14966
14967 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14968
14969         * config/h8300/h8300.md (*insv_si_1_n): New.
14970         (*insv_si_1_n_lshiftrt): Likewise.
14971
14972 2003-03-20  Roger Sayle  <roger@eyesopen.com>
14973
14974         * fold-const.c (fold_mathfn_compare): New function to simplify
14975         comparisons against built-in math functions.  Fold comparisons
14976         of sqrt against constants.
14977         (fold): Call fold_mathfn_compare when appropriate.
14978
14979 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
14980
14981         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
14982         information.
14983
14984 2003-03-20  Per Bothner  <pbothner@apple.com>
14985
14986         Various cleanups to help compile server.
14987
14988         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
14989         and pass that to _cpp_init_hashtable.
14990         (cpp_read_main_file):  Drop hash_table* argument; don't call
14991         _cpp_init_hashtable.
14992         * cpplib.h:  Update declarations to match.
14993         * c-opts.c (c_common_init_options):  Pass ident_hash to
14994         cpp_create_reader.
14995         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
14996         * fix-header.c (read_scan_file):  Likewise pass NULL table to
14997         cpp_create_reader rather than cpp_read_main_file.
14998
14999         * cppfiles.c (cpp_rename_file):  Generalized and renamed
15000         to cpp_change_file.
15001         * cpplib.h:  Update declaration to match.
15002         * c-opts.c (push_command_line_line, finish_options):  Change
15003         cpp_rename_file calls to cpp_change_file.
15004
15005         * line-map.c (add_line_map):  Allow leaving the outermost file.
15006         Allowing entering an outermost-file after the initial time.
15007
15008         * toplev.c (pop_srcloc):  Allow popping from initial file.
15009
15010 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
15011
15012         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
15013
15014 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15015
15016         * config/h8300/h8300.md (a peephole2): New.
15017
15018 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15019
15020         * config/h8300/h8300.md (*addsi3_and_r_1): New.
15021         (*addsi3_and_not_r_1): Likewise.
15022
15023 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
15024
15025         * Makefile.in (STRICT2_WARN): Add @WERROR@.
15026         (GCC_WARN_CFLAGS): Remove $(WERROR).
15027         (fixinc.sh-warn): New.
15028         * ada/Make-lang.in (ada-warn): Add $(WERROR).
15029         * cp/Make-lang.in (cp-warn): Add $(WERROR).
15030         * f/Make-lang.in (f-warn): Add $(WERROR).
15031         * java/Make-lang.in (java-warn): Add $(WERROR).
15032         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
15033
15034 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
15035
15036         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
15037         langhooks-def.h (lhd_tree_dump_dump_tree),
15038         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
15039         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
15040         true and false in return statements.
15041
15042 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
15043
15044         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
15045         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
15046         DWARF_INITIAL_LENGTH_SIZE.
15047         (output_compilation_unit_header, output_pubnames, output_aranges)
15048         (output_line_info): Output 0xffffffff escape value for 64-bit
15049         DWARF extension.
15050         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
15051
15052 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
15053
15054         * config/s390/s390.c (s390_preferred_reload_class): Do not
15055         force constants to the pool unless necessary.
15056         (s390_decompose_address): Prefer to use pointer as base,
15057         not index register.
15058         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
15059         Q alternative.
15060         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
15061         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
15062         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
15063         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
15064         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
15065
15066 2003-03-19  Jan Hubicka  <jh@suse.cz>
15067
15068         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
15069         * i386.c (use_fast_prologue_epilogue): Remove.
15070         (ix86_frame): New field save_regs-using_mov;
15071         (ix86_compute_frame_layout):  Decide on fast prologues;
15072         allocate saved registers in red zone.
15073         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
15074
15075 2003-03-19  Nick Clifton  <nickc@redhat.com>
15076
15077         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
15078
15079 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15080
15081         PR 10062
15082         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
15083         * pa-protos.h (output_lbranch): New prototype.
15084         * pa.c (compute_frame_size): Change size of the frame marker on the
15085         64-bit ports to 48 bytes.
15086         (pa_output_function_prologue): Document why SAVE_SP is set.
15087         (hppa_expand_prologue): Save previous stack pointer into frame marker
15088         on targets which use the hpux unwind library.
15089         (output_cbranch): Use output_lbranch.
15090         (output_lbranch): New function to output long unconditional branches.
15091         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
15092         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
15093         64-bit ports.
15094         * pa.md (jump): Use output_lbranch.
15095         (allocate_stack): New expander for dynamic stack allocation.
15096
15097 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
15098
15099         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
15100         when debugging on XCOFF targets.  Delete "abi" temp.
15101
15102         PR target/10073
15103         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
15104
15105 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
15106
15107         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
15108         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
15109         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
15110
15111         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
15112         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
15113         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
15114
15115 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
15116
15117         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
15118         the result of machopic_function_base_name.
15119         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
15120         string rather than a static array.
15121
15122         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
15123
15124         * gengtype.c: Include rtl.h.
15125         (enum rtx_code): Don't define.
15126         (rtx_format): Make declaration match rtl.h.
15127         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
15128         users.
15129         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
15130         * Makefile.in (gengtype.o): Update dependencies.
15131
15132 2003-03-18  Andreas Schwab  <schwab@suse.de>
15133
15134         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
15135         martin@blom.org.
15136
15137 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
15138
15139         * function.c (next_block_index): Mark with GTY.
15140
15141         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
15142
15143 2003-03-18  Richard Henderson  <rth@redhat.com>
15144
15145         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
15146         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
15147         until after reload.
15148
15149 2003-03-18  Richard Henderson  <rth@redhat.com>
15150
15151         * builtins.c (expand_builtin_unop): New target_mode operand;
15152         use it to convert the result to the correct mode.
15153         (expand_builtin): Update all callers.
15154
15155 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
15156
15157         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
15158
15159 2003-03-18  Jan Hubicka  <jh@suse.cz>
15160
15161         * i386.md:  Fix previous commit that mistakely applied the patch
15162         twice.
15163
15164         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
15165         canonicalized.
15166         (memrefs_conflict_p): Likewise.
15167         (addr_side_effect_eval): Canonicalize the constructed address.
15168
15169 2003-03-18  Jan Hubicka  <jh@suse.cz>
15170
15171         * i386.md (cvtts?2si peep2): New.
15172
15173 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15174
15175         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
15176
15177 2003-03-18  Andreas Schwab  <schwab@suse.de>
15178
15179         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
15180         for format.
15181
15182 2003-03-17  Jason Merrill  <jason@redhat.com>
15183
15184         PR c++/10091
15185         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
15186         an unaligned member of TREE_ADDRESSABLE type.
15187
15188 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
15189
15190         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
15191         (TARGET_PROFILE_KERNEL): Define.
15192         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
15193         (PROFILE_BEFORE_PROLOGUE): Don't define.
15194         (PROFILE_KERNEL): Remove hacks.
15195         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
15196         (rs6000_stack_info): No need to save lr if just for profiling when
15197         TARGET_PROFILE_KERNEL.
15198         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
15199         (output_function_profiler): Localize label generation.  Emit code
15200         for kernel profiling.
15201
15202 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
15203
15204         * config/h8300/h8300-protos.h: Add a prototype for
15205         byte_accesses_mergeable_p.
15206         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
15207         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
15208         (a splitter): Likewise.
15209         (*iorsi3_ashift_16_ashift_24): Likewise.
15210         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
15211
15212 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15213
15214         * dwarf2asm.h: Delete obsolete comment.
15215         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
15216         dw2_asm_output_pcrel, dw2_asm_output_addr,
15217         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
15218         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
15219         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
15220         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
15221
15222 2003-03-17  Zack Weinberg <zack@codesourcery.com>
15223
15224         * c-tree.h (struct lang_identifier): Remove error_locus field.
15225         (IDENTIFIER_ERROR_LOCUS): Kill.
15226         (record_function_scope_shadow): New prototype.
15227         * c-typeck.c (build_external_ref): Don't complain if
15228         decl is error_mark_node.  When not at file scope, bind the
15229         decl's local value to error_mark_node to suppress further
15230         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
15231
15232         * c-decl.c (get_function_binding_level): New static function.
15233         (record_function_scope_shadow): New exported function.
15234         (c_make_fname_decl): Use get_function_binding_level.
15235
15236 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
15237
15238         * stmt.c (tail_recursion_args): Call promote_mode to set
15239         unsignedp flag correctly before calling convert_move.
15240
15241 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15242
15243         * loop-unroll.c (decide_peel_completely,
15244         decide_unroll_constant_iterations, decide_unroll_stupid,
15245         decide_unroll_runtime_iterations, decide_peel_simple): Set
15246         loop->has_desc.
15247
15248 2003-03-17  Jan Hubicka  <jh@suse.cz>
15249
15250         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
15251
15252 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
15253
15254         * function.c (assign_parms): For a struct value address passed as
15255         first argument, delay the function's result RTL setup code until
15256         after the emission of parameter conversions.
15257
15258 2003-03-17  Dave Love  <fx@gnu.org>
15259             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15260
15261         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
15262         __arch64__ to match Compaq cc.
15263
15264 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
15265
15266         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
15267         (c_common_init): Set EBCDIC in cpp options.
15268         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
15269         not conditional compilation.
15270         * cpplib.h (struct cpp_options): New entry EBCDIC.
15271
15272 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
15273
15274         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
15275
15276 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15277
15278         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
15279         argument to 0 for redirect_jump.
15280
15281 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
15282
15283         PR c++/8805
15284         * except.c (eh_region_u_cleanup): Add prev_try.
15285         (expand_eh_region_end_cleanup): Set it.
15286         (reachable_handlers): Use it to skip over cleanup blocks.
15287
15288 2003-03-17  Andreas Jaeger  <aj@suse.de>
15289
15290         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
15291
15292 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
15293
15294         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
15295         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
15296         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
15297         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
15298
15299 2003-03-16  Richard Henderson  <rth@redhat.com>
15300
15301         * simplify-rtx (simplify_binary_operation): Don't abort for
15302         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
15303
15304 2003-03-16  Richard Henderson  <rth@redhat.com>
15305
15306         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
15307         optimize_size as well.
15308
15309 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
15310
15311         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
15312         for D register to specify the low part of it, aka B.
15313         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
15314         the register if we are loading 1 or -1 to it; avoid using temp
15315         register when moving X/Y to Y/X.
15316         (m68hc11_gen_movqi): Likewise.
15317         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
15318
15319 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
15320
15321         PR optimization/9016
15322         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
15323         into the constant pool.
15324
15325 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
15326
15327         PR target/9164
15328         * tree.c (get_narrower): For extensions with unchanged bit number,
15329         return the unsignedness of the outer mode.
15330
15331 2003-03-16  Roger Sayle  <roger@eyesopen.com>
15332
15333         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
15334         to avoid "may be used uninitialized" warning on ia64-hpux.
15335         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
15336
15337 2003-03-16  Andreas Jaeger  <aj@suse.de>
15338
15339         * configure.in: Improve check for memcheck.h.
15340         * configure: Regenerated.
15341
15342 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
15343
15344         * doc/cppopts.texi: Remove documentation of -A-.
15345
15346 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
15347
15348         * doc/libgcc.texi: Remove @tie.
15349
15350 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
15351
15352         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
15353         (rtx_pair): Added new element update_label_nuses, renamed to
15354         replace_label_data.
15355         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
15356         replace_label_data instead of rtx_pair.
15357         * loop.c (load_mems): Likewise.
15358         * rtlanal.c (replace_label): Replace label in pool constants and in
15359         INSN_LIST (in REG_LABEL note).
15360         (subrtx_p): Renamed to rtx_referenced_p.
15361         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
15362         LABEL_REF with CODE_LABEL, traverse constants from pool.
15363
15364 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
15365             Zack Weinberg  <zack@codesourcery.com>
15366
15367         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
15368         * doc/libgcc.texi: New file.
15369         * doc/interface.texi: Delete paragraph about libgcc interface.
15370         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
15371
15372 2003-03-15  Jason Merrill  <jason@redhat.com>
15373
15374         PR debug/9039
15375         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
15376
15377         PR debug/6387
15378         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
15379         function DIEs at toplevel.
15380         (decls_for_scope): At -g1, don't descend into subblocks.
15381
15382 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
15383
15384         * varasm.c (struct rtx_const): Change type of un.addr member
15385         to struct holding an additional 'symbol' member.
15386         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
15387         with equal string addresses as equal.
15388         (simplify_subtraction): Adapt to struct rtx_const change.
15389
15390 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
15391
15392         * fix-header.c (read_scan_file): Read main file before handling -D.
15393
15394 2003-03-15  Roger Sayle  <roger@eyesopen.com>
15395
15396         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
15397         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
15398         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
15399         (find_sub_basic_blocks): Likewise.
15400         * cgraphunit.c (cgraph_expand_functions): Likewise.
15401         * dwarf2out.c (prune_unused_types): Likewise.
15402         * expr.c (store_field): Likewise.
15403         * genextract.c (print_path): Likewise.
15404         * haifa-sched.c (schedule_insn): Likewise.
15405         * lcm.c (compute_antinout_edge): Likewise.
15406         * loop-unroll.c (decide_peel_once_rolling): Likewise.
15407         * ra-colorize.c (ra_colorize_free_all): Likewise.
15408         * ra-debug.c (dump_igraph): Likewise.
15409         (debug_hard_reg_set): Likewise.
15410         * reg-stack.c (reg_to_stack): Likewise.
15411         * rtlanal.c (refers_to_regno_p): Likewise.
15412         * tracer.c (layout_superblocks): Likewise.
15413
15414 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
15415
15416         * fix-header.c (read_scan_file): Fix thinko.
15417
15418 2003-03-15  Glen Nakamura  <glen@imodulo.com>
15419
15420         * reload1.c (choose_reload_regs): Use && instead of ||
15421         with REG_CANNOT_CHANGE_MODE_P condition.
15422
15423 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
15424
15425         * Makefile.in: Update.
15426         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
15427         * c-lex.c (init_c_lex): Register builtins hook is dead.
15428         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
15429         (c_common_decode_option): Don't call cpp_handle_option.
15430         Handle -A, -D and -U.
15431         (handle_deferred_opts): Simplify.
15432         (finish_options): Define builtins and command line macros.
15433         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
15434         * cppinit.c: Don't include intl.h.
15435         (init_builtins): Rename cpp_init_builtins.  No hook to call.
15436         (init_library): Don't need to sort options.
15437         (cpp_create_reader): Don't set pending.
15438         (cpp_destroy): Don't free pending.
15439         (struct pending_option, cl_directive_handler, struct cpp_pending,
15440         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
15441         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
15442         cl_options, cpp_handle_option): Remove.
15443         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
15444         cpp_finish_options): Remove.
15445         (cpp_init_builtins): New.
15446         * fix-header.c (read_scan_file): Update to handle -D.  Fix
15447         handling of -I.  Replace call to cpp_finish_options.
15448
15449 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15450
15451         PR optimization/9387
15452         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
15453         for conditional returns.
15454
15455 2003-03-14  Jason Merrill  <jason@redhat.com>
15456
15457         PR optimization/6871
15458         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
15459
15460 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
15461
15462         * c-opts.c (finish_options): New.
15463         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
15464         (missing_arg): Handle OPT_include and OPT_imacros.
15465         (c_common_init, c_common_parse_file): Use finish_options.
15466         (handle_deferred_opts): Update.
15467         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
15468         (cpp_finish_options): Don't handle -imacros here.
15469         (no_fil): Remove.
15470         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
15471
15472 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
15473
15474         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
15475         rs6000_maybe_dead if !fromprolog.
15476
15477 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
15478
15479         * Makefile.in: Update.
15480         * c-common.h (fe_file_change, pp_file_change): New.
15481         * c-lex.c (init_c_lex): Don't set cb_file_change.
15482         (c_common_parse_file): Move to c-opts.c.
15483         (cb_file_change): Rename fe_file_change.
15484         * c-opts.c: Include debug.h.
15485         (warn_unused_macros, include_cursor): New.
15486         (push_command_line_include, cb_file_change): New.
15487         (COMMAND_LINE_OPTIONS): Handle -include.
15488         (c_common_decode_option): Use local warn_unused_macros.
15489         Handle OPT_include.
15490         (c_common_post_options): Set file change callback.
15491         (handle_deferred_opts): Skip -include.  Don't free the array.
15492         (c_common_init): Call cpp_finish_options here, and push an
15493         initial -include file.
15494         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
15495         (preprocess_file): Don't call cpp_finish_options.
15496         (init_pp_output): Don't set the file change callback.
15497         (pp_file_change): Return if no line commands or no output.
15498         * cpphash.h (next_include_file, first_unused_line): Remove.
15499         * cppinit.c (include_head, include_tail): Remove.
15500         (cpp_destroy): Don't free -include chain.
15501         (cpp_finish_options): Don't handle -include, or worry about
15502         -Wunused-macros.
15503         (_cpp_maybe_push_include_file): Remove.
15504         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
15505         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
15506         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
15507         Used flag is set based upon the state of the warn_unused_macros
15508         flag, and so use of first_unused_line is unnecessary.
15509
15510 2003-03-13  Jan Hubicka  <jh@suse.cz>
15511
15512         * cselib.c (clear_table): Do not take argument; always clear just
15513         used slots.
15514         (cselib_process_insn):  Update call of clear_table
15515         (cselib_init): Do not call clear_table.
15516         (cselib_finish): Clear table.
15517
15518         * cse.c (count_reg_usage): Do not check side_effects_p.
15519         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
15520         like noop.
15521         (find_reg_equal_equiv_note): Do not use find_reg_note.
15522
15523 2003-03-14  Richard Henderson  <rth@redhat.com>
15524
15525         PR target/9700
15526         * config/alpha/alpha.c (alpha_va_start): Account for
15527         current_function_pretend_args_size in the AP offset.
15528
15529         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
15530         (INITIAL_ELIMINATION_OFFSET): Move out of line.
15531         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
15532         (alpha_initial_elimination_offset) New.
15533         * config/alpha/alpha-protos.h: Update.
15534
15535 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
15536
15537         * stmt.c (expand_start_case): Call emit_queue ().
15538
15539 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
15540             Alexandre Oliva  <aoliva@redhat.com>
15541
15542         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
15543         words in new abis.
15544
15545 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
15546
15547         PR optimization/8396
15548         * tree-inline.c (initialize_inlined_parameters): Make sure the value
15549         of read-only constant arguments is passed with the right type.
15550
15551 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
15552
15553         * doc/extend.texi (Function Names): Make the example compilable.
15554
15555 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
15556
15557         * config/rs6000/rs6000.c (processor_target_table): Really allow
15558         GP optional instructions on Power4.
15559
15560 2003-03-13  Roger Sayle  <roger@eyesopen.com>
15561
15562         * calls.c (flags_from_decl_or_type): Factor and remove redundant
15563         conditional tests.
15564
15565 2003-03-13  Mike Stump  <mrs@apple.com>
15566
15567         * ggc-page.c (struct page_entry): Remove varray.h header.
15568         Add index_by_depth field.
15569         Remove save_in_use_p field.
15570         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
15571         by_depth_max, by_depth, and save_in_use fields.
15572         (INITIAL_PTE_COUNT): Add.
15573         (save_in_use_p_i): Add.
15574         (save_in_use_p): Add.
15575         (adjust_depth): Add.
15576         (move_ptes_to_front): Add.
15577         (push_depth): Add.
15578         (push_by_depth): Add.
15579         (prefetch): Add.
15580         (free_page): Add support for and use faster data structures.
15581         (ggc_alloc): Likewise.
15582         (init_ggc): Likewise.
15583         (ggc_recalculate_in_use_p): Likewise.
15584         (ggc_pop_context): Likewise.
15585         (clear_marks): Likewise.
15586         (ggc_pch_read): Likewise.
15587         * Makefile.in (ggc-page.o): Remove varray.h.
15588
15589 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15590
15591         * ChangeLog: Rotated last year's entries to...
15592         * ChangeLog.8: New.
15593
15594         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
15595         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
15596         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
15597         config/ia64/ia64-protos.h, config/ia64/ia64.c,
15598         config/ia64/ia64.h, config/ia64/ia64.md,
15599         config/ia64/itanium1.md, config/ia64/itanium2.md,
15600         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
15601         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
15602
15603 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
15604
15605         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
15606         Differentiate endianness.
15607         (s6000_override_options): Use cpu type instead of TARGET_SPE.
15608
15609 2003-03-13  Nick Clifton  <nickc@redhat.com>
15610
15611         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
15612         LDM instructions with writeback enabled.
15613         (output_return_instruction): Likewise.
15614
15615         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
15616         (CALL_USED_REGISTERS): Remove definition.
15617         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
15618
15619 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
15620
15621         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
15622         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
15623         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
15624         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
15625         (rs6000_legitimize_address): Formatting.
15626         (rs6000_emit_move): Likewise.
15627         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
15628         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
15629         (rs6000_elf_select_section): Comment reason for shlib being
15630         set for ABI_AIX.
15631         (rs6000_elf_unique_section): Likewise.
15632         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
15633         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
15634         as well as flag_pic.
15635         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
15636         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15637         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
15638
15639 2003-03-13  Richard Henderson  <rth@redhat.com>
15640
15641         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
15642
15643         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
15644         (ia64_gp_save_reg): Remove.
15645         (struct ia64_frame_info): Move to the beginning of the file;
15646         add reg_save_gp.
15647         (ia64_expand_call): Rearrange for new call patterns.
15648         (ia64_reload_gp): New.
15649         (ia64_split_call): New.
15650         (ia64_compute_frame_size): Allocate reg_save_gp.
15651         (ia64_expand_prologue): Save reg_save_gp.
15652         (ia64_expand_epilogue): Don't restore gp.
15653         (ia64_hard_regno_rename_ok): Remove R4 hack.
15654         (ia64_function_ok_for_sibcall): New.
15655         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
15656         call try_split on sibcall pattern.
15657         * config/ia64/ia64-protos.h: Update.
15658         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
15659         Rename from nopic versions.  Confiscate 2nd argument to call as
15660         a marker.
15661         (call_pic, call_value_pic, sibcall_pic): Remove.
15662         (call_gp, call_value_gp, sibcall_gp): New.
15663         (builtin_setjmp_setup): Remove.
15664         (builtin_setjmp_receiver): Call ia64_reload_gp.
15665
15666 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15667
15668         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15669         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
15670         "GNU CC" with "GCC".
15671
15672         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
15673         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15674         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
15675         GCC, not GNU CC.
15676
15677         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
15678         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
15679
15680         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
15681         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
15682         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
15683         "GNU CC" with "GCC".
15684
15685         * config/v850/lib1funcs.asm, config/v850/rtems.h,
15686         config/v850/v850-c.c, config/v850/v850-protos.h,
15687         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
15688         GCC, not GNU CC.
15689
15690         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
15691         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
15692         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
15693         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
15694         GNU CC.
15695
15696 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
15697
15698         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
15699
15700 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15701
15702         * fixinc/fixinc.interix: Remove dead code (most of it).
15703         * fixinc/fixinc.dgux: Remove.
15704
15705         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
15706         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
15707
15708 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15709
15710         * pa.c (pa_init_builtins): Fix warning.
15711
15712 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
15713
15714         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
15715         (ASM_OUTPUT_XDATA_SHORT): Remove.
15716         (ASM_OUTPUT_XDATA_INT): Remove.
15717         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
15718         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
15719         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
15720         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
15721
15722 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
15723
15724         PR c++/7050
15725         * expr.c (store_expr): Don't attempt to store void-typed trees,
15726         just evaluate them for side effects.
15727
15728 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15729
15730         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
15731         * cppinit.c (push_include): Move with changes to cppfiles.c.
15732         (cpp_read_main_file): Mark named operators here...
15733         (cpp_finish_options): ...not here.  Update.
15734         (_cpp_maybe_push_include_file): Update.
15735         * cpplib.h (cpp_push_include, cpp_rename_file): New.
15736
15737 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15738
15739         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
15740         _gcc_COMPUTE_GAS_VERSION.
15741         * configure.in: Use them.
15742         * configure: Regenerate.
15743
15744 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
15745
15746         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
15747         to detect carry.
15748         (subdi3): Reorder emitted instructions.
15749
15750 2003-03-12  Andreas Jaeger  <aj@suse.de>
15751
15752         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
15753         NETBSD_OS_CPP_BUILTINS_LP64.
15754
15755 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15756
15757         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
15758         Rearrange.  Reorganize.
15759         * configure.in: Rearrange.
15760         * configure: Regenerate.
15761
15762 2003-03-12  Andreas Jaeger  <aj@suse.de>
15763
15764         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
15765         LP64 targets.
15766
15767         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
15768         _LP64.
15769
15770         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
15771         _LP64 macros here.
15772         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15773
15774         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
15775         NETBSD_OS_CPP_BUILTINS_LP64.
15776         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
15777         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
15778
15779         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
15780
15781 2003-03-12  Jan Hubicka  <jh@suse.cz>
15782
15783         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
15784
15785 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
15786
15787         Fix PR target/9797 and PR c/9853.
15788         * stmt.c (expand_decl_init): Call push_temp_slots () and
15789         pop_temp_slots ().
15790
15791 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
15792
15793         * sh.c: Include basic-block.h.
15794         (sh_output_mi_thunk, emit_load_ptr): New functions.
15795         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
15796
15797 2003-03-12  Nick Clifton  <nickc@redhat.com>
15798
15799         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
15800         (CALL_USED_REGISTERS): Likewise.
15801         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
15802         describing how this value is calculated.
15803
15804 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
15805
15806         * configure.in (rlim_t): Define to long if no valid definition
15807         found in sys/resource.h.
15808         * config.in, configure: Regenerate.
15809
15810 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15811
15812         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
15813         TARGET_OS_CPP_BUILTINS.
15814         * config/mcore/mcore-pe.h: Similarly.
15815         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
15816         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
15817
15818 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15819
15820         PR c/9928
15821         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
15822         only if it is a VAR_DECL.
15823
15824 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15825
15826         PR optimization/9888
15827         * config/i386/i386.md (jcc_1): Fix range.
15828         (jcc_2): Likewise.
15829         (jump): LIkewise.
15830         (doloop_end_internal): Likewise.
15831
15832 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
15833
15834         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
15835         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
15836         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
15837         DLL_IMPORT_EXPORT_PREFIX and "i."
15838         (i386_pe_dllexport_name_p): Here.
15839         (i386_pe_dllimport_name_p): Here.
15840         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
15841         not 9 chars when getting identifier name.
15842         (i386_pe_mark_dllimport): Here.
15843         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
15844         not 9 chars when getting identifier name. Correct comment.
15845         (i386_pe_strip_name_encoding): Here. Add comments for different
15846         cases.
15847         (gen_fastcall_suffix): Break down xmalloc() argument to
15848         components.
15849         (gen_stdcall_suffix): Likewise.
15850         Update copyright year.
15851
15852 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15853
15854         PR optimization/9888
15855         * config/i386/i386.md (movsi_1): Remove special alternatives
15856         for %eax register.
15857         (movsi_1_nointernunit): Likewise.
15858         (movhi_1): Likewise.
15859         * config/i386/i386.c (memory_address_length): Do not use
15860         short displacement when there is no base.
15861         (ix86_attr_length_address_default): Handle LEA instructions.
15862
15863 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15864
15865         * c-cppbuiltin.c (builtin_define_std): Make non-static.
15866
15867 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
15868
15869         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
15870         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
15871         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
15872         * config/freebsd.h (CPP_PREDEFINES): Remove.
15873         (TARGET_OS_CPP_BUILTINS): New.
15874         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
15875         instead of TARGET_OS_CPP_BUILTINS.
15876         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
15877
15878 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
15879
15880         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
15881
15882 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15883
15884         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
15885         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
15886
15887         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
15888
15889 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
15890
15891         * toplev.c (independent_decode_option): Return success for --help,
15892         --target-help and --version.
15893
15894 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
15895
15896         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
15897         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
15898         specified.
15899         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
15900         DRIVER_SELF_SPECS.
15901         (LINK_SPEC): Let endian options affect the linker emulation name.
15902
15903 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
15904
15905         * sh.md (reload_inqi): Fix mode for source in second set.
15906
15907 2003-03-11  Jan Hubicka  <jh@suse.cz>
15908
15909         * cselib.c (cselib_invalidate_mem_1): Move too ...
15910         (cselib_invalidate_mem): ... here; use new list
15911         (dummy_val, first_containing_mem): New static variables.
15912         (clear_table): Initialize first_containing_mem.
15913         (discard_useless_values):  Compact the containing_mem list.
15914         (add_mem_for_addr): Add to the list.
15915         * cselib.h (cselib_val): Add next_containing_mem.
15916
15917 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15918
15919         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
15920         instructions for e500.
15921
15922 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
15923
15924         * Makefile.in: Update.
15925         * c-cppbuiltin.c: Include tm_p.h.
15926
15927 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15928
15929         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
15930
15931         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
15932         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
15933         (_Unwind_SetGR): Same.
15934         (_Unwind_GetGRPtr): New.
15935         (_Unwind_SetGRPtr): New.
15936         (uw_update_context_1): Use accesor functions instead of accessing
15937         context->reg[] directly.
15938         (uw_install_context_1): Same.
15939         (execute_cfa_program): Same.
15940         (__frame_state_for): Same.
15941
15942         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
15943         the synthetic register offset.
15944
15945         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
15946
15947 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
15948
15949         * config/cris/cris.md: Remove lingering EGCS reference.
15950         ("*extopqihi_side_biap"): For HI operation, match
15951         cris_additive_operand_extend_operator, not
15952         cris_operand_extend_operator.  Adjust condition.
15953         ("*extopqihi_side", "*extopqihi"): Ditto.
15954         ("*extopqisi_side_biap"): Correct operand numbers in condition.
15955         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
15956         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
15957         ("*extophisi_swap"): Ditto.
15958         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
15959         PLUS, not cris_operand_extend_operator.  Adjust condition and
15960         output template.
15961         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
15962         * config/cris/cris.h (PREDICATE_CODES): Add
15963         cris_additive_operand_extend_operator.
15964         * config/cris/cris.c (cris_additive_operand_extend_operator):
15965         New predicate.
15966
15967 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
15968
15969         * df.c (read_modify_subreg_p): Change from static to global.
15970         * df.h (read_modify_subreg_p): Add prototype.
15971         * sched-deps.c (sched_analyze_1): Generate true dependency for
15972         strict_low_part, certain subregs and zero/sign_extract.
15973
15974 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
15975
15976         * Makefile.in: Update.
15977         * c-common.c: Don't include real.h or except.h.
15978         (REGISTER_PREFIX): Remove.
15979         (builtin_define_std, builtin_define_with_value,
15980         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
15981         builtin_define_type_max, builtin_define_type_precision,
15982         builtin_define_float_constants): Move to c-cppbuiltin.c.
15983         (c_stddef_cpp_builtins): New.
15984         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
15985         * c-cppbuiltin.c: New, extracted from c-common.c.
15986         (define__GNUC__): New.
15987         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
15988         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
15989         (cpp_unique_options): Don't support no-gcc.
15990         (do_spec_1): Remove support of version specs.
15991         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
15992         * doc/passes.texi: Update.
15993         * doc/tm.texi: Update.
15994
15995 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
15996
15997         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
15998
15999 2003-03-10  Andrew Pinski  <apinski@apple.com>
16000
16001         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
16002         is on should not get here.
16003         (machopic_indirect_data_reference): If dynamic-no-pic is on just
16004         generate high/low parts of the address.
16005         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
16006         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
16007         symbol and labels with a new reg.  Dynamic-no-pic does not have a
16008         pic_offset_table_rtx.
16009         (machopic_select_section): Change references of flag_pic to
16010         MACHOPIC_INDIRECT.
16011         (machopic_asm_out_destructor): Likewise.
16012         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
16013         reference of flag_pic to MACHOPIC_INDIRECT.
16014         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
16015         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
16016         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
16017         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
16018         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
16019         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
16020         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
16021         (TARGET_DYNAMIC_NO_PIC): Define.
16022         (SUBTARGET_SWITCHES): Define, have sub-target switches for
16023         dynamic-no-pic.
16024         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
16025         rs6000_override_options to here. Dynamic-no-pic overrides
16026         pic.
16027         (CC1_SPEC): Change from not static then pic to not static and not
16028         dynamic-no-pic then pic.
16029         * config/rs6000/rs6000.c (rs6000_override_options): Move the
16030         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
16031         (rs6000_legitimize_reload_address): Add case for loading floating in
16032         dynamic-no-pic.
16033         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
16034         of flag_pic to MACHOPIC_INDIRECT.
16035         (secondary_reload_class): Conditional change the reference of
16036         flag_pic to MACHOPIC_INDIRECT.
16037         (rs6000_output_mi_thunk): Change reference of flag_pic to
16038         MACHOPIC_INDIRECT.
16039         (output_profile_hook): Likewise.
16040         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
16041         * config/rs6000/rs6000.md (movdf_low): Add the case for
16042         MACHO_DYNAMIC_NO_PIC_P.
16043         (call): Change references for flag_pic in TARGET_MACHO to
16044         MACHOPIC_INDIRECT.
16045         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
16046         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
16047         * doc/invoke.texi (-mdynamic-no-pic): Document.
16048
16049 2003-03-10  Devang Patel  <dpatel@apple.com>
16050
16051         PR c++/9394
16052         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
16053         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
16054         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
16055         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
16056         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
16057         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
16058
16059 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16060
16061         PR optimization/7189
16062         * toplev.c (rest_of_compilation):  Move
16063         check_function_return_warnings up to just after
16064         delete_unreachable_blocks.
16065
16066 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
16067
16068         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
16069         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
16070         Declare.
16071         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
16072         for reg rename optimization to avoid using Z and Y registers.
16073
16074 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
16075
16076         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
16077         when adding to X and Y since leax/leay are fast.
16078         ("*addhi3"): Accept 'I' constraint when adding to address register.
16079         ("rotlhi3"): Operand 1 must be a register_operand.
16080         (peephole2): New peephole to optimize some adds.
16081         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
16082         to represent -2 .. 2 small integer range.
16083
16084 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
16085
16086         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
16087         each 16-bit rotation.
16088
16089 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
16090
16091         * c-opts.c (add_prefixed_path): Don't use concat.  When
16092         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
16093         cpp_GCC_INCLUDE_DIR_len characters.
16094
16095 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
16096
16097         * testsuite/gcc.dg/altivec-9.c: New file.
16098
16099         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
16100         (rs6000_emit_prologue): Use rs6000_frame_related instead.
16101
16102 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
16103
16104         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
16105         vectors.
16106         (__ev_convert_u64): Remove macro.  Define as inline.
16107         (__ev_convert_s64): Same.
16108
16109 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
16110
16111         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
16112         (rs6000_stack_t): Add spe_64bit_regs_used.
16113
16114         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
16115         spe_64bit_regs_used, and use it to determine the size of the
16116         frame.
16117         (spe_func_has_64bit_regs_p): New.
16118         (spe_synthesize_frame_save): New.
16119         (rs6000_frame_related): Handle SPE synthetic registers.
16120         (rs6000_emit_prologue): Only save in 64-bits if the function used
16121         any registers in 64-bit mode.
16122         (rs6000_emit_epilogue): Same, but for restore.
16123
16124 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
16125
16126         * arm.h (enum floating_point_type): Delete.  Replace with...
16127         (enum fputype): ... new.
16128         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
16129         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
16130         * arm.md (attr fpu): Reworked for new underlying enum values.
16131         * arm.c (arm_fpu_arch): Now enum fputype.
16132         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
16133         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
16134         Update uses of arm_fpu_arch and arm_fpu_tune.
16135
16136 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
16137
16138         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
16139         (try_crossjump_to_edge): Replace refereces to one jump table by
16140         references to identical jump table.
16141         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
16142         (replace_label): Moved to rtlanal.c.
16143         (struct rtx_pair): Moved to rtl.h.
16144         * rtl.h (struct rtx_pair): Moved from loop.c.
16145         (replace_label): New extern function.
16146         (subrtx_p): New extern function.
16147         (tablejump_p): New extern function.
16148         * rtlanal.c (replace_label): Moved from loop.c.
16149         (subrtx_p_1): New static function.
16150         (subrtx_p): New function.
16151         (tablejump_p): New function.
16152
16153 2003-03-10  Jan Hubicka  <jh@suse.cz>
16154
16155         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
16156
16157         * cfgcleanup.c (merge_blocks): Return where to iterate next.
16158         (try_optimize_cfg): Use return value of merge_blocks
16159
16160 2003-03-10  Michael Matz  <matz@suse.de>
16161
16162         * cfg.c (unchecked_make_edge): New.
16163         (cached_make_edge): Use it.
16164         * basic-block.h (unchecked_make_edge): Declare.
16165         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
16166
16167 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
16168
16169         * fpa.md: New file.  Move all patterns relating to FPA co-processor
16170         to here...
16171         * arm.md: ... from here.
16172         (cirrus.md, fpa.md): Include at end of description.
16173         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
16174         (pic_load_addr_based): Remove register constraint from expander.
16175         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
16176         (sordered, sungt, sunle, sunge, sunlt): Likewise.
16177         (eh_epilogue, tablejump): Likewise.
16178
16179 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16180
16181         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
16182         on operands if it has a PLACEHOLDER_EXPR.
16183
16184 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
16185             Mostafa Hagog
16186
16187         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
16188         condition.
16189
16190 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
16191
16192         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
16193         * config/ip2k/ip2k.h: Similarly.
16194         * config/m32r/m32r.h: Similarly.
16195         * config/m68hc11/m68hc11.h: Similarly.
16196         * config/mn10200/mn10200.h: Similarly.
16197         * config/mn10300/mn10300.h: Similarly.
16198         * config/pdp11/pdp11.h: Similarly.
16199         * config/v850/v850.h: Similarly.
16200         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
16201         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
16202         * config/mips/iris3.h: Remove #if 0 block.
16203
16204 2003-03-09  Roger Sayle  <roger@eyesopen.com>
16205             Joern Rennecke <joern.rennecke@superh.com>
16206
16207         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
16208         pending argument upon return from handle_braces here.
16209         (do_spec_2): Instead handle it upon return from do_spec_1 here.
16210
16211 2003-03-09  Roger Sayle  <roger@eyesopen.com>
16212             Joern Rennecke <joern.rennecke@superh.com>
16213
16214         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
16215         pending argument upon return from handle_braces here.
16216         (do_spec_2): Instead handle it upon return from do_spec_1 here.
16217
16218 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16219
16220         * varasm.c (make_decl_one_only): Use declare_weak().
16221
16222 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16223
16224         PR middle-end/9986
16225         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
16226         after the common builtins.
16227         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
16228         * pa.c (TARGET_INIT_BUILTINS): Define.
16229         (pa_init_builtins): New function.
16230
16231         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
16232         space has been allocated for the outgoing arguments, set the arg
16233         pointer for a call emitted after virtuals have been instantiated
16234         using the stack pointer offset, otherwise abort.
16235
16236 2003-03-09  DJ Delorie  <dj@redhat.com>
16237
16238         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
16239
16240 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
16241
16242         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
16243         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
16244         conversion to integer.
16245         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
16246
16247 2003-03-09  Roger Sayle  <roger@eyesopen.com>
16248
16249         * builtins.def: Fix typo and improve grammar.
16250         * loop-unroll.c (decide_peel_completely): Tidy log message.
16251
16252 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
16253
16254         * config/h8300/h8300.md (*tstsi_upper_bit): New.
16255         (*iorsi3_e2f): Likewise.
16256
16257 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16258
16259         * config/h8300/h8300.c (h8300_and_costs): Return the number of
16260         assembly instructions needed.
16261         (h8300_shift_costs): Likewise.
16262
16263 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
16264
16265         * config/cris/aout.h (ENDFILE_SPEC): Undef.
16266
16267         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
16268         moves from here ...
16269         * expr.c (emit_move_insn_1): ... to here.
16270
16271         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
16272         (TARGET_OS_CPP_BUILTINS): New macro.
16273         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
16274         (TARGET_OS_CPP_BUILTINS): New macro.
16275         (CPP_PREDEFINES): Don't define.  Move old definitions and...
16276         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
16277         (TARGET_CPU_CPP_BUILTINS): New macro.
16278         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
16279         definitions and the optional __PIC__, __pic__ and
16280         __NO_UNDERSCORES__ definitions to...
16281         (TARGET_OS_CPP_BUILTINS): New macro.
16282
16283         * flags.h (flag_leading_underscore): Declare.
16284
16285         * c-opts.c (c_common_post_options): On fopen failure, return
16286         false, not NULL.
16287
16288 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
16289
16290         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
16291         config.h.
16292         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
16293         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
16294
16295 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16296
16297         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
16298         CPP_PREDEFINES.
16299         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
16300         CPP_PREDEFINES.
16301
16302 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16303
16304         * c-common.h (c_common_init, c_common_post_options): Update.
16305         * c-objc-common.c (c_objc_common_init): Update for new prototype.
16306         * c-opts.c (saved_lineno): New.
16307         (c_common_post_options, c_common_init): Update prototypes,
16308         move call to cpp_read_main_file from latter to former.
16309         * c-tree.h (c_ojbc_common_init): Update.
16310         * langhooks-def.h (lhd_post_options): New.
16311         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
16312         * langhooks.c (lhd_post_options): New.
16313         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
16314         * toplev.c (no_backend): New.
16315         (process_options): Call post_options hook and set main_input_filename
16316         and input_filename here.
16317         (lang_dependent_init, do_compile): post_options hook moved to
16318         process_options.
16319         * objc/objc-act.c (objc_init): Update prototype.
16320         * objc/objc-act.h (objc_init): Update prototype.
16321
16322 2003-03-08  Roger Sayle  <roger@eyesopen.com>
16323
16324         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
16325         a complex or vector type, using a load in the original mode.
16326
16327 2003-03-08  Jan Hubicka  <jh@suse.cz>
16328
16329         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
16330         * gt-cgraph.h: New GC file.
16331         * cgraph.c (known_fns): New static variable.
16332         (cgraph_node): Add the decl into varray.
16333
16334 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
16335
16336         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
16337
16338 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
16339
16340         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
16341         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
16342         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
16343         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
16344         All callers changed.
16345         * arm.md, arm.h, arm-protos.h: Updated.
16346
16347         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
16348         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
16349         * arm.c (arm_regno_class, f_register_operand): Updated.
16350
16351 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
16352
16353         * config/cris/cris.h: Remove EGCS references.
16354         (CPP_SPEC): Remove "-$".
16355         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
16356
16357 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16358
16359         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
16360         preference to CPP_PREDEFINES.
16361
16362 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16363
16364         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
16365
16366 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16367
16368         * config/h8300/h8300.md (*extzv_16_8): New.
16369
16370 2003-03-08  Jan Hubicka  <jh@suse.cz>
16371
16372         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
16373         * cgraph.h: (cgraph_local_info): Add can_inline_once
16374         (cgraph_global_info): Add inline_once.
16375         (cgraph_node): Add previous.
16376         (cgraph_remove_node): New.
16377         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
16378         function.
16379         (cgraph_optimize): Call it.
16380         (cgraph_finalize_function):  Set inlinable flags.
16381         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
16382         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
16383         (cgraph_expand_function): Likewise.
16384         * cgraph.c
16385         (cgraph_node): Put nodes into doubly linked chain.
16386         (cgraph_remove_node): New function.
16387         * flags.h (flag_inline_functions_called_once): Declare.
16388         * tree-inline.c: Include cgraph.h
16389         (inlinable_functions_p): Add extra argument to bypass limits.
16390         (expand_call_inline):  Obey cgraph flag.
16391         * tree-inline.h (tree_inlinable_function_p): Update prototype.
16392
16393 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16394
16395         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
16396         irreducible loops.
16397
16398         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
16399         loops info correctly.
16400
16401 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16402
16403         PR middle-end/7796
16404         * unroll.c (calculate_giv_inc): Handle constants being
16405         loaded with LSHIFTRT.
16406
16407 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
16408
16409         * config/rs6000/rs6000.c (processor_target_table): Do not disable
16410         GP optional instructions on Power3, Power4, 620, and 630.
16411
16412 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
16413
16414         * calls.c: Fix comment formatting.
16415         * cfgloopanal.c: Likewise.
16416         * cfgloopmanip.c: Likewise.
16417         * combine.c: Likewise.
16418         * dwarf2out.c: Likewise.
16419         * ggc-common.c: Likewise.
16420         * langhooks.c: Likewise.
16421         * loop-unroll.c: Likewise.
16422         * loop.c: Likewise.
16423         * ra-build.c: Likewise.
16424         * sbitmap.c: Likewise.
16425         * toplev.c: Likewise.
16426
16427 2003-03-07  James E Wilson  <wilson@tuliptree.org>
16428
16429         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
16430
16431 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
16432
16433         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
16434         support -no-integrated-cpp.
16435
16436         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
16437         than langhooks.name.
16438
16439 2003-03-07  Michael Matz  <matz@suse.de>
16440
16441         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
16442         (DF_FOR_REGALLOC): New.
16443         * df.c (df_ref_record): Set DF_REF_STRIPPED.
16444         (read_modify_subreg_p): Simplify.
16445         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
16446         Use DF_FOR_REGALLOC.
16447         * ra.h (struct web): New member subreg_stripped.
16448         (invalid_mode_change_regs): Declare.
16449         * ra.c (invalid_mode_change_regs): New.
16450         (init_ra): Initialize it.
16451         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
16452         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
16453         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
16454         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
16455         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
16456
16457 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
16458
16459         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
16460         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
16461         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
16462         machine description file from ...
16463         * cirrus.md: ... here.
16464
16465 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16466
16467         * config/h8300/h8300.md (a peephole2): Don't use
16468         reg_overlap_mentioned_p.
16469
16470 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
16471
16472         * c-pch.c: Include langhooks.h.
16473         (IDENT_LENGTH): New.
16474         (get_ident): New.
16475         (pch_ident): Delete.
16476         (pch_init): Use get_ident, IDENT_LENGTH.
16477         (c_common_valid_pch): Likewise.  Also, use actual language
16478         in warning message.
16479         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
16480
16481         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
16482         c-parse.in.
16483         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
16484         gt-objc-objc-act.h.
16485         (gt-objc-objc-act.h): New rule.
16486         * objc/lang-specs.h: Support PCH.
16487         * objc/objc-act.c: Include gt-objc-objc-act.h.
16488         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
16489         (build_selector_reference_decl): Move idx out, mark for PCH.
16490         (build_class_reference_decl): Likewise.
16491         (build_objc_string_decl): Move *_idx out, mark for PCH.
16492         (build_tmp_function_decl): Move xxx out, mark for PCH.
16493
16494 2003-03-06  Dale Johannesen  <dalej@apple.com>
16495
16496         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
16497         global functions for inlining on Darwin.
16498
16499 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
16500
16501         * haifa-sched.c (schedule_block): Don't call reorder when sorting
16502         is prohibited.
16503
16504 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
16505
16506         * Makefile.in (c-ppoutput.o): Update.
16507         * c-common.h (init_pp_output): New.
16508         (preprocess_file): Update.
16509         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
16510         Register builtins.
16511         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
16512         Make call to cpp_read_main_file common to whether preprocessing
16513         or not.  Don't register builtins.
16514         * c-ppoutput.c: Include c-pragma.h.
16515         (setup_callbacks): Rename init_pp_output.
16516         (preprocess_file): No longer setup callbacks or call
16517         cpp_read_main_file.
16518         * cpphash.h (_cpp_init_mbchar): New.
16519         * cppinit.c (init_library): Call _cpp_init_mbchar.
16520         * cpplex.c (_cpp_init_mbchar): New.
16521
16522 2003-03-06  Roger Sayle  <roger@eyesopen.com>
16523
16524         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
16525         MEM, try loading the MEM into a register and taking the low-part
16526         of that, to help CSE see the use of the MEM in its true mode.
16527
16528 2003-03-05  Tom Tromey  <tromey@redhat.com>
16529
16530         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
16531         Define.
16532
16533 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
16534
16535         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
16536         operand 2.
16537         ("*ineqbranchsi"): Likewise.
16538
16539 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
16540
16541         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
16542         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
16543         register store followed by a stack increment.
16544
16545 2003-03-05  Chris Moller  <cmoller@redhat.com>
16546
16547         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
16548         to inhibit saving CARRY_REGS.
16549
16550         * config/stormy16/stormy16.c (xs_hi_general_operand):
16551         added predicate to detect and error-out on out-of-range
16552         const_ints for movhi.
16553         * config/stormy16/stormy16.md (movhi): use
16554         xs_hi_general_operand.
16555
16556         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
16557         added a check for local vbl size overflow.
16558         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
16559         added predicate to detect and error-out on out-of-range
16560         const_ints for addhi and subhi.
16561         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
16562         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
16563
16564         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16565         add a term to accept PRE_MODIFY addresses.
16566         * config/stormy16/stormy16.c (xstormy16_expand_move):
16567         add code to expand PRE_MODIFY addresses to an add followed
16568         by a move.
16569
16570 2003-03-06  Jason Merrill  <jason@redhat.com>
16571
16572         * tree-inline.c (inlinable_function_p): Revert earlier change
16573         pending investigation.
16574
16575 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16576
16577         * config/h8300/h8300.md (a new peephole2): New.
16578
16579 2003-03-06  Jan Hubicka  <jh@suse.cz>
16580
16581         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
16582
16583 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16584
16585         * dwarf2out.c (size_of_die): Compute size of external reference to
16586         die correctly.
16587
16588 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
16589
16590         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
16591         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
16592         expanders.
16593
16594 2003-03-05  Roger Sayle  <roger@eyesopen.com>
16595
16596         * expr.h (lang_expand_expr): Delete obsolete prototype.
16597
16598 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16599
16600         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
16601
16602 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16603
16604         * config/h8300/h8300.md (a peephole2): Generalize to
16605         accept a memory operand.
16606
16607 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
16608
16609         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
16610         * config/alpha/alpha.c (print_operand, case '+'): New.
16611         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
16612         (call_value_osf_1_noreturn): Likewise.
16613
16614 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16615
16616         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
16617         (expand_end_bindings): Likewise.
16618
16619 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16620
16621         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
16622         (epilogue): Don't generate return_external_pic when emitting PA 2.0
16623         code.
16624
16625 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
16626
16627         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
16628
16629         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
16630
16631         * hooks.c (hook_rtx_rtx_null): New.
16632
16633         * hooks.h (hook_rtx_rtx_null): Protoize.
16634
16635         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
16636         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
16637
16638         * target.h (struct gcc_target): Add dwarf_register_span.
16639
16640         * dwarf2out.c (multiple_reg_loc_descriptor): New.
16641         (one_reg_loc_descriptor): New.
16642         (reg_loc_descriptor): Add support for values that span more than
16643         one register.
16644
16645 2003-03-05  Jan Hubicka  <jh@suse.cz>
16646
16647         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
16648         * alias.c:  Include cgraph.h
16649         (mark_constant_function): Use cgraph_rtl_info.
16650         * calls.c:  Include cgraph.h
16651         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
16652         calls.
16653         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
16654         * cgraph.c (cgraph_rtl_info): New function.
16655         * cgraph.h (cgraph_rtl_info): Declare
16656         (cgraph_rtl_info): Likewise.
16657         * function.h (struct function): Add recursive_call_emit.
16658         * toplev.c: Include cgraph.h.
16659         (rest_of_compilation): Set preferred_incoming_stack_boundary.
16660
16661 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16662
16663         * config/h8300/h8300.c (output_simode_bld): Clear the
16664         destination first if possible.
16665         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
16666         alternative.
16667         (extzv_1_r_inv_h8300hs): Likewise.
16668
16669 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16670
16671         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
16672         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
16673         * cfgloop.c (flow_loop_free): Made global.
16674         (establish_preds): New static function.
16675         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
16676         (get_loop_exit_edges): New.
16677         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
16678         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
16679         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
16680         loops.
16681         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
16682         removability of an edge.
16683         (fix_irreducible_loops): New static function.
16684         (find_path, remove_path): Add ability to remove enclosing loops.
16685         (unloop): New.
16686         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
16687         flags.
16688         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
16689         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
16690         not neccessary.
16691         (decide_peel_completely, peel_loops_completely): Allow complete peeling
16692         of non-duplicable once rolling loops.
16693         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
16694
16695 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
16696
16697         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
16698         for align_jumps is 4.
16699
16700         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
16701         use GENERAL_REGS.
16702
16703 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
16704
16705         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
16706         according to va_arg type.
16707         (EXPAND_BUILTIN_VA_ARG): Remove.
16708         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
16709         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
16710
16711 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
16712
16713         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
16714         else clauses.
16715
16716 2003-03-05  Michael Matz  <matz@suse.de>
16717
16718         * i386/i386.c (ix86_save_reg): Also test
16719         current_function_uses_const_pool.
16720
16721 2003-03-05  Michael Matz  <matz@suse.de>
16722
16723         * unwind.h: Add the GPL exception.
16724         * Makefile.in (USER_H): Add unwind.h.
16725
16726 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
16727
16728         PR c/9799
16729         * c-typeck.c (push_init_level): Add sanity check.
16730
16731 2003-03-05  Jan Hubicka  <jh@suse.cz>
16732
16733         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
16734         RTL inlining is done.
16735
16736         * cgraphunit.c (cgraph_mark_local_functions): New local function.
16737         (cgraph_optimize): Mark local functions.
16738         * i386-protos.h (init_cumulative_args): Update prototype.
16739         * i386.c (init_cumulative_args): Use register passing convention for
16740         local functions.
16741
16742         * cgraph.c (cgraph_global_info_ready): New global variable
16743         (cgraph_local_info, cgraph_global_info): New functions.
16744         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
16745         structures.
16746         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
16747         Declare.
16748         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
16749         (cgraph_mark_functions_to_output): Use inline_many.
16750         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
16751         (cgraph_expand_functions): Expand inline functions last.
16752         (cgraph_optimize): Do not emit uneeded functions.
16753
16754 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
16755
16756         * expr.c (convert_modes): Check for legal hard register.
16757
16758 2003-03-04  Tom Tromey  <tromey@redhat.com>
16759
16760         * doc/sourcebuild.texi (Front End Directory): Document tags.
16761         * configure: Rebuilt.
16762         * configure.in (target_list): Added tags.
16763         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
16764         TAGS files by reference.
16765         * objc/Make-lang.in (objc.tags): New target.
16766
16767 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16768
16769         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
16770         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
16771         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
16772         gcov_read_string, gcov_write_length): Modified to enable reading/
16773         writing of whole .da file just once.
16774         (da_file_open, da_file_close, da_file_eof, da_file_error,
16775         da_file_position, da_file_seek, da_file_write, da_file_read): New
16776         functions.
16777         (actual_da_file, actual_da_file_position, actual_da_file_length,
16778         actual_da_file_buffer, actual_da_file_buffer_size): New static
16779         functions.
16780         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
16781         just once.
16782
16783
16784 2003-03-04  Andreas Schwab  <schwab@suse.de>
16785
16786         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
16787         offset without frame pointer.
16788
16789 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
16790
16791         * expr.c (expand_expr): Call promote_mode to set unsignedp.
16792
16793 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
16794
16795         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
16796         * configure: Regenerated.
16797         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
16798
16799 2003-03-04  Andreas Jaeger  <aj@suse.de>
16800
16801         * configure.in: Check for <memcheck.h>.
16802         * configure: Regenerated.
16803
16804         * config.in: Define HAVE_MEMCHECK_H.
16805
16806         * ggc-common.c: Use <memcheck.h> if available instead of
16807         <valgrind.h>.
16808         * ggc-page.c: Likewise.
16809         * cppfiles.c: Likewise.
16810
16811 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
16812
16813         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
16814
16815 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
16816
16817         PR c/9262
16818         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
16819         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
16820
16821 2003-03-04  Jan Hubicka  <jh@suse.cz>
16822
16823         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
16824         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
16825         for -O3.
16826
16827 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
16828
16829         * configure.in: Delete three unused variables.  Move a variable
16830         definition closer to its use.  Simplify use_collect2 logic.  Start to
16831         organize.  Simplify tests for in-tree gas and ld.
16832         * configure: Regenerate.
16833
16834 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
16835
16836         * Makefile.in: Update.
16837         * c-common.c (flag_no_line_commands, flag_no_output,
16838         flag_dump_macros, flag_dump_includes): New.
16839         * c-common.h (flag_no_line_commands, flag_no_output,
16840         flag_dump_macros, flag_dump_includes, preprocess_file): New.
16841         (init_c_lex): Update prototype.
16842         * c-lex.c (init_c_lex): Update prototype; move some code to
16843         c_common_init.
16844         * c-opts.c (preprocess_file): Subsume into c_common_init.
16845         (c_common_decode_option): Update flags.
16846         (c_common_init): Move code from preprocess_file and init_c_lex.
16847         (sanitize_cpp_opts): Update.
16848         * c-ppoutput.c: New, cppmain.c almost verbatim.
16849         * cpphash.h (struct printer): Remove.
16850         (struct cpp_reader): Remove print.
16851         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
16852         cpp_preprocess_file): Remove.
16853         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
16854         and dump_includes.
16855         * cppmain.c: Remove.
16856         * doc/passes.texi: Update.
16857
16858 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16859
16860         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
16861         (assign_stack_local_1): Perform overall stack alignment only when
16862         STACK_ALIGNMENT_NEEDED is nonzero.
16863         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
16864
16865         * pa.c (compute_frame_size): Rename fsize to size.  Account for
16866         alignment to a word boundary before general register save block.  Only
16867         account for double-word alignment before floating point register save
16868         block if one or more are saved.  Don't allocate space for %r3 when
16869         frame pointer is needed.
16870         (hppa_expand_prologue): Include alignment to word boundary in local
16871         frame size.
16872         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
16873         (STACK_ALIGNMENT_NEEDED): Define.
16874
16875 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
16876
16877         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
16878         global register variables.
16879
16880 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
16881
16882         * reload.c (reload_adjust_reg_for_mode): New function.
16883         (subst_reloads): Call it.
16884         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
16885         * reload.h (reload_adjust_reg_for_mode): Declare.
16886         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
16887         Call it.
16888
16889 2003-03-03  James E Wilson  <wilson@tuliptree.org>
16890
16891         * optabs.c (add_equal_note): Delete SUBREG_REG use.
16892         Fixes PR c/7872.
16893
16894 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16895
16896         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
16897         (*ixorsi3_lshiftrt_16): New.
16898         (*iorsi3_ashift_16): Remove.
16899
16900 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16901
16902         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
16903         pattern.
16904
16905 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
16906
16907         * doc/install.texi (Specific): Update entry for powerpc-darwin.
16908
16909 2003-03-03  Richard Henderson  <rth@redhat.com>
16910
16911         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
16912
16913 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
16914
16915         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
16916         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
16917         (rs6000_variable_issue): Do not return negative value.
16918         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
16919         scheduling pass.
16920
16921 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16922
16923         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
16924         prune_unused_types calls.
16925
16926 2003-03-03  Jason Merrill  <jason@redhat.com>
16927
16928         * tree-inline.c (find_builtin_longjmp_call): Save and restore
16929         lineno and input_filename.
16930         (find_alloca_call): Likewise.
16931         (inlinable_function_p): Run the langhook earlier.
16932
16933         * calls.c (compute_argument_addresses): Give the new MEMs a
16934         minimum alignment of PARM_BOUNDARY.
16935
16936 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
16937
16938         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
16939         subtarget_asm_isa_spec.
16940         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
16941         (ASM_SPEC): Define as SH_ASM_SPEC.
16942         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
16943         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
16944         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
16945         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
16946
16947         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
16948         and align_jumps if not set.
16949         Force align_jumps to be at least 2.
16950         When relaxing, force align_functions to be at least the maximum of
16951         align_loops, align_jumps and 4.
16952         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
16953         (sh_loop_align): Honour align_loops_log.
16954
16955         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
16956         to check for indirect_jump_scratch.
16957         (indirect_jump_scratch): Add second set.
16958         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
16959         when looking for indirect_jump_scratch.
16960         Extract scratch register taking new structure of indirect_jump_scratch
16961         into account.
16962         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
16963
16964 2003-03-03  Jan Hubicka  <jh@suse.cz>
16965
16966         * calls.c (rtx_for_function_call): Take the address as an argument
16967         (expand_call): Do not modify the expression.
16968
16969         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
16970         optimizing.
16971
16972 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16973
16974         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
16975         TARGET_H8300H and TARGET_H8300S.
16976
16977 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16978
16979         * config/h8300/h8300.md (a peephole2): New.
16980
16981 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16982
16983         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
16984         operands[0] and operands[1] are different.
16985
16986 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16987
16988         * reload1.c (reload_cse_move2add): Remove variable success.
16989
16990 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16991
16992         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
16993         warnings.
16994
16995 2003-03-02  Richard Henderson  <rth@redhat.com>
16996
16997         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
16998         * config.in, configure: Rebuild.
16999         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
17000         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
17001         paired ldtoffx and ldxmov annotations.
17002         (load_symptr_internal1): Remove.
17003         (load_symptr_high, load_symptr_low): New.
17004
17005 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
17006
17007         * c-incpath.c (add_path): Fix sysp assignment.
17008
17009 2003-03-02  Kurt Garloff  <garloff@suse.de>
17010
17011         * params.def: Introduce parameter max-inline-insns-rtl for
17012         a separate limit for the RTL inliner.
17013         * params.h: Likewise.
17014         * integrate.c (function_cannot_inline_p): Use it.
17015         * toplev.c (decode_f_option): Set multiple parameters
17016         controlling inlining with -finline-limit.
17017         * params.def: Fix orthographic and typographic errors.
17018         * doc/invoke.texi: Document parameters controlling inlining
17019         and the way -finline-limit sets multiple of them.
17020
17021         * tree.h (struct tree_decl): Introduce inlined_function_flag,
17022         recording whether the function became eligible for inlining
17023         by a compiler flag rather than the declaration.
17024         Provide DID_INLINE_FUNC macro to access it.
17025         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
17026         * cp/decl.c (grokfndecl): Likewise.
17027         * toplev.c (rest_of_compilation): Likewise.
17028         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
17029         * print-tree.c (print_node): Report it.
17030         * params.def: Introduce new max-inline-insns-auto limit.
17031         * params.h: Likewise.
17032         * tree-inline.c (inlinable_function_p): Apply it to functions
17033         with DID_INLINE_FUNC set.
17034         * toplev.c (decode_f_option): Initialize it from -finline-limit
17035         value.
17036         * doc/invoke.texi: Document new parameter.
17037
17038 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
17039
17040         * fix-header.c (read_scan_file): Don't reference simplify_path.
17041
17042 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
17043
17044         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
17045         min/max instructions by default as may result in reload errors.
17046
17047 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
17048
17049         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
17050         avoid reload problems; define split for it.
17051
17052 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
17053
17054         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
17055         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
17056         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
17057         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
17058         rotatert and rotate.
17059         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
17060         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
17061         ("*rotrhi3_addr"): New split for shift insns on address register.
17062         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
17063         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
17064         (___rotrhi3): Likewise.
17065         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
17066
17067 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
17068
17069         * toplev.c (aux_base_name): Moved from toplev.h.
17070         (filename): Constify.
17071         (lang_dependent_init): Don't duplicate name.
17072         (process_options): Set aux_base_name here, not...
17073         (do_compile): ...here.  Change protoype.
17074         (toplev_main): Move some code from do_compile.
17075         * toplev.h: Remove aux_base_name.
17076
17077 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
17078
17079         * config/h8300/h8300-protos.h: Add a prototype for
17080         iorxor_operator.
17081         * config/h8300/h8300.c (print_operand): Handle 'c'.
17082         (iorxor_operator): New.
17083         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
17084         * config/h8300/h8300.md (*iorhi3_zext): Remove.
17085         (*iorsi3_zexthi): Likewise.
17086         (*iorsi3_zextsi): Likewise.
17087         (*xorhi3_zextqi): Likewise.
17088         (*xorsi3_zexthi): Likewise.
17089         (*xorsi3_zextsi): Likewise.
17090         (*ixorhi3_zext): New.
17091         (*ixorsi3_zext_qi): Likewise.
17092         (*ixorsi3_zext_hi): Likewise.
17093
17094 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
17095
17096         * c-incpath.c (remove_component_p, simplify_path): Move back to
17097         cppfiles.c.
17098         (remove_duplicates): Use cpp_simplify_path.
17099         * c-incpath.h (simplify_path): Remove.
17100         * c-lex.c: Don't include c-incpath.h.
17101         (init_c_lex): Remove simplify_path.
17102         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
17103         (find_or_create_entry, validate_pch): Revert.
17104
17105 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
17106
17107         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
17108           an external cpp during compilation.
17109         (option_map): Likewise.
17110         * objc/lang-specs.h (default_compilers): Similarly.
17111         * doc/invoke.texi: Document -no-integrated-cpp flag.
17112
17113 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
17114
17115         * config/h8300/h8300.md (zero_extendqisi2): Change to an
17116         expander.
17117         (*zero_extendqisi2_h8300): New.
17118         (*zero_extendqisi2_h8300hs): New.
17119         (two splitters): New.
17120
17121 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17122
17123         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
17124
17125 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17126
17127         * config/h8300/h8300.md (a peephole2): Remove dead code.
17128
17129 2003-03-01  Roger Sayle  <roger@eyesopen.com>
17130
17131         PR c++/9367
17132         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
17133         (BT_FN_INT_CONST_STRING_VALIST_ARG,
17134         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
17135         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
17136         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
17137         BT_FN_INT_STRING_CONST_STRING_VAR,
17138         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
17139         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
17140         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
17141         ATTR_NONNULL_3): Also include the nothrow attribute.
17142         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
17143         vsnprintf, vscanf, vsscanf): Don't define attributes here.
17144         * builtins.def (putchar, puts): Make full C89 built-ins.
17145         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
17146         vsscanf, vsnprintf, vsprintf): New built-ins.
17147         * c-common.c (c_common_nodes_and_builtins): Handle new macro
17148         DEF_FUNCTION_TYPE_VAR_3.
17149
17150         * doc/extend.texi: Document these new built-in functions.
17151
17152 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17153
17154         * config/h8300/h8300.md (a peephole2): New.
17155
17156 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
17157
17158         * predict.c (estimate_bb_frequencies): Correctly set
17159         real_values_initialized after initialization.
17160
17161 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
17162
17163         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
17164         cppinit.o, cppdefault.o, fix-header): Update.
17165         * c-incpath.c: New file.
17166         * c-incpath.h: New file.
17167         * c-lex.c: Include c-incpath.h.
17168         (init_c_lex): Register path simplifier.
17169         * c-opts.c: Include cppdefault.h and c-incpath.h.
17170         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
17171         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
17172         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
17173         (missing_arg, c_common_decode_option): Handle them.
17174         (c_common_post_options): Register include chains.
17175         (print_help): Update.
17176         * cppdefault.h (struct default include): Update.
17177         Move some macros to ...
17178         * cppdefault.c: ... here.
17179         (cpp_include_defaults): Add extra field add_sysroot.
17180         * cppfiles.c (include_file, search_from, find_or_create_entry,
17181         cpp_included, find_include_file, remap_filename): Update for
17182         renaming of search_path to cpp_path, and of the chain headers.
17183         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
17184         * cpphash.h (struct search_path): Move to cpplib.h.
17185         (struct cpp_buffer, struct cpp_reader): Update.
17186         (_cpp_simplify_pathname): Remove.
17187         * cppinit.c: Don't include prefix.h and cppdefault.h.
17188         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
17189         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
17190         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
17191         no_pth, cpp_handle_options): Remove.
17192         (struct pending_option): Remove chain members.
17193         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
17194         cpp_handle_option): Update.
17195         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
17196         (struct cpp_options): Remove quote_include, bracket_include,
17197         include_prefix, include_prefix_len, verbose, ignore_srcdir,
17198         no_standard_includes, no_standard_cplusplus_includes.
17199         (struct cpp_callbacks): Add simplify_path.
17200         (cpp_handle_options): Remove.
17201         * fix-header.c: Include c-incpath.h.
17202         (read_scan_file): Update to use c-incpath functionality.
17203         * doc/passes.texi: Update.
17204
17205 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17206
17207         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
17208         satisfies EXTRA_CONSTRAINT 'U'.
17209
17210 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17211
17212         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
17213         register.
17214         (*tst_extzv_memqi_1_n): Change to a splitter.
17215         (a peephole2): Update.
17216
17217 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
17218
17219         * predict.c (estimate_bb_frequencies): Initialize the sreal
17220         constants once per compilation.
17221
17222 2003-02-28  Richard Henderson  <rth@redhat.com>
17223
17224         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
17225
17226 2003-02-28  scott snyder  <snyder@fnal.gov>
17227
17228         * flags.h: Add flag_eliminate_unused_debug_types.
17229         * toplev.c: Add flag_eliminate_unused_debug_types.
17230         (f_options): Add -feliminate-unused-debug-types.
17231         * dwarf2out.c (struct file_table): Add emitted member.
17232         (splice_child_die): Fix the parent pointer for the child being
17233         spliced.
17234         (lookup_filename): Maintain file_table.emitted array.  Don't
17235         output .file directive here.
17236         (maybe_emit_file): (new)
17237         (init_file_table): Set up file_table.emitted.
17238         (dwarf2out_source_line): Use maybe_emit_file.
17239         (dwarf2out_start_source_file): Use maybe_emit_file.
17240         (dwarf2out_init): Use maybe_emit_file.
17241         (prune_unused_types_walk_attribs): (new)
17242         (prune_unused_types_mark): (new)
17243         (prune_unused_types_walk): (new)
17244         (prune_unused_types_prune): (new)
17245         (prune_unused_types): (new)
17246         (dwarf2out_finish): Call prune_unused_types if
17247         flag_eliminate_unused_debug_types is set.
17248         * doc/invoke.texi (Option Summary): Add
17249         -feliminate-unused-debug-types.
17250         (Debugging Options): Likewise.
17251
17252 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
17253
17254         * doc/invoke.texi: Change .pch to .gch.
17255         * cppfiles.c (open_file_pch): Likewise.
17256         * gcc.c (default_compilers): Likewise.
17257
17258 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
17259
17260         * floatlib.c: Remove.
17261
17262 2003-02-28  Jason Merrill  <jason@redhat.com>
17263
17264         * stor-layout.c (variable_size): Leave a "minus 1" outside the
17265         SAVE_EXPR.
17266
17267 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
17268
17269         * config/rs6000/power4.md: Add compare bypass.
17270
17271 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
17272
17273         * config/netbsd.h: Update copyright years.
17274         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
17275         -pthread is specified on the command line.
17276
17277 2003-02-28  Dale Johannesen <dalej@apple.com>
17278
17279         * loop.c (struct movable): Add insert_temp, shrink savemode.
17280         (scan_loop): Accept invariants that require copying; mark as
17281         insert_temp.
17282         (combine_movables): Don't combine insert_temp movables.
17283         (move_movables): Insert copies for insert_temp movables.
17284         Don't record the info based on regno for insert_temp's.
17285
17286 2003-02-28  Joel Sherrill <joel@OARcorp.com>
17287
17288         PR 9638/other
17289         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
17290         this constant defaults to 1.
17291
17292 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
17293
17294         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
17295
17296 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
17297
17298         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
17299         ARMv5e processor, not just for XScale.  Instructions are predicable.
17300         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
17301
17302 2003-02-28  Nick Clifton  <nickc@redhat.com>
17303
17304         * config/arm/arm.c (note_invalid_constants): Change parameter type
17305         from bool to int.
17306
17307 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
17308
17309         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
17310         test of bit 7.
17311         (*tst_extzv_memqi_1_n): Likewise.
17312         (a peephole2): New.
17313
17314 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
17315
17316         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
17317         #ifndef __mips16.
17318
17319 2003-02-28  Jan Hubicka  <jh@suse.cz>
17320
17321         * combine.c (gen_lowpart_for_combine): Update handling of
17322         subregs_of_mode
17323         * flow.c (life_analysis, mark_used_regs): Likewise.
17324         * regclass.c (subregs_of_mode): Turn into single bitmap.
17325         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
17326         dealing with subregs_of_mode
17327         * regs.h (subregs_of_mode): Update prototype.
17328
17329 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
17330
17331         * emit-rtl.c (set_reg_attrs_for_parm): New function.
17332         * rtl.h (set_reg_attrs_for_parm): New exported function.
17333         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
17334         set_reg_attrs_from_mem.
17335
17336 2003-02-27  Roger Sayle  <roger@eyesopen.com>
17337             Zack Weinberg <zack@codesourcery.com>
17338
17339         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
17340
17341 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
17342
17343         * reload1.c (sext_for_mode): Remove.
17344         (reload_cse_move2add): Use trunc_int_for_mode instead of
17345         sext_for_mode.
17346         (move2add_note_store): Likewise.
17347         Reset register information if we see a set in non-integer
17348         mode.
17349
17350 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
17351
17352         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
17353         option.
17354         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
17355         * config/rs6000/aix51.h: Same.
17356         * config/rs6000/aix52.h: Same.
17357         * config/rs6000/power4.md: Additional VMX bypasses.
17358
17359 2003-02-27   Geert Bosch <bosch@gnat.com>
17360
17361         * toplev.c (print_version): Add indentation for GGC heuristics and
17362         output after printing version information.
17363
17364 2003-02-27  James E Wilson  <wilson@tuliptree.org>
17365
17366         * combine.c (simplify_comparison): Require integral mode when
17367         permuting SUBREG with AND.
17368
17369 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
17370
17371         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
17372
17373 2003-02-27  Nick Clifton  <nickc@redhat.com>
17374
17375         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
17376         deleted when cirrus instructions were added.
17377
17378 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
17379
17380         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
17381         POSIX thread support by default.
17382
17383 2003-02-27  Roger Sayle  <roger@eyesopen.com>
17384
17385         * config/i386/cygwin.h: Don't include any other files directly.
17386         * config/i386/mingw32.h: Don't include cygwin.h directly.
17387         * config.gcc (cygwin, mingw32, uwin): Instead make these files
17388         explicit in the tm_files variable.
17389
17390 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
17391
17392         * config/rs6000/rs6000.md: Add TI constant splitter.
17393
17394 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
17395
17396         * builtins.c (purge_builtin_constant_p): Handle subreg of
17397         constant_p_rtx too.
17398
17399         * function.c (assign_stack_local_1): Truncate constant added to
17400         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
17401
17402 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
17403
17404         * config.gcc: Add power4 to PowerPC with_cpu list.
17405
17406 2003-02-26  Jan Hubicka  <jh@suse.cz>
17407
17408         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
17409
17410 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17411
17412         * gcov-dump.c (print_prefix): Fix signedness warning.
17413         * gcov-io.h (struct counter_section, struct counter_section_data): New.
17414         (struct function_info): n_arc_counts field removed, n_counter_sections,
17415         counter_sections fields added.
17416         (struct gcov_info): arc_counts, n_arc_counts fields removed,
17417         n_counter_sections, counter_sections fields added.
17418         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
17419         profile sections.
17420         * profile.h (MAX_COUNTER_SECTIONS): New.
17421         (struct section_info): New.
17422         (struct profile_info): count_instrumented_edges,
17423         count_edges_instrumented_now fields removed, n_sections, section_info
17424         fields added.
17425         (find_counters_section): Declare.
17426         * profile.c (struct function_list): count_edges field removed,
17427         n_counter_sections, counter_sections fields added.
17428         (set_purpose, label_for_tag, build_counter_section_fields,
17429         build_counter_section_value, build_counter_section_data_fields,
17430         build_counter_section_data_value, build_function_info_fields,
17431         build_function_info_value, build_gcov_info_fields,
17432         build_gcov_info_value): New static functions.
17433         (find_counters_section): New function.
17434         (instrument_edges, get_exec_counts, compute_branch_probabilities,
17435         branch_prob, create_profiler): Modified to support multiple profile
17436         sections.
17437
17438 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17439
17440         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
17441         is 8 * STACK_BOUNDARY.
17442         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
17443
17444 2003-02-26  Michael Matz  <matz@suse.de>
17445
17446         * ra-colorize.c (merge_moves): Fix list handling.
17447
17448 2003-02-26  Nick Clifton  <nickc@redhat.com>
17449
17450         * config/arm/arm.c (is_load_address): Rename to...
17451         (arm_memory_load_p) ... this and make it check for SUBREGs and
17452         constant loads that will be converted into loads from the
17453         minipool.
17454         (is_cirrus_insn): Rename to ...
17455         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
17456         of CIRRUS_NO with CIRRUS_NOT.
17457         (cirrus_reorg): Use renamed functions.
17458         (note_invalid_constants): Change from a void function to bool.
17459         Add an extra parameter, saying whether the fixups should be
17460         pushed.  Return true if fixups are needed.
17461         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
17462         of CIRRUS_NO with CIRRUS_NOT.
17463         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
17464         other floating point co-processors can also affect this.
17465         * config/arm/arm.md ("type" attribute): Add mav_farith and
17466         mav_dmult.  Replace references to "cirrus_type" attribute with
17467         "type".
17468         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
17469         ("cirrus_type" attribute): Delete - use "type" instead.
17470         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
17471         'normal'.
17472
17473 2003-02-25  Jan Hubicka  <jh@suse.cz>
17474
17475         * objc-act.c: Include cgraph.h
17476         (mark_referenced_methods): New function.
17477         (objc_init): Call it.
17478         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
17479
17480         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
17481         mode.
17482
17483         * optabs.c (expand_fix): Do not widen the input operand.
17484
17485         * expr.c (emit_group_store):  Fix crash when converting single
17486         register into complex register.
17487
17488         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
17489         * alias.c: Include timevar.h
17490         (init_alias_analysis):  Set timevar
17491         * jump.c: Include timevar.h
17492         (rebuild_jump_labels):  Set timevar
17493         * regcalss.c: Include timevar.h
17494         (reg_scan):  Set timevar
17495         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
17496
17497 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17498
17499         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
17500
17501         * Makefile.in (loop-unroll.o): New.
17502         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
17503         (unroll_and_peel_loops): Declare.
17504         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
17505         flag_old_unroll_loops.
17506         * loop.c (loop_invariant_p): Ditto.
17507         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
17508         flag_old_unroll_all_loops.
17509         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
17510         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
17511         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
17512         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
17513         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
17514         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
17515         PARAM_MAX_ONCE_PEELED_INSNS): New.
17516         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
17517         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
17518         instead of old one.
17519         (flag_peel_loops): New.
17520         (lang_independent_options): The new flags added.
17521         (rest_of_compilation): Call new unroller.
17522         (process_options): Setup flags for coexistence of old and new unroller.
17523         * doc/invoke.texi: Document new options.
17524         * doc/passes.texi: Document new unroller pass.
17525
17526 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
17527
17528         * fixinc/fixincl.x: Regenerate
17529
17530 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
17531
17532         * function.c (assign_parms): Set reg_attrs for parameters passed in
17533         registers.
17534
17535 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
17536
17537         PR target/9681
17538         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
17539
17540 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
17541
17542         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
17543         pseudo-op.
17544
17545 2003-02-25  Roger Sayle  <roger@eyesopen.com>
17546
17547         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
17548         * cse.c (invalidate_skipped_set):  Likewise.
17549         * integrate.c (subst_constants):  Likewise.
17550         * jump.c (reversed_comparison_code_parts):  Likewise.
17551         * loop.c (canonicalize_condition):  Likewise.
17552         * simplify-rtx.c (simplify_relational_operation):  Likewise.
17553
17554 2003-02-25  Roger Sayle  <roger@eyesopen.com>
17555
17556         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
17557         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
17558         the appropriate macro to define built-in function.
17559         (fmod,fmodf,fmodl): New built-in functions.
17560
17561         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
17562
17563 2003-02-25  Richard Henderson  <rth@redhat.com>
17564
17565         * config/i386/i386.c (function_arg): Pass variable sized
17566         structures correctly on the stack.
17567
17568 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
17569
17570         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
17571         does not reduce the cost of SET.
17572
17573 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17574
17575         PR target/9732
17576         * config/rs6000/rs6000.c (first_reg_to_save): Handle
17577         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
17578         (rs6000_emit_prologue): Likewise.
17579         (rs6000_emit_epilogue): Likewise.
17580         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
17581         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
17582
17583 2003-02-25  Richard Henderson  <rth@redhat.com>
17584
17585         * real.c (real_to_integer2): Force overflow result only for
17586         unsigned overflow.
17587
17588 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
17589
17590         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
17591
17592 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
17593             Richard Henderson  <rth@redhat.com>
17594
17595         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
17596         there is no similar load.
17597
17598 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
17599             Richard Henderson  <rth@redhat.com>
17600
17601         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
17602         sched-rgn.c.
17603         (add_forward_dependence): New function prototype.
17604
17605         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
17606         sched-init.h.
17607         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
17608         them to haifa-sched.c.
17609
17610         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
17611         haifa_classify_insn): Move them from sched-rgn.c.
17612
17613         * sched-deps.c (add_dependence): Return flag of creating a new
17614         entry.
17615         (add_forward_dependence): New function.
17616         (compute_forward_dependences): Use the function.
17617
17618         * sched-ebb.c (earliest_block_with_similiar_load): New function.
17619         (add_deps_for_risky_insns): New function.
17620         (schedule_ebb): Call the function.
17621
17622 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
17623
17624         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
17625         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
17626
17627         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
17628         opaque types fail.
17629
17630         * c-typeck.c (comptypes): Change call to vector_types_compatible
17631         to vector_opaque_p.
17632         (convert_for_assignment): Call vector_opaque_p instead of
17633         vector_types_compatible.
17634         (really_start_incremental_init): Disallow initialization of opaque
17635         types.
17636
17637         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
17638         Define TARGET_VECTOR_OPAQUE_P.
17639         (TARGET_INITIALIZER): Same.
17640
17641         * target.h (struct gcc_target): Remove vector_types_compatible.
17642         Add vector_opaque_p.
17643
17644         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
17645         Remove.
17646         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
17647         a vector type.  Change return type to bool.
17648         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
17649         (TARGET_VECTOR_OPAQUE_P): Define.
17650
17651         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
17652         target hook.
17653         Include target.h.
17654         (cp_parser_init_declarator): Fix typo in function comments.
17655
17656 2003-02-25  Jan Hubicka  <jh@suse.cz>
17657
17658         * Makefile.in (lcm.o):  Add dependency on function.h
17659         * lcm.c (function.h): Include.
17660         * i386.c (machine_function, ix86_stack_locals,
17661         * ix86_save_varrargs_registers) : Move to
17662         ...
17663         * i386.h (machine_function, ix86_stack_locals,
17664         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
17665         (ix86_optimize_mode_switching): New.
17666         * i386.md (fix patterns): Set ix86_optimize_mode_switching
17667
17668 2003-02-25  Nick Clifton  <nickc@redhat.com>
17669
17670         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
17671         of fourth arg is 'fndecl' not 'indirect'.  Update comment
17672         describing the function's parameters.
17673
17674 2003-02-24  Jan Hubicka  <jh@suse.cz>
17675
17676         * combine.c (simplify_shift_const):  Fix previous patch.
17677
17678 2003-02-24  Jeff Law  <law@redhat.com>
17679
17680         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
17681         alternative.
17682         (testsi_1, testhi_1, testqi_1): Likewise.
17683
17684 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17685
17686         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
17687         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
17688         * doc/extend.texi (Tru64 Pragmas): Reflect this.
17689
17690         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
17691         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
17692         * fixinc/fixincl.x: Regenerate.
17693         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
17694         testcase.
17695         Fixes PR c/5059, c/6126, other/9671.
17696
17697 2003-02-24  Roger Sayle  <roger@eyesopen.com>
17698
17699         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
17700         from handle_braces in "%{...}".
17701
17702 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17703
17704         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
17705         (prepare_move_operands): Handle TLS operands.
17706         (tls_symbolic_operand): New.
17707         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
17708         (legitimize_pic_address): Do nothing for the TLS symbol.
17709         (sh_encode_section_info): Handle TLS case.
17710         (sh_strip_name_encoding): Drop TLS encoding.
17711         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
17712         * config/sh/sh.h (SH_TLS_ENCODING): Define.
17713         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
17714         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
17715         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
17716         * config/sh/sh.md: Define TLS UNSPEC constants.
17717         (type): Add tls_load.
17718         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
17719         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
17720         ("tls_initial_exec"): New insn.
17721         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
17722         ("load_gbr"): New insn.
17723
17724         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
17725         * configure: Regenerate.
17726
17727 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
17728
17729         PR 9297, PR 9722
17730         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
17731         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
17732         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
17733         (enum block_op_methods): Reorder for better store_expr optimization.
17734         * expr.c (store_expr): Test bit 1 of "want_value" for call param
17735         stores, test bit 0 for original want_value meaning.  Pass
17736         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
17737         recursive calls, and calls to expand_param.
17738         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
17739         expected, set target to 0 rather than to subtarget.  Formatting.
17740
17741 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
17742
17743         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
17744
17745 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17746
17747         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
17748         new default behavior.
17749         * ggc-common.c: Include sys/resource.h.
17750         (ggc_rlimit_bound): New function.
17751         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
17752         defaults to account for rlimits.
17753
17754 2003-02-22  Richard Henderson  <rth@redhat.com>
17755
17756         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
17757
17758 2003-02-22  Kelley Cook <kelley@dwhoops.info>
17759
17760         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
17761         (ix86_tune_string): Rename from ix86_cpu_string.
17762
17763 2003-02-22  Kelley Cook <kelleycook@comcast.net>
17764
17765         * config/i386/i386.c: Replace "mcpu" with "mtune".
17766         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
17767         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
17768         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
17769         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
17770
17771 2003-02-23  Andreas Schwab  <schwab@suse.de>
17772
17773         * config.gcc: Delete references to m68k/t-linux and
17774         m68k/t-linux-aout.
17775         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
17776
17777 2003-02-22  Jan Hubicka  <jh@suse.cz>
17778
17779         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
17780         of track scheduling patch.
17781
17782 2003-02-22  Jan Hubicka  <jh@suse.cz>
17783
17784         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
17785         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
17786
17787 2003-02-22  Jan Hubicka  <jh@suse.cz>
17788
17789         * c-decl.c (c_expand_body_1): Fix.
17790
17791 2003-02-22  Jan Hubicka  <jh@suse.cz>
17792
17793         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
17794
17795         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
17796         when not optimizing.
17797         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
17798         when not expensive.
17799         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
17800         optimizing;  Delete trivially dead insns early; fix optimize check.
17801
17802         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
17803         dependency on cgraph.h
17804         * c-decl.c: Include cgraph.h
17805         (finish_function): Update call of tree_inlinable_function_p.
17806         * c-objc-common.c: Include cgraph.h
17807         * cgraph.h: New file.
17808         * cgraphunit.c: New file.
17809         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
17810         (cgraph_nodes, cgraph_n_nodes): Globalize.
17811         (cgraph_finalize_function, cgraph_finalize_compilation_unit
17812         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
17813         Move into cgraphunit.c
17814         * tree-inline.c: Include cgraph.h
17815         * tree-inline.c: Include cgraph.h
17816
17817 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
17818
17819         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
17820         for copying a register.
17821
17822 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
17823
17824         PR other/3782
17825         * toplev.c (process_options): If flag_detailed_statistics is set,
17826         then set time_report as well.
17827
17828         PR c/8828
17829         * jump.c (never_reached_warning): Don't fall through BARRRIER
17830         insns.  Update comments to reflect what the function really does.
17831
17832 2003-02-21  Roger Sayle  <roger@eyesopen.com>
17833
17834         * fold-const.c (omit_one_operand): No longer static.
17835         * tree.h (omit_one_operand): Prototype here.
17836         (div_and_round_double): Keep fold-const.c prototypes together.
17837         * builtins.c (builtin_mathfn_code): Handle binary built-in
17838         funtions, such as "pow" and "atan2".
17839         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
17840         Simplify optimizations using "type" the builtin's return type.
17841
17842 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
17843
17844         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
17845         Fix functionalization typo.
17846
17847         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
17848         in an asm.
17849
17850 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17851
17852         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
17853         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
17854         documentation.
17855         * ggc-common.c: Include params.h
17856         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17857         init_ggc_heuristics): New functions.
17858         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17859         init_ggc_heuristics): Prototype.
17860         * toplev.c (print_version):  Output GGC heuristics.
17861         (parse_options_and_default_flags): Call init_ggc_heuristics.
17862
17863 2003-02-22  Jan Hubicka  <jh@suse.cz>
17864
17865         * i386.c (def_builtin):  Special case 64bit builtins.
17866         (MASK_SSE164, MASK_SSE264): New constants.
17867         (builtin_description): Add 64bit builtins.
17868         (ix86_init_mmx_sse_builtins): Likewise.
17869         * i386.h (enum ix86_builtins): Likewise.
17870         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
17871         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
17872         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
17873         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
17874         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
17875         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
17876         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
17877
17878 2003-02-22  Jan Hubicka  <jh@suse.cz>
17879
17880         * i386.c (builtin_description): Add __builtin_ia32_paddq and
17881         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
17882          and __builtin_ia32_psubq128.
17883         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
17884         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
17885         (mmx_adddi3, mmx_subdi3): New.
17886         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
17887         * xmmintrin.h (_mm_movepi64_pi64): New.
17888         (_mm_add_epi64, _mm_sub_epi64): fix.
17889         (_mm_mul_pu16): Rename to...
17890         (_mm_mul_su32): ... this one.
17891
17892         * builtins.c (expand_builtin_expect):  Do not predict
17893         flag_guess_branch_prob is not set.
17894         * c-semantics.c (expand_stmt): Likewise.
17895         * predict.c (predict_insn): Likewise.
17896         * stmt.c (expand_continue_loop): Likewise.
17897         * toplev.c (rest_of_compilation): Do not call
17898         note_prediction_to_br_prob and note_prediction_to_br_prob
17899         when not optimizing.
17900
17901 2003-02-21  Jan Hubicka  <jh@suse.cz>
17902
17903         * cfgrtl.c (commit_edge_insertions):  Call
17904         find_many_sub_basic_block only when some code has been emitted.
17905         (commit_edge_insertions_watch_calls): Bring into sync with
17906         commit_edge_insertions
17907
17908 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
17909
17910         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
17911
17912         * sh.md (binary_sf_op): Use extra constant operand instead of
17913         negating constant operand 4.
17914         * sh.c (sh_expand_binop_v2sf): Supply it.
17915
17916 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
17917
17918         * cpphash.h (struct lexer_state): Add directive_wants_padding.
17919         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
17920         for directives of type INCL.
17921         (glue_header_name, parse_include): Use get_token_no_padding.
17922         * cppmacro.c (replace_args): If directive_wants_padding,
17923         provide padding tokens.
17924
17925 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
17926
17927         * config/h8300/h8300.md (a peephole2): New.
17928
17929 2003-02-21  Jan Hubicka  <jh@suse.cz>
17930
17931         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
17932         (commit_edge_insertions): Call find_many_sub_basic_blocks
17933
17934         * reg-stack.c (convert_regs): Cleax aux for blocks.
17935
17936 2003-02-21  Jan Hubicka  <jh@suse.cz>
17937
17938         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
17939
17940 2003-02-21  Glen Nakamura  <glen@imodulo.com>
17941
17942         PR optimization/8613
17943         * builtins.c (expand_builtin): Emit postincrements before expanding
17944         builtin functions.
17945
17946 2003-02-21  Ben Elliston  <bje@redhat.com>
17947
17948         PR other/5634
17949         * doc/install.texi (Configuration): Explain using $HOME instead of
17950         the ~ metacharacter when referring to home directories.
17951
17952 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
17953
17954         * configure.in (TARGET_SYSTEM_ROOT): Set default to
17955         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
17956         '${exec_prefix}' (in addition to the expansion thereof) as
17957         relocatable.
17958         * configure: Rebuilt.
17959
17960 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
17961
17962         * config/h8300/h8300.md (addhi3_incdec): Change the name to
17963         *addhi3_incdec.
17964         (addsi3_incdec): Change the name to *addsi3_incdec.
17965
17966 2003-02-20  Roger Sayle  <roger@eyesopen.com>
17967
17968         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
17969
17970 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
17971
17972         PR fortran/9038
17973         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
17974         options to be ignored.
17975         (c_common_decode_option): Ignore them when preprocessing.
17976
17977 2003-02-20  Jan Hubicka  <jh@suse.cz>
17978
17979         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
17980         global variables.
17981         (lang_independent_options):  Add -fsched2-use-superblocks
17982         -fsced2-use-traces.
17983         (rest_of_compilation): Deal with it.
17984         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
17985         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
17986         Declare.
17987         * rtl.h (reg_to_stack):  Update prototype.
17988         * reg-stack.c (reg_to_stack): Return when something has changed;
17989         update liveness when executing after superblock scheduling.
17990
17991         * combine.c (simplify_shift_const):  Simplify few special cases
17992         into constants.
17993
17994 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
17995
17996         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
17997         (add.,subf.,neg.): Change attribute to fast_compare.
17998         All DFA descriptions updated.
17999
18000 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
18001
18002         Change base class access representation.
18003         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
18004         TREE_VIA_PRIVATE): Remove.
18005         (BINFO_BASEACCESSES): New binfo elt.
18006         (BINFO_BASEACCESS): New accessor.
18007         (BINFO_ELTS): Increase.
18008         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
18009         (access_public_node, access_protected_node,
18010         access_private_node): New global nodes.
18011         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
18012         * dbxout.c (dbxout_type): Adjust.
18013         * dwarf2out.c (gen_inheritance_die): Add access parameter.
18014         (gen_member_die): Adjust.
18015         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
18016         (output_type): Adjust.
18017         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
18018
18019         Change base class access representation. Share virtual base
18020         binfos.
18021         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
18022         call.
18023         * cp/class.c (build_base_path): Likewise.
18024         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
18025         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
18026         (make_new_vtable): Adjust.
18027         (force_canonical_binfo_r): Delete.
18028         (force_canonical_binfo): Delete.
18029         (mark_primary_virtual_base): Delete.
18030         (dfs_unshared_virtual_bases): Delete.
18031         (mark_primary_bases): Adjust.
18032         (maybe_warn_about_overly_private_class): Adjust.
18033         (dfs_base_derived_from): Delete.
18034         (base_derived_from): Follow the inheritance chain.
18035         (struct find_final_overrider_data): Add vpath member.
18036         (dfs_find_final_overrider): Adjust.
18037         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
18038         (find_final_overrider): Adjust.
18039         (update_vtable_entry_for_fn): Adjust.
18040         (modify_all_vtables): Adjust.
18041         (walk_subobject_offsets): Adjust.
18042         (layout_nonempty_base_or_field): Adjust.
18043         (layout_empty_base): Remove last parameter. Adjust.
18044         (build_base_field): Adjust.
18045         (build_base_fields): Adjust.
18046         (propagate_binfo_offsets): Remove last parameter. Adjust.
18047         (dfs_set_offset_for_unshared_vbases): Delete.
18048         (layout_virtual_bases): Adjust.
18049         (finish_struct_1): Adjust.
18050         (init_class_processing): Don't init access nodes.
18051         (dfs_get_primary_binfo): Delete.
18052         (get_primary_binfo): Adjust.
18053         (dump_class_hierarchy_r): Remove most derived arg, add IGO
18054         parameter. Adjust.
18055         (dump_class_hierarchy): Adjust.
18056         (finish_vtbls): Adjust.
18057         (get_original_base): Delete.
18058         (build_vtt_inits): Adjust.
18059         (dfs_build_secondary_vptr_vtt_inits): Adjust.
18060         (dfs_ctor_vtable_bases_queue_p): Adjust.
18061         (build_ctor_vtbl_group): Adjust.
18062         (dfs_accumulate_vtbl_inits): Adjust.
18063         (build_vtbl_initializer): Adjust.
18064         (build_vbase_offset_vtbl_entries): Adjust.
18065         (add_vcall_offset_vtbl_entries_1): Adjust.
18066         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
18067         (access_*_node): Remove.
18068         (CANONICAL_BINFO): Delete.
18069         (BINFO_UNSHARED_MARKED): Remove.
18070         (BINFO_MARKED): Set LANG_FLAG_0 directly.
18071         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
18072         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
18073         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
18074         Delete.
18075         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
18076         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
18077         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
18078         Delete.
18079         (BINFO_DEPENDENT_BASE_P): New.
18080         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
18081         index.
18082         (markedp, unmarkedp): Adjust.
18083         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
18084         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
18085         find_vbase_instance, binfo_for_vbase): Delete.
18086         (copied_binfo, original_binfo): Declare.
18087         (finish_base_specifier): Add virtual_p arg.
18088         (unshare_base_binfos): Delete.
18089         (copy_base_binfos): Declare.
18090         (reverse_path): Delete.
18091         * cp/decl.c (xref_basetypes): Access and virtuality passed
18092         differently. Don't copy direct base binfos here. Call
18093         copy_base_binfos.
18094         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
18095         (initialize_vtbl_ptrs): Adjust.
18096         (expand_member_init): Adjust.
18097         * cp/parser.c (cp_parser_base_specifier): Adjust.
18098         * cp/pt.c (instantiate_class_template): Adjust.
18099         (get_template_base_recursive): Adjust.
18100         * cp/rtti.c (get_pseudo_ti_init): Adjust.
18101         (get_pseudo_ti_desc): Adjust.
18102         * cp/tree.c (unshare_base_binfos): Rename to ...
18103         (copy_base_binfos): ... here, reimplement.
18104         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
18105         (reverse_path): Remove.
18106         * cp/typeck.c (get_delta_difference): Adjust error messages.
18107         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
18108         * cp/search.c (lookup_base_r): Adjust.
18109         (dynamic_cast_base_recurse): Adjust.
18110         (canonical_binfo): Remove.
18111         (dfs_canonical_queue): Remove.
18112         (dfs_assert_unmarked_p): Remove.
18113         (assert_canonical_unmarked): Remove.
18114         (shared_marked_p, shared_unmarked_p): Remove.
18115         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
18116         (dfs_access_in_type): Adjust.
18117         (access_in_type): Adjust.
18118         (dfs_accessible_queue_p): Adjust.
18119         (dfs_accessible_p): Adjust.
18120         (is_subobject_of_p_1, is_subobject_of_p): Remove.
18121         (struct lookup_field_info): Remove from_dep_base_p field.
18122         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
18123         (lookup_field_r): Remove dependent base code.
18124         (lookup_member): Likewise.
18125         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
18126         (dfs_unmarked_real_bases_queue_p): Remove.
18127         (dfs_marked_real_bases_queue_p): Remove.
18128         (dfs_skip_vbases): Remove.
18129         (dfs_get_pure_virtuals): Adjust.
18130         (markedp, unmarkedp): Adjust.
18131         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
18132         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
18133         (dfs_unmark): Adjust.
18134         (dfs_get_vbase_types):Remove.
18135         (dfs_build_inheritance_graph_order): Remove.
18136         (get_vbase_types): Remove
18137         (dfs_find_vbase_instance): Remove.
18138         (find_vbase_instance): Remove.
18139         (dfs_debug_unmarkedp): Adjust.
18140         (dependent_base_p): Remove.
18141         (dfs_push_type_decls): Adjust.
18142         (dfs_push_decls): Adjust.
18143         (dfs_no_overlap_yet): Adjust.
18144         (copied_binfo): New function.
18145         (original_binfo): New function.
18146         (binfo_for_vbase): Remove.
18147
18148         Change base class access representation.
18149         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
18150         (add_interface_do): Likewise.
18151
18152 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
18153
18154         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18155         * config/rs6000/power4.md (power4-store,power4-vecstore): New
18156         insn reservations.
18157         (power4-fpstore): Compact.
18158
18159 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
18160
18161         * config/h8300/h8300.md (*iorsi3_w): New.
18162
18163 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
18164
18165         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
18166         * rtl.c (reg_note_name): Likewise.
18167         * rtl.h (enum reg_note): Likewise.
18168         * doc/invoke.texi: Likewise.
18169         * doc/rtl.texi: Likewise.
18170
18171 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
18172
18173         * bb-reorder.c (find_traces_1_round): Fix comment typo.
18174
18175 2003-02-19  Roger Sayle  <roger@eyesopen.com>
18176
18177         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
18178         addition in the presence of signaling NaNs.
18179
18180 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
18181
18182         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
18183
18184 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18185
18186         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
18187         ORing with 0xffff??00 with the highest bit of the ?? part set.
18188         (compute_logical_op_length): Update.
18189         (compute_logical_op_cc): Likewise.
18190
18191 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
18192
18193         * bb-reorder.c (find_traces_1_round): Fixed condition for small
18194         destination block with multiple predecessors.
18195         (connect_traces): Check whether the block is a start of trace.
18196
18197 2003-02-19  Jan Hubicka  <jh@suse.cz>
18198
18199         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
18200         * function.c (assign_params): Likewise.
18201         * arm-protos.h (arm_init_cumulative_args): Update prototype.
18202         * arm.c (arm_init_cumulative_args): Update function.
18203         * arm.h (INIT_CUMULATIVE_ARGS): Update.
18204         * avr-protos.h (init_cumulative_args): Update prototype.
18205         * avr.c (init_cumulative_args): Update function.
18206         * avr.h (INIT_CUMULATIVE_ARGS): Update.
18207         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
18208         * d30v.c (d30v_init_cumulative_args): Update function.
18209         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
18210         * frv-protos.h (frv_init_cumulative_args): Update prototype.
18211         * frv.c (frv_init_cumulative_args): Update function.
18212         * frv.h (INIT_CUMULATIVE_ARGS): Update.
18213         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
18214         * pa.h (INIT_CUMULATIVE_ARGS): Update.
18215         * sparc-protos.h (init_cumulative_args): Update prototype.
18216         * sparc.c (init_cumulative_args): Update function.
18217         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
18218         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
18219
18220 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18221
18222         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
18223         (*ashiftsi_sextqi_7): Likewise.
18224
18225 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18226
18227         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
18228         ISO C99 and C++.
18229
18230         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
18231         for C++ on IRIX 6.5.1[89].
18232         * fixinc/tests/base/internal/sgimacros.h: New file.
18233
18234         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
18235         * fixinc/tests/base/internal/wchar_core.h: New file.
18236
18237         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
18238         socklen_t definition.
18239         * fixinc/fixincl.x: Regenerate.
18240         * fixinc/tests/base/sys/socket.h: New file.
18241         Fixes PR libgcj/9652.
18242
18243 2003-02-19  Jan Hubicka  <jh@suse.cz>
18244
18245         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
18246
18247 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
18248
18249         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
18250         align_jumps_max_skip and align_loops_max_skip.
18251
18252 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
18253
18254         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
18255         test size if named section.
18256
18257 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
18258
18259         * expr.c (expand_expr): Use gen_int_mode for the argument
18260         to gen_rtx_MULT.
18261
18262 2003-02-19  Jan Hubicka  <jh@suse.cz>
18263
18264         * i386.md (cosxf2):  Fix conditional.
18265
18266 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18267
18268         * config/h8300/h8300.md (extendqisi2): Change to an expander.
18269         (*extendqisi2_h8300): New.
18270         (*extendqisi2_h8300hs): Likewise.
18271
18272 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18273
18274         * config/h8300/h8300-protos.h: Update the prototype for
18275         split_adds_subs.  Remove the prototypes for
18276         const_int_le_2_operand and const_int_le_6_operand.
18277         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
18278         (const_int_le_2_operand): Remove.
18279         (const_int_le_6_operand): Likewise.
18280         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
18281         for const_int_le_2_operand and const_int_le_6_operand.
18282         * config/h8300/h8300.md: Update all uses of split_adds_subs.
18283         (a peephole2): New.
18284
18285 2003-02-18  Jan Hubicka  <jh@suse.cz>
18286
18287         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
18288         (cgraph_expand_function): Rewrite.
18289
18290 2003-02-18  Matt Austern <austern@apple.com>
18291
18292         * toplev.c, langhooks.c, langhooks-def.h: Move
18293         write_global_declarations from toplev.c to langhooks.c.
18294
18295 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
18296
18297         * config/h8300/h8300.c (general_operand_src): Always check
18298         MODE.
18299         (general_operand_dst): Likewise.
18300
18301 2003-02-18  Roger Sayle  <roger@eyesopen.com>
18302
18303         * convert.c (convert_to_real): Also optimize (float)log(x) into
18304         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
18305
18306 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18307
18308         * config/sh/sh.c (unspec_caller_rtx_p): New.
18309         (sh_cannot_copy_insn_p): New.
18310         (TARGET_CANNOT_COPY_INSN_P): New.
18311
18312 2003-02-18  Richard Henderson  <rth@redhat.com>
18313
18314         * c-common.c (handle_used_attribute): Accept static data too.
18315
18316 2003-02-18  Nick Clifton  <nickc@redhat.com>
18317             Aldy Hernandez  <aldyh@redhat.com>
18318
18319         * testsuite/gcc.dg/20030218-1.c: New.
18320
18321         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
18322
18323         * target-def.h (TARGET_INITIALIZER): Add
18324         TARGET_VECTOR_TYPES_COMPATIBLE.
18325         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
18326
18327         * target.h (struct gcc_target): Add field vector_types_compatible.
18328
18329         * c-typeck.c (comptypes): Take into account
18330         TARGET_VECTOR_TYPES_COMPATIBLE.
18331         (convert_for_assignment): Same.
18332
18333         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
18334         (rs6000_spe_vector_types_compatible): New.
18335         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
18336
18337 2003-02-19  Andreas Schwab  <schwab@suse.de>
18338
18339         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
18340         * toplev.c: Include langhooks-def.h.
18341
18342 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
18343
18344         * config/mips/mips.h (enum processor_type): Sort entries
18345         alphabetically.
18346         * config/mips/mips.md (define_attr cpu): Sync with processor_type
18347         enum values, including adding entries that were missing.
18348
18349 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
18350
18351         * sh.c (calc_live_regs): Also check GET_CODE when checking if
18352         initial value for PR_REG is still the PR_REG register.
18353
18354 2003-02-18  Jim Wilson  <wilson@redhat.com>
18355
18356         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
18357         instruction in output template.
18358         (bsp_value): Change output template from string to C code, add %,
18359         before actual instruction.
18360         (flushrs): Mark as not predicable.
18361
18362 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
18363
18364         * inclhack.def (netbsd_bogus_semicolon): New fix.
18365         * fixincl.x: Rebuilt.
18366         * tests/base/ctype.h: Update.
18367
18368 2003-02-18  Roger Sayle  <roger@eyesopen.com>
18369
18370         * fold-const.c (negate_expr_p): New function to determine whether
18371         an expression can be negated cheaply.
18372         (fold) [MINUS_EXPR]: Use it to determine whether to transform
18373         -A - B into -B - A for floating point types.
18374
18375 2003-02-18  Roger Sayle  <roger@eyesopen.com>
18376
18377         * sbitmap.c (sbitmap_resize): New function.
18378         * sbitmap.h (sbitmap_resize): Prototype here.
18379         * recog.c (split_all_insns): Use sbitmap_resize.
18380
18381 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
18382
18383         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
18384         insn length.
18385         (extendqisi2): Likewise.
18386         (*extendhisi2_h8300): Likewise.
18387
18388 2003-02-18  Matt Austern <austern@apple.com>
18389
18390         * langhooks.h, langhooks-def.h: introduce new langhook,
18391         final_write_globals, with write_global_declarations as default.
18392         * toplev.c: Move invocation of wrapup_global_declarations from
18393         compile_file to new function, write_global_declarations.  Change
18394         compile_file to use final_write_globals hook.  Change
18395         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
18396         conditional.
18397
18398 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18399
18400         * pa.md: Correct and enhance comment.
18401
18402 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
18403
18404         * gcc.c (validate_switches): Don't scan past closing '}'.
18405
18406 2003-02-18  Ben Elliston  <bje@redhat.com>
18407
18408         PR c++/1607
18409         * doc/extend.texi (Function Attributes): Document the effect of
18410         the C++ "this" parameter on the counting of arguments for the
18411         "format" and "format_arg" attributes.
18412
18413 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
18414
18415         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
18416         (__ev_stdw): Same.
18417         (__ev_stdh): Same.
18418
18419 2003-02-17  Jan Hubicka  <jh@suse.cz>
18420
18421         * recog.c (split_all_insns):  Fix memory overflow.
18422
18423 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
18424
18425         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
18426         (cmphi): Likewise.
18427         (*cmphi_h8300): Likewise.
18428         (*cmphi_h8300hs): Likewise.
18429         (cmpsi): Likewise.
18430         (7 peephole2): Likewise.
18431
18432 2003-02-16  Jan Hubicka  <jh@suse.cz>
18433
18434         * c-typeck.c (build_c_cast):  Fold constant variables into
18435         initial values.
18436
18437 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18438
18439         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
18440         (Binaries): Ditto for Sinix/Reliant Unix.
18441
18442 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
18443
18444         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
18445         not overlap the final result register.
18446
18447 2003-02-16 Arend Bayer <arend.bayer@web.de>
18448            Richard Henderson  <rth@redhat.com>
18449
18450         PR c/8068
18451         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
18452         rearrange mult arguments for less recursion.
18453         (extract_muldiv): New.  Prevent runaway recursion.
18454
18455 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
18456
18457         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
18458         MASK_ALIGN_DOUBLE.
18459
18460 2003-02-15  Roger Sayle  <roger@eyesopen.com>
18461
18462         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
18463         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
18464         (ext_80387_constants_table): Global table of 80387 special constants
18465         guarded by ext_80387_constants_init flag when not initialized.
18466         (init_ext_80387_constants): New function to initialize this table.
18467         (standard_80387_constant_p): Extend to recognize extra 80387
18468         constants, in XFmode, on processors where this is a win.
18469         (standard_80387_constant_opcode): New function to return the
18470         opcode associated with standard_80387_constant_p.
18471         (standard_80387_constant_rtx): New function to return the XFmode
18472         CONST_DOUBLE associated with standard_80387_constant_p.
18473         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
18474
18475         * config/i386/i386-protos.h (standard_80387_constant_opcode):
18476         Prototype here.
18477         (standard_80387_constant_rtx): Likewise.
18478
18479         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
18480         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
18481         *movtf_integer): Simplify using new standard_80387_constant_opcode.
18482
18483 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
18484
18485         * doc/invoke.texi (Optimize Options): Correct @option syntax.
18486
18487 2003-02-15  Richard Henderson  <rth@redhat.com>
18488
18489         * Makefile.in (cfglayout.o): Depend on TARGET_H.
18490         * cfglayout.c: Include target.h.
18491         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
18492         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
18493         * target.h (struct gcc_target): Add cannot_copy_insn_p.
18494
18495         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
18496         (TARGET_CANNOT_COPY_INSN_P): New.
18497         (override_options): Revert 2003-02-08 hack.
18498
18499 2003-02-15  Richard Henderson  <rth@redhat.com>
18500
18501         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
18502         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
18503
18504 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
18505
18506         * config/rs6000/rs6000.h (processor_type): Add PPC440.
18507         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
18508         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
18509         TARGET_SCHED_VARIABLE_ISSUE): Define.
18510         (rs6000_use_dfa_pipeline_interface): New function.
18511         (rs6000_multipass_dfa_lookahead): New Function.
18512         (rs6000_variable_issue): New function.
18513         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
18514         (rs6000_issue_rate): Add PPC440.
18515         * config/rs6000/rs6000.md (unspec list): Correct typo.
18516         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
18517         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
18518         cmp, delayed_cr, mfcr, mtcr.
18519         (automata_option): Set "ndfa".
18520         (extendMMNN2): Update attributes.
18521         (movcc_internal1): Discourage move to non-cr0.  Update
18522         attributes.
18523         (movMM_update): Update attributes.
18524         (cmpMM_internal): Update attributes.
18525         (sCC CR materialization): Update attributes.
18526         (branch patterns): Do not discourage non-cr0.
18527         (cr logical patterns): Prefer destructive register allocation.
18528         Update attributes.
18529         (movesi_from_cr): Update attribute.
18530         (mtcrf_operation): Update attribute.
18531         (mtcrfsi): Update attribute.
18532         * config/rs6000/40x.md: New file.
18533         * config/rs6000/603.md: New file.
18534         * config/rs6000/6xx.md: New file.
18535         * config/rs6000/7450.md: New file.
18536         * config/rs6000/7xx.md: New file.
18537         * config/rs6000/mpc.md: New file.
18538         * config/rs6000/power4.md: New file.
18539         * config/rs6000/rios1.md: New file.
18540         * config/rs6000/rios2.md: New file.
18541         * config/rs6000/rs64.md: New file.
18542         [Some DFA descriptions based on work by Michael Hayes]
18543
18544 2003-02-15  Richard Henderson  <rth@redhat.com>
18545
18546         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
18547         successors with multiple predecessors.
18548         (connect_traces): Try harder to copy traces of length 1.
18549
18550         * function.h (struct function): Add computed_goto_common_label,
18551         computed_goto_common_reg.
18552         * function.c (free_after_compilation): Zap them.
18553         * stmt.c (expand_computed_goto): Use them to produce one
18554         indirect branch per function.
18555
18556 2003-02-15  Richard Henderson  <rth@redhat.com>
18557
18558         * cfgcleanup.c: Include params.h.
18559         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
18560         too many outgoing edges from a block.
18561         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
18562         * params.def (max-crossjump-edges): New.
18563         * doc/invoke.texi: Document it.
18564
18565 2003-02-15  Richard Henderson  <rth@redhat.com>
18566
18567         * recog.c (split_all_insns): Include new blocks in life update;
18568         do a global life update.
18569
18570 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
18571
18572         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
18573         Update copyright.
18574         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
18575         -mno-cygwin case.
18576
18577 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18578
18579         PR optimization/7702
18580         * reload1.c (reload_cse_simplify_set): Honor
18581         CANNOT_CHANGE_MODE_CLASS.
18582
18583 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
18584
18585         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
18586         function.
18587         * config/mn10300/mn10300-protos.h: Declare it.
18588         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
18589         attribute cc of instructions that may use clr.
18590
18591 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18592
18593         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
18594         (x - (x & y)) is found.
18595
18596 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18597
18598         * configure.in: Fix typo.
18599         * configure: Regenerate.
18600
18601 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18602
18603         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
18604
18605 2003-02-13  Adam Nemet  <anemet@lnxw.com>
18606
18607         PR opt/2391
18608         * combine.c: Fix spelling in comment.
18609         (cached_nonzero_bits): New function.
18610         (cached_num_sign_bit_copies): New function.
18611         (nonzero_bits_with_known): New macro.
18612         (num_sign_bit_copies_with_known): New macro.
18613         (nonzero_bits1): Rename from nonzero_bits.  Add three new
18614         arguments.  Change calls from nonzero_bits to
18615         nonzero_bits_with_known.
18616         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
18617         three new arguments.  Change calls from num_sign_bit_copies to
18618         num_sign_bit_copies_with_known.
18619         (nonzero_bits): New macro.
18620         (num_sign_bit_copies): New macro.
18621         (update_table_tick): Don't traverse identical subexpression more
18622         than once.
18623         (get_last_value_validate): Likewise.
18624
18625 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
18626
18627         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
18628         * function.h (struct emit_status): Length of regno_pointer_align
18629         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
18630         not regno_pointer_align_length (i.e. length actually used, not
18631         length as allocated)
18632
18633         * config/i386/i386.c (struct stack_local_entry): New.
18634         (struct machine_function): Replace huge array with alist.
18635         (assign_386_stack_local): Change to match.
18636
18637 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
18638
18639         * inclhack.def (hpux_long_double): Tighten select and add bypass
18640         regexp.
18641         * fixincl.x: Rebuilt.
18642
18643 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
18644
18645         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
18646         edge and block ends with a jump insn it must be simple jump.
18647
18648 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
18649
18650         * Makefile.in (PREPROCESSOR_DEFINES): Add
18651         @TARGET_SYSTEM_ROOT_DEFINE@.
18652         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
18653         is specified or if building a cross compiler.
18654         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
18655         if the sysroot is under $exec_prefix.
18656         * configure: Regenerated.
18657         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
18658         defined.
18659         (struct default_include): Add add_sysroot field.
18660         (cpp_SYSROOT): Declare.
18661         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
18662         field.
18663         (cpp_SYSROOT): New variable.
18664         * cppinit.c (cpp_create_reader): Initialize
18665         CPP_OPTION (pfile, sysroot).
18666         (init_standard_includes): Handle add_sysroot.  Do not
18667         add unrelocated copies of relocated directories.
18668         (COMMAND_LINE_OPTIONS): Add -isysroot.
18669         (cpp_handle_option): Handle -isysroot.
18670         * cpplib.h (struct cpp_options): Add sysroot member.
18671         * gcc.c (The Specs Language): Update description of %I.
18672         (target_system_root_changed): New variable.
18673         (process_command): Conditionalize make_relative_prefix call
18674         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
18675         target_system_root_changed.
18676         (do_spec_1): Add -isysroot to %I.
18677         * doc/invoke.texi (Spec Files): Update description of %I.
18678         * doc/install.texi (--with-sysroot): Update comment about
18679         relocation.
18680
18681 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
18682
18683         * config/h8300/h8300.md (a peephole2): New.
18684
18685 2003-02-13  Robert Lipe <robertlipe@usa.net>
18686             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18687
18688         * doc/install.texi (Specific): Update three SCO-related URLs.
18689
18690 2003-02-13  Andreas Schwab  <schwab@suse.de>
18691
18692         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
18693         Parenthesize properly.
18694         (NPREDECESORS): Parenthesize properly.
18695
18696 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18697
18698         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
18699
18700 2003-02-12  Roger Sayle  <roger@eyesopen.com>
18701
18702         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
18703         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
18704
18705         * reg-stack.c (subst_stack_regs_pat): Add support for binary
18706         UNSPEC instructions (e.g. "fpatan").
18707
18708 2003-02-12  Mike Stump  <mrs@apple.com>
18709
18710         * varray.c (element_size): Remove.
18711         (uses_ggc): Remove.
18712         (element): Add.
18713         (varray_init): Use new interface.
18714         (varray_grow): Use new interface.
18715         (varray_clear): Use new interface.
18716
18717 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
18718
18719         * config/rs6000/spe.h: Add casts to the arguments of the following
18720         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
18721         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
18722         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
18723         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
18724         __ev_get_u16, __ev_get_s16.
18725
18726 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18727
18728         * config/h8300/h8300.md (a peephole2): New.
18729
18730 2003-02-12  Jan Hubicka  <jh@suse.cz>
18731
18732         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
18733         (OBJS): Add callgraph.o
18734         (callgraph.o): New.
18735         * c-decl.c (expand_body_1): Break out from ...
18736         (expand_body): This one;  change calling convention
18737         (finish_function): Move some of expand_body logic here.
18738         (c_expand_deferred_function): Update call of expand_body
18739         (c_expand_stmt): Use c_expand_body_1.
18740         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
18741         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
18742         * c-tree.h (c_expand_body): Declare.
18743         * callgraph.c: New file.
18744         * flags.h (flag_unit_at_a_time): Declare.
18745         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
18746         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
18747         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
18748         * langhooks.h (struct lang_hooks_for_callgraph): New.
18749         (struct lang_hooks): Add callgraph field.
18750         * toplev.c (flag_unit_at_a_time): New.
18751         (lang_independent_options): Add flag_unit_at_a_time.
18752         (process_options): Disable unit-at-a-time mode for frontends not
18753         supporting callgraph.
18754         * tree-inline.c (typedef struct inline_data): Add "decl"
18755         (expand_call_inline): Update callgraph.
18756         (optimize_inline_calls): Set id.decl.
18757         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
18758         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
18759         cgraph_calls_p): Declare.
18760         * invoke.texi (-funit-at-a-time): Document
18761
18762 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
18763
18764         * config/rs6000/spe.h: Fix misc formatting.
18765         (__ev_create_ufix32_fs): Cast ev argument.
18766         (__ev_create_sfix32_fs): Same.
18767         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
18768         (__ev_get_ufix32_fs_internal): Same.
18769
18770 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
18771
18772         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
18773         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
18774
18775 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
18776
18777         * cpplib.c (do_include_common): Move warnings for
18778         #include_next and #import out to callers.  Use early-return
18779         instead of nested ifs.  Don't do check_eol here.
18780         (parse_include): Do check_eol here with the rest of the
18781         parsing stuff.
18782         (do_include_next, do_import): Now handle warnings.
18783
18784 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18785
18786         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
18787
18788 2003-02-12  Jan Hubicka  <jh@suse.cz>
18789
18790         * predict.c (estimate_probability):  Fix roundoff error.
18791
18792 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18793
18794         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
18795         (two peephole2): New.
18796
18797 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18798
18799         * config/h8300/h8300.md (several peephole2): Replace
18800         find_regno_note with peep2_reg_dead_p.
18801
18802 2003-02-11  Richard Henderson  <rth@redhat.com>
18803
18804         * gcse.c (lookup_set): Remove unused argument PAT.  Update
18805         both callers.
18806
18807 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
18808
18809         * diagnostic.c (real_abort): New.
18810         (diagnostic_report_diagnostic): Call real_abort on error.
18811         * diagnostic.h (diagnostic_abort_on_error): New.
18812         (struct diagnostic_context): Add abort_on_error field.
18813         * toplev.c (setup_core_dumping): New.
18814         (decode_d_option): Handle 'H' case.
18815         * doc/invoke.texi (Debugging Options): Document -dH.
18816
18817 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
18818
18819         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
18820         which refers to obsolete directories.
18821
18822 2003-02-11  Richard Henderson  <rth@redhat.com>
18823
18824         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
18825
18826 2002-10-21  Jan Hubicka  <jh@suse.cz>
18827
18828         * i386.c (contains_128bit_aligned_vector_p): New function.
18829         (ix86_function_arg_boundary): Properly align vector modes.
18830
18831 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
18832
18833         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
18834         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
18835         as a SET pattern.
18836
18837 2003-02-11  Roger Sayle  <roger@eyesopen.com>
18838
18839         * builtins.c:  Fix failure caused by commiting wrong patch.
18840
18841 2003-02-11  Dale Johannesen  <dalej@apple.com>
18842         * ra-build.c (compare_and_free_webs):  Relax checking.
18843         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
18844         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
18845
18846 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18847
18848         PR optimization/9651
18849         * rtlanal.c (may_trap_p): Handle FIX.
18850
18851 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
18852
18853         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
18854         * doc/invoke.texi: Extra alias.
18855
18856 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
18857
18858         * config/rs6000/host-darwin.c: Fix comment.
18859
18860 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
18861
18862         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
18863         predicate for mod result.
18864
18865 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18866
18867         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
18868         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
18869         * fixincl.x: Rebuilt.
18870         * tests/base/stdlib.h: Update.
18871         * tests/base/ctype.h: New file.
18872
18873 2003-02-11  Jan Hubicka  <jh@suse.cz>
18874
18875         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
18876
18877 2003-02-11  Richard Henderson  <rth@redhat.com>
18878
18879         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
18880         appropriated as globals.
18881         (ix86_expand_clrstr): Similarly.
18882         * config/i386/i386.md (cmpstrsi): Similarly.
18883
18884 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18885
18886         * config/h8300/h8300.md (a peephole2): Add a case of 255.
18887
18888 2003-02-11  Roger Sayle  <roger@eyesopen.com>
18889
18890         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
18891         (pow_optab, atan2_optab): Define corresponding macros.
18892         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
18893         * genopinit.c (optabs): Implement pow_optab and atan2_optab
18894         using pow?f3 and atan2?f3 patterns.
18895         * builtins.c (expand_errno_check): New function to update errno
18896         if necessary, split out from expand_builtin_mathfn.
18897         (expand_builtin_mathfn): Use expand_errno_check.
18898         (expand_builtin_mathfn_2): New function to handle expanding binary
18899         math functions, reusing the code in expand_errno_check.
18900         (expand_builtin): Handle the pow and atan2 math built-ins,
18901         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
18902         expand_builtin_mathfn_2.
18903
18904         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
18905
18906 2003-02-11  Jan Hubicka  <jh@suse.cz>
18907
18908         * combine.c (combine_simplify_rtx): Fix folding of
18909         nested float_truncates.
18910
18911 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18912
18913         * config/h8300/h8300.md (a peephole2): Fix a typo.
18914
18915 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
18916
18917         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
18918         register number.
18919
18920 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18921
18922         * config/h8300/h8300-protos.h: Add a prototype for
18923         gtuleu_operator.
18924         * config/h8300/h8300.c (gtuleu_operator): New.
18925         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
18926         * config/h8300/h8300.md (a peephole2): New.
18927
18928 2003-02-11  Jan Hubicka  <jh@suse.cz>
18929
18930         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
18931
18932 2003-02-11  Jan Hubicka  <jh@suse.cz>
18933
18934         * predict.c (choose_function_section): Choose sections correctly.
18935
18936 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18937
18938         * reload1.c (first_label_num): New.
18939         (reload): Index offsets_known_at and offsets_at using difference of
18940         label number and first label number.  Don't use offset pointers.
18941         (set_label_offsets, set_initial_label_offsets): Likewise.
18942
18943 2003-02-10  Roger Sayle  <roger@eyesopen.com>
18944
18945         * mips-tfile.c (init_file): Add missing initializers in the
18946         "#ifdef __alpha" case.
18947         (file_offset, max_file_offset): Declare as unsigned long.
18948         (write_varray): Cast to "unsigned long" in comparisons against
18949         either file_offset or max_file_offset.
18950         (write_object): Likewise.
18951         (read_seek): Likewise.
18952         (copy_object): Likewise. Declare "ifd" as int to match its use
18953         in add_ext_symbol, and avoid signed/unsigned conditional warning.
18954
18955 2003-02-10  Nick Clifton  <nickc@redhat.com>
18956             Aldy Hernandez  <aldyh@redhat.com>
18957
18958         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
18959         override options which have been specified on the command line.
18960
18961 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
18962
18963         * config/h8300/h8300.md (abssf2): New.
18964         (*abssf2_h8300): Likewise.
18965         (*abssf2_h8300hs): Likewise.
18966
18967 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
18968
18969         * tree.c (build_tree_list):  Fix parameter names in comment.
18970
18971 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
18972
18973         * config/rs6000/ppc64-fp.c: New file.
18974         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
18975
18976 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
18977
18978         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
18979         * bb-reorder.c (make_reorder_chain): Deleted.
18980         (make_reorder_chain_1): Deleted.
18981         (find_traces): New function.
18982         (rotate_loop): New function.
18983         (mark_bb_visited): New function.
18984         (find_traces_1_round): New function.
18985         (copy_bb): New function.
18986         (bb_to_key): New function.
18987         (better_edge_p): New function.
18988         (connect_traces): New function.
18989         (copy_bb_p): New function.
18990         (get_uncond_jump_length): New function.
18991         (reorder_basic_blocks): Use new functions (Software Trace Cache).
18992         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
18993         boundaries.
18994
18995 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
18996
18997         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
18998
18999 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
19000
19001         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
19002         (DECL_LIVE_RANGE_RTL): Remove.
19003
19004 2003-02-10  Nick Clifton  <nickc@redhat.com>
19005
19006         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
19007         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
19008         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
19009         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
19010         config/arm/freebsd.h, config/arm/linux-elf.h,
19011         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
19012         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
19013         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
19014         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
19015         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
19016         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
19017         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
19018         and reformat as appropriate.
19019
19020 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
19021
19022         * config/h8300/clzsi2.c: Remove.
19023         * config/h8300/ctzsi2.c: Likewise.
19024         * config/h8300/paritysi2.c: Likewise.
19025         * config/h8300/popcountsi2.c: Likewise.
19026         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
19027         ctzsi2, paritysi2, and popcountsi2.
19028
19029 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19030             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
19031
19032         PR c/7741
19033         * c-decl.c (duplicate_decls): Discard the initializer of the
19034         new decl when the types are conflicting.
19035
19036 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
19037
19038         * Makefile.in (sreal.o): Added.
19039         (predict.o): Depends on sreal.h instead of real.h.
19040         * sreal.c: New file.
19041         * sreal.h: New file.
19042         * predict.c: Use sreal.c instead of real.c.
19043
19044 2003-02-10  Nick Clifton  <nickc@redhat.com>
19045
19046         * Contributed support for the Cirrus EP9312 "Maverick"
19047         floating point co-processor.  Written by Aldy Hernandez
19048         <aldyh@redhat.com>.
19049         (config/arm/arm.c): Add Cirrus support.
19050         (config/arm/arm.h): Likewise.
19051         (config/arm/aout.h): Likewise.
19052         (config/arm/arm.md): Likewise.
19053         (config/arm/arm-protos.h): Likewise.
19054         (config.gcc): Likewise.
19055         (doc/invoke.texi): Describe new -mcpu value and new
19056         -mcirrus-fix-invalid-insns switch,
19057         (cirrus.md): New file.
19058
19059 2003-02-10  Jan Hubicka  <jh@suse.cz>
19060
19061         * combine.c (combine_simplify_rtx): Simplify using
19062         (float_truncate (float x)) is (float x)
19063         (float_extend (float_extend x)) is (float_extend x).
19064
19065 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
19066
19067         * calls.c (try_to_integrate): Tidy stack_usage_map access.
19068         (emit_library_call_value_1): Likewise.  Formatting.
19069         (store_one_arg): Likewise.
19070
19071 2003-02-09  Nick Clifton  <nickc@redhat.com>
19072             Aldy Hernandez  <aldyh@redhat.com>
19073
19074         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
19075         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
19076         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
19077         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
19078         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
19079         docs.  Add range test for immediate value.
19080
19081 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
19082
19083         Rename spe_evxor to xorv2si3.
19084         (xorv4hi3): New.
19085         (xorv1di3): New.
19086
19087 2003-02-10  Glen Nakamura  <glen@imodulo.com>
19088
19089         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
19090         tag.
19091
19092 2003-02-10  Jan Hubicka  <jh@suse.cz>
19093
19094         * i386.c (vector_move_operand): New predicate.
19095         (ix86_expand_vector_move): Be happy about 0.
19096         * i386.h (PREDICATE_CODES): Add sse-move_operand.
19097         * i386.md (mov*_internal): Add 'C' alternative.
19098
19099 2003-02-09  Jan Hubicka  <jh@suse.cz>
19100
19101         * i386.md (floathi*): Deal with SSE.
19102
19103 2003-02-09  Jan Hubicka  <jh@suse.cz>
19104
19105         * simplify-rtx.c (simplify_unary_operation,
19106         simplify_binary_operation):  Deal with vector modes
19107         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
19108
19109 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
19110
19111         * toplev.c (rest_of_compilation): Recompute register usage after
19112         split_all_insns.
19113
19114 2003-02-09  Richard Henderson  <rth@redhat.com>
19115
19116         * libgcc-std.ver (__clztf2): New.
19117         (__ctztf2, __popcounttf2, __paritytf2): New.
19118         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
19119         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
19120         adjust code to match the different type sizes.
19121         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
19122         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
19123
19124         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
19125         TImode; select word_mode and twice that.
19126         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
19127         select the modes from float, double, and long double.
19128         (init_optabs): Remove duplicate initializations.
19129
19130 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
19131
19132         * doc/install.texi: Squeeze and streamline section on
19133         testing and regression checking.
19134
19135 2003-02-09  Jan Hubicka  <jh@suse.cz>
19136
19137         * i386.md (ahi?v*3): Set third operand type to TImode.
19138         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
19139
19140         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
19141         integer mode.
19142
19143         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
19144         Change code so they are arithmetic expressions now.
19145         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
19146         simplify_ternary_operation): Deal with VEC_* expressions.
19147
19148         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
19149
19150 2003-02-08  Jan Hubicka  <jh@suse.cz>
19151
19152         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
19153         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
19154         possibly got duplicated.
19155
19156 2003-02-08  Richard Henderson  <rth@redhat.com>
19157
19158         * config/alpha/alpha.c (override_options): Turn off explicit
19159         relocs until post-peep2 code duplication resolved.
19160
19161 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
19162
19163         * optabs.c (expand_unop): Widen clz properly when clz is done
19164         via libcall.
19165
19166 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
19167
19168         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
19169         * config/h8300/crti.asm: Likewise.
19170         * config/h8300/crtn.asm: Likewise.
19171         * config/h8300/ctzsi2.c: Likewise.
19172         * config/h8300/fixunssfsi.c: Likewise.
19173         * config/h8300/h8300-protos.h: Likewise.
19174         * config/h8300/h8300.c: Likewise.
19175         * config/h8300/h8300.h: Likewise.
19176         * config/h8300/h8300.md: Likewise.
19177         * config/h8300/paritysi2.c: Likewise.
19178         * config/h8300/popcountsi2.c: Likewise.
19179         * config/h8300/rtems.h: Likewise.
19180
19181 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19182
19183         * doc/invoke.texi: Documentation for my previous commit.
19184         * doc/passes.texi: Ditto.
19185
19186 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19187
19188         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
19189         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
19190         Declare.
19191         (DLTHE_FLAG_UPDATE_FREQ): New.
19192         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
19193         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
19194         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
19195         fix_bb_placement, fix_bb_placements, place_new_loop,
19196         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
19197         New static functions.
19198         (fix_loop_placement, can_duplicate_loop_p,
19199         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
19200         New functions.
19201
19202         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
19203         unswitch_loops): Declare.
19204         * loop-init.c: New file.
19205         * loop-unswitch.c: New file.
19206         * Makefile.in (loop-init.o, loop-unswitch.o): New.
19207         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
19208         * toplev.c (DFI_loop2): New dump.
19209         (flag_unswitch_loops): New.
19210         (lang_independent_options): Add it.
19211         (rest_of_compilation): Call new loop optimizer.
19212         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
19213
19214 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
19215
19216         * config/h8300/clzsi2.c: New.
19217         * config/h8300/ctzsi2.c: Likewise.
19218         * config/h8300/paritysi2.c: Likewise.
19219         * config/h8300/popcountsi2.c: Likewise.
19220         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
19221
19222 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
19223
19224         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
19225         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
19226         (ctzsi2): New pattern.
19227         (ffssi2): Use clz instead of unspec.
19228         (clzdi2): Rename from cntlzd2.
19229         (ctzdi2): New pattern.
19230         (ffsdi2): Use clz instead of unspec.
19231
19232 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
19233
19234         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
19235         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
19236         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19237         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
19238
19239 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
19240
19241         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
19242
19243 2003-02-07  Richard Henderson  <rth@redhat.com>
19244
19245         PR 9226
19246         * gcse.c (local_cprop_find_used_regs): New.
19247         (local_cprop_pass): Use it.
19248
19249 2003-02-07  Fred Fish  <fnf@intrinsity.com>
19250
19251         * mips-tfile.c (parse_def): Parenthesize assignments to fix
19252         precedence bugs.
19253
19254 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
19255
19256         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
19257
19258 2003-02-07  Roger Sayle  <roger@eyesopen.com>
19259
19260         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
19261         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
19262         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
19263         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
19264         builtin functions (and their __builtin_* variants).
19265         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
19266         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
19267         when not optimizing.
19268
19269         * doc/extend.texi: Document new pow and atan2 builtins, and
19270         their float and long double variants.  Realphabetize builtins.
19271
19272 2003-02-07  Jan Hubicka  <jh@suse.cz>
19273
19274         * i386.md (sse2_nandv2di3): Fix.
19275
19276 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
19277
19278         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
19279         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
19280         definition.
19281         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
19282         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
19283
19284 2003-02-07  Jan Hubicka  <jh@suse.cz>
19285
19286         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
19287
19288 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
19289
19290         * cfg.c (dump_flow_info): Add back accidently deleted line.
19291
19292 2003-02-07  Andrey Petrov <petrov@netbsd.org>
19293
19294         * optabs.c (expand_float): Search wider integer modes first.
19295
19296 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
19297
19298         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
19299         based on preprocessor flag.
19300
19301 2003-02-07  Roger Sayle  <roger@eyesopen.com>
19302             Richard Henderson  <rth@redhat.com>
19303
19304         * gcse.c (implicit_sets): New.
19305         (compute_hash_table_work): Include them in hash table.
19306         (find_implicit_sets, fis_get_condition): New.
19307         (one_cprop_pass): Allocate and free implicit_sets; call
19308         find_implicit_sets before building hash table.
19309
19310 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
19311
19312         * config/t-netbsd (USER_H): Revert previous change.
19313
19314 2003-02-07  Gabor Greif  <ggreif@lucent.com>
19315
19316         * doc/c-tree.texi (Namespaces): Fix typo.
19317
19318 2003-02-07  Jan Hubicka  <jh@suse.cz>
19319
19320         * regrename.c (do_replace, find_oldest_value_reg,
19321         copyprop_hardreg_forward_1): Update register attributes.
19322
19323 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
19324
19325         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
19326         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
19327         variables starting with underscore.
19328         (struct unit_usage): New structure.
19329         (unit_usages, cycle_alt_unit_usages): New global variables.
19330         (check_unit_distribution_in_reserv): Remove it.
19331         (store_alt_unit_usage): New function.
19332         (check_regexp_units_distribution): Rewrite it.
19333
19334 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19335
19336         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
19337         target_cpu_default.
19338         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
19339         if not MASK_NO_SPACE_REGS.
19340         (output_call): Adjust return pointer, don't load new space register
19341         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
19342         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
19343         TARGET_NO_SPACE_REGS is true.
19344         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
19345         conditions.
19346         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
19347         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
19348         true.  Use bve when TARGET_64BIT is true.
19349
19350 2003-02-06  Richard Henderson  <rth@redhat.com>
19351
19352         * combine.c (nonzero_bits): Fix double break.
19353
19354 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
19355             Richard Henderson <rth@redhat.com>
19356
19357         PR c/9530
19358         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
19359         from functions that return a float to functions that don't.
19360
19361 2003-02-06  Jan Hubicka  <jh@suse.cz>
19362
19363         * i386.c (x86_inter_unit_moves): New variable.
19364         (ix86_secondary_memory_needed): Fix 64bit case, honor
19365         TARGET_INTER_UNIT_MOVES
19366         * i386.h (x86_inter_unit_moves): Declare.
19367         (TARGET_INTER_UNIT_MOVES): New macro.
19368         * i386.md (movsi_1): Cleanup constraints; disable
19369         when not doing inter-unit moves.
19370         (movsi_1_nointernunit): New.
19371         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
19372         (movdi_1_rex64_nointerunit): New.
19373         (mivsf_1): disable when not doing inter-unit moves.
19374         (movsf_1_nointerunit): New.
19375
19376         * basic-block.h (inside_basic_block_p):  Declare.
19377         * cfgbuild.c (inside_basic_block_p): Make global.
19378         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
19379         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
19380         update CFG.
19381         (fix_basic_block_boundaries, add_missing_bbs): New.
19382         (rank): Use profile.
19383         (scheudle_ebbs): Rely on CFG; update coments.
19384
19385 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
19386
19387         * Makefile.in (host_hook_obj): New.
19388         (OBJS): Add $(host_hook_obj).
19389         (host_default.o): New rule.
19390         * config.gcc (host_hook_obj): New, default to host-default.o.
19391         (powerpc-*-darwin*): Use host-darwin.o.
19392         (out_host_hook_obj): New.
19393         * configure: Regenerate.
19394         * configure.in: Print information about out_host_hook_obj, substitute
19395         into output files.
19396         * host-default.c: New file.
19397         * hosthooks.h: New file.
19398         * toplev.c (general_init): Call host_hooks.extra_signals.
19399         * config/rs6000/host-darwin.c: New file.
19400         * config/rs6000/x-darwin: New file.
19401         * doc/hostconfig.texi: Add documentation for new host hook.
19402         Rearrange existing documentation.
19403
19404 2003-02-05  Roger Sayle  <roger@eyesopen.com>
19405
19406         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
19407         with *targetm.delegitimize_address.
19408         (rtl_for_decl_location): Likewise.
19409         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
19410         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
19411
19412         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
19413         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
19414         prototype.
19415         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
19416         i386_simplify_dwarf_addr.  Made static.  Prototyped.
19417         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
19418         i386_simplify_dwarf_addr to ix86_delegitimize_address.
19419         (ix86_find_base_term): Likewise.
19420         (maybe_get_pool_constant): Likewise.
19421
19422         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
19423         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
19424         prototype.
19425         * config/s390/s390.c (s390_delegitimize_address): Renamed from
19426         s390_simplify_dwarf_addr.  Made static.  Prototyped.
19427         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
19428
19429 2003-02-05  Richard Henderson  <rth@redhat.com>
19430
19431         PR c/8602
19432         * integrate.c (output_inline_function): Reset input_filename
19433         and lineno from the decl before rest_of_compilation.
19434
19435 2003-02-05  Richard Henderson  <rth@redhat.com>
19436
19437         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
19438         (CTZ_DEFINED_VALUE_AT_ZERO): New.
19439         * doc/rtl.texi, doc/tm.texi: Document them.
19440
19441         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
19442         of the value at zero properly.
19443         * fold-const.c (tree_expr_nonnegative_p): Likewise.
19444         * simplify-rtx.c (simplify_unary_operation): Likewise.
19445
19446         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
19447         (CTZ_DEFINED_VALUE_AT_ZERO): New.
19448
19449         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
19450         (TARGET_EXPAND_BUILTIN): Remove.
19451         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
19452         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
19453         (enum arm_builtins): Remove.
19454         * config/arm/arm.md (UNSPEC_CLZ): Remove.
19455         (clzsi2): Rename from clz; use clz instead of unspec.
19456         (ctzsi2): New.
19457         * config/arm/arm-protos.h: Update.
19458
19459 2003-02-05  Jan Hubicka  <jh@suse.cz>
19460
19461         * i386-protos.h (x86_emit_floatuns):  Declare.
19462         * i386.c (x86_emit_floatuns): New global function.
19463         * i386.md (floatunssisf2, floatunsdisf2,
19464         floatunsdidf2):  New patterns.
19465
19466 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19467
19468         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
19469
19470 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
19471
19472         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
19473           config/ia64/linux.h
19474
19475 2003-02-05  Roger Sayle  <roger@eyesopen.com>
19476
19477         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
19478
19479 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
19480
19481         PR optimization/8555
19482         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
19483         instead of aborting.
19484
19485 2003-02-04  Richard Henderson  <rth@redhat.com>
19486
19487         * config/i386/i386.md (UNSPEC_BSF): Remove.
19488         (ffssi2): Split into cmove and no_cmove insns and splitters;
19489         lose pentium float trick for now.
19490         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
19491         (ctzsi2, clzsi2, bsr): New.
19492
19493 2003-02-04  Richard Henderson  <rth@redhat.com>
19494
19495         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
19496         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
19497         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
19498         (ffsdi2): Use popcount instead of unspec.
19499         (popcountdi2): Rename from *popcnt.
19500         (ctzdi2, clzdi2, getf_exp_tf): New.
19501
19502 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
19503
19504         * genconfig.c (main): Generate CC0_P.
19505         * rtl.h (CC0_P): Remove.
19506
19507 2003-02-04  Richard Henderson  <rth@redhat.com>
19508
19509         * libgcc2.h, libgcc2.c (__ffsSI2): New.
19510         (__ffsDI2): Rename from __ffsdi2.
19511         * mklibgcc.in (lib2funcs): Add _ffssi2.
19512
19513 2003-02-04  Richard Henderson  <rth@redhat.com>
19514
19515         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
19516         rounds with a "bit table" lookup.
19517
19518 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19519
19520         * reload.c (find_reloads): Do not use the mode specified in the insn
19521         pattern as reload mode for address operands.  Do not generate optional
19522         reloads for operands where a mandatory reload was already pushed.
19523
19524 2003-02-04  Richard Henderson  <rth@redhat.com>
19525
19526         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
19527         builtins instead of inline assembly.
19528
19529 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
19530
19531         PR c/9376
19532         * libgcc2.c (__subvdi3): Fix typo.
19533
19534 2003-02-04  Jan Hubicka  <jh@suse.cz>
19535
19536         * i386.md (movti_rex64):  Fix constraint.
19537
19538 2003-02-04  Jan Hubicka  <jh@suse.cz>
19539
19540         * i386.md (vector push splitters):  Fix typo in resolving conflict.
19541
19542 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
19543
19544         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
19545
19546 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
19547
19548         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
19549         for recent libstdc++.  Remove formatting cruft.
19550
19551 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
19552
19553         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
19554         attribute even if input file name is absolute, but one of the
19555         includes is relative.
19556
19557 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
19558
19559         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
19560         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
19561         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
19562
19563 2003-02-03  Richard Henderson  <rth@redhat.com>
19564
19565         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19566         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
19567         return type to "int".  Shuffle declarations and undef int trap.
19568         * libgcc2.h: Remove their declarations.
19569         * optabs.c (expand_unop): Force outmode to int for bitops.
19570
19571 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
19572
19573         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
19574         coprocessor registers before floating-point registers.
19575         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
19576         to account for a previously removed register.
19577         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
19578         Delete unused macros.
19579
19580 2003-02-03  Jan Hubicka  <jh@suse.cz>
19581
19582         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
19583         (mov*_internal): Fix predicates; require one of operands to not be
19584         memory.
19585         (SSE?MMX move expanders):  Fix predicates; force one of operands to
19586         register.
19587         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
19588         (movups/movupd/movdqu patterns): Force one of operands to not be
19589         memory.
19590
19591 2003-02-03  Roger Sayle  <roger@eyesopen.com>
19592
19593         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
19594         takes a single rtx and returns it unmodified.
19595         * hooks.h (hook_rtx_rtx_identity): Prototype here.
19596         * target.h (struct gcc_target): Add "delegitimize_address"
19597         field to target structure.
19598         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
19599         for delegitimize_address target using hook_rtx_rtx_identity.
19600         (TARGET_INITIALIZER): Initialize delegitimize_address field
19601         using TARGET_DELEGITIMIZE_ADDRESS macro.
19602         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
19603         extensions of constant pool references.  Use delegitimize_address
19604         to undo the obfuscation of "-fpic".
19605         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
19606
19607         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
19608         i386_simplify_dwarf_addr.
19609         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
19610         (maybe_get_pool_constant): Likewise.
19611
19612 2003-02-03  Jan Hubicka  <jh@suse.cz>
19613
19614         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
19615
19616 2003-02-03  Jan Hubicka  <jh@suse.cz>
19617
19618         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
19619
19620 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19621
19622         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
19623         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
19624
19625 2003-02-02  Andreas Schwab  <schwab@suse.de>
19626
19627         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
19628
19629 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
19630
19631         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
19632         (epilogue_insns): Likewise.
19633
19634 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19635
19636         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
19637
19638 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19639
19640         * pa-protos.h (attr_length_millicode_call): Remove second argument.
19641         (attr_length_indirect_call, attr_length_indirect_call,
19642         attr_length_save_restore_dltp): New prototypes.
19643         * pa.c (attr_length_millicode_call): Remove second argument.  Check
19644         INSN_ADDRESSES_SET_P in distance calculation.
19645         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
19646         INSN_ADDRESSES.
19647         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
19648         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
19649         Call attr_length_call directly.
19650         (attr_length_indirect_call, output_indirect_call,
19651         attr_length_save_restore_dltp): New functions.
19652         * pa.md (attr_length_millicode_call): Drop second argument from all
19653         patterns.
19654         (return_internal_pic): Delete.
19655         (return_external_pic): Remove use of PIC register and pic operand and
19656         flag checks.
19657         (epilogue): Use return_internal for both normal and pic code.
19658         (call, call_value): Emit new 32-bit pic patterns for symref and
19659         indirect calls.  Remove uses for arg pointer and pic register.
19660         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
19661         call_reg_pic_post_reload, call_val_symref_pic,
19662         call_val_symref_pic_post_reload, call_val_reg_pic,
19663         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
19664         Implement define_split and define_peephole2 patterns for pre reload
19665         patterns.
19666         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
19667         call_value_internal_reg_64bit): Shorten names.
19668         (all call patterns): Explicitly indicate registers used and clobbered.
19669         Use attr_length_indirect_call and attr_length_save_restore_dltp for
19670         attribute length calculation.  Move code generation for indirect calls
19671         to output_indirect_call.
19672         (sibcall, sibcall_value): Don't restore PIC register.
19673         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
19674         register retore.
19675
19676 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19677
19678         * doc/install.texi (Testing): Simplify and compress instructions
19679         concerning Dejagnu.
19680
19681 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19682
19683         * collect2.c (pexecute_pid): Rename to pid.
19684         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
19685         pid.
19686
19687 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
19688
19689         * doc/extend.texi (Function Attributes): Remove documentation
19690         for PowerPC Windows NT function attributes..
19691
19692 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
19693
19694         * dwarf2out.c (gen_type_die): Check for typedefs before calling
19695         for TYPE_MAIN_VARIANT.
19696
19697 2003-02-01  Richard Henderson  <rth@redhat.com>
19698
19699         * libgcc2.c: Include auto-host.h.
19700         (ATTRIBUTE_HIDDEN): New.
19701         (__clz_tab): Don't declare here for clz and ctz.
19702         (__clzsi2, __clzdi2): Use count_leading_zeros.
19703         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
19704         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
19705         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
19706         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
19707
19708 2003-02-01  Richard Henderson  <rth@redhat.com>
19709
19710         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
19711         to the conditional.
19712         (ashlsi3_1_zext splitter): Likewise.
19713
19714 2003-02-01  Richard Henderson  <rth@redhat.com>
19715
19716         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
19717         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19718         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
19719         return type to Wtype.
19720
19721         * libgcc-std.ver (GCC_3.4): Fix inheritance.
19722
19723         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
19724         expander input constraint.
19725
19726 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
19727
19728         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
19729         OTI_parity.
19730         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
19731         * optabs.c (widen_clz, expand_parity): New.
19732         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
19733         for libcalls to clz, ctz, popcount, and parity.
19734         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
19735         parity_optab, and set up libfunc handlers.
19736         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19737         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
19738         __popcount_tab): New.
19739         * libgcc2.h: Declare them.
19740         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
19741         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
19742         and parity_optab.
19743         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
19744         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
19745         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
19746         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
19747         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
19748         BUILT_IN_PARITYLL): New.
19749         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
19750         and add optab argument.
19751         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
19752         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
19753         * expr.c (expand_expr): Handle them.
19754         * fold-const.c (tree_expr_nonnegative_p): Likewise.
19755         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
19756         * reload1.c (eliminate_regs): Handle them.
19757         (elimination_effects): Likewise.
19758         * function.c (instantiate_virtual_regs_1): Likewise
19759         * genattrtab.c (check_attr_value): Likewise.
19760         * simplify-rtx.c (simplify_unary_operation): Likewise.
19761         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
19762         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
19763         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
19764         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
19765         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
19766         __builtin_arm_clz.
19767         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
19768         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
19769         * doc/extend.texi (Other Builtins): Add new builtins.
19770         * doc/md.texi (Standard Names): Add new patterns.
19771
19772 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
19773
19774         * reload.c: Revert 2003-01-31 change.
19775
19776 2003-02-01  Jan Hubicka  <jh@suse.cz>
19777
19778         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
19779
19780 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
19781
19782         * flags.h (flag_volatile): Remove declaration.
19783         (flag_volatile_global, flag_volatile_static): Likewise.
19784         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
19785         * toplev.c (flag_volatile): Remove definition.
19786         (flag_volatile_global, flag_volatile_static): Likewise.
19787         (f_options): Remove corresponding entries here.
19788         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
19789         or flag_volatile_static.
19790         * doc/invoke.texi: Remove documentation of -fvolatile,
19791         -fvolatile-global and -fvolatile-static.
19792
19793 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19794
19795         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
19796         updating of total_code_bytes from prologue to epilogue.
19797
19798 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
19799
19800         * reload.c (find_reloads): Do not use the mode specified in the insn
19801         pattern as reload mode for address operands.  Do not generate optional
19802         reloads for operands where a mandatory reload was already pushed.
19803         Generate optional reloads only in the final pass though find_reloads.
19804         (have_replacement_p): New function.
19805
19806 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19807
19808         * doc/install.texi (Testing): Remove a reference to our obsolete
19809         /testresults web pages and strip redundant information concerning
19810         test results.
19811         (Binaries): Refer to Microsoft Windows instead of listing all
19812         possible variants.
19813
19814 2003-02-01  Jan Hubicka  <jh@suse.cz>
19815
19816         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
19817         RTL chain.
19818
19819         * combine.c (simplify_set): Reverse order of ragumetns to
19820         REG_CANNOT_CHANGE_MODE_P
19821         * df.c (df_def_record_1): Likewise.
19822         * recog.c (register_operand): Likewise.
19823         * simplify-rtx.c (simplify_subreg): Likewise.
19824         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
19825         CANNOT_CHANGE_MODE_CLASS.
19826         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
19827         Likewise.
19828         * reload.c (push_reload): Likewise.
19829         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19830         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19831         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19832         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
19833         * mips.c (mips_cannot_change_mode_class): Update.
19834         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19835         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19836         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19837         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19838         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
19839         * sh.c (sh_cannot_change_mode_class): Update.
19840         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
19841         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
19842
19843 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
19844
19845         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
19846         change to LINK_COMMAND_SPEC in gcc.c.
19847
19848 2003-01-31  Jan Hubicka  <jh@suse.cz>
19849
19850         PR c/9506
19851         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
19852
19853 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19854
19855         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
19856         duplicated code.
19857
19858 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
19859
19860         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
19861         (BINFO_ELTS): New #define.
19862         * stor-layout.c (finalize_record_size): Don't set them.
19863         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
19864         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
19865         (BINFO_LANG_ELTS): New #define.
19866         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
19867         * java/class.c (make_class): Use BINFO_ELTS.
19868         (set_super_info): Likewse.
19869         (add_interface_do): Likewise.
19870         * objc/objc-act.c (start_class): Use BINFO_ELTS.
19871
19872 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
19873
19874         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
19875         (times): Don't ever declare if not HAVE_TIMES.
19876         (clock): Don't ever declare if not HAVE_CLOCK.
19877
19878 2003-01-30  Richard Henderson  <rth@redhat.com>
19879
19880         * flow.c (update_life_info): Zap life info after cleanup_cfg.
19881         (regno_uninitialized): Use correct live at function entry set.
19882         (regno_clobbered_at_setjmp): Likewise.
19883
19884         * expr.c (store_expr): Promote all MEM intermediates to regs.
19885
19886 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19887
19888         * config/arm/arm.c: Fix comment typos.
19889         * config/arm/arm.h: Likewise.
19890         * config/arm/netbsd-elf.h: Likewise.
19891         * config/arm/netbsd.h: Likewise.
19892
19893 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
19894
19895         * gengtype.c (struct walk_type_data): Add needs_cast_p.
19896         (walk_type): Set needs_cast_p in walk_type_data.
19897         (write_types_process_field): Supply casts when required to suppress
19898         warnings.
19899         (write_root): Cast gt_pch_n_S to suppress warning.
19900         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
19901         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
19902         when they might exist.
19903         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
19904         insn-conditions.o, and rs6000.o.
19905
19906 2003-01-30  Richard Henderson  <rth@redhat.com>
19907
19908         * ggc-page.c (G.context_depth_allocations): New.
19909         (G.context_depth_collections): New.
19910         (alloc_page): Set G.context_depth_allocations.
19911         (ggc_collect): Set G.context_depth_collections.
19912         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
19913         (ggc_pop_context): Early exit for no allocations or collections.
19914
19915 2003-01-30  Richard Henderson  <rth@redhat.com>
19916
19917         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
19918
19919 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
19920
19921         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
19922         size, the link register is always saved if any other register is
19923         saved.
19924
19925 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19926
19927         * config/h8300/h8300-protos.h: Update the prototype for
19928         compute_plussi_cc.
19929         (cpp_reader): Declare before it is used.
19930         * config/h8300/h8300.c (compute_plussi_cc): Change the return
19931         type to int.
19932         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
19933         see an unknown H8 variant.
19934
19935 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
19936
19937         PR target/9316
19938         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
19939         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
19940         * config/rs6000/t-rtems: New file. multilib variants to match OS.
19941         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
19942         rs6000/t-ppcgas so we get the desired multilibs.
19943
19944 2003-01-30  Nick Clifton  <nickc@redhat.com>
19945
19946         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
19947         when popping saved IP register off the stack.
19948
19949 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19950
19951         * config/rs6000/aix43.h: Fix comment typos.
19952         * config/rs6000/aix51.h: Likewise.
19953         * config/rs6000/aix52.h: Likewise.
19954         * config/rs6000/altivec.h: Likewise.
19955         * config/rs6000/rs6000.c: Likewise.
19956         * config/rs6000/rs6000.h: Likewise.
19957         * config/rs6000/rs6000.md: Likewise.
19958         * config/rs6000/spe.md: Likewise.
19959
19960 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
19961
19962         * c-common.c (builtin_define_float_constants): Define
19963         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
19964
19965 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19966
19967         * config/sh/lib1funcs.asm: Fix comment typos.
19968         * config/sh/linux.h: Likewise.
19969         * config/sh/sh.c: Likewise.
19970         * config/sh/sh.md: Likewise.
19971
19972 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
19973
19974         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
19975
19976 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
19977
19978         * config/fp-bit.h (__make_dp): Declare if TMODES.
19979
19980 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
19981
19982         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
19983         general_operand_src and general_operand_dst.
19984
19985 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
19986
19987         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
19988         Return true for variable sized types.
19989         (rs6000_va_arg): Handle variable sized types passed by reference
19990         on non-SVR4 ABI.
19991
19992 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
19993
19994         * arm.c (arm_legtimize_address): New function.
19995         * arm-protos.h (arm_legtimize_address): Add prototype.
19996         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
19997         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
19998         do ... while (0)
19999
20000 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20001
20002         PR bootstrap/9296
20003         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
20004         depended on it being defined until now.
20005
20006 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20007
20008         PR target/9295
20009         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
20010         RTEMS code knows which C++ initialization style the toolset
20011         configuration is using.
20012
20013 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20014
20015         PR bootstrap/9293
20016         * config/m68k/t-crtstuff: Replace spaces with tabs, add
20017          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
20018
20019 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20020
20021         PR bootstrap/9292
20022         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
20023         RTEMS threads.
20024         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
20025
20026 2003-01-29  Nick Clifton  <nickc@redhat.com>
20027
20028         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
20029         not $(srcdir).
20030
20031 2003-01-29  Andrew Haley  <aph@redhat.com>
20032
20033         * tree-inline.c (walk_tree): Add CHAR_TYPE.
20034
20035 2003-01-29  Jan Hubicka  <jh@suse.cz>
20036
20037         * i386.md (subdi3_carry_rex64): Fix typo.
20038
20039 2003-01-28  Stan Shebs  <shebs@apple.com>
20040
20041         * coretypes.h (cpp_reader): Forward declare struct.
20042         * c-pragma.h (cpp_reader): Remove forward declaration.
20043         * hashtable.h (cpp_reader): Likewise.
20044         * scan.h (cpp_reader): Likewise.
20045         * tree.h (cpp_reader): Likewise.
20046         * config/darwin-protos.h (cpp_reader): Likewise.
20047         * config/arm/arm-protos.h (cpp_reader): Likewise.
20048         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
20049         struct cpp_reader in prototypes.
20050
20051 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
20052
20053         * doc/install.texi: Add documentation for installation into
20054         tooldirs and with DESTDIR.
20055
20056 2003-01-28  Richard Henderson  <rth@redhat.com>
20057
20058         * config.gcc (ia64*-*-aix*): Remove.
20059         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
20060         * config/ia64/unwind-aix.c: Remove file.
20061
20062 2003-01-28  Andreas Schwab  <schwab@suse.de>
20063
20064         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
20065         register.
20066         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
20067         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
20068         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
20069         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
20070         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
20071         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
20072         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
20073
20074 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
20075
20076         * combine.c (nonzero_bits): Fix check for negative divide operands.
20077
20078 2003-01-28  Richard Henderson  <rth@redhat.com>
20079
20080         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
20081         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
20082
20083 2003-01-28  Richard Henderson  <rth@redhat.com>
20084
20085         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
20086
20087         * config/cris/cris.c (cris_address_cost): Make static.
20088         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
20089         * config/cris/cris.h (ADDRESS_COST): Remove.
20090         * config/cris/cris-protos.h: Update.
20091
20092 2003-01-23  Mike Stump  <mrs@apple.com>
20093
20094         * regclass.c (init_reg_autoinc): New function.
20095         (regclass): Move initialization of forbidden_inc_dec_class from
20096         here...
20097         (init_regs): to here.  Avoids reinitialization for each function,
20098         saving compilation time.
20099
20100 2003-01-28  Jason Merrill  <jason@redhat.com>
20101
20102         * cpplib.h (struct cpp_options): Add warn_deprecated field.
20103         * cppinit.c (cpp_create_reader): Turn it on by default.
20104         * c-opts.c (c_common_decode_option): Set it.
20105         * cpplib.c (do_pragma_once): Only complain about #pragma once
20106         if warn_deprecated is set.
20107
20108 2003-01-28  Dale Johannesen  <dalej@apple.com>
20109
20110         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
20111         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
20112         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
20113
20114 2003-01-28  Richard Henderson  <rth@redhat.com>
20115
20116         * target.h (targetm.address_cost): New.
20117         * target-def.h (TARGET_ADDRESS_COST): New.
20118         (TARGET_RTX_COSTS): Uncomment.  Oops.
20119         * cse.c (address_cost): Use new target hook.
20120         (default_address_cost): New.
20121         * output.h (default_address_cost): Declare.
20122         * hooks.c (hook_int_rtx_0): New.
20123         * hooks.h (hook_int_rtx_0): Declare.
20124         * loop.c (combine_givs_p): Remove if 0 code.
20125         * system.h (ADDRESS_COST): Poison.
20126
20127         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
20128         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
20129         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
20130         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
20131         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
20132         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
20133         config/xtensa/xtensa.c, config/xtensa/xtensa.h
20134         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
20135         (ADDRESS_COST): Remove.
20136
20137         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
20138         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
20139         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
20140         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
20141         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
20142         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
20143         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
20144         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
20145         config/mips/mips.c, config/mips/mips.h,
20146         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
20147         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
20148         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
20149         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
20150         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
20151         config/vax/vax.c, config/vax/vax.h
20152         (foo_address_cost): Make static.
20153         (TARGET_ADDRESS_COST): New.
20154         (ADDRESS_COST): Remove.
20155
20156         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
20157         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
20158         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
20159         config/stormy16/stormy16.h
20160         (ADDRESS_COST): Move code ...
20161         (foo_address_cost): ... here.
20162         (TARGET_ADDRESS_COST): New.
20163
20164         * config/m32r/m32r.c (m32r_address_cost): Remove.
20165         * config/m32r/m32r-protos.h: Update.
20166
20167         * config/mmix/mmix.c (mmix_address_cost): Remove.
20168         * config/mmix/mmix-protos.h: Update.
20169
20170         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
20171         mn10300_address_cost; move unsig allocation ...
20172         (mn10300_address_cost): ... here.
20173         (TARGET_ADDRESS_COST): New.
20174         * config/mn10300/mn10300-protos.h: Update.
20175         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
20176
20177         * doc/tm.texi: Update.
20178
20179 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
20180
20181         * haifa-sched.c (schedule_insn): Return necessary cycle advance
20182         after issuing the insn.
20183         (rank_for_schedule): Make a insn with /S the highest priority
20184         insn.
20185         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
20186         (choose_ready): Check SCHED_GROUP_P.
20187         (schedule_block): Advance cycle after issuing insn if it is
20188         necessary.  Don't reorder insns if there is an insn with /S.
20189         (set_priorities): Ignore schedule groups.
20190
20191         * sched-deps.c (remove_dependence, group_leader): Remove the
20192         functions.
20193         (add_dependence): Ignore schedule groups.
20194         (set_sched_group_p): Don't make copy of dependencies from previous
20195         insn of the schedule group.  Add anti-dependency to the previous
20196         insn of the schedule group.
20197         (compute_forward_dependences): Ignore schedule groups.
20198
20199         * sched-ebb.c (init_ready_list): Ignore schedule groups.
20200
20201         * sched-rgn.c (init_ready_list): Ditto.
20202         (can_schedule_ready_p): Ditto.
20203
20204 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
20205
20206         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
20207         register to another one.
20208
20209 2003-01-28  Richard Henderson  <rth@redhat.com>
20210
20211         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
20212
20213 2003-01-28  Roger Sayle  <roger@eyesopen.com>
20214
20215         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
20216
20217 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
20218
20219         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
20220         class contains a floating-point register, return the size of the
20221         mode in half words.
20222
20223 2003-01-28  Jan Hubicka  <jh@suse.cz>
20224
20225         * i386.c (ix86_carry_flag_operator):  New predicate.
20226         (fcmov_operator): Fix whitespace.
20227         (ix86_expand_carry_flag_compare):  Deal with floating point.
20228         (ix86_expand_int_movcc): Deal with fp; update insn expansion
20229         (ix86_expand_int_addcc): Likewise.
20230         (ix86_expand_strlensi_unroll_1): likewsie.
20231         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
20232         * i386.md (add?i_carry_rex64): Use new predicate.
20233         (sub?i3_carry_rex64): Likewise.
20234         (x86_mov?icc_0_m1*): Likewise.
20235
20236 2003-01-28  Andreas Schwab  <schwab@suse.de>
20237
20238         * cfgloopmanip.c (create_preheader): Initialize src to avoid
20239         warning.
20240
20241         * expmed.c (emit_store_flag): Fix cast to avoid sign
20242         comparison warning.
20243
20244         * combine.c (force_to_mode): Add cast to fix warning when
20245         STORE_FLAG_VALUE is negative.
20246
20247 2003-01-27  Richard Henderson  <rth@redhat.com>
20248
20249         * Makefile.in (cse.o): Depend on TARGET_H.
20250         * cse.c (rtx_cost): Use targetm.rtx_costs.
20251         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
20252         * doc/tm.texi: Update.
20253
20254         * target.h (targetm.rtx_costs): New.
20255         * target-def.h (TARGET_RTX_COSTS): New.
20256         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
20257         * hooks.h: Update.
20258
20259         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
20260         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
20261         * config/alpha/alpha.h (PROCESSOR_MAX): New.
20262         (CONST_COSTS, RTX_COSTS): Remove.
20263
20264         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
20265         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
20266         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
20267         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
20268         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
20269         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
20270         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
20271         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
20272         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
20273         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
20274         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
20275         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
20276         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
20277         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
20278         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
20279         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
20280         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
20281         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
20282         config/v850/v850.c, config/v850/v850.h,
20283         config/xtensa/xtensa.c, config/xtensa/xtensa.h
20284         (CONST_COSTS, RTX_COSTS): Move code ...
20285         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
20286
20287         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
20288         (arm_rtx_costs, TARGET_RTX_COSTS): New.
20289         * config/arm/arm-protos.h: Update.
20290         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
20291
20292         * config/avr/avr.h (CONST_COSTS): Move code ...
20293         * config/avr/avr.c (avr_rtx_costs): ... here.
20294         (default_rtx_costs): Make static.
20295         * config/avr/avr-protos.h: Update.
20296
20297         * config/h8300/h8300.c (const_costs): Make static.
20298         (h8300_and_costs, h8300_shift_costs): Likewise.
20299         * config/h8300/h8300-protos.h: Update.
20300
20301         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
20302         (CONST_COSTS): Move code ...
20303         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
20304         default_rtx_costs; update for signature change.
20305         * config/ip2k/ip2k-protos.h: Update.
20306
20307         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
20308         (CONST_COSTS): Move code ...
20309         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
20310         (TARGET_RTX_COSTS): New.
20311         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
20312         * config/m68hc11/m68hc11-protos.h: Update.
20313
20314         * config/m68k/m68k.c (const_int_cost): Make static.
20315         * config/m68k/m68k-protos.h: Update.
20316
20317         * config/mcore/mcore.c (mcore_const_costs): Make static.
20318         (mcore_and_cost, mcore_ior_cost): Likewise.
20319         * config/mcore/mcore-protos.h: Update.
20320
20321         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
20322         (mmix_rtx_cost_recalculated): Remove.
20323         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
20324         * config/mmix/mmix-protos.h: Update.
20325
20326         * config/sh/sh.c (shiftcosts): Make static.
20327         (addsubcosts, andcosts, multcosts): Likewise.
20328         * config/sh/sh-protos.h: Update.
20329
20330         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
20331         (sparc_rtx_costs): Make static; update for change in signature.
20332         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
20333         * config/sparc/sparc-protos.h: Update.
20334
20335         * config/v850/v850.c (const_costs): Make static.
20336         * config/v850/v850-protos.h: Update.
20337
20338         * config/vax/vax.h (RTX_COSTS): Remove.
20339         (CONST_COSTS): Move code ...
20340         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
20341         from vax_rtx_cost.
20342         (vax_rtx_costs, TARGET_RTX_COSTS): New.
20343
20344 2003-01-27  Richard Henderson  <rth@redhat.com>
20345
20346         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
20347         * config/vax/vax-protos.h: Update.  Really.
20348
20349 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
20350
20351         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
20352         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
20353         zero if no hardware floating point.
20354         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
20355         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
20356         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
20357         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
20358         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
20359         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
20360         even FP registers on N32 and N64.
20361         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
20362         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
20363         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
20364         even-register-like alignment to 128-bit arguments.
20365         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
20366         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
20367         on N32 or N64.
20368         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
20369         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
20370         (TPBIT): Set to tp-bit.c.
20371         (tp-bit.c): Create out of fp-bit.c.
20372
20373 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20374
20375         * c-parse.in: Remove '%expect 32' directive in objc mode.
20376
20377 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
20378
20379         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
20380         (LIBGCOV): New variable.
20381         (libgcc.mk): Add LIBGCOV.
20382         (LIBGCC_DEPS): Add libgcov.c.
20383         (libgcov.a): New target.
20384         (clean): Remove libgcov.a.
20385         (install-libgcc): Do libgcov too.
20386         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
20387         with libgcov.a.
20388         * libgcc2.c (L_gcov): Move into ...
20389         * libgcov.c: ... here. New file.
20390         * mklibgcc.in: Add libgcov rules.
20391         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
20392
20393         * doc/invoke.texi (profile-arcs, test-coverage): Update and
20394         clarify.
20395
20396         * profile.c (index_counts_file): Remove duplicate check for open file.
20397
20398 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
20399
20400         * gcc/doc/invoke.texi (Optimization Options): Group together
20401         optional and experimental flags.  Move trapv and bounds-check
20402         out of this section.  Group floating point flags together.
20403         (Code Gen Options): Move trapv and bounds-check to here.
20404
20405 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
20406
20407         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
20408
20409 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
20410
20411         PR optimization/9090
20412         * function.c (purge_addressof_1): After pushing an addressed register
20413         onto the stack, simplify the result.
20414
20415 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20416
20417         * doc/extend.texi: Fix typo.
20418
20419 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20420
20421         * doc/cppopts.texi: Fix typo.
20422         * doc/objc.texi: Likewise.
20423         * doc/passes.texi: Likewise.
20424
20425 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
20426
20427         * real.c (ibm_extended_format): Add 53 to minimum exponent.
20428         (encode_ibm_extended): Adjust.
20429
20430 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
20431
20432         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
20433         timevar_id enumerations.
20434
20435 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20436
20437         * combine.c: Fix formatting.
20438
20439 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20440
20441         * doc/gccint.texi: Update the copyright.
20442
20443 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20444
20445         * doc/cpp.texi: Fix typos.
20446         * doc/extend.texi: Likewise.
20447         * doc/gty.texi: Likewise.
20448         * doc/install.texi: Likewise.
20449         * doc/passes.texi: Likewise.
20450         * doc/rtl.texi: Likewise.
20451         * doc/tm.texi: Likewise.
20452
20453 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20454
20455         * config/ia64/fde-glibc.c: Fix comment typos.
20456         * config/ia64/hpux.h: Likewise.
20457         * config/ia64/ia64.c: Likewise.
20458         * config/ia64/ia64.h: Likewise.
20459         * config/ia64/unwind-ia64.c: Likewise.
20460
20461 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20462
20463         * config/i386/i386-modes.def: Fix comment typos.
20464         * config/i386/i386.c: Likewise.
20465         * config/i386/i386.md: Likewise.
20466
20467 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
20468
20469         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
20470         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
20471         ASM_FINISH_DECLARE_OBJECT before defining it.
20472         * toplev.c (rest_of_decl_compilation):  Don't define
20473         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
20474         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
20475         parameters for DWARF2 targets because they _are_ used.
20476
20477 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
20478
20479         * fp-bit.h: Define macros for TFmode floating-point constants
20480         in IBM-extended TFmode types.
20481         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
20482         widths.
20483         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
20484         TFmode type.
20485
20486         * config/fp-bit.h: Define macros for TFmode floating-point
20487         constants in IEEE quad TFmode type.  Declare functions according
20488         to L_ macros.
20489         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
20490         (TFtype, TItype, UTItype): Define if TMODES is defined.
20491         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
20492         (F_T_BITOFF, D_T_BITOFF): Define.
20493         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
20494         guaranteed to be wide enough.
20495         * config/fp-bit.c: Check for L_ macros for tf functions.
20496         (__thenan_tf): New.
20497         (nan): Adjust.
20498         (pack_d, unpack_d): Support IEEE 854 quad type.
20499         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
20500         from FRAC_NBITS, FRAC_BITS and NGARDS.
20501         (usi_to_float): Cast constants to be shifted to fractype
20502         instead of assuming long long is wide enough.
20503         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
20504
20505 2003-01-26  Andreas Jaeger  <aj@suse.de>
20506
20507         * df.c: Remove prototype of unused function df_regno_rtl_debug.
20508
20509 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
20510
20511         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
20512         (DBBIT_FUNCS): Added _df_to_tf.
20513         (TPBIT_FUNCS): New.
20514         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
20515         (LIBGCC_DEPS): Added TPBIT.
20516         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
20517
20518         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
20519         been able to move the result to target.
20520
20521         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
20522         for the appropriate mode.
20523
20524         * calls.c (emit_library_call_value_1): Handle return values
20525         in a PARALLEL.
20526
20527         * rtl.c (get_mode_alignment): Moved to...
20528         * stor-layout.c: ... here.
20529
20530         * print-rtl.c (print_rtx): Don't print MEM details in
20531         GENERATOR_FILEs.
20532
20533 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
20534
20535         * df.h: Update comments, tidy formatting.
20536         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
20537         REVERSE, UNION, INTERSECTION.  All uses updated.
20538         (OLD_DF_INTERFACE): Remove.
20539         (struct insn_info): Remove commented out insn field.
20540         * df.c: Update comments, tidy formatting.
20541         (df_def_table_realloc): Remove.
20542
20543
20544 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
20545
20546         * calls.c (save_fixed_argument_area): Tidy.
20547         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
20548         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
20549         call chain loop at 1 if !try_tail_call.  Formatting.
20550         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
20551         Use save_fixed_argument_area and restore_fixed_argument_area.
20552
20553 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20554
20555         * df.c (df_uses_record): Handle CC0.
20556
20557 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
20558
20559         * reload.c (maybe_memory_address_p): New function.
20560         (find_reloads_address): Use it instead of memory_address_p.
20561
20562 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
20563
20564         * final.c (shorten_branches): Align the address of code label
20565         when computing initial lengths and addresses.
20566
20567 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20568
20569         * config/m68hc11/m68hc11.md: Fix a comment typo.
20570
20571 2003-01-25  Andreas Jaeger  <aj@suse.de>
20572
20573         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
20574         TARGET_MACHO.
20575
20576 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20577
20578         * gcse.c (bypass_last_basic_block): New global variable.
20579         (bypass_block):  Use redirect_edge_and_branch_force to redirect
20580         fall-through edges.  Use bypass_last_basic_block to determine
20581         which blocks have valid PRE information.
20582         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
20583
20584 2003-01-25  Jan Hubicka  <jh@suse.cz>
20585
20586         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
20587
20588 2003-01-25  Jan Hubicka  <jh@suse.cz>
20589                               Eric Botcazou <ebotcazou@libertysurf.fr>
20590         PR opt/8492
20591         * gcse.c (one_cprop_pass): Delete unreachable blocks.
20592
20593 2003-01-25  Richard Henderson  <rth@redhat.com>
20594
20595         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
20596         from ia64_aix_select_rtx_section.
20597         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
20598         instead of saving and restoring flag_pic.
20599         (ia64_rwreloc_unique_section): Similarly.
20600         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
20601         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
20602         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
20603         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
20604
20605 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20606
20607         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
20608         comment.
20609
20610 2003-01-25  Richard Henderson  <rth@redhat.com>
20611
20612         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
20613
20614 2003-01-25  Kelley Cook <kelleycook@comcast.net>
20615
20616         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
20617
20618 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
20619
20620         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
20621         type for bitmaps.  Use unsigned long.
20622         (nBITMAP_WORD_BITS): New macro.
20623         (BITMAP_WORD_BITS): New macro.
20624         (rest of file): Use it.
20625         * bitmap.c: Use it.
20626
20627 2003-01-25  Richard Henderson  <rth@redhat.com>
20628
20629         2002-02-19  Robert Lipe  <robertlipe@usa.net>
20630         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
20631
20632 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20633
20634         * builtins.c (purge_builtin_constant_p): Scan insn stream
20635         sequentially rather than by basic block.
20636         * function.c (purge_addressof): Simplify test with INSN_P.
20637
20638 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20639
20640         * combine.c (simplify_comparison, case AND): Remove a redundant test.
20641
20642 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20643
20644         * function.h (struct function): New field calls_constant_p.
20645         (current_function_calls_constant_p): New macro for above.
20646         * function.c (prepare_function_start): Initialize calls_eh_return
20647         and calls_constant_p.
20648         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
20649         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
20650         when the current_function_calls_constant_p.
20651         * integrate.c (expand_inline_function): Set calls_constant_p if
20652         the function being inlined has calls_constant_p set.
20653
20654 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20655
20656         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
20657         optimizing, even if flag_gcse is true.
20658         * toplev.c (rest_of_compilation): purge_builtin_constant_p
20659         only needs to be called when "optimize > 0 && flag_gcse".
20660
20661 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20662
20663         * stmt.c (emit_case_bit_tests): New routine to implement suitable
20664         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
20665         (case_bit_test_cmp): New comparison function for "qsort" to order
20666         case_bit_tests by decreasing number of destination nodes.
20667         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
20668         (expand_end_case_type): Use emit_case_bit_tests to implement
20669         suitable switch statments.
20670         (CASE_USE_BIT_TESTS): New target macro to disable the above.
20671         * Makefile.in (stmt.o): Add dependency on optab.h.
20672         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
20673
20674 2003-01-23  Andreas Schwab  <schwab@suse.de>
20675
20676         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
20677         __do_global_ctors_aux hidden global and don't put it in
20678         .init_array.
20679         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
20680         instead so that it comes first.
20681
20682 2003-01-25  Jan Hubicka  <jh@suse.cz>
20683
20684         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
20685         subreg is read/modify.
20686
20687 2003-01-25  Jan Hubicka  <jh@suse.cz>
20688
20689         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
20690         do libcall for large blocks.
20691         * i386.md (comi patterns): Set type to ssecomi.
20692         (sse2_unpck?pd): Fix mode of vec_select.
20693
20694         * cse.c: Include except.h
20695         (cse_set_around_loop):  Do not create new basic blocks.
20696         * Makefile.in (cse.o): Add dependnecy on except.h
20697
20698 2003-01-25  Jan Hubicka  <jh@suse.cz>
20699
20700         * builtins.c (fold_trunc_transparent_mathfn): New function.
20701         (fold_builtin): Use it.
20702         * convert.c (convert_to_real): Re-enable code to convert
20703         math functions; add support for floor familly functions.
20704
20705 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20706
20707         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
20708         dependencies on coretypes.h and $(TM_H).
20709
20710 2003-01-25  Jan Hubicka  <jh@suse.cz>
20711
20712         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
20713
20714 2003-01-24  Stuart Hastings  <stuart@apple.com>
20715
20716         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
20717
20718 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20719
20720         * config/c4x/c4x.md (UNSPEC_BU): New constants.
20721         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
20722         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
20723         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
20724         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
20725         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
20726         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
20727         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
20728
20729 2003-01-24  Jan Hubicka  <jh@suse.cz>
20730
20731         * emit-rtl.c (reg_attrs_htab): New static variable.
20732         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
20733         functions.
20734         (reg_rtx): Do not maintain regno_decl.
20735         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
20736         set_mem_attrs_from_reg): New global function.
20737         (init_emit): Do not initialize regno_decl.
20738         (init_emit_once): initialize reg_attrs_htab.
20739         * final.c (alter_subreg): Do not replace REG by SUBREG.
20740         (gen_mem_expr_from_op): Improve output.
20741         (output_asm_operands): Likewise.
20742         * function.c (assign_params): Do not set REGNO_DECL.
20743         * function.h (struct function): Kill regno_decl.
20744         (REGNO_DECL): Kill.
20745         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
20746         * print_rtl.c (print_rtx): Output REG information.
20747         * regclass.c (reg_scan_mark_refs): Update attrs.
20748         * reload1.c (alter_reg): Likewise.
20749         * simplify_rtx.c (simplify_subreg): Likewise.
20750         * stmt.c (expand_decl): Likewise.
20751         * rtl.def (REG): Add new field.
20752         * rtl.h (struct reg_attrs): New.
20753         (rtunion_def): At rtreg.
20754         (X0MEMATTR): Add checking.
20755         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
20756         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
20757         Declare.
20758         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
20759
20760 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
20761
20762         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
20763         (xtensa_emit_call, print_operand): Fix printf format strings
20764         to avoid compile warnings.
20765         (xtensa_function_prologue, xtensa_function_epilogue): Change type
20766         of "size" argument to HOST_WIDE_INT to fix compile warnings.
20767         * config/xtensa/xtensa-protos.h
20768         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
20769
20770 2003-01-24  Jan Hubicka  <jh@suse.cz>
20771
20772         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
20773         (implicit_built_in_decls): New global array.
20774         (mathfn_built_in): New global function.
20775         (fold_trunc_transparent_mathfn): New static function
20776         (expand_builtin_strstr, expand_bultin_strchr,
20777         expand_builtin_strpbrk, expand_builtin_strcpy,
20778         expand_builtin_strncpy, expand_bultin_strcmp,
20779         expand_bultin_strncat, expand_builtin_fputs): Use
20780         implicint_built_in_decls.
20781         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
20782         * builtins.def: Fix comments.
20783         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
20784         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
20785         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
20786         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
20787         (DEF_C99_C90RES_BULTIN): New.
20788         (*f, *l builtins): Update.
20789         * c-common.c (DEF_BUILTIN): Initialize implicit array.
20790         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
20791         * convert.c (strip_float_extensions): New global function.
20792         * tree.h (DEF_BUILTIN): Accept 10 arguments.
20793         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
20794         Declare.
20795         * java/builtins.c (define_builtin): Handle implicit.
20796         (DEF_BUILTIN): Update.
20797         * tm.texi (TARGET_C99_FUNCTIONS): Document.
20798         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
20799         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
20800         when using glibc2.
20801
20802 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
20803
20804         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
20805         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
20806         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
20807         * config/xtensa/crti.asm: New file.
20808         * config/xtensa/crtn.asm: New file.
20809         * config/xtensa/t-elf: New file.
20810         * config/xtensa/t-linux: New file.
20811         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
20812         Move various CFLAGS settings to new t-elf file.
20813
20814 2003-01-24  Richard Henderson  <rth@redhat.com>
20815
20816         PR optimization/4382
20817         * tree-inline.c (find_builtin_longjmp_call_1): New.
20818         (find_builtin_longjmp_call): New.
20819         (inlinable_function_p): Use it.
20820
20821 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20822
20823         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
20824         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
20825         * config/i386/i386.c (function_arg_pass_by_reference): New.
20826         (ix86_va_arg): Support arguments passed by reference.
20827
20828 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20829
20830         * cfgloopanal.c: New file.
20831         * cfgloopmanip.c: New file.
20832         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
20833         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
20834         cfglayout.o): Add dependency on cfgloop.h.
20835         (cfgloop.o): Add flags.h dependency.
20836         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
20837         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
20838         (struct loop, struct loops, flow_loops_find, flow_loops_update,
20839         flow_loops_free, flow_loops_dump, flow_loop_dump,
20840         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
20841         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
20842         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
20843         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
20844         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
20845         find_common_loop, verify_loop_structure): Declarations moved to ...
20846         * cfgloop.h: New file.
20847         * bb-reorder.c (reorder_basic_blocks): Modified.
20848         * cfglayout.c: Include cfgloop.h.
20849         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
20850         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
20851         (break_superblocks): New static function.
20852         (cfg_layout_finalize): Use it.
20853         (cfg_layout_split_block): New function.
20854         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
20855         fields.
20856         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
20857         changed.
20858         (cfg_layout_split_block): Declare.
20859         * cfgloop.c: Include cfgloop.h and flags.h.
20860         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
20861         get_loop_body): Avoid signed versus unsigned comparison warnings.
20862         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
20863         loop_latch_edge): Modified.
20864         (verify_loop_structure): Modified to use flags stored in loop structure;
20865         check irreducible loops.
20866         (cancel_loop, cancel_loop_tree): New functions.
20867         (estimate_probability): Use loop analysis code for predictions.
20868         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
20869         warnings.
20870         * doloop.c: Include cfgloop.h.
20871         * loop.c: Include cfgloop.h.
20872         * predict.c: Include cfgloop.h.
20873         * toplev.c: Include cfgloop.h.
20874         * unroll.c: Include cfgloop.h.
20875         * tracer.c (tracer): Modified.
20876
20877 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20878
20879         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
20880
20881 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
20882
20883         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
20884         * configure: Regenerate.
20885
20886         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
20887         (tls_symbolic_reference_mentioned_p): Add prototype.
20888         (s390_tls_get_offset): Add prototype.
20889         (emit_pic_move): Remove prototype, replace by ...
20890         (emit_symbolic_move): .. this new prototype.
20891
20892         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
20893         (tls_model_chars): New global variable.
20894         (s390_encode_section_info): Encode TLS model.
20895         Use targetm.binds_local_p to check for local symbols.
20896         (s390_strip_name_encoding): New function.
20897         (TARGET_STRIP_NAME_ENCODING): Define.
20898
20899         (get_thread_pointer): New function.
20900         (legitimize_tls_address): New function.
20901         (legitimize_address): Call it.
20902         (emit_pic_move): Remove, replace by ...
20903         (emit_symbolic_move): ... this new function.
20904
20905         (larl_operand): Handle TLS operands.
20906         (legitimate_constant_p): Likewise.
20907         (s390_decompose_address): Likewise.
20908         (s390_cannot_force_const_mem): New function.
20909         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20910
20911         (s390_output_symbolic_const): Handle TLS unspecs.
20912         (print_operand): New code 'J'.
20913         (machine_function): Add struct member 'some_ld_name'.
20914         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
20915
20916         (enum s390_builtin): New type.
20917         (code_for_builtin_64, code_for_builtin_31): New global variables.
20918         (s390_init_builtins, s390_expand_builtin): New functions.
20919         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20920
20921         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
20922         (ASM_OUTPUT_LABELREF): Define.
20923         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
20924
20925         * config/s390/s390.md: Define TLS UNSPEC constants.
20926         ("movdi", "movsi"): Handle TLS operands.
20927         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
20928         ("*tls_load_64", "*tls_load_31"): New insns.
20929         ("call_value_tls", "call_value_tls_exp"): New expanders.
20930         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
20931         "bas_tls_64", "bas_tls_31"): New insns.
20932
20933 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
20934
20935         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
20936         spe ABI is configured, if requested.
20937
20938 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20939
20940         * doc/passes.texi: Fix typo.
20941
20942 2003-01-24  Andreas Schwab  <schwab@suse.de>
20943
20944         * stor-layout.c (excess_unit_span): Only define if used.
20945
20946 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
20947
20948         * gcc/doc/invoke.texi (Optimization Options): List -O levels
20949         for each optimization flag.
20950
20951 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20952
20953         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
20954
20955 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20956
20957         * doc/bugreport.texi: Use @command instead of @code for commands.
20958         * doc/collect2.texi: Likewise.
20959         * doc/headerdirs.texi: Likewise.
20960         * doc/invoke.texi: Likewise.
20961         * doc/standards.texi: Likewise.
20962         * doc/tm.texi: Likewise.
20963         * doc/trouble.texi: Likewise.
20964
20965 2003-01-24  Nick Clifton  <nickc@redhat.com>
20966
20967         * config/arm/arm.c (use_return_insn): Do not use a single return
20968         instruction for interrupt handelrs which have to create a stack
20969         frame.
20970         (arm_expand_prologue): Do not pre-bias the return address of
20971         interrupt handlers which create a stack frame.
20972
20973 2003-01-24  Nick Clifton  <nickc@redhat.com>
20974
20975         * Add sh2e support:
20976
20977         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
20978
20979                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
20980                 med_cbranches.  Fix logic in short_cbranches.
20981
20982         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
20983
20984                 * config/sh/sh.md (delay for cbranch): Don't annul delay
20985                 slots on SH2e.
20986                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
20987                 cbranch with unfilled delay slot on SH2e.
20988                 (output_branch): Fill with a nop the delay slot of a
20989                 branch that required a delay slot but didn't get one.
20990
20991         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
20992
20993                 * doc/invoke.texi (SH options): Document -m2e.
20994                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
20995                 * config/sh/lib1funcs.asm: Likewise.
20996                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
20997                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
20998                 not __sh1__.
20999                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
21000                 SH2E up.
21001                 (SH3E_BIT): Renamed to...
21002                 (SH_E_BIT): ... this.  Replace all uses.
21003                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
21004                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
21005                 (TARGET_SWITCHES): Added 2e.
21006                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
21007                 (processor_type): Added PROCESSOR_SH2E.
21008                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
21009                 TARGET_SH2E, except in sqrtsf2_i.
21010                 (attribute cpu): Added sh2e.
21011                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
21012                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
21013                 * config.gcc: Add sh2e target support.
21014
21015 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
21016
21017         Rename -W to -Wextra.
21018         * c-decl.c:  Update comments.
21019         * c-typeck.c:  Likewise.
21020         * flags.h:  Likewise.
21021         * function.c:  Likewise.
21022         * stmt.c:  Likewise.
21023         * toplev.c:  Update comments.
21024         (W_options):  Add 'extra'.
21025         (display_help):  Remove '-W'.
21026         (decode_W_option):  Special warn_uninitialized treatment in the case
21027         of -Wextra.
21028         * doc/invoke.texi:  Update with new entries.
21029
21030 2003-01-23  Richard Henderson  <rth@redhat.com>
21031
21032         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
21033         in no-else-block case.  Add commentary.
21034
21035 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21036
21037         * configure.in: Revert last change.
21038
21039 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21040
21041         * configure.in: Don't include ansidecl.h in tconfig.h.
21042         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
21043         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
21044         ATTRIBUTE_UNUSED.
21045
21046         * configure: Regenerate.
21047
21048 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21049
21050         PR java/6748
21051         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
21052         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
21053         kernels.
21054
21055 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21056
21057         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
21058
21059 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
21060
21061         * genattrtab.c (write_attr_get): Mark 'insn' paramter
21062         as ATTRIBUTE_UNUSED.
21063
21064 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
21065
21066         * arm.c (thumb_base_register_rtx_p): New function.
21067         (thumb_index_register_rtx_p): New function.
21068         (thumb_legitimate_address_p): New function.
21069         (thumb_legitimate_offset_p): New function.
21070         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
21071         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
21072         definitions.
21073         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
21074         (THUMB_LEGITIMATE_OFFSET): Delte.
21075         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
21076         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
21077         (thumb_legitimate_offset_p): Likewise.
21078
21079 2003-01-23  Andreas Schwab  <schwab@suse.de>
21080
21081         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
21082
21083 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21084
21085         * fixinc/Makefile.in (FL_LIST): Revert last change.
21086
21087 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
21088
21089         PR other/7341
21090         * invoke.texi (ftest-coverage): Fix broken cross-reference.
21091         Change @code to @command for gcov command.
21092
21093         * gcc.texi: Adjust title of gcov section.
21094         Adjust copyright.
21095         * gcov.texi: Likewise.
21096
21097 2003-01-22  Roger Sayle  <roger@eyesopen.com>
21098
21099         PR optimization/8423
21100         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
21101         its argument is constant, or 0 if !flag_gcse.
21102         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
21103         if it's argument is constant.
21104         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
21105         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
21106         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
21107         * builtins.c (purge_builtin_constant_p): New function to force
21108         instantiation of any remaining CONSTANT_P_RTX nodes.
21109         * rtl.h (purge_builtin_constant_p): Prototype here.
21110         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
21111         pass after GCSE and before loop.
21112         (flag_gcse): No longer static.
21113         * flags.h (flag_gcse): Prototype here.
21114
21115 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
21116
21117         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
21118         introduced by last change.
21119
21120 2003-01-22  Andreas Schwab  <schwab@suse.de>
21121
21122         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
21123
21124 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
21125
21126         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
21127         request a scratch reg on H8S when the shift count is 8.
21128
21129 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
21130
21131         * config/s390/s390-protos.h (preferred_la_operand_p):
21132         Remove second parameter.
21133         * config/s390/s390.c (preferred_la_operand_p): Likewise.
21134         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
21135         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
21136         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
21137         Add peepholes to transform ADD to LOAD ADDRESS.
21138
21139 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
21140
21141         * arm.c (arm_address_register_rtx_p): New function.
21142         (arm_legitimate_address_p): New function.
21143         (arm_legitimate_index_p): New function.
21144         (legitimize_pic_address): Use arm_legitimate_index_p.
21145         * arm-protos.h (arm_legtimate_address_p): Add prototype.
21146         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
21147         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
21148
21149 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
21150
21151         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
21152         * config/s390/2064.md (define_bypass): Correct 'Load' and
21153         'Load-address' bypass values.
21154
21155 2003-01-22  Andreas Schwab  <schwab@suse.de>
21156
21157         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
21158
21159 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
21160
21161         * genautomata.c (output_internal_insn_latency_func,
21162         output_print_reservation_func): Short circuit when there is no
21163         automaton to generate code for.
21164
21165 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21166
21167         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
21168         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
21169
21170 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
21171
21172         * config/rs6000/rs6000.md: Remove warning.
21173         (builtin_setjmp_receiver): Likewise.
21174         * config/darwin.c (update_stubs): Slightly improve terrible hack
21175         with identifiers.  Add comment pointing out problems with it.
21176         (update_non_lazy_ptrs): Likewise.
21177
21178 2003-01-21  Richard Henderson  <rth@redhat.com>
21179
21180         * dwarf2out.c (lookup_filename): Fix printf format warning.
21181         * system.h (fread_unlocked, fwrite_unlocked): Undef.
21182
21183         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
21184         (fixincl.o-warn, gnu-regex.o-warn): New.
21185         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
21186         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
21187         * fixinc/fixincl.c (process): Fix printf format warning.
21188
21189 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
21190
21191         * dwarf2out (output_file_names): Don't crash if called
21192         with empty file_table.
21193
21194 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
21195
21196         * genautomata.c (output_internal_insn_latency_func): Add
21197         missing break statement to generated code.
21198
21199 2003-01-21  Roger Sayle  <roger@eyesopen.com>
21200
21201         * stmt.c (same_case_target_p): New function to determine whether
21202         two case labels branch to the same target.  Split out from...
21203         (group_case_nodes): ... here.  Use same_case_target_p instead.
21204         (strip_default_case_nodes): Remove explicit case nodes
21205         that branch to the default destination.
21206         (expand_end_case_type): Call strip_default_case_nodes after
21207         group_case_nodes, to simplify the case-list before we count it.
21208         Only generate table_label RTX when actually needed.  Try to share
21209         thiscase->exit_label and thiscase->data.case_stmt.default_label
21210         when a switch has no explicit default case.  Simplify test for
21211         constant index.
21212
21213 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
21214
21215         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
21216         \t.
21217         (*negsf2_h8300hs): Likewise.
21218         (*addsi3_lshiftrt_16_zexthi): Likewise.
21219         (*iorhi3_lshiftrt_8): Likewise.
21220
21221 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
21222
21223         * dwarf2out.c (fde_table_in_use): Mark GTY.
21224         (dwarf2out_cfi_label_num): New variable, marked GTY.
21225         (dwarf2out_cfi_label): Use it instead of static label_num.
21226         * emit-rtl.c (label_num): Mark GTY.
21227
21228 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
21229
21230         * config/h8300/h8300.c (output_plussi): Support H8/300.
21231         (compute_plussi_length): Likewise.
21232         (compute_plussi_cc): Likewise.
21233         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
21234         output assembly instructions.
21235
21236 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21237
21238         * calls.c (fix_unsafe_tree): Prototype.
21239
21240         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
21241         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
21242         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
21243         c-parse.o-warn): Add -Wno-error.
21244         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
21245
21246         * configure.in (--enable-werror): Add new flag.
21247         * doc/install.texi (--enable-werror): Document.
21248         * configure: Regenerate.
21249
21250         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
21251
21252 2003-01-21  Andreas Schwab  <schwab@suse.de>
21253
21254         * genautomata.c (output_internal_insn_latency_func): Fix missing
21255         close paren in output.
21256
21257 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
21258
21259         * genautomata.c: Space savings in generated code:
21260         (output_dfa_insn_code_func): Split out the table-enlargement
21261         path to an out-of-line static function, dfa_insn_code_enlarge.
21262         (output_internal_insn_latency_func): Use a lookup table for the
21263         default latencies.
21264         (output_print_reservation_func): Use a lookup table for the
21265         strings.
21266
21267 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
21268
21269         PR opt/7507
21270         * calls.c (fix_unsafe_tree): Split out from ...
21271         (expand_call): ... here.  Use it on the function address too.
21272
21273 2003-01-20  Richard Henderson  <rth@redhat.com>
21274
21275         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
21276
21277 2003-01-20  Richard Henderson  <rth@redhat.com>
21278
21279         PR opt/7154
21280         * stmt.c (expand_asm_operands): Validize memory operands.
21281
21282 2003-01-20  Richard Henderson  <rth@redhat.com>
21283
21284         PR opt/8848
21285         * ifcvt.c (noce_process_if_block): Correct arguments to
21286         modified_between_p for no-else-block case.
21287
21288 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21289
21290         * config/h8300/h8300.c (const_costs): Remove a warning.
21291         (output_plussi): Likewise.
21292         (compute_plussi_length): Likewise.
21293         (compute_plussi_cc): Likewise.
21294
21295 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21296
21297         * config/h8300/h8300.md (addsi_h8300): Remove the last
21298         alternative.
21299
21300 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21301
21302         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
21303
21304 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21305
21306         * system.h (__NO_STRING_INLINES): Define.
21307
21308 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21309
21310         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
21311         is not a scalar int mode.
21312
21313 2003-01-20  Roger Sayle  <roger@eyesopen.com>
21314
21315         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
21316         insn's notes following a substitution inside a libcall.
21317
21318 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
21319
21320         * configure.in: Check for system-provided 'uchar' type.
21321         * configure, config.in: Regenerate.
21322         * cpphash.h: Only typedef 'uchar' if the system doesn't.
21323
21324 2003-01-20  Richard Henderson  <rth@redhat.com>
21325
21326         * expr.h (MUST_PASS_IN_STACK): Move implementation...
21327         * calls.c (default_must_pass_in_stack): ... here.
21328
21329 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
21330
21331         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
21332
21333         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
21334
21335         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
21336         Wrap up definition of `insn_alts'.
21337
21338         * genattrtab.c (main): Wrap up `insn_alts'.
21339
21340 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21341
21342         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
21343         prototyping.
21344         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
21345
21346         * config.in, configure: Regenerate.
21347
21348 2003-01-20  Nick Clifton  <nickc@redhat.com>
21349
21350         * config/arm/arm.md (sibcall_epilogue): Add an
21351         UNSPEC_PROLOGUE_USE to prevent the link register from being
21352         considered dead.
21353
21354 2003-01-20  Jan Hubicka  <jh@suse.cz>
21355
21356         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
21357
21358 2003-01-20  Andreas Schwab  <schwab@suse.de>
21359
21360         * system.h: Don't declare strsignal if the decl test hasn't been
21361         run yet.
21362
21363 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21364
21365         * config/h8300/h8300.c (notice_update_cc): Don't assume that
21366         recog_data.operands[0] is always associated with cc0.
21367
21368 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
21369
21370         * collect2.c (ldgetname): Expand declaration to prototype.
21371         * read-rtl.c (atoll): Add prototype.
21372         * system.h (strsignal): Also declare if no declaration found.
21373
21374 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
21375
21376         * config.gcc (mips64*-*-linux*): Added.
21377         * config/mips/linux64.h, config/mips/t-linux64: New file.
21378         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
21379         * config/mips/mips.c (override_options): Use it.
21380         * config/mips/mips.h (TARGET_SWITCHES): Added...
21381         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
21382         * Makefile.in (SPECS): New.
21383         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
21384         * gcc.c (process_command): Move self-spec processing past spec
21385         file loading.
21386         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
21387         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
21388         CRTSTUFF_T_CFLAGS.
21389         (SPECS): Document.
21390         * doc/invoke.texi (-mabi-fake-default): Document.
21391
21392 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
21393
21394         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
21395         z_reg, z_reg_qi): Declare static and GTY().
21396         (da_reg): Remove.
21397         (create_regs_rtx): Don't create da_reg.
21398         ("gt-m68hc11.h"): Include for GTY roots.
21399         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
21400         and GTY() here.
21401         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
21402         (m68hc11_soft_tmp_reg): Likewise.
21403         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
21404
21405 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
21406
21407         * basic-block.h: Fix comment formatting.
21408         * calls.c: Likewise.
21409         * combine.c: Likewise.
21410         * convert.c: Likewise.
21411         * gcov.c: Likewise.
21412         * haifa-sched.c: Likewise.
21413         * libgcc2.c: Likewise.
21414         * loop.c: Likewise.
21415         * profile.c: Likewise.
21416         * system.h: Likewise.
21417
21418 2003-01-18  Roger Sayle  <roger@eyesopen.com>
21419
21420         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
21421
21422 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21423
21424         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
21425
21426 2003-01-17  Dale Johannesen  <dalej@apple.com>
21427
21428         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
21429           (*floatunssidf2_internal):  Ditto.
21430
21431 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21432
21433         * alias.c: Fix comment typos.
21434         * basic-block.h: Likewise.
21435         * c-common.c: Likewise.
21436         * c-common.h: Likewise.
21437         * c-decl.c: Likewise.
21438         * c-opts.c: Likewise.
21439         * c-pragma.c: Likewise.
21440         * c-pretty-print.h: Likewise.
21441         * cfg.c: Likewise.
21442         * cfganal.c: Likewise.
21443         * cfgbuild.c: Likewise.
21444         * cfgcleanup.c: Likewise.
21445         * cfglayout.c: Likewise.
21446         * cfgrtl.c: Likewise.
21447         * convert.c: Likewise.
21448         * cpphash.h: Likewise.
21449         * cpplex.c: Likewise.
21450         * cpplib.h: Likewise.
21451         * df.h: Likewise.
21452         * diagnostic.c: Likewise.
21453         * diagnostic.h: Likewise.
21454         * dwarf2.h: Likewise.
21455
21456 2003-01-17  Stan Shebs  <shebs@apple.com>
21457
21458         * config/darwin-protos.h: Forward-declare struct cpp_reader.
21459
21460 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
21461
21462         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
21463         mistake in last checkin.
21464
21465 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21466
21467         * et-forest.c: Fix comment typos.
21468         * et-forest.h: Likewise.
21469         * except.c: Likewise.
21470         * expr.c: Likewise.
21471         * flags.h: Likewise.
21472         * flow.c: Likewise.
21473         * gcc.c: Likewise.
21474         * gcse.c: Likewise.
21475         * genattrtab.c: Likewise.
21476         * genautomata.c: Likewise.
21477         * gengtype.c: Likewise.
21478         * genrecog.c: Likewise.
21479         * global.c: Likewise.
21480         * gthr-rtems.h: Likewise.
21481
21482 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21483
21484         * i386.c (x86_function_profiler): Fix format specifier.
21485
21486 2003-01-17  Richard Henderson  <rth@redhat.com>
21487
21488         * gengtype.c (walk_type): Allow paramN_is.
21489
21490 2003-01-17  Nick Clifton  <nickc@redhat.com>
21491
21492         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
21493
21494 2003-01-16  Richard Henderson  <rth@redhat.com>
21495
21496         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
21497
21498 2003-01-16  Richard Henderson  <rth@redhat.com>
21499
21500         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
21501         (alpha_next_sequence_number): Likewise.
21502         (alpha_this_literal_sequence_number): Likewise.
21503         (alpha_this_gpdisp_sequence_number): Likewise.
21504         (struct alpha_funcs, alpha_funcs_num): Likewise.
21505         (struct alpha_links): Fix branch merge error.
21506         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
21507
21508 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
21509
21510         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
21511         R. Ghazi.
21512
21513 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
21514
21515         * ifcvt.c: Fix comment typos.
21516         * lcm.c: Likewise.
21517         * libgcc2.c: Likewise.
21518         * local-alloc.c: Likewise.
21519         * loop.c: Likewise.
21520         * predict.c: Likewise.
21521         * ra-build.c: Likewise.
21522         * ra.c: Likewise.
21523         * ra-colorize.c: Likewise.
21524         * ra.h: Likewise.
21525         * ra-rewrite.c: Likewise.
21526         * regmove.c: Likewise.
21527         * reload.h: Likewise.
21528         * rtlanal.c: Likewise.
21529         * toplev.c: Likewise.
21530         * tree.h: Likewise.
21531         * unwind-dw2-fde-glibc.c: Likewise.
21532         * vmsdbgout.c: Likewise.
21533
21534 2003-01-16  Richard Henderson  <rth@redhat.com>
21535
21536         * dwarf2out.c (struct file_table): Remove.
21537         (FILE_TABLE_INCREMENT): Remove.
21538         (file_table): Make a varray; mark for GC.  Update all users.
21539         (file_table_last_lookup_index): Extract from struct file_table.
21540         (output_file_names): Fix unsigned compare warnings.
21541         (add_name_attribute): Remove inline marker.
21542         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
21543         (lookup_filename): Don't manage size of file_table.
21544         (init_file_table): Allocate file_table with GC.
21545         (dwarf2out_init): Don't record main_input_filename here.
21546         (dwarf2out_finish): Do it here instead.
21547
21548 2003-01-16  Bruce Korb  <bkorb@gnu.org>
21549
21550         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
21551
21552 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21553
21554         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
21555         instead of rotldi3_mextr.
21556
21557 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
21558
21559         * haifa-sched.c (move_insn): Restore moving all schedule group.
21560         (set_priorities): Restore taking SCHED_GROUP_P into account.
21561
21562         * sched-deps.c (add_dependence): Restore processing the last group
21563         insn.
21564         (remove_dependence, group_leader): Restore the functions.
21565         (set_sched_group_p): Restore adding dependencies from previous insn
21566         in the group.
21567         (compute_forward_dependences): Restore usage of group_leader.
21568
21569         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
21570         account.
21571
21572         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
21573         account.
21574         (can_schedule_ready_p): Ditto.
21575         (add_branch_dependences): Restore skipping over the group insns.
21576
21577 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21578
21579         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
21580         68HC12 pre/post inc/dec side effects.
21581
21582 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21583
21584         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
21585
21586 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
21587
21588         * sh.md (mshflo_w_x): Fix description of operation.
21589
21590 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
21591
21592         * config/rs6000/rs6000.h: Mention Altivec registers in
21593         commentary.  Fix typo.
21594
21595 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
21596
21597         * config/rs6000/rs6000.md (movti_string): Remove clobber.
21598         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
21599         generate PARALLEL with clobber for TARGET_POWER.
21600
21601 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21602
21603         * ra-colorize.c (colorize_one_web): Initialize variable.
21604         * regmove.c (fixup_match_1): Likewise.
21605         * reload1.c (reload_as_needed): Likewise.
21606         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
21607
21608 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
21609
21610         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
21611
21612 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21613
21614         * dbxout.c (lastfile, cwd): Fix `unused' warning.
21615         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
21616         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
21617         is_main_source, file_table, decl_die_table_in_use,
21618         abbrev_die_table_in_use, line_info_table_in_use,
21619         separate_line_info_table_in_use, pubname_table_in_use,
21620         arange_table_in_use, ranges_table_in_use,
21621         current_function_has_inlines): Likewise.
21622         * flow.c (life_analysis): Likewise.
21623         * genemit.c (gen_insn): Likewise.
21624         * protoize.c (cplus_suffix): Likewise.
21625
21626         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
21627         * arm.h (ROUND_UP_WORD): Likewise.
21628
21629         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
21630         warning.
21631         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
21632         init_emit_once): Likewise.
21633         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
21634         Likewise.
21635         * function.c (assign_stack_temp_for_type): Likewise.
21636         * loop.c (loop_invariant_p): Likewise.
21637         * recog.c (push_operand): Likewise.
21638         * regclass.c (init_reg_sets_1): Likewise.
21639         * reload.c (update_auto_inc_notes): Likewise.
21640         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
21641         * stmt.c (expand_asm_operands): Likewise.
21642         * stor-layout.c (start_record_layout): Likewise.
21643
21644 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
21645
21646         * config/c4x/c4x.md (epilogue): Correct last patch.
21647
21648 2003-01-15  Richard Henderson  <rth@redhat.com>
21649
21650         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
21651         also check that GP is being used.
21652         (alpha_find_lo_sum_using_gp): New.
21653         (alpha_does_function_need_gp): Use get_attr_usegp.
21654         * config/alpha/alpha-protos.h: Update.
21655         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
21656         as needed.
21657
21658 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21659
21660         * gcse.c (one_cprop_pass): Change function arguments to take both
21661         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
21662         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
21663         (bypass_jumps): New function to perform separate jump bypassing pass.
21664         * rtl.h (bypass_jumps): Add function prototype.
21665         * timevar.def (TV_BYPASS): New timing variable.
21666         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
21667         (dump_file): New entry for the bypass RTL dump file.
21668         (rest_of_compilation): Insert new jump bypassing optimization
21669         pass after loop.
21670         * doc/passes.texi: Document new pass.
21671
21672 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21673
21674         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
21675         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
21676         * pa.h (TARGET_SOM_SDEF): Define.
21677         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
21678
21679 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21680
21681         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
21682         allocate 4-bytes of locals on 68HC11.
21683         (expand_epilogue): Likewise.
21684         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
21685
21686 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
21687
21688         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
21689         and -mshort-double to the assembler to specify the ABI.
21690         (LINK_SPEC): Likewise.
21691         (CPP_SPEC): Pass HCS12 specific define.
21692         (MASK_M68S12): New define.
21693         (TARGET_M68S12): Likewise.
21694         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
21695         (TARGET_VERSION): Update.
21696         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
21697         (LINK_SPEC): Update.
21698         (ASM_SPEC): Update.
21699         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
21700         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
21701
21702 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
21703
21704         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
21705         the return code.
21706
21707 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
21708
21709         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
21710         flag before setting it.
21711
21712 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21713
21714         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
21715         when loop condition is known true, i.e.  "while (1) { ... }".
21716         (genrtl_for_stmt): Similarly for "for" statements.
21717
21718 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21719
21720         * real.c (real_sqrt): Return a bool result indicating whether
21721         a floating point exception or trap should be raised.
21722         * real.h (real_sqrt): Update function prototype.
21723         * builtins.c (fold_builtin): Only fold non-trapping square
21724         roots unless we're ignoring errno and trapping math.
21725
21726 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
21727
21728         * expr.h (emit_conditional_add): Add PARAMS to declaration.
21729         * gengtype-lex.l (malloc, realloc): Move defines after include of
21730         system.h.  Remove duplicate include of system.h.
21731
21732 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21733
21734         PR middle-end/9009
21735         * optabs.c (expand_unop):  When manipulating the FP sign bit
21736         using integer operations, account for targets with different
21737         integer and FP word orders.
21738         (expand_abs): Likewise.
21739
21740 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
21741
21742         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
21743         file extension in section name.
21744
21745 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
21746
21747         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
21748         constant offset.
21749
21750 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
21751
21752         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
21753         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
21754         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
21755         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
21756
21757 2003-01-15  Jan Hubicka  <jh@suse.cz>
21758
21759         PR f/9258
21760         * global.c (struct allocno): Add no_stack_reg.
21761         (global_conflicts): Set no_stack_reg.
21762         (find_reg): Use it.
21763
21764         * convert.c (convert_to_real): Fold - and abs only when profitable.
21765         * fold-const.c (fold): Fold truncates in - and abs.
21766
21767 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
21768
21769         Segher Boessenkool  <segher@koffie.nl>
21770
21771         * predict.c (real_inv_br_prob_base): New variable.
21772         (propagate_freq): Use multiply by reciprocal instead of
21773         division.  Don't divide by 1.0 at all.
21774         (estimate_bb_frequencies): Similar.
21775
21776 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
21777
21778         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
21779         * configure: Rebuilt.
21780
21781 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
21782
21783         * config/s390/s390.c (s390_safe_attr_type): New function.
21784         (s390_use_dfa_pipeline_interface): New function, return true for z900.
21785         (s390_issue_rate): New function.
21786         (s390_agen_dep_p): New function.
21787         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
21788         (s390_adjust_cost): Return 'cost' if new DFA is used.
21789         (s390_adjust_priority): Delete function.
21790         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
21791         * config/s390/s390.md (atype attribute): Attribute 'atype' default
21792         determined by 'op_type'.
21793         (type attribute): Added more type attributes.
21794         * config/s390/2064.md: New DFA description for z900 pipeline.
21795
21796 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
21797
21798         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
21799         forced to memory.  Fixes PR bootstrap/9036.
21800
21801         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
21802         to set $gp before the call.
21803
21804 2003-01-14  Richard Henderson  <rth@redhat.com>
21805
21806         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
21807         for force_const_mem.
21808
21809 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21810
21811         * genattr.c (main): Rearrange output to avoid prototype warning.
21812         * genautomata.c (transform_3): Fix ambiguous-else warning.
21813         * local-alloc.c (requires_inout): Add parentheses around
21814         assignment used as truth-value.
21815         * timevar.c: Move system includes above local includes.  Include
21816         toplev.h
21817         * Makefile.in (timevar.o): Depend on toplev.h.
21818
21819 2003-01-14  Denis Chertykov  <denisc@overta.ru>
21820
21821         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
21822         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
21823
21824         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
21825         attributes.
21826         (TARGET_ATTRIBUTE_TABLE): New macro.
21827         (valid_machine_type_attribute): Remove.
21828         (valid_machine_decl_attribute): Remove.
21829         (ip2k_handle_progmem_attribute): New function.
21830         (ip2k_handle_fndecl_attribute): New function.
21831
21832 2003-01-10  Andrew Haley  <aph@redhat.com>
21833
21834         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
21835         registers to be in correct order.  Add rip.
21836
21837 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
21838
21839         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
21840         (*iorsi3_and_lshiftrt_9_sb): Likewise.
21841
21842 2003-01-14  Jan Hubicka  <jh@suse.cz>
21843
21844         * convert.c (strip_float_extensions):  Look for narrowest type handling
21845         FP constants.
21846
21847         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
21848         float1 CMP float2.
21849         * convert.c (strip_float_extensions): Make global.
21850         * tree.h (strip_float_extensions): Declare.
21851
21852 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21853
21854         * timevar.def: define TV_NAME_LOOKUP.
21855         * timevar.c (timevar_pop): Be verbose when aborting.
21856
21857 2003-01-13  Andreas Schwab  <schwab@suse.de>
21858
21859         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
21860         $(parsedir), just move the temporary file at the end.
21861         ($(parsedir)/gengtype-yacc.c): Likewise.
21862
21863 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
21864
21865         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
21866         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
21867         splitting.
21868         * configure: Rebuilt.
21869
21870 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21871
21872         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
21873         internal_mcount): Don't use PARAMS.
21874         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
21875         ISO C style.
21876         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
21877
21878 2003-01-13  Andreas Schwab  <schwab@suse.de>
21879
21880         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
21881         directive.
21882
21883 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
21884
21885         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
21886         (*iorsi3_and_lshiftrt_n_sb): Likewise.
21887
21888 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
21889
21890         PR c++/9264
21891         * c-lex.c (c_lex): Set the token value to error_mark_node for
21892         invalid numeric constants.
21893
21894 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21895
21896         * c-pch.c (asm_file_startpos): Change to `long'.
21897         (pch_init): Use ftell, not ftello.
21898         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
21899         Use `long' instead of `off_t'.
21900         (c_common_read_pch): Likewise.
21901         * ggc-common.c (gt_pch_save): Use long/ftell instead of
21902         off_t/ftello.
21903
21904 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
21905
21906         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
21907
21908 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
21909
21910         * arm-protos.h (struct cpp_reader): Add declaration.
21911
21912 2003-01-11  Jan Hubicka  <jh@suse.cz>
21913
21914         PR target/9068
21915         * i386.c (output_fp_compare): Fix typo.
21916
21917 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
21918
21919         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
21920
21921 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
21922
21923         * Makefile.in (parsedir): New variable.
21924         (docobjdir): New variable.
21925         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
21926         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
21927         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
21928         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
21929         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
21930         Use docobjdir.
21931         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
21932         objc.maintainer-clean): Use parsedir.
21933
21934         * varasm.c (struct constant_descriptor_rtx): Remove unused
21935         `label' field.
21936
21937         * toplev.c (documented_lang_options): Document -Winvalid-pch.
21938
21939 2003-01-10  Richard Henderson  <rth@redhat.com>
21940
21941         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
21942         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
21943
21944 2003-01-10  Richard Henderson  <rth@redhat.com>
21945
21946         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
21947         not INTEGRAL_MODE_P when widening extensions.
21948
21949 2003-01-10  Richard Henderson  <rth@redhat.com>
21950
21951         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
21952
21953 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
21954
21955         * ggc-page.c (ggc_collect): Avoid overflow computing
21956         min_expand.
21957
21958         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
21959         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
21960         Remove calls.
21961         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
21962
21963 2003-01-10  Jan Hubicka  <jh@suse.cz>
21964
21965         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
21966         with weird operands.
21967
21968 2003-01-10  Dale Johannesen <dalej@apple.com>
21969
21970         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
21971         parameters.  Call check_sibcall_argument_overlap if indicated.
21972         (check_sibcall_argument_overlap):  Add mark_stored_args_map
21973         parameter.  Don't mark parameter area as clobbered if not set.
21974         (expand_call):  Adjust calls to above.
21975
21976 2003-01-10 Kelley Cook <kelleycook@comcast.net>
21977
21978         * configure.in (linker read-only and read-write section mixing):
21979         Squelch some assembler warnings.
21980         * configure: Likewise.
21981
21982 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
21983
21984         * doc/invoke.texi: Document -mtune, delete -mcpu
21985         option for S/390 and zSeries.
21986         * config/s390/s390.c (s390_tune_string) New variable.
21987         (s390_cpu_string) Delete variable.
21988         (override_options): Use s390_tune_string instead of
21989         s390_cpu_string.
21990         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
21991
21992 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
21993
21994         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
21995
21996 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
21997
21998         * jump.c (next_nonnote_insn_in_loop): New function.
21999         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
22000         next_nonnote_insn.
22001         (duplicate_loop_exit_test). Likewise.
22002
22003 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
22004
22005         Merge from pch-branch:
22006
22007         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
22008
22009         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
22010         load.
22011
22012         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
22013
22014         * cpplib.c (count_registered_pragmas): New function.
22015         (save_registered_pragmas): New function.
22016         (_cpp_save_pragma_names): New function.
22017         (restore_registered_pragmas): New function.
22018         (_cpp_restore_pragma_names): New function.
22019         * cpphash.h (_cpp_save_pragma_names): Prototype.
22020         (_cpp_restore_pragma_names): Likewise.
22021         * cpppch.c (struct save_macro_item): Split from save_macro_data.
22022         (struct save_macro_data): New field 'saved_pragmas'.
22023         (save_macros): Update for changes to struct save_macro_data.
22024         (cpp_prepare_state): Call _cpp_save_pragma_names, update
22025         for changes to struct save_macro_data.
22026         (cpp_read_state): Call _cpp_restore_pragma_names, update
22027         for changes to struct save_macro_data.
22028
22029         * cpppch.c (cpp_read_state): Restore the hashtable references
22030         in the cpp_reader.
22031
22032         * tree.h (built_in_decls): Mark for PCH.
22033
22034         * dbxout.c (lastfile): Don't mark for PCH.
22035
22036         * ggc.h: Document PCH calls into memory managers.
22037
22038         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
22039
22040         * doc/invoke.texi (Precompiled Headers): Document the
22041         directory form of PCH.
22042         * cppfiles.c (validate_pch): New function.
22043         (open_file_pch): Search suitably-named directories for PCH files.
22044
22045         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
22046
22047         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
22048         reorder options.
22049         (Type Information): Mention that the information is also
22050         used to implement PCH.
22051         * doc/passes.texi (Passes): Improve documentation of
22052         language-specific files.
22053
22054         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
22055
22056         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
22057         (struct walk_type_data): Add reorder_fn field.
22058         (walk_type): Process 'reorder' option.
22059         (write_types_process_field): Reorder parameters to gt_pch_note_object,
22060         call reorder_note_routine.
22061         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
22062         (ggc_wtd): Update for change to struct write_types_data.
22063         (pch_wtd): Likewise.
22064         * ggc.h (gt_pch_note_object): Reorder parameters.
22065         (gt_handle_reorder): New definition.
22066         (gt_pch_note_reorder): New prototype.
22067         * ggc-common.c (struct ptr_data): Add reorder_fn.
22068         (gt_pch_note_object): Reorder parameters.
22069         (gt_pch_note_reorder): New.
22070         (gt_pch_save): Call reorder_fn.
22071         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
22072
22073         * dbxout.c (cwd): Don't mark for PCH.
22074
22075         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
22076
22077         * gengtype.c (finish_root_table): Fix some warnings.
22078         (write_root): Handle TYPE_STRING.
22079         * ggc.h (gt_ggc_m_S): Add prototype.
22080         * stringpool.c (gt_ggc_m_S): New function.
22081
22082         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
22083
22084         * dwarf2out.c (dw2_string_counter): New.
22085         (AT_string_form): Use it.
22086         (same_dw_val_p): Update for removal of hashtable.h hash tables.
22087
22088         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
22089
22090         * dbxout.c: Include gt-dbxout.h.
22091         (lastfile): Mark for PCH/GGC.
22092         (cwd): Likewise.
22093         (struct typeinfo): Likewise.
22094         (typevec): Likewise.
22095         (typevec_len): Likewise.
22096         (next_type_number): Likewise.
22097         (struct dbx_file): Likewise.
22098         (current_file): Likewise.
22099         (next_file_number): Likewise.
22100         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
22101         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
22102         (dbxout_end_source_file): Don't free struct dbx_file.
22103         (dbxout_type): Use GGC to allocate typevec.
22104         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
22105         (GTFILES): Add dbxout.c.
22106         (gt-dbxout.h): New rule.
22107
22108         * Makefile.in (c-pch.o): Add debug.h as dependency.
22109         * c-pch.c: Include debug.h.
22110         (pch_init): Call start_source_file to keep nesting right.
22111         (c_common_read_pch): Add orig_name parameter.  Call
22112         start_source_file debug hook.  Call end_source_file debug hook.
22113         * c-common.h (c_common_read_pch): Update prototype.
22114         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
22115         callback.
22116         * cppfiles.c (struct include_file): Add new field `header_name'.
22117         (find_or_create_entry): Default it to `name'.
22118         (open_file_pch): Set it to the original header file searched for.
22119         (stack_include_file): Don't stack an empty buffer, just handle
22120         PCH files immediately.  Pass header_name field to read_pch callback.
22121
22122         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
22123
22124         * function.c (funcdef_no): Mark to be saved in a PCH.
22125
22126         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
22127
22128         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
22129
22130         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
22131
22132         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
22133
22134         * optabs.h (code_to_optab): Add GTY marker.
22135
22136         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
22137
22138         * Makefile.in (GTFILES): Add cpplib.h.
22139         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
22140         * c-decl.c (build_compound_literal): Don't use var_labelno.
22141         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
22142         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
22143         * varasm.c (const_labelno): Use gengtype to mark.
22144         (var_labelno): Likewise.
22145         (in_section): Likewise.
22146         (in_named_name): Likewise.
22147         (struct in_named_entry): Likewise.
22148         (in_named_htab): Likewise.
22149         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
22150         (init_varasm_once): Use GGC to allocate in_named_htab.
22151         * config/darwin.c (current_pic_label_num): Mark for PCH.
22152
22153         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
22154
22155         * ggc-simple.c (init_ggc_pch): New stub procedure.
22156         (ggc_pch_count_object): Likewise.
22157         (ggc_pch_total_size): Likewise.
22158         (ggc_pch_this_base): Likewise.
22159         (ggc_pch_alloc_object): Likewise.
22160         (ggc_pch_prepare_write): Likewise.
22161         (ggc_pch_write_object): Likewise
22162         (ggc_pch_finish): Likewise.
22163         (ggc_pch_read): Likewise.
22164
22165         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
22166
22167         * c-pch.c (c_common_write_pch): Write the macro definitions after
22168         the GCed data.
22169         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
22170         definitions after the GCed data.
22171         * cpplib.c (save_macros): New.
22172         (reset_ht): New.
22173         (cpp_write_pch_deps): Split out of cpp_write_pch.
22174         (cpp_write_pch_state): Split out of cpp_write_pch.
22175         (cpp_write_pch): Delete.
22176         (struct save_macro_data): Delete.
22177         (cpp_prepare_state): New.
22178         (cpp_read_state): Erase and restore initial macro definitions.
22179         * cpplib.h (struct save_macro_data): Forward-declare.
22180         (cpp_write_pch_deps): Prototype.
22181         (cpp_write_pch_state): Prototype.
22182         (cpp_write_pch): Delete prototype.
22183         (cpp_prepare_state): Prototype.
22184         (cpp_read_state): Add fourth argument.
22185
22186         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
22187
22188         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
22189         (write_array): Remove warning.
22190
22191         * gengtype.c (contains_scalar_p): New.
22192         (finish_root_table): Add the table to all languages, even if it's
22193         empty.
22194         (write_roots): Output gt_pch_scalar_rtab.
22195         * ggc-common.c (gt_pch_save): Write out scalars.
22196         (gt_pch_restore): Read scalars back.
22197
22198         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
22199         (struct page_entry): Delete pch_page field.
22200         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
22201         (clear_marks): Likewise.
22202         (sweep_pages): Likewise.
22203         (poison_pages): Likewise.
22204         (ggc_print_statistics): Likewise.
22205         (ggc_pch_read): Don't free objects read from a PCH.
22206         Properly set up in_use_p and page_tails.
22207
22208         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
22209
22210         * gengtype.c (struct write_types_data): New.
22211         (struct walk_type_data): Make `cookie' const; add extra
22212         prev_val item; add `orig_s' field.
22213         (walk_type): Update prev_val[3].
22214         (write_types_process_field): New.
22215         (write_func_for_structure): Take write_types_data structure.
22216         (write_types): New.
22217         (ggc_wtd): New.
22218         (pch_wtd): New.
22219         (write_types_local_process_field): New.
22220         (gc_mark_process_field): Delete.
22221         (write_local_func_for_structure): New.
22222         (gc_mark_func_name): Delete.
22223         (write_gc_types): Delete.
22224         (write_local): New.
22225         (finish_root_table): Don't include 'ggc_' in PFX.
22226         (write_root): Rename from write_root.  Fill pchw field of structures.
22227         (write_array): New.
22228         (write_roots): Rename from write_gc_roots.  Split out to write_array.
22229         Update to changes to other routines.  Write gt_pch_cache_rtab table.
22230         (main): Write PCH walking routines.
22231         * ggc-common.c: Include toplev.h, sys/mman.h.
22232         (ggc_mark_roots): For cache hashtables, also mark the hash table
22233         and the array of entries.
22234         (saving_htab): New.
22235         (struct ptr_data): New.
22236         (POINTER_HASH): New.
22237         (gt_pch_note_object): New.
22238         (saving_htab_hash): New.
22239         (saving_htab_eq): New.
22240         (struct traversal_state): New.
22241         (call_count): New.
22242         (call_alloc): New.
22243         (compare_ptr_data): New.
22244         (relocate_ptrs): New.
22245         (write_pch_globals): New.
22246         (struct mmap_info): New.
22247         (gt_pch_save): New.
22248         (gt_pch_restore): New.
22249         * ggc-page.c (ROUND_UP_VALUE): New.
22250         (ROUND_UP): New.
22251         (struct page_entry): Add field `pch_page'.
22252         (init_ggc): Use ROUND_UP.
22253         (struct ggc_pch_data): Declare.
22254         (init_ggc_pch): New.
22255         (ggc_pch_count_object): New.
22256         (ggc_pch_total_size): New.
22257         (ggc_pch_this_base): New.
22258         (ggc_pch_alloc_object): New.
22259         (ggc_pch_prepare_write): New.
22260         (ggc_pch_write_object): New.
22261         (ggc_pch_finish): New.
22262         (ggc_pch_read): New.
22263         * ggc.h (gt_pointer_operator): New.
22264         (gt_note_pointers): New.
22265         (gt_pch_note_object): New prototype.
22266         (gt_pointer_walker): New.
22267         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
22268         (LAST_GGC_ROOT_TAB): Update.
22269         (gt_pch_cache_rtab): Declare.
22270         (gt_pch_scalar_rtab): Declare.
22271         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
22272         (LAST_GGC_CACHE_TAB): Update.
22273         (gt_pch_save_stringpool): Declare.
22274         (gt_pch_restore_stringpool): Declare.
22275         (gt_pch_p_S): Declare.
22276         (gt_pch_n_S): Declare.
22277         (struct ggc_pch_data): Forward-declare.
22278         (init_ggc_pch): Declare.
22279         (ggc_pch_count_object): Declare.
22280         (ggc_pch_total_size): Declare.
22281         (ggc_pch_this_base): Declare.
22282         (ggc_pch_alloc_object): Declare.
22283         (ggc_pch_prepare_write): Declare.
22284         (ggc_pch_write_object): Declare.
22285         (ggc_pch_finish): Declare.
22286         (ggc_pch_read): Declare.
22287         (gt_pch_save): Declare.
22288         (gt_pch_restore): Declare.
22289         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
22290         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
22291         const_double_htab, mem_attrs_htab using GGC.
22292         * c-pch.c: Include ggc.h.
22293         (pch_init): Allow reading PCH file back.
22294         (c_common_write_pch): Call gt_pch_save.
22295         (c_common_read_pch): Call gt_pch_restore.
22296         * c-parse.in (init_reswords): Delete now-untrue comment.
22297         Allocate ridpointers using GGC.
22298         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
22299         calling expand_deferred_fns.
22300         * c-common.h (ridpointers): Mark for GTY machinery.
22301         * Makefile.in (stringpool.o): Update dependencies.
22302         (c-pch.o): Update dependencies.
22303         (ggc-common.o): Update dependencies.
22304         * stringpool.c: Include gt-stringpool.h.
22305         (gt_pch_p_S): New.
22306         (gt_pch_n_S): New.
22307         (struct string_pool_data): New.
22308         (spd): New.
22309         (gt_pch_save_stringpool): New.
22310         (gt_pch_restore_stringpool): New.
22311         * tree.c (init_ttree): Make type_hash_table allocated using GC.
22312
22313         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
22314
22315         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
22316         (output_mangled_typename): Don't pass size_t to printf.
22317
22318         * tree.h (union tree_type_symtab): Add tag to `address' field.
22319         (union tree_decl_u2): Add tag to 'i' field.
22320         * varasm.c (union rtx_const_un): Add tags to all fields.
22321         * gengtype.c (struct walk_type_data): New.
22322         (output_escaped_param): Take struct walk_type_data parameter.
22323         (write_gc_structure_fields): Delete.
22324         (walk_type): New.
22325         (write_gc_marker_routine_for_structure): Delete.
22326         (write_func_for_structure): New.
22327         (gc_mark_process_field): New.
22328         (gc_mark_func_name): New.
22329         (gc_counter): Delete.
22330         (write_gc_types): Use write_func_for_structure.
22331         (write_gc_roots): Use walk_type.
22332
22333         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
22334
22335         * ggc-common.c (ggc_mark_roots): Delete 'x'.
22336         (ggc_splay_dont_free): Fix warning about unused 'x'.
22337         (ggc_print_common_statistics): Remove warnings.
22338
22339         2002-10-01  Mike Stump  <mrs@apple.com>
22340
22341         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
22342         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
22343
22344         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
22345             Catherine Moore  <clm@redhat.com>
22346
22347         * Makefile (c-pch.o): Update dependencies.
22348         (LIBCPP_OBJS): Add cpppch.o.
22349         (cpppch.o): New.
22350         * c-common.c (c_common_init): Don't call pch_init here.
22351         * c-common.h (c_common_read_pch): Update prototype.
22352         * c-lex.c (c_common_parse_file): Call pch_init here.
22353         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
22354         (c_common_decode_option): Handle them.
22355         * c-pch.c: Include c-pragma.h.
22356         (save_asm_offset): Delete.
22357         (pch_init): Move contents of save_asm_offset into here, call
22358         cpp_save_state.
22359         (c_common_write_pch): Call cpp_write_pch.
22360         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
22361         cpp_valid_state.
22362         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
22363         * cppfiles.c (stack_include_file): Update for change to
22364         parameters of cb.read_pch.
22365         * cpphash.h (struct cpp_reader): Add `savedstate' field.
22366         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
22367         `restore_pch_deps' fields.
22368         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
22369         (cpp_save_state): Prototype.
22370         (cpp_write_pch): Prototype.
22371         (cpp_valid_state): Prototype.
22372         (cpp_read_state): Prototype.
22373         * cpppch.c: New file.
22374         * flags.h (version_flag): Remove prototype.
22375         * mkdeps.c (deps_save): New.
22376         (deps_restore): New.
22377         * mkdeps.h (deps_save): Prototype.
22378         (deps_restore): Prototype.
22379         * toplev.c (late_init_hook): Delete.
22380         (version_flag): Make static again.
22381         (compile_file): Don't call late_init_hook.
22382         * toplev.h (late_init_hook): Delete.
22383         * doc/cppopts.texi: Document -fpch-deps.
22384         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
22385
22386         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
22387
22388         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
22389         callers.
22390         (c_common_valid_pch): Rename from c_valid_pch, change callers.
22391         (c_common_read_pch): Rename from c_read_pch, change callers.
22392
22393         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
22394         a space between it and its argument.
22395
22396         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
22397
22398         * c-pch.c: New file.
22399         * toplev.h (late_init_hook): Declare.
22400         * toplev.c (late_init_hook): Define.
22401         (version_flag): Make globally visible.
22402         (compile_file): Call late_init_hook.
22403         (init_asm_output): Make output file seekable.
22404         * gcc.c (default_compilers): Update c-header rule.
22405         * flags.h (version_flag): Declare.
22406         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
22407         fields.
22408         * cppfiles.c (struct include_file): Add 'pch' field.
22409         (INCLUDE_PCH_P): New.
22410         (open_file_pch): New.
22411         (stack_include_file): Handle PCH files specially.
22412         (find_include_file): Call open_file_pch instead of open_file.
22413         (_cpp_read_file): Explain why open_file is used instead of
22414         open_file_pch.
22415         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
22416         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
22417         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
22418         in cpplib callbacks.
22419         * c-common.c (pch_file): Correct comment.
22420         (allow_pch): Define.
22421         (c_common_init): Call pch_init.
22422         * c-common.h (allow_pch): Declare.
22423         (pch_init): Declare.
22424         (c_valid_pch): Declare.
22425         (c_read_pch): Declare.
22426         (c_write_pch): Declare.
22427         * Makefile.in (c-pch.o): New.
22428         (C_AND_OBJC_OBJS): Add c-pch.o.
22429         * doc/invoke.texi (Precompiled Headers): Add index entries,
22430         complete truncated paragraph.
22431
22432         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
22433
22434         * c-common.c: (pch_file): Define.
22435         * c-common.h (pch_file): Declare.
22436         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
22437         (missing_arg): Require --output-pch= to have an argument.
22438         (c_common_decode_option): Handle --output-pch=.
22439         * gcc.c: Document new %V.
22440         (default_compilers): Handle compiling C header files.
22441         (do_spec_1): Implement %V.
22442         (main): Handle "gcc foo.h" without trying to run linker.
22443         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
22444         (Overall Options): Document what the driver does with header files,
22445         document new -x option possibilities.
22446         (Invoking G++): More documentation for PCH.
22447         (Precompiled Headers): New.
22448
22449         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
22450
22451         * ggc.h: Don't include varray.h.  Rearrange functions to be more
22452         organized.
22453         (ggc_add_root): Delete.
22454         (ggc_mark_rtx): Delete.
22455         (ggc_mark_tree): Delete.
22456         (struct ggc_statistics): Remove contents.
22457         * ggc-common.c: Remove unneeded includes.
22458         (struct ggc_root): Delete.
22459         (roots): Delete.
22460         (ggc_add_root): Delete.
22461         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
22462         (ggc_print_common_statistics): Remove most of the contents.
22463         * Makefile.in (GGC_H): No longer uses varray.h.
22464         (ggc-common.o): Update dependencies.
22465         (c-parse.o): Add varray.h to dependencies.
22466         (c-common.o): Add varray.h.
22467         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
22468         (mark_ident_hash): Rename to ggc_mark_stringpool.
22469         (init_stringpool): Don't use ggc_add_root.
22470         * c-parse.in: Include varray.h.
22471         * c-common.c: Include varray.h.
22472         * objc/Make-lang.in (objc-act.o): Add varray.h.
22473         * objc/objc-act.c: Include varray.h.
22474
22475         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
22476
22477         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
22478         (dw_cfi_oprnd1_desc): Likewise.
22479
22480         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
22481
22482         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
22483         move out of ifdef.
22484         (alpha_links): Use gengtype to mark; move out of ifdef.
22485         (mark_alpha_links_node): Delete.
22486         (mark_alpha_links): Delete.
22487         (alpha_need_linkage): Use GGC to allocate splay tree, struct
22488         alpha_links, strings.  Don't use ggc_add_root.
22489         * ggc-common.c (ggc_splay_alloc): New.
22490         (ggc_splay_dont_free): New.
22491         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
22492         (ggc_mark_tree): Likewise.
22493         (splay_tree_new_ggc): New.
22494         (ggc_splay_alloc): Declare.
22495         (ggc_splay_dont_free): Declare.
22496         * dwarf2asm.c: Include gt-dwarf2asm.h.
22497         (mark_indirect_pool_entry): Delete.
22498         (mark_indirect_pool): Delete.
22499         (indirect_pool): Use gengtype to mark.
22500         (dw2_force_const_mem): Don't use ggc_add_root.
22501         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
22502         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
22503         (gt-dwarf2asm.h): Depend on s-gtype.
22504
22505         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
22506
22507         * tree.h (union tree_type_symtab): Mark `die' field.
22508         * Makefile.in (dwarf2out.o): Update dependencies.
22509         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
22510         hash tables.
22511         (dw_cfi_oprnd1_desc): New function.
22512         (dw_cfi_oprnd2_desc): New function.
22513         (indirect_string_alloc): Delete.
22514         (debug_str_do_hash): New function.
22515         (debug_str_eq): New function.
22516         (mark_limbo_die_list): Delete.
22517         (dwarf2out_init): Don't call ggc_add_root.
22518
22519 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
22520
22521         The following changes are merged from itanium-sched-branch:
22522
22523         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
22524
22525         * doc/md.texi: Clarify assignment of units to automata description.
22526
22527         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
22528
22529         * genautomata.c (unit_decl): Remove members
22530         `the_same_automaton_unit' and
22531         `the_same_automaton_message_reported_p'.
22532         (process_unit_to_form_the_same_automaton_unit_lists,
22533         form_the_same_automaton_unit_lists_from_regexp,
22534         form_the_same_automaton_unit_lists, the_same_automaton_lists):
22535         Remove them.
22536         (annotation_message_reported_p): New global variable.
22537         (check_unit_distribution_in_reserv,
22538         check_regexp_units_distribution): New functions.
22539         (check_unit_distributions_to_automata): Rewrite it.
22540
22541         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
22542
22543         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
22544         Use continue instead of break if cycle is too big.
22545
22546         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
22547
22548         * genautomata.c (check_unit_distributions_to_automata): Output at
22549         most one message for a unit.
22550         (process_unit_to_form_the_same_automaton_unit_lists): Check
22551         automaton of units instead of units themself.
22552
22553         * doc/md.texi: Describe the constraint about assigning unit to
22554         automata.
22555
22556         2002-12-20  Jan Hubicka  <jH@suse.cz>
22557                     Vladimir Makarov  <vmakarov@redhat.com>
22558
22559         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
22560         and `in_set_p'.
22561         (gen_cpu_unit): Initialize the new members.
22562         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
22563         up `min_occ_cycle_num'.
22564         (evaluate_max_reserv_cycles): Change the function call.
22565         (CLEAR_BIT): New macro.
22566         (states_union, state_shift): Use the mask.
22567         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
22568         (form_reservs_matter): New function.
22569         (make_automaton): Call the function and use the mask.
22570         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
22571         account.
22572
22573         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22574
22575         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
22576
22577         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22578
22579         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
22580         for Itanium.
22581
22582         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22583
22584         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
22585         default cpu.
22586
22587         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22588                 2002-10-31  Dale Johannesen <dalej@apple.com>
22589
22590         * haifa-sched.c (find_set_reg_weight): New function.
22591         (find_insn_reg_weight): Use the new function.
22592         (schedule_block): Do sorting ready queue always
22593         after insn issue.
22594
22595         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
22596
22597         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
22598
22599         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
22600
22601         * haifa-sched.c (choice_entry): New structure.
22602         (choice_stack, cycle_issued_insns): New variables.
22603         (max_issue): Rewrite it.
22604         (choose_ready): Set up ready_try for unknown insns too.
22605         (schedule_block): Allocate and free choice_stack.  Set up
22606         and modify cycle_issued_insns.
22607
22608         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
22609         with and without filling the bundle.
22610         (bundling): Combine calls of issue_nops_and_insn.
22611
22612         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
22613
22614         * config/ia64/itanium1.md: New file.
22615
22616         * config/ia64/itanium2.md: New file.
22617
22618         * config/ia64/ia64.md: Move DFA descriptions into the new files.
22619         Remove the old pipeline description.
22620
22621         * config/ia64/ia64.c (ia64_override_options): Add aliases of
22622         itanium processor names.
22623
22624         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
22625
22626         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
22627         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
22628
22629         * config/ia64/ia64.md: Add descriptions for Itanium2.
22630
22631         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
22632
22633         * config/ia64/ia64.h (processor_type): New enumeration.
22634         (ia64_tune, ia64_tune_string): New external declarations.
22635         (TARGET_OPTIONS): Add option `tune='.
22636
22637         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
22638         variables.
22639         (ia64_override_options): Set up `ia64_tune'.
22640         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
22641         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
22642         (bundling): Add nops for MM-insns only for Itanium.
22643         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
22644         Itanium.
22645
22646         * config/ia64/ia64.md (cpu): New attribute.
22647         (DFA description): Enable it only for Itanium.
22648
22649         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
22650                     Richard Henderson  <rth@redhat.com>
22651
22652         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
22653         MASK_EARLY_STOP_BITS.
22654         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
22655         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
22656         `early-stop-bits'.
22657
22658         * config/ia64/ia64.c (ia64_dfa_new_cycle,
22659         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
22660         instead of TARGET_TUNE_STOP_BITS.
22661
22662         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
22663         `-mearly-stop-bits'.
22664
22665         * config/ia64/ia64.c (automata_option "v"): Comment it.
22666
22667         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
22668
22669         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
22670         New macros.
22671         (TARGET_SWITCHES): Add entries for the new option.
22672
22673         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
22674         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
22675         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
22676         global variables.
22677         (ia64_sched_reorder2): Set up `clocks'.
22678         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
22679         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
22680         queue when TARGET_TUNE_STOP_BITS.
22681         (bundling): Insert additional nops for MM-insns.
22682         (final_emit_insn_group_barriers): Add insertion of stop bits
22683         according `stops_p'.
22684         (ia64_reorg): Initiate the new varibales.
22685
22686         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
22687
22688         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
22689
22690         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
22691         insns at the end of block insn scheduling.
22692
22693         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
22694
22695         * sched-deps.c (remove_dependence, group_leader): Remove it.
22696         (add_dependence): Add dependence to group leader to.
22697         (set_sched_group_p): Add dependence to the first insn of the
22698         schedule group too.
22699         (sched_analyze_insn): Make dependence to jump as anti-dependence.
22700         Change true dependence by anti-dependence when
22701         `reg_pending_barrier'.
22702
22703         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
22704         add_branch_dependences): Ignore schedule groups.
22705
22706         * sched-ebb.c (init_ready_list): Ditto.
22707
22708         * (move_insn, set_priorities): Ditto.
22709
22710         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
22711         flag is clear after reload.
22712         (adjust_cost): Change cost only for output dependencies.
22713
22714         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
22715
22716         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
22717
22718         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
22719
22720         * target.h (gcc_target): Add member
22721         `dependencies_evaluation_hook'.
22722
22723         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
22724         macro.
22725         (TARGET_SCHED): Add initiatialization of the new member.
22726
22727         * sched-ebb.c: Include `target.h'.
22728         (schedule_ebb): Call `dependencies_evaluation_hook'.
22729
22730         * sched-rgn.c (schedule_region): Call
22731         `dependencies_evaluation_hook'.
22732
22733         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
22734         New macro.
22735         (ia64_dependencies_evaluation_hook): New function.
22736
22737         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
22738         Describe the new hook.
22739
22740         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
22741
22742         * target.h (gcc_target): Add members
22743         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
22744
22745         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
22746         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
22747         macros.
22748         (TARGET_SCHED): Add initiatialization of the new members.
22749
22750         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
22751         insn scheduling too.
22752         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
22753         initialize `ready_try'.
22754         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
22755         `dfa_new_cycle' says not to do it.
22756
22757         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
22758         bundling.
22759
22760         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
22761
22762         * config/ia64/ia64.c: Include `hashtab.h'.
22763         (ia64_first_cycle_multipass_dfa_lookahead_guard,
22764         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
22765         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
22766         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
22767         bundle_state_eq_p, insert_bundle_state,
22768         initiate_bundle_state_table, finish_bundle_state_table,
22769         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
22770         get_template, get_next_important_insn, bundling): New functions.
22771         (ia64_internal_sched_reorder): Remove it.
22772         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
22773         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
22774         (ia64_safe_itanium_requires_unit0): Remove it.
22775         (group_barrier_needed_p): Place group barrier right before a real
22776         insn.
22777         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
22778         Remove them.
22779         (bundle_name): New variable.
22780         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
22781         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
22782         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
22783         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
22784         temp_dfa_state, prev_cycle_state): New global variables.
22785         (insn_matches_slot, maybe_rotate, finish_last_head,
22786         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
22787         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
22788         find_best_packet, itanium_reorder, dump_current_packet,
22789         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
22790         (sched_data, sched_ready, sched_types): Remove them.
22791         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
22792         `init_insn_group_barriers'.
22793         (ia64_sched_reorder, ia64_sched_reorder2): Call
22794         ia64_dfa_sched_reorder.
22795         (ia64_variable_issue): Rewrite it.
22796         (bundle_state): New structure.
22797         (index_to_bundle_states, bundle_states_num,
22798         allocated_bundle_states_chain, free_bundle_state_chain): New
22799         global variables.
22800         (ia64_sched_finish): Add stop bits and call `bundling' after the
22801         2nd insn scheduling.
22802         (ia64_use_dfa_pipeline_interface): Return zero always.
22803         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
22804         insn scheduling.
22805         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
22806         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
22807         (ia64_reorg): Add bundling insns.
22808
22809         * doc/tm.texi
22810         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
22811         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
22812
22813         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
22814
22815         * config/ia64/ia64.md: Add Itanium1 DFA description.
22816         (itanium_class): Add `nop' and `pre_cycle'.  Add
22817         define_function_unit for `nop'.
22818         (nop): Change attribute `itanium_class'.
22819         (pre_cycle): New define_insn.
22820
22821         * config/ia64/ia64-protos.h (bundling_p): New external variable.
22822         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
22823         ia64_produce_address_p): New function prototypes.
22824
22825         * config/ia64/ia64.c (bundling_p): New global variable.
22826         (ia64_use_dfa_pipeline_interface,
22827         ia64_first_cycle_multipass_dfa_lookahead,
22828         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
22829         functions.
22830         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
22831         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
22832         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
22833         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
22834         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
22835         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
22836         (dfa_pre_cycle_insn): New variable.
22837
22838         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22839
22840         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
22841         constructions.
22842
22843         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
22844         New function prototypes.
22845
22846         * genattrtab.c (main): Process the new constructions.
22847
22848         * genautomata.c (gen_presence_absence_set,
22849         process_presence_absence_names, process_presence_absence_patterns,
22850         add_presence_absence, check_absence_pattern_sets): Add parameter
22851         `final_p'.
22852         (unit_decl): Add new members `final_presence_list' and
22853         `final_absence_list'.
22854         (unit_pattern_rel_decl): Add new member `final_p'.
22855         (gen_final_presence_set, gen_final_absence_set): New functions.
22856         (process_decls): Use member `final_p'.
22857         (temp_reserv): New global variable.
22858         (reserv_sets_are_intersected): Add processing `final_presence_set'
22859         and `final_absence_set'.
22860         (initiate_states): Allocate `temp_reserv'.
22861         (unit_final_presence_set_table, unit_final_absence_set_table): New
22862         gloabal variables.
22863         (initiate_presence_absence_pattern_sets): Initiate them.
22864         (NDFA_to_DFA): Fix typo.
22865         (output_description): Output `final_presence_set' and
22866         `final_absence_set'.
22867
22868         * doc/md.texi (final_presence_set, final_absence_set): Describe
22869         them.
22870
22871         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22872
22873         * genautomata.c (transform_3): Process a missing case (nothing on
22874         unit place).
22875
22876         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22877
22878         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
22879         comments about queried units and the minimization.
22880
22881         * doc/md.texi: Ditto.
22882
22883         * genautomata.c (create_composed_state): Return nonzero if the new
22884         state has been created.
22885         (first_cycle_unit_presence): New function.
22886         (state_is_differed): Add new parameter.  Use the new function.
22887         Take queried units into account.
22888         (partition_equiv_class): Pass additional parameter to
22889         `state_is_differed'.
22890         (merge_states): Process composed states too.
22891         (build_automaton, create_automata, output_min_issue_delay_table,
22892         output_tables, output_statistics): Output more information.
22893         (output_reserved_units_table): Use function
22894         `first_cycle_unit_presence'.
22895         (output_tables): Output table of queried units even if the
22896         minimization is switched on.
22897         (write_automata): Output code for querying units even if the
22898         minimization is switched on.
22899
22900         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
22901
22902         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
22903         syntax of the constructions.
22904
22905         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
22906         extended syntax of the constructions.
22907
22908         * genautomata.c (unit_rel_decl): Rename it to
22909         `unit_pattern_rel_decl'.
22910         (pattern_set_el, pattern_reserv): New structures.
22911         (pattern_set_el_t, pattern_reserv_t): New types.
22912         (gen_presence_absence_set): New function.
22913         (process_presence_absence): Remove it.
22914         (process_presence_absence_names,
22915         process_presence_absence_patterns): New functions.
22916         (get_presence_absence_set): Remove it.
22917         (initiate_presence_absence_sets): Rename it on
22918         `initiate_presence_absence_pattern_sets'.  Use new function
22919         `form_reserv_sets_list'.
22920         (form_reserv_sets_list, check_presence_pattern_sets,
22921         check_absence_pattern_sets, output_pattern_set_el_list): New
22922         functions.
22923         (unit_decl): Change types of members `presence_list' and
22924         `absence_list'.
22925         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
22926         (decl): Change types of members `excl', `presence', and `absence'.
22927         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
22928         at the end of the vector.
22929         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
22930         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
22931         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
22932         (gen_presence_set, gen_absence_set): Use new function
22933         `gen_presence_absence_set'.
22934         (add_presence_absence): Process `pattern_list' instead of
22935         `source_list'.
22936         (process_decls): USe new functions
22937         `process_presence_absence_names' and
22938         `process_presence_absence_patterns'.
22939         (reserv_sets_are_intersected): Use new function
22940         `check_presence_pattern_sets'.
22941         (presence_set, absence_set): Remove them.
22942         (unit_presence_set_table, unit_absence_set_table): New global
22943         variables.
22944         (output_description): Use new function
22945         `output_pattern_set_el_list'.
22946         (generate): Use `initiate_presence_absence_pattern_sets'.
22947
22948         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
22949
22950         * genattr.c (main): Add output of prototype of new interface
22951         function `dfa_clean_insn_cache'.
22952
22953         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
22954         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
22955         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
22956         the generated code.
22957         (write_automata): Call the new function.
22958
22959 2003-01-09  Jan Hubicka  <jh@suse.cz>
22960
22961         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
22962         correctly.
22963
22964 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
22965
22966         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
22967
22968 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
22969
22970         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
22971         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
22972         (CONSTRAINT_LEN): Provide default definition.
22973         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
22974         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
22975         (EXTRA_CONSTRAINT_STR): Likewise.
22976         (REG_CLASS_FROM_CONSTRAINT): Define.
22977         * genoutput.c (check_constraint_len, constraint_len): New functions.
22978         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
22979         constraint / modifier.
22980         (gen_insn): Call check_constraint_len.
22981         * local-alloc.c (block_alloc): Update to use new macros / pass
22982         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
22983         * ra-build.c (handle_asm_insn): Likewise.
22984         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
22985         (constrain_operands, peep2_find_free_register): Likewise.
22986         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
22987         * regmove.c (find_matches): Likewise.
22988         * reload.c (push_secondary_reload, find_reloads): Likewise.
22989         (alternative_allows_memconst): Likewise.
22990         * reload1.c (maybe_fix_stack_asms): Likewise.
22991         (reload_cse_simplify_operands): Likewise.
22992         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
22993         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
22994         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
22995         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
22996         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
22997         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
22998
22999         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
23000
23001 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
23002
23003         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
23004         length.
23005         (*extzv_1_r_h8300hs): Likewise.
23006         (*extzv_1_r_inv_h8300): Likewise.
23007         (*extzv_1_r_inv_h8300hs): Likewise.
23008
23009 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
23010
23011         * config/h8300/h8300.h (PREDICATE_CODES): New.
23012
23013 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
23014
23015         * config/h8300/h8300.md (*addsi3_upper): New.
23016         (*iorsi3_shift): Likewise.
23017         (two splitters): Likewise.
23018         (*addsi3_shift): Likewise.
23019         (two splitters): Likewise.
23020
23021 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
23022
23023         * Makefile.in (optabs.o): Add dependency on basic-block.h.
23024         * basic-block.h (control_flow_insn_p): Fuction was exported.
23025         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
23026         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
23027         notes only when the region is contained in a single basic block.
23028
23029 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
23030
23031         PR inline-asm/8832
23032         * tree.h (expand_asm): New prototype.
23033         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
23034         to do so.
23035         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
23036         down to expand_asm.
23037         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
23038         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
23039         (volatile_refs_p) [ASM_INPUT]: Likewise.
23040         (side_effects_p) [ASM_INPUT]: Likewise.
23041
23042 2003-01-09  Jan Hubicka  <jh@suse.cz>
23043
23044         * i386.md (*mul*): FIx constraints; remove confused comment; fix
23045         athlon_decode attributes
23046         (imul/k8 optimization peep2s): New.
23047
23048         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
23049         * i386.md (type attribute): Add ssecomi.
23050         (unit, memory, prefix attributes): Handle ssecomi.
23051         (cvt?2? patterns): Fix athlon_decode attribute
23052         (comi patterns): Set attribute to ssecomi.
23053
23054         PR target/8343
23055         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
23056
23057 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
23058
23059         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
23060         that match register_operands.
23061         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
23062         register_operand the default case.
23063
23064 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
23065
23066         PR c/8032
23067         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
23068         an empty element, do not advance the pointer to unfilled
23069         fields if there are pending initializers.
23070
23071 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
23072
23073         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
23074         (install-gcc-tooldir, install-cpp, installdirs,
23075         install-common, install-driver, install-info, install-man,
23076         install-headers, install-include-dir, install-headers-tar,
23077         install-headers-cpio, install-headers-cp, install-mkheaders,
23078         install-collect2, uninstall): Prepend $(DESTDIR) to
23079         destination paths in all (un)installation commands.
23080         (install-driver): Rewrite $(LN) commands to support DESTDIR
23081         with "ln" as well as with "ln -s".
23082         (installdirs): Simply use mkinstalldirs.
23083         (install-libgcc, install-multilib): Also pass DESTDIR.
23084         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
23085         installation destination variable ldir.
23086         * config/alpha/t-osf4, config/arm/t-netbsd,
23087         config/ia64/t-hpux, config/mips/t-iris5-6,
23088         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
23089         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
23090         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
23091         in the definition of SHLIB_INSTALL.
23092         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
23093         $(libsubdir) in the installation commands.
23094
23095 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23096
23097         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
23098         non-optimizing compile.
23099         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
23100         compile.
23101
23102 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
23103
23104         * config/i386/i386.c (ix86_attribute_table): Add new attributes
23105         ms_struct and gcc_struct.
23106         (ix86_handle_struct_attribute): New function.
23107         (ix86_ms_bitfield_layout_p): Update to take new attributes
23108         into account.
23109         * doc/extend.texi: Document new attributes.
23110         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
23111
23112 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
23113
23114         PR optimization/8750
23115         * config/i386/i386.c (ix86_expand_prologue): Don't allow
23116         scheduling pass to move insns across __alloca call.
23117
23118 2003-01-08  Dale Johannesen  <dalej@apple.com>
23119
23120         * config/rs6000/rs6000.md:  Replace *store_multiple_string
23121         with *stmsi[3-8].
23122
23123 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
23124
23125         PR target/9210
23126         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
23127         Set SYMBOL_REF_FLAG on local data sym_ref.
23128
23129 2003-01-08  Dale Johannesen  <dalej@apple.com>
23130
23131         * function.c (assign_parms):  Don't set pretend_args_size if
23132           REG_PARM_STACK_SPACE.
23133           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
23134           pretend_args_size.
23135
23136 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
23137
23138         * gcc.hlp: Delete.
23139
23140 2003-01-09  Jan Hubicka  <jh@suse.cz>
23141
23142         * i386.c  (ix86_expand_int_addcc): Fix thinko.
23143
23144 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
23145
23146         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
23147         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
23148         as hook_bool_tree_hwi_hwi_tree_true.
23149         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
23150         (rs6000_emit_epilogue): Same.
23151         (rs6000_output_mi_thunk): Re-implement as RTL.
23152         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
23153         xcoffout_declare_function if any debugging enabled.
23154
23155 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
23156
23157         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
23158         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
23159         * config/mips/mips.h (enum processor_type): Rename
23160         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
23161         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
23162         Add PROCESSOR_M4K.
23163         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
23164         (ISA_MIPS32R2): New define.
23165         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
23166         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
23167         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
23168         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
23169         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
23170         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
23171         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
23172         compiling MIPS16 code.
23173         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
23174         comment.
23175         (ISA_HAS_SEB_SEH): New define.
23176         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
23177         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
23178         processor_type value renaming.  Add support for MIPS32R2.
23179         Clean up comments, and move "sb1" entry with other MIPS64 CPU
23180         entries.
23181         (override_options): Reimplement -mipsN option handling so that
23182         it will work correctly for -mips32r2.  Avoid branch-likely
23183         instructions on MIPS32R2.
23184         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
23185         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
23186         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
23187         (extendhisi2_hw, extendqisi2_hw): New.
23188         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
23189         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
23190         MIPS32R2, and MIPS64.
23191         (LINK_SPEC): Pass -mips32r2 to linker.
23192         * config/mips/t-isa3264: Built -mips32r2 multilibs.
23193         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
23194         for mips32r2 in the -march description.  Alphabetically sort
23195         CPU names in the -march description.  Add long-missed -mips32
23196         and -mips64 to MIPS option summary.
23197
23198         * config.gcc: Update copyright years to include 2003.
23199         * config/mips/mips.c: Likewise.
23200         * config/mips/mips.h: Likewise.
23201         * config/mips/mips.md: Likewise.
23202         * config/mips/netbsd.h: Likewise.
23203         * doc/invoke.texi: Likewise.
23204
23205 2003-01-08  Andreas Schwab  <schwab@suse.de>
23206
23207         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
23208         variable.
23209         * configure: Regenerated.
23210
23211 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
23212
23213         * config/h8300/h8300.c (output_logical_op): Replace byte/word
23214         extraction of det with b0, b1, w0, w2, etc.
23215         (compute_logical_op_length): Likewise.
23216         (compute_logical_op_cc): Likewise.
23217
23218 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
23219
23220         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
23221         HIGH on all variants.
23222
23223 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
23224
23225         * Makefile.in (PARTITION_H): New.
23226         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
23227         * basic-block.h: Include hard-reg-set.h.
23228
23229 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
23230
23231         * arm.h (ENABLE_XF_PATTERNS): Delete.
23232         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
23233         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
23234         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
23235         (cmpxf_trap): Delete.
23236         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
23237
23238 2003-01-08  Jan Hubicka  <jh@suse.cz>
23239
23240         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
23241         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
23242         (add??cc): New expanders.
23243         * i386.c (expand_int_addcc): New function.
23244         * i386-protos.h (expand_int_addcc): Declare.
23245
23246         * alias.c (memory_modified_1): New static function.
23247         (memory_modified): New static varaible.
23248         (memory_modified_in_insn_p): New global function.
23249         * rtl.h (memory_modified_in_insn_p): Declare.
23250         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
23251         references.
23252
23253         * expr.h (emit_conditional_add): Declare.
23254
23255 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
23256
23257         PR other/8947
23258         * doc/invoke.texi (-malign-double): Explain that the option breaks
23259         binary compatibility.
23260
23261 2003-01-08  Andreas Schwab  <schwab@suse.de>
23262
23263         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
23264         should come from the generic *-*-linux* entry.
23265
23266 2003-01-07  Jan Hubicka  <jh@suse.cz>
23267
23268         * cselib.c (cselib_current_insn_in_libcall): New static variable.
23269         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
23270         we are inside libcall.
23271         * cselib.h (elt_loc_list): Add in_libcall.
23272         * gcse.c (do_local_cprop): Do not copy propagate using insns
23273         in libcalls.
23274
23275 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
23276
23277         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
23278         not normally affect to issue rate.
23279
23280 2003-01-07  Jan Hubicka  <jh@suse.cz>
23281
23282         * genopinit.c (optabs): Add addc_optab.
23283         * ifcvt.c (noce_try_store_flag): Rename to ...
23284         (noce_try_addcc): ... this one; handle generic conditional increment.
23285         (noce_process_if_block): Update noce_try_addcc call.
23286         * optabs.c (emit_conditional_add): New.
23287         (init_obtabs): Initialize addc_optab.
23288         * optabs.h (optab_index): Add OTI_addcc.
23289         (addcc_optab): New macro.
23290         * md.texi: Document addMcc
23291
23292         PR target/8322
23293         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
23294         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
23295         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
23296
23297         * reload1.c (delete_output_reload): Avoid repeated attempts
23298         to delete insn.
23299
23300 2003-01-07  Andreas Schwab  <schwab@suse.de>
23301
23302         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
23303         Move --enable-initfini-array check ...
23304         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
23305         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
23306         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
23307         * configure: Rebuild.
23308
23309 2003-01-07  Richard Henderson  <rth@redhat.com>
23310
23311         * alias.c (find_base_value): Only use new_reg_base_value shortcut
23312         if the register is set once.
23313
23314 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
23315
23316         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
23317         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
23318         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
23319
23320 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
23321             Sunil Davasam  <sunil.k.davasam@intel.com>
23322
23323         PR libstdc++/9076
23324         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
23325         DW_CFA_same_value, read next and ignore.
23326
23327 2003-01-07  Richard Henderson  <rth@redhat.com>
23328
23329         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
23330
23331 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
23332
23333         * cfg.c: Include alloc-pool.h
23334         (edge_pool): New pool.
23335         (bb_pool): New pool.
23336         (first_deleted_edge): Remove.
23337         (first_deleted_block): Remove.
23338         (init_flow): Alloc/free the pools.
23339         (free_edge): Use pools.
23340         (alloc_block): Ditto.
23341         (expunge_block): Ditto.
23342         (cached_make_edge): Ditto.
23343
23344         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
23345
23346 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
23347
23348         * et-forest.c: Include alloc-pool.h.
23349         (struct et_forest): Add node_pool and occur_pool.
23350         (et_forest_create): Create the new pools.
23351         (et_forest_delete): Delete them.
23352         (et_forest_add_node): Allocate and free using pools.
23353         (et_forest_add_edge): Ditto.
23354         (et_forest_remove_node): Ditto.
23355         (et_forest_remove_edge): Ditto.
23356
23357         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
23358
23359 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
23360
23361         * config/h8300/h8300.c (output_logical_op): Simplify and
23362         optimize the handling of SImode.
23363         * config/h8300/h8300.c (compute_logical_op_length): Update
23364         accordingly.
23365         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
23366
23367 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
23368
23369         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
23370         big-endian correction to indirect arguments too.
23371
23372 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
23373
23374         Segher Boessenkool  <segher@koffie.nl>
23375
23376         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
23377         (alt_reg_names): Ditto, fix formatting.
23378         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
23379
23380 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
23381
23382         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
23383         (output_logical_op): Constify intval and det.
23384         (compute_logical_length): Likewise.
23385         (compute_logical_cc): Likewise.
23386         (output_a_shift): Constify mask.
23387         (h8300_encode_label): Constify len.
23388
23389 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
23390
23391         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
23392         (h8300_expand_epilogue): Likewise.
23393
23394 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
23395
23396         Segher Boessenkool  <segher@koffie.nl>
23397
23398         * config/rs6000/altivec.md: Remove spaces from assembler
23399         instruction argument lists.
23400
23401 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
23402
23403         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
23404         c4x_assembler_function_p.
23405         (c4x_null_epilogue_p): Complement return value, all uses updated.
23406         (c4x_insert_attributes): Add naked.
23407         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
23408         * doc/extend.texi: Update C4x function attributes.
23409
23410 2003-01-06  Richard Henderson  <rth@redhat.com>
23411
23412         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
23413         properly when changing "local-ness".
23414         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
23415
23416 2003-01-06  Dale Johannesen  <dalej@apple.com>
23417
23418         * config/darwin-protos.h:  Add prototypes for new section functions.
23419
23420 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
23421
23422         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
23423         to EABI.
23424
23425 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
23426
23427         * hwint.h: If the current compiler has no 64-bit type at all,
23428         make HOST_WIDEST_INT 32 bits.
23429
23430 2003-01-06  Eric Christopher  <echristo@redhat.com>
23431
23432         * config/mips/mips.md (movdf_internal2): Fix constraints.
23433
23434 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
23435
23436         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
23437
23438 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
23439
23440         * config/mips/mips.md (leadi): Use dla rather than la.
23441
23442 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
23443
23444         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
23445         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
23446
23447 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
23448
23449         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
23450         redefinition.
23451
23452 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
23453
23454         * config/h8300/h8300.md (*extzv_8_23): New.
23455
23456 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23457
23458         * pa64-hpux.h (JCR_SECTION_NAME): Define.
23459         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
23460         USE_EH_FRAME_REGISTRY when defining.
23461
23462 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
23463
23464         * config/h8300/h8300.c (output_a_shift): Do not output a
23465         variable shift.
23466         * config/h8300/h8300.md (two splitters): New.
23467
23468 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
23469
23470         * config/mips/mips.md: Disable the movstrsi define_split.
23471
23472 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23473
23474         * alloc-pool.c: Don't include "libiberty.h".
23475         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
23476         * convert.c (convert_to_real): Hide unused variable.
23477
23478 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23479
23480         * Makefile.in (gtyp-gen.h): Const-ify.
23481         * gcov-dump.c (tag_table): Likewise.
23482
23483 2003-01-04  Bruce Korb  <bkorb@gnu.org>
23484
23485         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
23486         of *both* the file name and the fix name.
23487
23488 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
23489
23490         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
23491         collect2.
23492         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
23493         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
23494         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
23495         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
23496         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
23497         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
23498         elfos.h.
23499         (EH_FRAME_IN_DATA_SECTION): Delete define.
23500         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
23501         (STARTFILE_SPEC): Use crtbegin.o.
23502         (ENDFILE_SPEC): Use crtend.o.
23503         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
23504         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
23505         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
23506         DTOR_LIST_BEGIN): Define.
23507         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
23508         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
23509         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
23510
23511 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
23512
23513         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
23514         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
23515         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
23516         Cleanup handling of replacement text.
23517         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
23518
23519 2003-01-04  Bruce Korb  <bkorb@gnu.org>
23520
23521         * fixinc/tests/base/math.h: removed obsolete results
23522         * fixinc/tests/base/stdlib.h: ditto
23523         * fixinc/tests/base/sys/param.h: ditto
23524         * fixinc/tests/base/sys/stat.h: ditto
23525         * fixinc/tests/base/time.h: ditto
23526         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
23527         * fixinc/tests/base/sys/byteorder.h: ditto
23528         * fixinc/inclhack.def: Remove superfluous backslashes
23529
23530 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
23531
23532         * config/h8300/h8300-protos.h: Add prototypes for
23533         the new functions defined below.
23534         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
23535         define.
23536         (dosize): Emit RTL instead of assembly code.
23537         (push): Likewise.
23538         (pop): Likewise.
23539         (h8300_output_function_prologue): Remove.
23540         (h8300_expand_prologue): New.
23541         (h8300_expand_epilogue): New.
23542         (h8300_output_function_epilogue): Do only the reset of
23543         pragma_saveall.
23544         * config/h8300/h8300.md (push_h8300): New.
23545         (push_h8300hs): Likewise.
23546         (pop_h8300): Likewise.
23547         (pop_h8300hs): Likewise.
23548         (*stm_h8300s_2): Change the name to stm_h8300s_2.
23549         (*stm_h8300s_3): Change the name to stm_h8300s_3.
23550         (*stm_h8300s_4): Change the name to stm_h8300s_4.
23551         (*ldm_h8300s_2): New.
23552         (*ldm_h8300s_3): Likewise.
23553         (*ldm_h8300s_4): Likewise.
23554         (return): Likewise.
23555         (*return_1): Likewise.
23556         (prologue): Likewise.
23557         (epilogue): Likewise.
23558         (monitor_prologue): Likewise.
23559
23560 2003-01-03  Dale Johannesen  <dalej@apple.com>
23561
23562         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
23563           machopic_picsymbol_stub1.
23564           (EXTRA_SECTION_FUNCTIONS):  Ditto.
23565         * rs6000/rs6000.c:  Update copyright.
23566           (machopic_output_stub):  Use them.  Remove an insn from stub code.
23567
23568 2003-01-02  Jason Merrill  <jason@redhat.com>
23569
23570         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
23571
23572         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
23573         static/external decls.
23574
23575         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
23576         outermost scope.
23577         * c-decl.c (c_make_fname_decl): Push the decls there, too.
23578
23579 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
23580
23581         * config/h8300/h8300-protos.h: Add a prototype for
23582         h8300_current_function_interrupt_function_p.
23583         * config/h8300/h8300.c (interrupt_handler): Remove.
23584         (os_task): Likewise.
23585         (monitor): Likewise.
23586         (pragma_interrupt): New.
23587         (WORD_REG_USED): Use
23588         h8300_current_function_interrupt_function_p.
23589         (dosize): Likewise.
23590         (h8300_output_function_prologue): Likewise.
23591         Do not set interrupt_handler, os_task, monitor.
23592         (h8300_output_function_prologue): Use
23593         h8300_current_function_interrupt_function_p.
23594         Do not set interrupt_handler, os_task, monitor.
23595         (h8300_current_function_interrupt_function_p): New.
23596         (h8300_pr_interrupt): Set pragma_interrupt.
23597         (h8300_insert_attributes): Reset pragma_interrupt.
23598
23599 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
23600
23601         * doc/install.texi (Configuration): Fix markup for reference to
23602         gcc/config.gcc.
23603
23604 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
23605
23606         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
23607         (*iorhi3_two_qi): Likewise.
23608         (*iorsi3_zexthi): Likewise.
23609         (*xorhi3_zextqi): Likewise.
23610         (*xorsi3_zexthi): Likewise.
23611         (*xorsi3_zextqi): Likewise.
23612
23613 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
23614
23615         * config/h8300/h8300.c (stack_pointer_operand): New.
23616         (const_int_gt_2_operand): Likewise.
23617         (const_int_ge_8_operand): Likewise.
23618         * config/h8300/h8300.md (a splitter): Likewise.
23619         (a peephole2): Likewise.
23620         * config/h8300/h8300-protos.h: Add prototypes for the new
23621         functions above.
23622
23623 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
23624
23625         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
23626         objc/objc-act.h: Fix copyright years.
23627
23628 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
23629
23630         * doc/passes.texi: Fix documentation for -fssa-ccp
23631
23632 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
23633
23634         * gccbug.in: Update for new categories.
23635
23636 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23637
23638         * config/h8300/h8300.md: Reorder some patterns.
23639
23640 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23641
23642         * config/h8300/h8300.c (output_logical_op): Fix a warning.
23643
23644 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23645
23646         * config/darwin-protos.h, config/c4x/c4x-protos.h,
23647         config/cris/cris-protos.h, config/i370/i370-protos.h,
23648         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
23649         config/v850/v850-protos.h: Use struct, and don't conditionally
23650         compile on GCC_C_PRAGMA_H.
23651
23652 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23653
23654         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
23655         * config/h8300/h8300-protos.h: Likewise.
23656         * config/sh/sh-protos.h: Likewise.
23657
23658 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23659
23660         * config/arm/arm-protos.h: Use struct cpp_reader instead of
23661         cpp_reader.
23662         * config/h8300/h8300-protos.h: Likewise.
23663         * config/sh/sh-protos.h: Likewise.
23664
23665 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23666
23667         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
23668         arm_pr_long_calls_off): Use struct.
23669         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
23670         : Similarly.
23671         Don't include cpplib.h.
23672         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
23673         sh_pr_nosave_low_regs): Similarly.
23674
23675 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23676
23677         * config/h8300/h8300.c: Include cpplib.h.
23678
23679 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
23680
23681         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
23682           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
23683           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
23684           "GCC" in the copyright header.
23685
23686 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23687
23688         * c-pragma.c (c_register_pragma): New.
23689         (init_pragma): Use it.
23690         * c-pragma.h (cpp_register_pragma): Don't declare.
23691         (c_register_pragma): New.
23692         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
23693         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
23694         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
23695         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
23696         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
23697         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
23698         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
23699         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
23700         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
23701         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
23702         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
23703         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
23704
23705 See ChangeLog.8 for earlier changes.