* config/alpha/alpha.c: Fix comment typos.
[official-gcc.git] / gcc / ChangeLog
blob956f9ca4e3d5216c4f454d43702b450f72ae02e3
1 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
3         * config/alpha/alpha.c: Fix comment typos.
4         * config/alpha/alpha.md: Likewise.
5         * config/arm/arm.c: Likewise.
6         * config/arm/arm.md: Likewise.
7         * config/arm/lib1funcs.asm: Likewise.
8         * config/avr/avr.md: Likewise.
9         * config/arm/README-interworking: Fix typos.
11 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
13         * c-format.c: Fix comment formatting.
14         * c-typeck.c: Likewise.
15         * coverage.c: Likewise.
16         * cppcharset.c: Likewise.
17         * cpplib.c: Likewise.
18         * dbxout.c: Likewise.
19         * gcov-io.h: Likewise.
20         * toplev.c: Likewise.
22 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
24         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this 
25         fix.
27 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
29         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
30         uses three-argument AC_DEFINE so no acconfig.h entries are
31         needed.
32         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
33         which contains the GAS version number as a scaled integer.
34         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
35         ability to check for ELF assembler.
36         (gcc_GAS_CHECK_FEATURE): New macro.
37         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
38         assembler feature checks using gcc_GAS_CHECK_FEATURE.
39         Use three-argument AC_DEFINE everywhere.
40         * acconfig.h: Deleted.
41         * config.in, configure: Regenerate.
43 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
45         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
46         (on OpenBSD).
47         * fixinc/fixincl.x: Regenerate.
49         * fixinc/inclhack.def (gnu_types): Improve comment.
51 2003-07-12  Andreas Jaeger  <aj@suse.de>
53         * fp-test.c (main): Use ISO C90 prototype.
55         * version.c: Remove unneded include of ansidecl.h.
57         * cgraph.h: Convert prototypes to ISO C90.
58         * cgraph.c: Likewise.
59         * fix-header.c: Likewise.
60         * ra.h: Likewise.
61         * protoize.c: Likewise.
63 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
65         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
66         warning.
68 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
69                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
71         * cgraph.c (cgraph_max_uid): New global variable.
72         (cgraph_node): Set uid field.
73         (create_edge): Keep inline flags consistent.
74         (dump_cgraph): Dump more info.
75         * cgraph.h (struct cgraph_local_info): Remove inline_many and
76         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
77         (struct cgraph_global_info): Add insns, calls, cloned_times,
78         will_be_output.
79         (struct cgraph_node): Add uid.
80         (struct cgraph_edge): Add inline_call.
81         (cgraph_max_uid, cgraph_inline_p): Declare.
82         * cgraph.c: Include params.h and fibheap.h
83         (cgraph_mark_functions_to_inline_once): Kill.
84         (INSNS_PER_CALL): New constant.
85         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
86         static variables.
87         (cgraph_finalize_function): Do not analyze inlining.
88         (cgraph_finalize_compilation_unit): Set inlining attributes.
89         (cgraph_mark_functions_to_output): More consistency checks.
90         (cgraph_optimize_function): Set current_function_decl to NULL.
91         (cgraph_expand_function): Use new inline flags.
92         (cgraph_postorder): Expand from cgraph_expand_functions.
93         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
94         (cgraph_inlined_into, cgraph_inlined_callees,
95         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
96         cgraph_mark_inline, cgraph_check_inline_limits,
97         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
98         cgraph_decide_inlining, cgraph_inline_p): New functions.
99         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
100         PARAM_INLINE_UNIT_GROWTH): New parameters.
101         * tree-inline.c (struct inline_data): New field current_decl.
102         (expand_call_inline): Avoid forward declarations; use
103         inlinable_function_p.
104         (optimize_inline_calls): Set id.current_decl.
106 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
108         * configure.in: Remove wrongly added definition of
109         local_prefix.
110         * configure: Regenerate.
112 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
114         * rtl.def (NOTE): Do not use padding.
116 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
118         * doc/install.tex: Update required binutils for i?86-*-linux*
120 2003-07-11  Richard Henderson  <rth@redhat.com>
122         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
124 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
126         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
127         TRANSLATION_UNIT_DECL as top_level.
129 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
131         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
132         then fall back to cmpstrM.
133         * builtins.c (expand_builtin_memcmp): Likewise.
134         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
135         (s390_expand_cmpmem): ... this.
136         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
137         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
138         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
139         to s390_expand_cmpmem.
140         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
141         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
142         to cmpmem*.
143         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
144         cmpstr* patterns.
145         * doc/md.texi (cmpstrM): Describe as String compare insn, not
146         Block compare insn.
147         (cmpmemM): Add.
149 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
151         * config/i386/freebsd.h (SET_ASM_OP): Remove.
152         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
153         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
154          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
156 2003-07-11  Richard Henderson  <rth@redhat.com>
158         * function.c (assign_parms): Don't recombine complex args if
159         fnargs is unchanged from orig_fnargs.
160         (split_complex_args): Return args without complex before copying.
161         Re-layout the modified parameters.
163 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
165         * regclass.c (choose_hard_reg_mode): Add third argument.
166         Changed all callers.
167         * rtl.h (choose_hard_reg_mode): Update declaration.
168         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
169         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
171 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
173         * c-decl.c (finish_decl): Handle 'used' here...
174         * cgraphunit.c (cgraph_finalize_function): ... and here ...
175         * c-common.c: (handle_used_attribute): ... not here.
177         * configure.in (onstep): Support --enable-intermodule.
178         * Makefile.in (OBJS-common): New.
179         (OBJS-md): New.
180         (OBJS-archive): New.
181         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
182         (OBJS-onestep): New.
183         (libbackend.a): Support @onestep@.
184         (libbackend.o): New.
185         * configure: Regenerate.
187         * c-common.h (c_reset_state): New prototype.
188         (c_parse_file): New prototype.
189         (finish_file): Move prototype from c-tree.h.
190         * c-decl.c: Include <hashtab.h>.
191         (builtin_decls): New.
192         (current_file_decl): New.
193         (duplicate_decls): Add extra parameter. Change all callers.  Don't
194         output duplicate common symbols.
195         (link_hash_hash): New.
196         (link_hash_eq): New.
197         (poplevel): Handle popping of the top level.
198         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
199         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
200         (pushdecl_top_level): Likewise.
201         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
202         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
203         (finish_decl): Handle TRANSLATION_UNIT_DECL.
204         (merge_translation_unit_decls): New.
205         (c_write_global_declarations): New.
206         (c_reset_state): New.
207         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
208         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
209         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
210         TRANSLATION_UNIT_DECL.
211         (c_objc_common_finish_file): Call merge_translation_unit_decls.
212         * c-opts.c (in_fnames): Rename from in_fname.
213         (c_common_decode_option): Handle multiple input filenames.
214         (c_common_post_options): Likewise.
215         (c_common_parse_file): Likewise; also, call c_parse_file rather than
216         yyparse.
217         * c-parse.in: Move cleanup code to c_parse_file.
218         (free_parser_stacks): Move contents to c_parse_file.
219         (c_parse_file): New.
220         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
221         for integer types.
222         (C_DECL_FILE_SCOPE): New.
223         (finish_file): Move prototype to c-common.h.
224         (merge_translation_unit_decls): New prototype.
225         (comptypes): Add extra parameter to prototype.
226         (c_write_global_declarations): New prototype.
227         * c-typeck.c (tagged_types_tu_compatible_p): New.
228         (function_types_compatible_p): Add extra parameter, change all callers.
229         (type_lists_compatible_p): Likewise.
230         (comptypes): Likewise.
231         (struct tagged_tu_seen): New.
232         (tagged_tu_seen_base): New.
233         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
234         (c_mark_addressable): Remove #if 0 code.
235         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
236         comment explaining why it shouldn't have to.
237         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
238         options.
239         * cppinit.c (cpp_read_next_file): New.
240         (cpp_read_main_file): Use it.
241         * cpplib.c (undefine_macros): New.
242         (cpp_undef_all): New.
243         * cpplib.h (cpp_read_next_file): Prototype.
244         (cpp_undef_all): Prototype.
245         * langhooks-def.h (write_global_declarations): Remove prototype.
246         * toplev.h (write_global_declarations): Add prototype.
247         * tree.c (decl_type_context): Use switch statement, handle
248         TRANSLATION_UNIT_DECL.
249         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
250         (TRANSLATION_UNIT_DECL): New kind of tree.
251         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
252         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
253         * doc/invoke.texi: Make attempt to document new functionality.
255         2003-05-19  Per Bothner <bothner@apple.com>
257         * gcc.c (combine_inputs): New.
258         (process_command): Set combine_inputs.
259         (do_spec_1): Handle combine_inputs.
260         (main): Likewise.
262 2003-07-10  James E Wilson  <wilson@tuliptree.org>
264         PR optimization/9745
265         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
266         loop_insn_emit_before.
267         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
269 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
271         * cppcharset.c: Fix comment.
272         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
273         (EILSEQ): #define to EINVAL if not already defined.
274         (convert_using_iconv): #if out when !HAVE_ICONV.
275         (init_iconv_desc): Handle !HAVE_ICONV here...
276         (cpp_init_iconv): ...not here.
278 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
280         * common.opt: More --help messages.
281         * opts.c (print_help): Use puts().
282         * toplev.c (f_options): Remove help text.
283         (display_help): Don't dump f_options.
285 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
287         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
288         Move i?86-*-interix* to the don't-fix list.
289         * fixinc/fixinc.interix: Delete with extreme prejudice.
291 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
293         PR bootstrap/10758
294         * doc/install.texi: Document requirements for ia64-*-hpux* target.
296 2003-07-10  Roger Sayle  <roger@eyesopen.com>
298         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
300 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
302         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
303         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
304         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
305         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
306         convert_no_conversion, convert_using_iconv): New functions.
307         (APPLY_CONVERSION): New macro.
308         (struct conversion, conversion_tab): New data structure.
309         (init_iconv_desc): Check conversion_tab for a custom conversion
310         primitive before trying to use iconv.
311         (convert_cset): Deleted.
312         (cpp_init_iconv): Use UTF- terminology, not UCS-.
313         (_cpp_destroy_iconv): Update to match.
314         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
315         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
316         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
317         (_cpp_interpret_string_notranslate): New function, moved here
318         from cpplib.c.
320         * cpphash.h (convert_f, struct cset_converter): New types.
321         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
322         are now struct cset_converter, not bare iconv_t.
323         Update prototypes.
324         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
325         all callers changed.
327 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
329         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
330         to opts.sh command line.
331         * opts.sh: Write to temporary files with a move-if-change at the end.
333 2003-06-30  Denis Chertykov  <denisc@overta.ru>
334             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
336         * combine.c (gen_binary): Handle the CLOBBER rtx and
337         don't build a binary operation with it.
339 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
341         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
342         store_killed_after, store_killed_before): Keep track of the correct
343         dependency function to use.
345 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
346         * toplev.c (do_compile): Don't try to open dump files before
347         lang_dependent_init initializes dump_base_name.
349 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
351         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
352         Use ARRAY_SIZE.
353         * config/frv/frv.c (frv_expand_builtin): Likewise.
354         * config/sh/sh.c (sh_media_init_builtins): Likewise.
356 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
358         PR c++/10032
359         * doc/invoke.texi (C++ Dialect Options): Change documentation of
360         -fpermissive.
362 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
364         * tm.texi (RETURN_ADDR_OFFSET): Document.
366 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
368         * gcov-io.h: Update documentation.
369         (GCOV_UNSIGNED2STRING): New.
370         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
371         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
372         GCOV_TAG_SUMMARY_LENGTH): Adjust.
373         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
374         GCOV_TAG_COUNTER_NUM): New.
375         (GCOV_BLOCK_SIZE): Number of words.
376         (gcov_var): Adjust buffer type.
377         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
378         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
379         count, not byte count.
380         (gcov_open): Adjust overread init.
381         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
382         gcov_write_string, gcov_write_tag, gcov_write_length,
383         gcov_write_tag_length): Adjust.
384         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
385         (gcov_sync, gcov_seek): Adjust.
386         * gcov-dump.c (print_usage): Show gcc version only.
387         (dump_file): Use GCOV_UNSIGNED2STRING.
388         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
389         * gcov.c (print_version): Show gcc version only.
390         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
391         GCOV_TAG_*_NUM macros.
392         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
393         GCOV_TAG_COUNTER_LENGTH.
394         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
395         Use GCOV_TAG_COUNTER_NUM.
396         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
397         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
399 2003-07-10  Andreas Schwab  <schwab@suse.de>
401         * gcov-dump.c (dump_file): Fix missing address operator.
403 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
405         PR c/11449
406         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
407         of HOST_WIDE_INT.
408         (fold_single_bit_test): If sign_bit_p() fails, assume that the
409         bit being tested is not a sign bit.
411 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
413         * config/h8300/h8300.md (a peephole2): New.
415 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
417         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
418         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
419         from ld-linux.so.2 to ld.so.1.
420         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
421         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
422         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
423         nor -Wl,-rpath-link.
424         (LIB_SPEC): Add -rpath-link if !static.
425         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
426         * config/mn10300/mn10300.c (mn10300_protect_label): New
427         variable.
428         * config/mn10300/linux.h (PRINT_OPERAND,
429         PRINT_OPERAND_ADDRESS): Set it during their execution.
430         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
431         mn10300_protect_label is set.
432         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
433         -Wl,-rpath-link.
434         (LIB_SPEC, STARTFILE_SPEC): Define.
435         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
436         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
437         FLOAT_BIT_ORDER_MISMATCH.
438         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
439         * config.gcc (am33_2.0-*-linux*): Added.
440         * config/mn10300/linux.h: New.
441         * config/mn10300/t-linux: New.
443 2003-07-10  Andreas Jaeger  <aj@suse.de>
445         * fold-const.c: Properly wrap prototypes.
447 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
449         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
450         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
451         Moved from...
452         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
453         * config/mn10300/mn10300.h: GTY-declare it.
454         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
455         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
456         prototype.  Use incoming RTL argument.
457         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
458         * config/mn10300/mn10300.md (int_label): Move C statements...
459         (GOTaddr2picreg): ... here.
460         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
461         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
462         * config/mn10300/mn10300.c (mn10300_encode_section_info):
463         ... here.  New function.
464         (TARGET_ENCODE_SECTION_INFO): Define to it.
465         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
466         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
467         pattern name.
468         (mn10300_loadPC): Define as insn splittable after reload.
469         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
470         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
471         be defined in .rodata even in PIC, now that the assembler
472         supports that.
473         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
474         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
475         symbol take an underscore prefix.
476         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
477         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
478         legitimize_pic_address): Declare.
479         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
480         the PIC register as fixed.
481         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
482         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
483         PIC.
484         (LEGITIMATE_PIC_OPERAND_P): Define.
485         (PIC_OFFSET_TABLE_REGNUM): Define.
486         (GOT_SYMBOL_NAME): Define.
487         (SYMBOLIC_CONST_P): Define.
488         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
489         symbols.
490         (MN10300_GLOBAL_P): Test it.
491         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
492         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
493         * config/mn10300/mn10300.c (print_operand): Handle unspec.
494         (expand_prologue): Set PIC register.
495         (call_address_operand): Don't match SYMBOL_REFs in PIC.
496         (legitimize_address): Call legitimize_pic_address.
497         (legitimize_pic_address): New fn.
498         (legitimate_pic_operand_p): New fn.
499         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
500         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
501         UNSPEC_PLT): New constants.
502         (pop_pic_reg): New insn.
503         (movsi): Adjust non-PIC addresses.
504         (builtin_setjmp_receiver): Restore the PIC register.
505         (casesi): New insn.
506         (call): Adjust non-PIC addresses.
507         (int_label, GOTaddr2picreg): New expands.
508         (am33_loadPC): New insn.
509         (mn10300_loadPC): New expand.
510         (call_next_insn): New insn.
511         (add_GOT_to_pic_reg): New expand.
512         (symGOT2reg, symGOT2reg_i): New expands.
513         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
514         (sym2PIC, sym2PLT): New expands.
516 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
518         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
519         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
520         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
521         to flag_unsafe_math_optimizations.
522         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
523         * config/mn10300/mn10300.c (expand_prologue): Mark
524         FP-register-saving insns as frame-related.
525         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
526         * config/mn10300/mn10300.c
527         (mn10300_get_live_callee_saved_regs): Don't search past
528         LAST_EXTENDED_REGNUM.
529         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
530         * config/mn10300/mn10300.md: Remove excessive line breaks from
531         `@' output patterns that were accounted as additional
532         alternatives.
533         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
534         Re-introduce changes accidentally removed in Richard Sandiford's
535         2000-12-05's patch.
536         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
537         Re-instate am33-2 lost in merge from net GCC.
538         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
539         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
540         floating-point registers.
541         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
542         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
543         pessimizations that had gone in on 2000-05-08.
544         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
545         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
546         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
547         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
548         operand 0.
549         * (movhi): Likewise.
550         * (movsi): Likewise.
551         * (movsf): Likewise.
552         * (movdi): Likewise.
553         * (movdf): Likewise.
554         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
555         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
556         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
557         (expand_prologue, expand_epilogue): Save and restore FP regs.
558         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
559         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
560         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
561         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
562         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
563         Do not clobber cc0.
564         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
565         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
566         Discourage the two-argument, longer opcodes.
567         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
568         ones.
569         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
570         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
571         * config/mn10300/mn10300.md (cmpsf): New pattern.
572         (branch): Test mdep.fpCC and output fbCC.
573         * config/mn10300/mn10300.c (print_operand): Output conditions.
574         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
575         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
576         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
577         mulsf3, divsf3): Use the `F' constraint for FP values.
578         * config/mn10300/mn10300.c (const_1f_operand): New function.
579         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
580         * config/mn10300/mn10300.md (sqrtsf2): New expand.
581         (rsqrtsf2): New insn.
582         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
583         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
584         previous check-in.
585         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
586         * config/mn10300/mn10300.md (abssf2, negdf2): On
587         TARGET_AM33_2, expand to...
588         (abssf2_am33_2, negdf2_am33_2): New insns.
589         (addsf3, subsf3, mulsf3, divsf3): Likewise.
590         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
591         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
592         movdi, movdf): Added FP regs.
593         * invoke.texi (-mam33-2, -mno-am33-2): Document.
594         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
595         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
596         New macros.
597         (REGNO_AM33_2_FP_P): Renamed to...
598         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
599         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
600         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
601         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
602         regs from GENERAL_REGS.
603         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
604         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
605         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
606         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
607         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
608         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
609         as FP_REGS.
610         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
611         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
612         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
613         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
614         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
615         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
616         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
617         AM33/2.0 floating-point registers.
618         (CONDITIONAL_REGISTER_USAGE): Adjust.
619         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
620         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
621         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
622         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
623         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
624         (MULTILIB_DIRNAMES): Likewise.
625         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
626         `__AM33_2__' when `-mam33-2' is given.
627         (TARGET_AM33_2): Define.
628         (TARGET_SWITCHES): Adjust.
629         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
630         when appropriate.
632 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
634         * doc/install.texi: Add missing @.
636 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
638         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
640 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
642         PR/11144
643         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
645 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
647         PR bootstrap/11043
648         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
649         "x-crtfini.o" with "crtinit.o", "crtfini.o".
651         * fixinc/inclhack.def (limits_ifndefs): Add select test.
652         * fixinc/fixincl.x: Rebuild.
654         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
655         * fixinc/fixincl.x: Rebuild.
657 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
659         * doc/install.texi (Configuration): Document the valgrind option
660         to --enable-checking.
662 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
664         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
666 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
668         * c-lex.c (cb_ident): Cast cstr.text to const char *.
670 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
672         * gcov-io.h: Update documentation.
673         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
674         GCOV_NOTE_MAGIC.
675         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
676         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
677         (struct gcov_var): Change buffer's type. Add endian flag.
678         (gcov_open): Remove mode in libgcov.
679         (gcov_magic): Prototype.
680         * gcov-io.c (from_file): New.
681         (gcov_open): Clear endian flag.
682         (gcov_magic): New.
683         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
684         pointers.
685         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
686         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
687         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
688         * gcov-iov.c (main): Correct cast.
689         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
690         conversion.
691         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
692         (coverage_init): Use GCOV_NOTE_SUFFIX.
693         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
694         Rename to gcov_version, and return flag.
695         (gcov_exit): Use gcov_version.
696         (__gcov_init): Use gcov_version.
697         * Makefile.in (coverageexts): Update.
698         * gcov.c (print_version): Remove endianness conversion.
699         (create_file_names): Use GCOV_NOTE_SUFFIX.
700         (read_graph_file): Use gcov_magic.
701         (read_count_file): Likewise.
702         * gcov-dump.c (dump_file): Remove endianness conversion, use
703         gcov_magic.
705 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
707         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
708         coverage is on.
709         * configure: Regenerated.
710         * Makefile.in (ALL_CFLAGS): Correct its comment.
712 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
714         * fold-const.c (make_range): Do not access operand 1 for a
715         zero-operand operator.
717 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
719         * toplev.c (warn_dummy, W_options): Die.
720         (display_help): Don't print W_options.
721         * common.opt: Add W_options help from toplev.c.
723 2003-07-09  Andreas Jaeger  <aj@suse.de>
725         * opts.c (wrap_help): Only pass int arguments as arguments to
726         printf's '*' modifier.  Change argument of function.
728 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
730         * doc/invoke.texi: Fix misspelling of "@item".
732 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
734         * config/i386/i386.md: Remove an old comment about
735         NOTICE_UPDATE_CC.
737 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
739         * cgraph.c (cgraph_node_name): New function.
740         (dump_cgraph): Use it.
741         * cgraph.h (cgraph_dump_file): Declare.
742         (cgraph_node_name): Declare.
743         * cgraphunit.c: Include timevar.h
744         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
745         (cgraph_optimize_function): Use TV_INTEGRATION.
746         (cgraph_mark_local_functions): reorganize dumps.
747         (cgraph_mark_functions_to_inline_once): Likewise.
748         (cgraph_optimize): Likewise; use timevar.
749         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
750         * toplev.c (dump_file_index): Add DFI_cgraph.
751         (dump_file_info): Likewise.
752         (cgraph_dump_file): New global variable.
753         (do_compile): Open and close cgraph dump.
754         * invoke.texi (-d): Document new flag; renumber.
756 2003-07-08  Roger Sayle  <roger@eyesopen.com>
758         PR c/11370
759         * calls.c (emit_call_1): Don't bother popping the arguments off of
760         the stack after a noreturn function call;  The adjustment is dead.
761         (expand_call): Likewise.
763 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
765         * expr.c (MOVE_MAX_PIECES): Move from here...
766         * defaults.h (MOVE_MAX_PIECES): ... to here.
768 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
770         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
772 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
774         * genattr.c (internal_dfa_insn_code): Don't prototype.
775         * genattrtab.c (attr_desc): Add `static_p' field.
776         (expand_units): Make blockage range and ready cost functions
777         static.
778         (write_attr_get): Don't add extern prototypes in C file.  Mark
779         static functions as appropriate.
780         (find_attr, make_internal_attr): Initialize static_p.
781         * genattrtab.h (ATTR_STATIC): New macro.
782         * genautomata.c (output_internal_reset_func): Mark output function
783         as inline.
784         (make_internal_dfa_insn_code_attr): Mark output function as static.
786 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
788         * genattrtab.h: Add new macros for attr `special' flags.
789         * genattrtab.c (attr_desc): Reorder/resize fields better.
790         Use attr `special' macros in all calls to make_internal_attr.
791         * genautomata.c: Likewise.
793 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
795         * c-common.c (c_estimate_num_insns_1): New static function.
796         (c_estimate_num_insns): New global function.
797         * c-common.h (DECL_NUM_STMTS): Rename to...
798         (DECL_ESTIMATED_INSNS): ... this.
799         (c_estimate_num_insns): Declare.
800         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
801         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
802         * c-semantics.c (add_stmt): Do not account statements.
803         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
804         New.
805         * langhooks.h (lang_hooks_for_tree_inlining): Add
806         estimate_num_insns
807         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
808         to 100.
809         (max-inline-insns): set to 300.
810         (min-inline-insns): set to 10.
811         * tree-inline.c (struct inline_data): Rename inlined_stmts to
812         inlined-insns.
813         (INSNS_PER_STMT): Kill.
814         (inlinable_function_p): Compute and store body size.
815         (expand_call_inline): Likewise.
816         (optimize_inline_calls): Likewise.
818 2003-07-08  James E Wilson  <wilson@tuliptree.org>
820         PR target/10021
821         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
822         loop over new variable t2 instead of t.
824 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
826         PR bootstrap/11455
827         * config/i386/winnt.c: Replace use of error(), warning() with
828         error_with_decl(), warning_with_decl(),  throughout.
830 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
832         * opts.c (wrap_help): Use unsigned int, not size_t.
834 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
836         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
837         as .file/.loc directives are incompatible with linker relaxation.
839 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
841         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
842         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
843         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
844         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
845         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
846         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
847         Escape { and } characters which are not part of range expressions.
848         * fixinc/fixincl.x: Regenerate.
849         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
851 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
853         PR c/1687
854         * tree-inline.c (find_alloca_call): Use
855         walk_tree_without_duplicates, instead of walk_tree.
856         (find_builtin_longjmp_call): Likewise.
857         * c-objc-common.c (c_cannot_inline_fn): Likewise.
858         * c-semantics.c (find_reachable_label): Likewise.
860 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
862         PR c/11420
863         * config/i386/i386.c (ix86_check_movabs): New function.
864         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
865         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
866         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
868 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
870         * Makefile.in (install-po): Cope with empty CATALOGS.
872 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
874         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
875         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
876         (SECTION_FUNCTION_TEMPLATE): Delete.
877         * config/mips/elf.h: As for elf64.h.
878         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
879         * config/mips/linux.h: As for elf.h
880         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
881         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
882         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
883         of in_sdata from current_section_name and current_section_flags.
884         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
885         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
886         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
887         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
888         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
889         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
890         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
891         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
892         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
893         (override_options): Remove setting of MASK_GPOPT.
894         (mips_output_external): Use mips_in_small_data_p to check whether a
895         symbol needs an .extern directive.  Don't emit such directives for
896         TARGET_EXPLICIT_RELOCS.
897         (mips_declare_object): Update accordingly.
898         (mips_select_rtx_section): Call named_section rather than
899         SMALL_DATA_SECTION.
900         (mips_select_section): Use default_elf_section_section for everything
901         except .text string constants.
902         (mips_in_small_data_p): New function.
903         (mips_encode_section_info): Remove small data handling.
904         (mips_unique_section): Delete.
905         (iris6_section_type_flags): New function.
906         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
908 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
910         PR Target/11453
911         * pa.md: Disparage all mtsar constraints.
912         (extzv, extv, insv): Don't fail on length of {32|64}.
914 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
916         * system.h: Poison MAP_CHARACTER.
917         * config/i370/i370-protos.h (mvs_map_char): Delete.
918         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
919         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
920         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
922 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
924         * toplev.c (randomize): Correct call to time().
926 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
928         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
929         REG_EQUIV notes as well.
931 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
933         * doc/md.texi: Fix the description of addmodecc.
935 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
937         * Makefile.in (top_builddir): Set to "..", not ".".
938         (INTLLIBS, INTLDEPS): Delete.
939         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
940         (LIBDEPS): Add $(LIBICONV_DEP).
941         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
942         (INCLUDES): Replace -I../intl with @INCINTL@.
943         ($(top_builddir)/intl/libintl.a): Delete rule.
944         (stage2-start, stage3-start, stage4-start, stageprofile-start,
945         stagefeedback-start): Use $$ for variable to be evaluated by
946         shell, not make.
947         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
948         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
949         * aclocal.m4: sinclude ../config/progtest.m4.  Add
950         contents of lcmessage.m4 from gettext distro.
951         * configure.in: Check for wchar.h and setlocale.  Set
952         LIBICONV_DEP to the empty string and substitute it.
953         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
954         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
955         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
956         in $LIBINTL, to avoid linking it twice.
957         * configure, config.in: Regenerate.
959 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
961         * fixinc/mkfixinc.sh: Remove winnt support.
962         * fixinc/fixinc.winnt: Delete with extreme prejudice.
964 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
966         * Makefile.in: Update.
967         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
968         * c.opt: Update documentation.
969         * common.opt: Add some help text.
970         * opts.c: Include intl.h.
971         (wrap_help, print_help): New.
972         (find_opt, handle_option, common_handle_option): opt_text now
973         contains the '-'.  Use print_help to output help.
974         * opts.h (struct cl_option): New member "help".
975         * opts.sh: Update to handle help text output and to prepend
976         options with '-'.
977         * toplev.c (display_help): Remove some help text.
979 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
980             Fariborz Jahanian  <fjahanian@apple.com>
982         * configure.in: Test for PowerPC mfcr field support in assembler.
983         * config.in, configure: Regenderated.
985         * config/rs6000/power4.md: Add mfcrf reservation.
986         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
987         * config/rs6000/rs6000.c (mfcr_operation): Define.
988         (print_operand): Add 'Q' case for mfcrf.
989         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
990         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
991         (movcc_internal1): Emit optional field operand for mfcr and set
992         "type" attribute appropriately.
993         (mfcr SCC): Likewise.
994         (movesi_from_cr_one): New.
996 2003-07-07  Roger Sayle  <roger@eyesopen.com>
998         * config/i386/i386.md: Correct check-in of incorrect version.
1000 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1002         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
1003         adjacent stdio calls.
1004         * c-decl.c (c_print_identifier): Likewise.
1005         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
1006         * print-rtl.c (print_rtx): Likewise.
1007         * print-tree.c (print_node_brief, print_node): Likewise.
1008         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
1010         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
1011         * config.in, configure: Regenerated.
1013 2003-07-07  Roger Sayle  <roger@eyesopen.com>
1015         PR target/10979
1016         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
1017         Changed to define_expand patterns that copy operand[1] to prevent
1018         it from being clobbered before emitting an atan2?f3_1 insn.
1019         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
1020         patterns that actually specify the behaviour of x87's FPATAN.
1022 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
1024         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
1025         clearing of SYMBOL_FLAG_LOCAL bit.
1026         If vcall_offset fits into signed 16-bit immediate, use
1027         one instruction for both addition and load.
1029 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
1031         * opts.c (common_handle_option): Correct handling of the
1032         -falign- switches that do and don't take an argument.
1034 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
1036         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
1037         today.
1038         (pushhi1_h8300hs): Likewise.
1040 2003-07-07  Andreas Jaeger  <aj@suse.de>
1042         * genextract.c: Convert remaining prototypes to ISO C90.
1044         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
1045         * fold-const.c (fold_single_bit_test): Likewise.
1046         * diagnostic.c (default_diagnostic_finalizer): Likewise.
1047         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
1049         * gengtype.c (write_array): Generate ISO C90 prototypes.
1051         * genflags.c (gen_proto): Generate ISO C90 prototypes.
1053 2003-07-07  Roger Sayle  <roger@eyesopen.com>
1055         PR optimization/11059
1056         * expr.c (can_store_by_pieces): Return true if length is zero.
1057         (store_by_pieces): If length is zero and endp is two, abort,
1058         othwerise, if length is zero and endp is not two, return "to".
1059         (clear_by_pieces): Do nothing if length is zero.
1060         (clear_storage): Do nothing if length is zero.
1061         (store_constructor): Simplify code when size is zero, or the
1062         target has already been cleared.  This avoids emitting a
1063         blockage instruction when initializing empty structures.
1065 2003-07-07  Andreas Jaeger  <aj@suse.de>
1067         * mips-tfile.c: Convert prototypes to ISO C90.
1068         * mips-tdump.c: Convert prototypes to ISO C90.
1070 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1072         * rtl.h (emit_line_note): Take a location_t.
1073         (emit_line_note_force): Remove.
1074         (set_file_and_line_for_statement): Take a location_t.
1075         * tree.g (emit_line_note): Take a location_t.
1076         * emit-rtl.c (emit_line_note): Take a location_t.
1077         (emit_line_note_force): Remove.
1078         * function.c (init_function_start): Adjust emit_line_note call.
1079         (expand_function_end): Use force_next_line_note, not
1080         emit_line_note_force.
1081         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
1082         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
1083         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
1084         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
1085         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
1086         genrtl_continue_stmt, genrtl_switch_stmt,
1087         genrtl_asm_stmt): Likewise.
1088         * expr.c (expand_expr): Likewise.
1089         * integrate.c (expand_inline_function): Likewise.
1090         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
1091         (expand_decl_init): Adjust emit_line_note call.
1093 2003-07-07  Dale Johannesen  <dalej@apple.com>
1095         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
1097 2003-07-07  Andreas Jaeger  <aj@suse.de>
1099         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
1100         * config/i386/i386.c: Likewise.
1102 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
1104         * config/h8300/h8300.md: Use gen_int_mode instead of
1105         GEN_INT (trunc_int_for_mode (...)).
1107 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
1109         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
1110         2 bytes and then subtract 2 from the stack pointer.
1111         (pushhi1_h8300hs): Likewise.
1113 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
1115         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
1116         -frandom-seed.
1117         * configure: Regenerated.
1118         * Makefile.in: Remove extraneous comment.
1119         * toplev.c (randomize): Protect against potential multiple calls.
1120         * doc/invoke.texi (-frandom-seed): Document use for in coverage
1121         files.
1123 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1124             Eric Botcazou  <ebotcazou@libertysurf.fr>
1126         PR optimization/11198
1127         * alias.c (objects_must_conflict_p): Return 1 if the types have
1128         the same alias set, not if the alias sets only conflict.
1130 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
1132         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
1133         (convert_cset): Change inbuf to type ICONV_CONST char.
1134         * Makefile.in (LIBS): Add LIBICONV.
1136         * doc/invoke.texi (-falign-functions): Document that
1137         when n is zero then a machine-dependent default is used.
1138         (-falign-labels): Document that when n is zero then a
1139         machine-dependent default is used and that -falign-labels =1
1140         is equivalent to -fno-align-labels.
1141         (-falign-loops): Likewise.
1142         (-falign-jumps): Likewise.
1144 2003-07-06  Art Haas  <ahaas@airmail.net>
1146         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
1147         initializer syntax.
1149 2003-07-06  James E Wilson  <wilson@tuliptree.org>
1151         PR optimization/9812
1152         * rtl.h (mem_for_const_double): Delete prototype.
1153         * varasm.c (mem_for_const_double): Delete function.
1154         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
1155         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
1156         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
1157         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
1158         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
1159         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
1160         comment about confused support for XFmode constants.
1162 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
1164         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
1166 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
1168         * config/h8300/h8300.c: Fix comment typos.
1169         * config/h8300/h8300.md: Likewise.
1170         * config/i386/athlon.md: Likewise.
1171         * config/i386/i386.c: Likewise.
1172         * config/i386/pentium.md: Likewise.
1173         * config/ia64/ia64.c: Likewise.
1174         * config/ia64/itanium1.md: Likewise.
1175         * config/ia64/itanium2.md: Likewise.
1176         * config/m32r/m32r.md: Likewise.
1177         * config/m68hc11/m68hc11.c: Likewise.
1178         * config/mcore/mcore.c: Likewise.
1179         * config/mips/sr71k.md: Likewise.
1180         * config/mips/t-iris5-as: Likewise.
1181         * config/mmix/mmix.h: Likewise.
1182         * config/ns32k/ns32k.h: Likewise.
1183         * config/ns32k/NOTES: Fix a typo.
1185 2003-07-06  Andreas Jaeger  <aj@suse.de>
1187         * stmt.c: Convert remaining prototypes to ISO C90.
1188         * cfglayout.c: Likewise.
1189         * dbxout.c: Likewise.
1190         * gcc.c: Likewise.
1191         * genemit.c: Likewise.
1193         * basic-block.h: Convert prototypes to ISO C90.
1194         * c-parse.in: Likewise.
1195         * c-pragma.h: Likewise.
1196         * c-typeck.c: Likewise.
1197         * cfghooks.h: Likewise.
1198         * cfgloopanal.c: Likewise.
1199         * dbxout.h: Likewise.
1200         * debug.h: Likewise.
1201         * dwarf2asm.h: Likewise.
1202         * gcov.c: Likewise.
1203         * gengtype-lex.l: Likewise.
1204         * sched-int.h: Likewise.
1205         * timevar.c: Likewise.
1207 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
1209         * c-common.h (c_comon_handle_filename,
1210         c_common_missing_arguement): New.
1211         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
1212         LANG_HOOKS_MISSING_ARGUMENT): New.
1213         * c-opts.c (missing_arg): Rename c_common_missing_argument,
1214         update to be an appropriate langhook.
1215         (c_common_handle_option): Don't handle filenames.
1216         (c_common_handle_filename): New.
1217         * hooks.c (hook_void_constcharptr,
1218         hook_bool_constcharptr_size_t_false): New.
1219         * hooks.h (hook_void_constcharptr,
1220         hook_bool_constcharptr_size_t_false): New.
1221         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
1222         LANG_HOOKS_MISSING_ARGUMENT): New.
1223         (LANG_HOOKS_INITIALIZER): Update.
1224         * langhooks.h (struct lang_hooks): Add handle_filename and
1225         missing_argument.
1226         * opts.c (handle_option): Don't handle filenames here, but ...
1227         (handle_options): ... here.
1228         (common_handle_option): Don't handle missing arguments here.
1229         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
1230         LANG_HOOKS_MISSING_ARGUMENT): New.
1232 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
1234         * Makfile.in: Remove traces of mbchar.
1235         * c-parse.in (MULTIBYTE_CHARS): Remove.
1236         * config.in (MULTIBYTE_CHARS): Remove.
1237         * configure: Remove --enable-mbchar.
1238         * configure.in: Remove --enable-mbchar.
1239         * mbchar.c, mbchar.h: Remove.
1240         * system.h: Poison MULTIBYTE_CHARS.
1241         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
1242         * config/linux.h (MULTIBYTE_CHARS): Remove.
1243         * config/svr4.h (MULTIBYTE_CHARS): Remove.
1244         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
1246 2003-07-06  Andreas Jaeger  <aj@suse.de>
1248         * varray.c (varray_check_failed): Fix typo.
1250         * unroll.c: Convert prototypes to ISO C90.
1251         * varasm.c: Likewise.
1252         * varray.c: Likewise.
1253         * varray.h: Likewise.
1254         * vmsdbgout.c: Likewise.
1255         * xcoffout.c: Likewise.
1256         * xcoffout.h: Likewise.
1258 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1260         * gcov-io.h: Add a local time stamp.
1261         (struct gcov_info): Add stamp field.
1262         (gcov_truncate): New.
1263         * coverage.c (read_counts_file): Skip the stamp.
1264         (coverage_begin_output): Write the stamp.
1265         (build_gcov_info): Declare and init the stamp.
1266         (coverage_finish): Only unlink data file, if stamp is zero.
1267         * gcov-dump.c (dump_file): Dump the stamp.
1268         * gcov.c (bbg_stamp): New.
1269         (release_structures): Clear bbg_stamp.
1270         (read_graph_file): Read stamp.
1271         (read_count_file): Check stamp.
1272         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
1274 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1276         * tree.h (default_flag_random_seed): Remove.
1277         * toplev.h (local_tick): Declare.
1278         * tree.c (flag_random_seed, default_flag_random_seed): Move to
1279         toplev.c.
1280         (append_random_chars): Don't call default_flag_random_seed.
1281         * toplev.c (flag_random_seed): Define here. Set local_tick.
1282         (local_tick): Define.
1283         (randomize): New, moved from tree.c.
1284         (print_switch_values): Adjust.
1285         (toplev_main): Call randomize.
1287 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
1289         * tree.h (crc32_string): Declare.
1290         * tree.c (append_random_chars): Remove.
1291         (crc32_string): New.
1292         (get_file_function_name_long): Use crc32_string here.
1294 2003-07-06  Andreas Jaeger  <aj@suse.de>
1296         * gcc.c: Convert prototypes to ISO C90.
1297         * gcc.h: Likewise.
1298         * gcov-dump.c: Likewise.
1299         * gcov-iov.c: Likewise.
1300         * gcse.c: Likewise.
1301         * genattrtab.h: Likewise.
1302         * ggc.h: Likewise.
1303         * global.c: Likewise.
1304         * graph.c: Likewise.
1305         * graph.h: Likewise.
1306         * hosthooks.h: Likewise.
1307         * hooks.h: Likewise.
1308         * hooks.c: Likewise.
1309         * hashtable.h: Likewise.
1310         * hashtable.c: Likewise.
1311         * haifa-sched.c: Likewise.
1312         * integrate.h: Likewise.
1313         * integrate.c: Likewise.
1314         * input.h: Likewise.
1315         * ifcvt.c: Likewise.
1316         * jump.c: Likewise.
1317         * langhooks-def.h: Likewise.  Add extern to prototypes.
1318         * langhooks.c: Likewise.
1319         * langhooks.h: Likewise.
1320         * lcm.c: Likewise.
1321         * local-alloc.c: Likewise.
1322         * loop-init.c: Likewise.
1323         * loop-unroll.c: Likewise.
1324         * loop-unswitch.c: Likewise.
1325         * loop.c: Likewise.
1326         * loop.h: Likewise. Add extern to prototypes.
1327         * machmode.h: Likewise.
1328         * main.c: Likewise.
1329         * mbchar.c: Likewise.
1330         * mbchar.h: Likewise.
1331         * mkdeps.c: Likewise.
1332         * mkdeps.h: Likewise.
1333         * optabs.c: Likewise.
1334         * optabs.h: Likewise.
1335         * output.h: Likewise.
1336         * gccspec.c: Likwise.
1337         * postreload.c: Likewise.
1338         * prefix.c: Likewise.
1339         * prefix.h: Likewise.
1340         * print-rtl.c: Likewise.
1341         * print-tree.c: Likewise.
1342         * profile.c: Likewise.
1343         * read-rtl.c: Likewise.
1344         * real.c: Likewise.
1345         * real.h: Likewise.
1346         * recog.c: Likewise.
1347         * recog.h: Likewise.
1348         * reg-stack.c: Likewise.
1349         * regclass.c: Likewise.
1350         * regmove.c: Likewise.
1351         * regrename.c: Likewise.
1352         * regs.h: Likewise.
1353         * reload.c: Likewise.
1354         * reload.h: Likewise.
1355         * reload1.c: Likewise.
1356         * reorg.c: Likewise.
1357         * resource.c: Likewise.
1358         * resource.h: Likewise.
1359         * rtl-error.c: Likewise.
1360         * rtl.c: Likewise.
1361         * rtl.h: Likewise.
1362         * rtlanal.c: Likewise.
1363         * sbitmap.c: Likewise.
1364         * sbitmap.h: Likewise.
1365         * scan-decls.c: Likewise.
1366         * scan.c: Likewise.
1367         * sched-deps.c: Likewise.
1368         * sched-ebb.c: Likewise.
1369         * sched-int.h: Likewise.
1370         * sched-rgn.c: Likewise.
1371         * sched-vis.c: Likewise.
1372         * sibcall.c: Likewise.
1373         * simplify-rtx.c: Likewise.
1374         * sreal.c: Likewise.
1375         * sreal.h: Likewise.
1376         * ssa-ccp.c: Likewise.
1377         * ssa-dce.c: Likewise.
1378         * ssa.c: Likewise.
1379         * ssa.h: Likewise.
1380         * stack.h: Likewise.
1381         * stmt.c: Likewise.
1382         * stor-layout.c: Likewise.
1383         * stringpool.c: Likewise.
1384         * target.h: Likewise.
1385         * timevar.c: Likewise.
1386         * timevar.h: Likewise.
1387         * tlink.c: Likewise.
1388         * tracer.c: Likewise.
1389         * tree-inline.c: Likewise.
1390         * tree-inline.h: Likewise.
1391         * tree.c: Likewise.
1392         * tree.h: Likewise.
1394 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1396         * combine.c (nonzero_bits1): Fix a warning.
1398 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1400         * config/h8300/h8300.c (compute_mov_length): Correct the
1401         length of loading CONST0_RTX (SFmode).
1403 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1405         * toplev.c (output_clean_symbol_name): Remove.
1406         * toplev.h (output_clean_symbol_name): Remove.
1407         * config/alpha/alpha.c (unicosmk_output_module_name): Use
1408         lbasename & clean_symbol_name.
1410 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1412         * ggc.h: Follow spelling conventions.
1413         * config/i386/i386.c: Likewise.
1414         * config/i386/winnt.c: Likewise.
1415         * config/rs6000/rs6000.c: Likewise.
1417 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
1419         * bt-load.c: Fix comment typos.
1420         * c-incpath.c: Likewise.
1421         * cfg.c: Likewise.
1422         * cfgcleanup.c: Likewise.
1423         * cfgloop.h: Likewise.
1424         * cfgloopmanip.c: Likewise.
1425         * cfgrtl.c: Likewise.
1426         * diagnostic.h: Likewise.
1427         * dwarfout.c: Likewise.
1428         * emit-rtl.c: Likewise.
1429         * et-forest.c: Likewise.
1430         * et-forest.h: Likewise.
1431         * expr.c: Likewise.
1432         * gcse.c: Likewise.
1433         * genattr.c: Likewise.
1434         * jump.c: Likewise.
1435         * langhooks.h: Likewise.
1436         * local-alloc.c: Likewise.
1437         * loop-unroll.c: Likewise.
1438         * loop-unswitch.c: Likewise.
1439         * ra-build.c: Likewise.
1440         * regclass.c: Likewise.
1441         * regmove.c: Likewise.
1442         * rtl.def: Likewise.
1443         * rtlanal.c: Likewise.
1444         * sched-ebb.c: Likewise.
1445         * sched-rgn.c: Likewise.
1446         * simplify-rtx.c: Likewise.
1447         * ssa.c: Likewise.
1448         * tracer.c: Likewise.
1449         * tree.c: Likewise.
1451 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
1453         * cppcharset.c: Use the correct return type for the fallback iconv
1454         macro.
1456 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1458         Blame to Jan Hubicka  <jh@suse.cz>
1459         * cfglayout.c (record_effective_endpoints): Split insns before
1460         first basic block correctly.
1462 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1464         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
1465         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
1466         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
1468 2003-07-05  Andreas Jaeger  <aj@suse.de>
1470         * genattrtab.c (write_attr_get): Revert part of last patch to
1471         always write out a prototype.
1473         * genemit.c (gen_split): Readd lost unused attributes in last
1474         patch.
1476 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1478         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
1479         different from header.
1481 2003-07-05  Andreas Schwab  <schwab@suse.de>
1483         * config/m68k/m68k.c: Remove code protected by CRDS.
1484         * config/m68k/m68k.md: Likewise.
1486 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
1488         PR driver/11417
1489         * c-opts.c (permit_fortran_options): New.
1490         (c_common_init_options): Accept fortran front end options if
1491         it looks like we might be preprocessing Fortran.
1492         (c_common_handle_option): Don't reject switch if permit_fotran_options.
1494 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1496         * genattr.c (internal_dfa_insn_code): Output prototype.
1497         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
1498         * genautomata.c: Likewise.
1499         * genconditions.c: Likewise.
1500         * genemit.c: Likewise.
1501         * genextract.c: Likewise.
1502         * gengenrtl.c: Likewise.
1503         * gengtype.c: Likewise.
1504         * genopinit.c: Likewise.
1505         * genoutput.c: Likewise.
1506         * genpeep.c: Likewise.
1507         * genrecog.c: Likewise.
1509 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1511         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
1512         (struct cpp_options): Add narrow_charset, wide_charset,
1513         bytes_big_endian fields.  Remove EBCDIC field.
1514         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
1516         * cpphash.h: Include <iconv.h> if we have it, otherwise
1517         provide a dummy definition of iconv_t.
1518         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
1519         (_cpp_valid_ucn): Update prototype.
1520         (_cpp_destroy_iconv): New prototype.
1522         * doc/cpp.texi: Document character set handling.
1523         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
1524         * doc/extend.texi: Delete entire section on multiline strings.
1525         Rewrite section on __FUNCTION__ etc now that these are
1526         variables in C.
1528         * cppucnid.tab, cppucnid.pl: New files.
1529         * cppucnid.h: New generated file.
1530         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
1531         (iconv_open, iconv, iconv_close): Provide dummy definitions
1532         if !HAVE_ICONV.
1533         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
1534         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
1535         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
1536         cpp_interpret_string, narrow_str_to_charconst,
1537         wide_str_to_charconst): New.
1538         (ucn_valid_in_identifier): Use a binary search through the
1539         ucnranges table defined in cppucnid.h, not a long chain of if
1540         statements.
1541         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
1542         character names are only valid in C++ and C99" to a warning.
1543         Issue the "meaning of \[uU] is different in traditional C"
1544         warning here.  Take care not to let iconv see an invalid UCS
1545         value if we get a malformed UCN.  Issue an error if we don't
1546         have iconv.
1547         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
1548         cpp_interpret_string to do the heavy lifting.
1550         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
1551         narrow_charset, wide_charset fields of options structure.
1552         (cpp_destroy): Call _cpp_destroy_iconv.
1553         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
1554         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
1555         (cpp_interpret_charconst): Moved to cppcharset.c.
1556         * cpplib.c (dequote_string): Delete.
1557         (interpret_string_notranslate): New.
1558         (do_line, do_linemarker): Use interpret_string_notranslate.
1560         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
1562         * c-common.c (fname_string, combine_strings): Delete.
1563         * c-common.h (fname_string, combine_strings): Delete prototypes.
1564         * c-lex.c (ignore_escape_flag): Delete.
1565         (cb_ident): Use cpp_interpret_string, not lex_string.
1566         (get_nonpadding_token): New function.
1567         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
1568         Adjust calls to lex_string.  Don't write *value twice.
1569         (lex_string): Now handles string constant concatenation.
1570         Most of the work handed off to cpp_interpret_string.
1571         Call fix_string_type here.
1572         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
1573         FUNC_NAME, throughout.
1574         (OBJC_STRING): New token type.
1575         (primary:STRING): No need to call fix_string_type here.
1576         (primary:objc_string): Make that OBJC_STRING.
1577         (objc_string nonterminal): Delete.
1578         (yylexname): Delete code to handle fake string constants.
1579         (yylexstring): Delete entirely.
1580         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
1581         to handle CPP_ATSIGN.
1583         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
1584         * c-opts.c (missing_arg, c_common_handle_option): Handle
1585         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
1586         (c_common_init): Set cpp_opts->bytes_big_endian, not
1587         cpp_opts->EBCDIC.  Call cpp_init_iconv.
1588         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
1589         (TARGET_EBCDIC): Delete default definition.
1591         * objc/objc-act.c (build_objc_string_object): No need to
1592         handle string constant concatenation.
1594 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
1596         * doc/install.texi: Fix typos.
1597         * doc/invoke.texi: Likewise.
1598         * doc/tm.texi: Likewise.
1600 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
1602         * config/pa/fptr.c: Fix comment typos.
1603         * config/pa/pa-64.h: Likewise.
1604         * config/pa/pa.c: Likewise.
1605         * config/pa/pa.h: Likewise.
1606         * config/rs6000/603.md: Likewise.
1607         * config/rs6000/7xx.md: Likewise.
1608         * config/rs6000/darwin.h: Likewise.
1609         * config/rs6000/freebsd.h: Likewise.
1610         * config/rs6000/rs6000.c: Likewise.
1611         * config/rs6000/rs6000.md: Likewise.
1612         * config/rs6000/spe.h: Likewise.
1614 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
1616         * config/s390/2064.md: Change GNU CC to GCC.
1617         * config/s390/2084.md: Likewise.
1618         * config/s390/fixdfdi.h: Likewise.
1619         * config/s390/linux.h: Likewise.
1620         * config/s390/s390-modes.def: Likewise.
1621         * config/s390/s390-protos.h: Likewise.
1622         * config/s390/s390.c: Likewise.
1623         * config/s390/s390.h: Likewise.
1624         * config/s390/s390.md: Likewise.
1625         * config/s390/s390x.h: Likewise.
1627 2003-07-04  Jeff Law  <law@redhat.com>
1629         PR c/11428
1630         * expr.c (do_store_flag): Pass in the correct result type
1631         when calling fold_single_bit_test.
1632         * fold-const.c (fold_single_bit_test): Use result_type for the
1633         result when folding a sign bit test.
1635 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
1637         * opts.c (common_handle_options): Negate sense of -falign- switches.
1639 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
1641         * Makefile.in: Replace PWD with PWD_COMMAND.
1643 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1645         * cfgloopanal.c (count_strange_loop_iterations): New static function.
1646         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
1647         Handle strange loops.
1649 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
1651         * install.texi: Even the g77 manpage is derived from
1652         the full g77 manual.
1654 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
1656         * ABOUT-NLS: Delete.
1657         * intl: Delete entire directory.
1658         * aclocal.m4: Include ../config/gettext.m4.  Delete
1659         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
1660         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
1661         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
1662         Remove intl/Makefile from all_outputs.
1663         * configure, config.in: Regenerate.
1664         * Makefile.in: Expunge all references to intl subdirectory.
1665         Add -I../intl to INCLUDES.
1666         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
1668 2003-07-04  Roger Sayle  <roger@eyesopen.com>
1670         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
1671         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
1673 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
1675         PR c++/5287, PR c++/7910, PR c++/11021
1676         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
1677         dllimport attribute if function is defined at declaration, but
1678         report error instead. Likewise for dllimport'd variable
1679         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
1680         declared within functions, Report error if dllimport or dllexport
1681         symbol is not global.
1682         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
1683         if defined after declaration or if inlined. Don't allow definition
1684         of static data members of C++ classes. Don't dllimport virtual
1685         methods.
1686         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
1687         (i386_pe_mark_dllimport): Remove unnecessary checks.
1688         (i386_pe_encode_section_info): Warn if the dllimport attribute
1689         and symbol prefix have been instantiated and then overridden.
1691         * doc/extend.texi: Document dllimport and dllexport attributes.
1693         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
1695 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
1697         * config/kaos.h (CPP_PREDEFINES): Delete.
1698         (TARGET_OS_CPP_BUILTINS): New.
1700 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1702         * c-aux-info.c: Include toplev.h after c-tree.h.
1703         * c-common.c: Likewise.
1704         (GCC_DIAG_STYLE): Undef.
1705         * c-semantics.c (GCC_DIAG_STYLE): Define.
1706         * c-tree.h (GCC_DIAG_STYLE): Likewise.
1707         * diagnostic.h (inform): Move prototype to toplev.h.
1708         * jump.c: Include diagnostic.h before toplev.h.
1709         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
1710         (warning, error, fatal_error, pedwarn, sorry, inform,
1711         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
1713 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1715         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
1716         at all if edge is not specified.
1717         (can_copy_bbs_p, copy_bbs): New.
1718         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
1719         * cfgloop.c (get_loop_body): Comment more precisely.
1720         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
1721         (scale_bbs_frequencies): Fix comment typo.
1722         (can_duplicate_loop_p): Use can_copy_bbs_p.
1723         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
1725 2003-07-03  Devang Patel <dpatel@apple.com>
1727         * c-opts.c (c_common_parse_file): Remove extra
1728         debug_hooks->start_source_file call.
1730 2003-07-03  Roger Sayle  <roger@eyesopen.com>
1732         * real.c (real_trunc, real_floor, real_ceil): New functions
1733         to implement trunc, floor and ceil respectively.
1734         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
1735         * builtins.c (integer_valued_real_p): New function to test if
1736         a floating point expression has an integer valued result.
1737         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
1738         foo(x) where foo is an integer rounding function.  Similarly,
1739         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
1740         (double)(int)x when both foo and bar are integer rounding
1741         functions and we don't need to honor errno.
1742         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
1743         New functions to fold trunc, floor and ceil.
1744         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
1745         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
1746         to fold BUILT_IN_CEIL*.
1747         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
1748         the remaining integer rounding functions.
1750 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1752         * config/sparc/sparc.c (function_arg_partial_nregs): Use
1753         SPARC_INT_ARG_MAX to determine where to split unnamed
1754         complex FP arguments.
1756 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
1758         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
1759         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
1760         (merge_blocks_move_predecessor_nojumps,
1761          merge_blocks_move_successor_nojumps): Use merge_blocks.
1762         (try_optimize_cfg): Use merge_blocks_move.
1763         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
1764         (merge_blocks_nomove): Rename to rtl_merge_blocks.
1765         (cfg_layout_create_basic_block): New.
1766         (rtl_can_merge_blocks): New.
1767         (cfg_layout_split_block): Do not alloc aux by hand.
1768         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
1769         merge_blocks.
1770         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
1771         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
1772         * cfgloopmanip.c (loop_split_edge_with): Likewise.
1773         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
1775         * basic-block.h (basic_block_def): Add field 'rbi'.
1776         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
1777         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
1778         * cfg.c (entry_exit_blocks): Add new field.
1779         * cfglayout.c: Include alloc-pool.h;
1780         (cfg_layout_pool): New.
1781         (record_effective_endpoints, fixup_reorder_chain,
1782         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
1783         of rbi.
1784         (cfg_layout_initialize_rbi): New function.
1785         (cfg_layout_initialize): Use it.
1786         (cfg_layout_finalize): Clear rbi fields.
1787         * cfglayout.h (RBI): Kill.
1788         (cfg_layout_initialize_rbi): Declare.
1789         * cfgloopmanip.c (copy_bbs): Use rbi.
1790         (record_exit_edges): Likewise.
1791         (duplicate_loop_to_header_edge): Likewise.
1792         * cfgrtl.c (cfg_layout_create_basic_block): Use
1793         cfg_layout_initialize_rbi.
1794         (cfg_layout_split_block): Use rbi.
1795         (cfg_layout_delete_block): Likewise.
1796         * loop-init.c (loop_optimizer_finalize): Likewise.
1797         * loop-unswitch.c (unswitch_loop): Likewise.
1798         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
1800         * cfgrtl.c: Update comments.
1801         (try_redirect_by_replacing_jump): New argument.
1802         (redirect_branch_edge): Break out from ...
1803         (rtl_redirect_edge_and_branch): ... this one.
1804         (update_cfg_after_block_merging): Break out from ...
1805         (rtl_merge_blocks): ... this one.
1806         (cfg_layout_split_edge): New.
1807         (cfg_layout_merge_blocks): New.
1808         (cfg_layout_can_merge_blocks_p): New.
1809         (cfg_layout_redirect_edge_and_branch): Reorganize.
1810         (cfg_layout_rtl_cfg_hooks): Fill in.
1811         (cfg_layout_delete_block): Kill barriers.
1812         * cfganal.c (can_fallthru): Deal with exit blocks
1813         * cfglayout.c (cfg_layout_function_header): New function
1814         (record_effective_endpoints): Record function header.
1815         (fixup_reorder_chain): Fixup dead jumptables; place header
1817         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
1818         * bb-reorder.c (cfg_layout_initialize): Update call.
1819         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
1820         edges in cfglayout mode.
1821         * cfglayout.c (cleanup_unconditional_jumps): Kill.
1822         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
1823         * cfglayout.h (cfg_layout_initialize): Update prototype.
1824         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
1825         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
1826         * flow.c (propagate_block): Do not crash when basic block ends
1827         by first insn in the chain.
1828         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
1829         do loop discovery.
1830         * tracer.c (tracer): Update call of cfg_layout_initialize.
1832 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1834         * Makefile.in: Use dependency variables in lieu of explicit
1835         files throughout.
1837 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
1839         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
1840         * tree.h: ...to here.
1842 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
1844         * config/s390/2064.md: Fix comment typos.
1845         * config/s390/2084.md: Likewise.
1846         * config/s390/s390.c: Likewise.
1847         * config/s390/s390.md: Likewise.
1848         * config/sh/sh.c: Likewise.
1849         * config/sh/sh.h: Likewise.
1850         * config/sh/sh.md: Likewise.
1851         * config/sparc/sparc.c: Likewise.
1852         * config/sparc/sparc.h: Likewise.
1853         * config/sparc/sparc.md: Likewise.
1854         * config/stormy16/stormy16.c: Likewise.
1855         * config/stormy16/stormy16.h: Likewise.
1856         * config/stormy16/stormy-abi: Fix a typo.
1858 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
1860         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
1862 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1864         * config/mips/mips.h (save_argv): Delete.
1866 2003-07-03  Roger Sayle  <roger@eyesopen.com>
1868         PR target/10700
1869         * fold-const.c (extract_muldiv_1): There's nothing that can be done
1870         if the expression is a SAVE_EXPR.
1872 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
1874         * config/m32r/m32r.c: Fix comment typos.
1875         * config/m68hc11/m68hc11.c: Likewise.
1876         * config/m68hc11/m68hc11.h: Likewise.
1877         * config/m68k/m68k.c: Likewise.
1878         * config/mcore/mcore.c: Likewise.
1879         * config/mcore/mcore.h: Likewise.
1880         * config/mcore/mcore.md: Likewise.
1881         * config/mips/mips.c: Likewise.
1882         * config/mips/mips.h: Likewise.
1883         * config/mips/mips.md: Likewise.
1884         * config/mips/netbsd.h: Likewise.
1885         * config/mn10300/mn10300.c: Likewise.
1887 2003-07-03  Andreas Schwab  <schwab@suse.de>
1889         * dbxout.c (pending_bincls): Move decl down inside
1890         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
1892 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1894         * rtl.h (NOTE_DATA): Refer to whole union.
1895         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
1897 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1899         PR optimization/11381
1900         * simplify-rtx.c (simplify_relational_operation): Check that
1901         two equal operands have no side-effects before simplifying
1902         the comparison.
1904 2003-07-02  Jeff Law  <law@redhat.com>
1906         * expr.c (do_store_flag): Remove special case folding for
1907         single bit tests.  Instead call back into the commonized folder
1908         routine.
1909         * fold-const.c (fold_single_bit_test): New function, mostly
1910         extracted from do_store_flag, with an additional case extracted
1911         from fold.
1912         (fold): Call fold_single_bit_test appropriately.
1913         * tree.h (fold_single_bit_test): Prototype.
1915 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
1917         * system.h: Include filenames.h.
1918         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
1919         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
1920         define based on HAVE_DOS_BASED_FILE_SYSTEM.
1921         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
1922         * config/i386/xm-mingw32.h: Don't define
1923         HAVE_DOS_BASED_FILE_SYSTEM,
1924         DIR_SEPARATOR, or DIR_SEPARATOR_2.
1925         * doc/hostconfig.texi: Update to match.
1927         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
1928         config/i386/cygwin.h:
1929         Use IS_ABSOLUTE_PATH throughout.
1930         * gcc.c (DIR_UP): Delete, unused.
1931         * protoize.c (IS_SAME_PATH): Define in terms of
1932         FILENAME_CMP.
1933         (is_abspath): Delete.
1935 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
1937         * config/i386/emmintrin.h: Fix comment typos.
1938         * config/i386/i386.c: Likewise.
1939         * config/i386/i386.h: Likewise.
1940         * config/i386/sco5.h: Likewise.
1941         * config/ia64/ia64.c: Likewise.
1942         * config/ia64/itanium2.md: Likewise.
1944 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1946         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
1947         DBX_USE_BINCL.
1948         (emit_bincl_stab): Same.
1949         (emit_pending_bincls): Same.
1951 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
1953         * config/h8300/h8300.c (compute_mov_length): Fix the length of
1954         loading CONST0_RTX (SFmode).
1955         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
1956         'G' to CONST0_RTX (SFmode).
1957         * config/h8300/h8300.md (movsf_h8300): Change the first
1958         constraint to 'G'.
1959         (movsf_h8300h): Likewise.
1961 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
1963         * c-common.h (c_common_init_options): New prototype.
1964         * c-opts.c (deferred_size): Remove.
1965         (defer_opt): Array is now pre-allocated.
1966         (c_common_init_options): Pre-allocate deferred_opts.  Make
1967         lang_flags unsigned.
1968         (push_command_line_options): Free deferred_opts.
1969         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
1970         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
1971         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
1972         * langhooks.h (struct lang_hooks): New prototype for init_options.
1973         * main.c (main): Cast argv.
1974         * opts.c (handle_option, handle_options): Update prototypes.
1975         (decode_options): save_argc, save_argv are not global.  Constify.
1976         * opts.h (decode_options): New prototype.
1977         * toplev.c (general_init): New protoype.
1978         (save_argv): Make static.
1979         (save_argc): Remove.
1980         (print_switch_values, general_init): Constify.
1981         (toplev_main): Save argv.
1982         * toplev.h (toplev_main): Update prototype.
1983         (save_argc, save_argv): Remove.
1985 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
1987         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
1988         (emit_bincl_stab): Same.
1989         (emit_pending_bincls): Same.
1991 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
1993         PR c++/11072
1994         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
1996 2003-07-02  Andreas Schwab  <schwab@suse.de>
1998         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
2000 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2002         PR optimization/11210
2003         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
2004         about the behaviour with regard to bitfields.
2005         * fold-const (decode_field_reference): Record outermost type in
2006         case the expression is a NOP. Strip all NOPs. Set the signedness
2007         to that of the outermost type (if any) when the bitsize is equal
2008         to the size of the type.
2010 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
2012         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
2013         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
2014         (adddi3_internal_3, addsi3_internal_2): Likewise.
2016 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
2018         * config/mips/mips.c (machine_function): Add new fields:
2019         ignore_hazard_length_p and all_noreorder_p.
2020         (mips_flag_delayed_branch): New variable.
2021         (override_options): Treat '/' as an operand punctuation character.
2022         Set up mips_flag_delayed_branch.
2023         (print_operand): Handle '/'.
2024         (mips_output_function_prologue): Put the whole function in
2025         .set noreorder and .set nomacro if all_noreorder_p is true.
2026         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
2027         (mips16_optimize_gp): Remove "first insn" parameter.
2028         (mips16_lay_out_constants): New function, split out from mips_reorg.
2029         (mips_avoid_hazard, mips_avoid_hazards): New functions.
2030         (mips_reorg): For mips16 code, call mips16_lay_out_constant
2031         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
2032         do delayed-branch scheduling followed by hazard detection.
2033         (mips_adjust_insn_length): Only account for hazards if
2034         !ignore_hazard_length_p.
2035         (mips_output_load_label): Add a nop to the o32 sequence if
2036         the target suffers from load delays.
2037         (mips_output_conditional_branch): Add %/ to the end of branches.
2038         (mips_output_division): Fill the branch delay slot with %#.
2039         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
2040         instructions.  End all other %* branches with %/.
2041         (ffssi2, ffsdi2): Fix lengths.
2042         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
2043         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
2044         (fix_truncsfsi2_macro): Likewise.
2045         (mov_lwl): Set hazard to "none".
2046         (ashldi3_internal): Fill the branch delay slot with %#.
2047         (ashrdi3_internal, lshrdi3_internal): Likewise.
2048         (exception_receiver): Explicitly set $28.
2049         (hazard_nop): New pattern.
2051 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
2053         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
2054         before calling tree_inlinable_function_p.
2056 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2058         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
2059         <internal/stdio_core.h> too.
2060         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
2061         <internal/wchar_core.h> too.
2062         Substitute va_list uses in inline definition.
2063         * fixinc/fixincl.x: Regenerate.
2065 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2067         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
2068         Undef before redefinition.
2069         (LABEL_AFTER_LOC): Likewise.
2070         (DEFAULT_SIGNED_CHAR): Likewise.
2071         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
2072         Fix IRIX spelling.
2074         * config/mips/iris3.h: Remove, unused.
2075         * config/mips/iris4.h: Likewise.
2077         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
2079         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
2080         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
2081         target_cpu_default.
2083         * config/mips/iris5.h: Move explicit includes ...
2084         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
2086         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
2087         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
2088         tm_defines.
2090         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
2091         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
2092         target_cpu_default.
2094         * config/mips/iris6.h: Fix IRIX spelling.
2095         (MULTILIB_DEFAULTS): Undef before redefinition.
2097         * config/mips/iris6.h: Move explicit includes ...
2098         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
2100 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
2102         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
2103         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2104         Use next_needed field instead of aux to maintain the queue.
2105         * cgraph.h (cgraph_node): Add next_needed.
2106         (cgraph_varpool_node): Add next_needed; remove aux.
2107         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
2109 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
2111         * cgraphunit.c (cgraph_finalize_function): Set finalized.
2112         (cgraph_finalize_function): Do not examine inlinablility.
2113         (cgraph_finalize_compilation_unit): Do it here.
2114         * cgraph.h (cgraph_local_info): Add finalized field.
2116 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2118         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
2119         (gt_pch_restore): Likewise.
2121 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
2123         * config/alpha/alpha.c: Fix comment typos.
2124         * config/alpha/elf.h: Likewise.
2125         * config/arm/arm.c: Likewise.
2126         * config/arm/arm.h: Likewise.
2127         * config/arm/arm.md: Likewise.
2128         * config/arm/t-arm-coff: Likewise.
2129         * config/arm/t-strongarm-pe: Likewise.
2130         * config/arm/xscale-elf.h: Likewise.
2131         * config/avr/avr.h: Likewise.
2133 2003-07-01  Jeff Law  <law@redhat.com>
2135         * stmt.c (any_pending_cleanups): Remove another redundant test.
2137 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
2138             J"orn Rennecke <joern.rennecke@superh.com>
2140         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
2141         for MEM case.
2143 2003-07-01  Devang Patel  <dpatel@apple.com>
2145         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
2146         (binclstatus): New.
2147         (struct dbx_file): New members - bincl_status, pending_bincl_name and
2148         prev.
2149         (pending_bincls): New.
2150         (dbxout_init): Initialize new dbx_file members.
2151         (dbxout_start_source_file): Same.
2152         (emit_bincl_stab): New function.
2153         (emit_pending_bincls): Same.
2154         (emit_pending_bincls_if_required): Same.
2155         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
2156         processed.
2157         (dbxout_begin_block): Emit pending BINCL stabs.
2158         (dbxout_end_block): Same.
2159         (dbxout_function_decl): Same.
2160         (dbxout_continue): Same.
2161         (dbxout_type): Same.
2162         (dbxout_class_name_qualifiers): Same.
2163         (dbxout_symbol): Same.
2164         (dbxout_symbol_location): Same.
2165         (dbxout_parms): Same.
2167 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2169         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
2170         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
2172 2003-07-01  Andreas Jaeger  <aj@suse.de>
2174         * fold-const.c: Convert prototypes to ISO C90.
2175         * function.c: Likewise.
2176         * function.h: Likewise.
2178 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
2180         * doc/contrib.texi: Fix typos.
2181         * doc/invoke.texi: Likewise.
2182         * doc/passes.texi: Likewise.
2183         * doc/sourcebuild.texi: Likewise.
2184         * doc/tm.texi: Likewise.
2186 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
2188         * basic-block.h: Fix comment typos.
2189         * bb-reorder.c: Likewise.
2190         * c-format.c: Likewise.
2191         * cfgcleanup.c: Likewise.
2192         * cfghooks.h: Likewise.
2193         * cfgloop.c: Likewise.
2194         * cfgloopmanip.c: Likewise.
2195         * cfgrtl.c: Likewise.
2196         * cgraph.h: Likewise.
2197         * cgraphunit.c: Likewise.
2198         * combine.c: Likewise.
2199         * convert.c: Likewise.
2200         * dbxout.c: Likewise.
2201         * df.c: Likewise.
2202         * df.h: Likewise.
2203         * diagnostic.c: Likewise.
2204         * dwarf2out.c: Likewise.
2205         * et-forest.h: Likewise.
2206         * flow.c: Likewise.
2207         * fold-const.c: Likewise.
2208         * function.h: Likewise.
2209         * gcov-io.h: Likewise.
2210         * gcov.c: Likewise.
2211         * gcse.c: Likewise.
2212         * genautomata.c: Likewise.
2213         * ggc-common.c: Likewise.
2214         * ggc-page.c: Likewise.
2215         * loop-unroll.c: Likewise.
2216         * loop-unswitch.c: Likewise.
2217         * loop.c: Likewise.
2218         * mips-tfile.c: Likewise.
2219         * optabs.c: Likewise.
2220         * ra-build.c: Likewise.
2221         * ra-colorize.c: Likewise.
2222         * ra-rewrite.c: Likewise.
2223         * ra.h: Likewise.
2224         * regmove.c: Likewise.
2225         * reload.c: Likewise.
2226         * rtlanal.c: Likewise.
2227         * sched-ebb.c: Likewise.
2228         * sched-int.h: Likewise.
2229         * sched-vis.c: Likewise.
2230         * sreal.c: Likewise.
2231         * ssa-ccp.c: Likewise.
2232         * ssa.c: Likewise.
2233         * toplev.c: Likewise.
2234         * tree-inline.c: Likewise.
2235         * value-prof.c: Likewise.
2236         * value-prof.h: Likewise.
2238 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
2240         * rtl.h (emit_line_note_after): Remove.
2241         (emit_note_copy_after, emit_note_copy): New.
2242         * emit-rtl.c (reorder_insns_with_line_notes): Replace
2243         emit_line_note_after with emit_note_copy_after.
2244         (emit_insn_after_with_line_notes): Likewise.
2245         (emit_line_note_after): Kill.
2246         (emit_note_copy_after): New.
2247         (emit_note_copy): New.
2248         * function.c (emit_return_into_block): Use emit_note_copy_after.
2249         (thread_prologue_and_epilogue_insns): Likewise.
2250         * integrate.c (expand_inline_function): Use emit_note_copy.
2251         (copy_insn_list): Likewise.
2252         * unroll.c (copy_loop_body): Likewise.
2253         * cfglayout.c (duplicate_insn_chain): Likewise.
2255 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
2257         * c-tree.h (define_label): Replace filename and lineno arguments
2258         with a location_t.
2259         * c-decl.c (poplevel): Adjust define_label call.
2260         (pop_label_level): Likewise.
2261         (define_label): Replace filename and lineno arguments with a
2262         location_t.
2263         (store_parm_decls): Use DECL_SOURCE_LOCATION.
2264         * c-parse.in (label): Adjust define_label call.
2266 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
2268         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
2269         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
2270         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
2271         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
2272         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
2274 2003-07-01  Andreas Jaeger  <aj@suse.de>
2276         * final.c: Convert prototypes to ISO C90.
2277         * flow.c: Likewise.
2278         * flags.h: Likewise.
2279         * gcov-io.c: Likewise.
2280         * gcov-io.h: Likewise.
2282 2003-06-30  Bruno Haible  <bruno@clisp.org>
2284         PR middle-end/6578
2285         * libgcc2.c (__subvsi3): Remove simplification that would not work
2286         when subtracting -0x80000000.
2287         (__subvdi3): Remove simplification that would return a wrong result.
2288         (__mulvsi3): Fix overflow check.
2289         (__absvdi2): Fix simplification that would return a wrong result.
2290         (__mulvdi3): Fix overflow check.
2292 2003-06-30  Jeff Law  <law@redhat.com>
2294         * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
2295         was always passed in the value '1'.  Simplify body appropriately.
2296         * tree.h (any_pending_cleanups): Corresponding changes.
2297         * calls.c: (expand_call): Corresponding changes.
2299 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2301         * combine.c (distribute_notes): Don't bother REG_WAS_0.
2302         * cse.c (cse_insn): Likewise.
2303         * final.c (final_scan_insn): Likewise.
2304         * jump.c (duplicate_loop_exit_test): Likewise.
2305         * rtl.c (reg_note_name): Remove REG_WAS_0.
2306         * rtl.h (REG_WAS_0): Remove.
2307         * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
2308         * config/avr/avr.c (output_movqi): Don't use reg_was_0.
2309         (output_movhi): Likewise.
2310         (output_movsisf): Likewise.
2311         (reg_was_0): Remove.
2312         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
2313         REG_WAS_0.
2314         (m68hc11_gen_movqi): Likewise.
2315         * config/vax/vax-protos.h: Remove the prototype for
2316         reg_was_0_p.
2317         * config/vax/vax.c (follows_p): Remove.
2318         (reg_was_0_p): Likewise.
2319         * config/vax/vax.md (movsi): Don't use reg_was_0_p.
2320         (movhi): Likewise.
2321         (movqi): Likewise.
2322         * doc/rtl.texi (REG_WAS_0): Remove.
2324 2003-06-30  Mark Mitchell  <mark@codesourcery.com>
2326         * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
2328 2003-06-30  Bob Wilson  <bob.wilson@acm.org>
2330         * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
2331         top-level include directory.
2332         * config/xtensa/lib2funcs.S: Likewise.
2333         * config/xtensa/xtensa.h: Likewise.
2334         * config/xtensa/xtensa-config.h: Remove.
2335         * doc/install.texi: Update location of "xtensa-config.h" header.
2337 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
2339         * config/s390/s390.c (s390_extra_constraint): New function.
2340         * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
2341         * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
2342         * config/s390/s390.c (q_constraint): Remove.
2343         * config/s390/s390-protos.h (q_constraint): Likewise.
2344         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
2345         (EXTRA_ADDRESS_CONSTRAINT): Define.
2347         * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
2348         (DISP_IN_RANGE, s390_short_displacement): New.
2349         (legitimate_reload_operand_p): Support long displacements.
2350         (s390_decompose_address): Likewise.
2351         (legitimize_pic_address): Likewise.
2352         (legitimize_address): Likewise.
2353         (s390_fixup_clobbered_return_reg): Likewise.
2354         (s390_emit_prologue, s390_emit_epilogue): Likewise.
2355         (s390_output_mi_thunk): Likewise.
2357         * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
2358         (attr "atype", attr "length"): Add defaults for new op_types.
2359         (all insns): Change op_type attribute where appropriate.
2361         ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
2362         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
2363         "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
2364         "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
2365         "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
2366         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
2367         "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
2368         "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
2369         "*movdf_64", "*movdf_31", "*movsf",
2370         "*load_multiple_si", "*store_multiple_di",
2371         "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
2372         "*la_64", "*la_31", "*la_31_and", "force_la_31",
2373         "*addsi3_carry1_cc", *addsi3_carry1_cconly",
2374         "*addsi3_carry2_cc", *addsi3_carry2_cconly",
2375         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
2376         "*addsi3_sign", "*addsi3_sub", "addsi3",
2377         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
2378         "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
2379         "mulsi3"
2380         "*andsi3_cc", "*andsi3_cconly", "andsi3",
2381         "*andqi3_ss", "*andqi3_ss_inv",
2382         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
2383         "*iorqi3_ss", "*iorqi3_ss_inv",
2384         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
2385         "*xorqi3_ss", "*xorqi3_ss_inv",
2386         "*tls_load_31"): Add alternatives for long-displacement instructions.
2388         ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
2389         "*load_multiple_di", "*store_multiple_di",
2390         "*sethighqidi_64", "*zero_extendhisi2_31",
2391         "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
2392         "adddf3", "*adddf3", "*adddf3_ibm",
2393         "addsf3", "*addsf3", "*addsf3_ibm",
2394         "subdf3", "*subdf3", "*subdf3_ibm",
2395         "subsf3", "*subsf3", "*subsf3_ibm",
2396         "mulsi_6432", "divmoddisi3",
2397         "muldf3", "*muldf3", "*muldf3_ibm",
2398         "mulsf3", "*mulsf3", "*mulsf3_ibm",
2399         "divdf3", "*divdf3", "*divdf3_ibm",
2400         "divsf3", "div*sf3", "*divsf3_ibm",
2401         "sqrtdf2", "sqrtsf2",
2402         "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
2403         "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
2404         "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
2405         and address constraints for instructions that do not accept long
2406         displacements.
2408 2003-06-30  Hartmut Penner  <hpenner@de.ibm.com>
2409             Ulrich Weigand  <uweigand@de.ibm.com>
2411         * config/s390/2084.md: New file.
2412         * config/s390/s390.md: Include it.
2413         * config/s390/s390.c (s390_adjust_priority): New function.
2414         (TARGET_SCHED_ADJUST_PRIORITY): Define.
2415         (s390_first_cycle_multipass_dfa_lookahead): New function.
2416         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2417         (s390_sched_reorder2): New function.
2418         (TARGET_SCHED_REORDER2): Define.
2419         (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
2420         (s390_issue_rate): Likewise.
2422 Mon Jun 30 23:47:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
2424         * Makefile.in (GTFILES): Add cgraph.h.
2425         * cgraph.c (known_decls): Remove.
2426         (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
2427         cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
2428         (cgraph_node): Do not allocate known_decls; use polutate hashtable.
2429         (cgraph_varpool_node): Likewise; add next pointer.
2430         (cgraph_varpool_nodes): New static variable.
2431         * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
2432         cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
2433         cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
2434         * gengtype.c (open_base_files): Include cgraph.h
2436 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2438         * Changelog: Remove ">>>>>>>" from previous change.
2440 2003-06-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2442         * config/cris/cris.c: Fix spelling for "testcase".
2443         * config/cris/cris.h: Likewise.
2444         * config/cris/cris.md: Likewise.
2445         * config/mmix/crti.asm: Likewise.
2446         * config/mmix/mmix.h: Likewise.
2447         * config/mmix/mmix.md: Likewise.
2449 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2451         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
2452         1.
2454 2003-06-30  Ulrich Weigand  <uweigand@de.ibm.com>
2456         * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
2457         --with-mode configure options.
2458         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
2459         (DRIVER_SELF_SPECS): Define.
2460         * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
2461         architecture to assembler.
2462         (LINK_SPEC): Merge 31-bit and 64-bit variants.
2463         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
2464         * config/s390/s390.c (override_options): New default rules for
2465         architecture mode and cpu architecture selection.
2466         * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
2467         new default rules.
2469         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
2470         * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
2471         * config/s390/s390.c (override_options): Add "z990" to
2472         processor_alias_table.
2473         * doc/invoke.texi (-march): Document "z990" processor type.
2475         * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
2476         * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
2477         (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
2478         TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
2479         * config/s390/s390.c (override_options): Replace enum pta_flags by
2480         enum processor_flags.  Fill in s390_tune_flags and s390_arch_flags.
2482         * config/s390/s390.c (s390_cpu): Rename to ...
2483         (s390_tune): ... this.
2484         * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
2485         * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
2486         * config/s390/s390.md (attr "cpu"): Likewise.
2488 2003-06-30  Neil Booth  <neil@daikokuya.co.uk>
2490         * c-common.c (enum c_language_kind, flag_objc): Remove.
2491         (fix_string_type, check_case_value, c_common_nodes_and_builtins,
2492         c_add_case_label, finish_label_addr_expr, boolean_increment):
2493         Use c_dialect_ macros.
2494         * c-common.h (enum c_language_kind): Extend.
2495         (c_dialect_cxx, c_dialect_objc): New.
2496         (flag_objc): Remove.
2497         (c_common_init_options): Update prototype.
2498         * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
2499         macros.
2500         * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
2501         macros.
2502         * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
2503         * c-lang.c (c_init_options): Remove.
2504         (c_language): Define.
2505         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
2506         * c-lex.c (lex_charconst): Use c_dialect_ macros.
2507         * c-opts.c (lang_flags): Make function-local.
2508         (c_common_init_options): Use c_dialect_ macros.  Handle
2509         C++ diagnostic requirements.
2510         (c_common_handle_option, c_common_post_options): Use flag_cxx.
2511         * c-parse.in (init_reswords): Use c_dialect_objc ().
2512         * c-pch.c (get_ident): Use c_language.
2513         * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
2514         * c-typeck.c (comptypes, build_c_cast): Similarly.
2515         * objc/objc-lang.c (c_language): Define.
2516         (LANG_HOOKS_INIT_OPTIONS): Use common hook.
2517         (objc_init_options): Remove.
2519 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2521         * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
2522         * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
2524 2003-06-30  Wolfgang Bangerth  <bangerth@dealii.org>
2526         * doc/sourcebuild.texi: Don't reference gnats.html any more.
2528 2003-06-30  Kazu Hirata  <kazu@cs.umass.edu>
2530         * config/h8300/h8300.c (compute_mov_length): Fix length of
2531         mov:SF on H8/300.
2533 2003-06-30  Nick Clifton  <nickc@redhat.com>
2535         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
2536         constant.
2538 Mon Jun 30 15:36:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
2540         (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
2542 2003-06-30 Hartmut Penner  <hpenner@de.ibm.com>
2544         * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
2545         (altivec_in_gprs_p): New function.
2547         * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
2548         prototype.
2549         (altivec_in_gprs_p): New prototype.
2551         * config/rs6000/altivec.md (*movv4si_internal): Change
2552         multi-assembler alternative to '#'. Add postreload splitter to
2553         handle this cases.
2554         (*movv4hi_internal): Likewise.
2555         (*movv4qi_internal): Likewise.
2556         (*movv4sf_internal): Likewise.
2558 2003-06-30  Jason Merrill  <jason@redhat.com>
2560         * defaults.h (PUSH_ARGS_REVERSED): Define default here.
2561         * calls.c: Not here.
2563 2003-06-30  Ben Elliston  <bje@wasabisystems.com>
2565         * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
2566         (bad_signed_byte_operand): Likewise.
2567         (arm_output_epilogue): Likewise.
2568         (arm_final_prescan_insn): Likewise.
2570 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2572         * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
2574 2003-06-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2576         * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
2577         subsequent writes.
2579 Mon Jun 30 10:03:02 CEST 2003  Jan Hubicka  <jh@suse.cz>
2581         * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
2582         in cfglayout mode.
2584 Mon Jun 30 09:52:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
2586         * i386.c (standard_80387_constant_p): Accept TFmode constants too.
2587         (init_ext_80387_constants): Likewise.
2588         (standard_80387_constant_rtx): Likewise.
2589         * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
2590         (atantf): Disable for !TARGET_128BIT_LONG_LONG
2591         (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
2592         (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
2593         (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
2594         (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
2595         (frndinttf2): New.
2596         (f2xm1tf2): New.
2597         (exp?f2): Use expsf2_tf when needed.
2598         (exp?f2_tf): New.
2599         (exptf): New.
2601 2003-06-29 Uwe Stieber <uwe@kaos-group.de>
2603         * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
2604         statement from tmake_file set.
2606 2003-06-29  James E Wilson  <wilson@tuliptree.org>
2608         * reload.c (find_reloads): Change push_reloads to push_reload in
2609         comment.
2610         * reload1.c (eliminate_regs): Likewise.
2611         (dump_needs): Delete prototype for deleted function.
2613 2003-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2615         * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
2616         format attributes.
2617         * c-format.c (enum format_type): Add gcc_diag_format_type,
2618         gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
2619         (gcc_diag_length_specs, gcc_cdiag_length_specs,
2620         gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
2621         gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
2622         gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
2623         gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
2624         (format_types_orig): Add new data.
2625         (find_char_info_specifier_index, init_dynamic_diag_info): New
2626         functions.
2627         (handle_format_attribute): Update to handle new format attributes.
2629 2003-06-29  Aaron W. LaFramboise  <awlaframboise@aol.com>
2631         * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
2633 2003-06-29  Dara Hazeghi  <dhazeghi@yahoo.com>
2635         * doc/install.texi: Remove install documentation for obsoleted targets
2636         i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
2637         arm-*-aof.
2638         Update information about IA64 toolchain, AIX make requirements,
2639         and binutils for m68k-*-hpux and *-*-linuxaout targets.
2641 Mon Jun 30 00:50:43 CEST 2003  Jan Hubicka  <jh@suse.cz>
2643         * regmove.c (regmove_optimize): Don't try to make src and dst match
2644         when they are in different modes.
2646 Sun Jun 29 23:06:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
2648         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
2649         busy work when builtin is not supported by the backend.
2651 2003-06-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2653         * loop.c (count_one_set): Fix detection of registers set in more
2654         than one basic block.
2656 2003-06-29  Andreas Jaeger  <aj@suse.de>
2658         * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
2659         * system.h: Poison OBJ_FORMAT_ROSE.
2660         * doc/tm.texi (Macros for Initialization): Remove documentatin of
2661         OBJECT_FORMAT_ROSE.
2662         * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
2663         * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
2665 2003-06-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2667         * pa.c (update_total_code_bytes): New function.
2668         (last_address): Number of bytes output for a function and its
2669         associated thunks.
2670         (compute_frame_size): Use BITS_PER_UNIT.
2671         (pa_output_function_epilogue): Compute last_address.  Use
2672         update_total_code_bytes.
2673         (output_lbranch): Handle long branch on portable runtime.
2674         (attr_length_millicode_call, attr_length_call,
2675         attr_length_indirect_call): Only use total_code_bytes for calls in
2676         the text section.
2677         (output_call): Only use an indirect call sequence when the target is
2678         not local.
2679         (pa_asm_output_mi_thunk): Handle updating of total_code_bytes.  Improve
2680         test to determine when an IA-relative branch can be used.  Add various
2681         long branch sequences.  Avoid using an indirect branch on all ports
2682         except SOM.
2684 2003-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
2686         * expr.c (clear_by_pieces): Fix prototype.
2688 2003-06-29  Andreas Jaeger  <aj@suse.de>
2690         * cse.c: Convert prototypes to ISO C90.
2691         * cselib.c: Likewise.
2692         * cselib.h: Likewise.
2693         * dbxout.c: Likewise.
2694         * debug.c: Likewise.
2695         * df.c: Likewise.
2696         * df.h: Likewise.
2697         * dojump.c: Likewise.
2698         * doloop.c: Likewise.
2699         * dominance.c: Likewise.
2700         * dwarf2asm.c: Likewise.
2701         * dwarf2out.c: Likewise.
2702         * dwarf2out.h: Likewise.
2703         * dwarfout.c: Likewise.
2704         * except.c: Likewise.
2705         * except.h: Likewise.
2706         * emit-rtl.c: Likewise.
2707         * et-forest.c: Likewise.
2708         * et-forest.h: Likewise.
2709         * except.c: Likewise.
2710         * explow.c: Likewise.
2711         * expmed.c: Likewise.
2712         * expr.c: Likewise.
2713         * expr.h: Likewise.
2715 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2717         * alloc-pool.c: Fix comment formatting.
2718         * bitmap.c: Likewise.
2719         * bitmap.h: Likewise.
2720         * bt-load.c: Likewise.
2721         * builtins.c: Likewise.
2722         * caller-save.c: Likewise.
2723         * cfganal.c: Likewise.
2724         * cfgrtl.c: Likewise.
2725         * collect2.c: Likewise.
2726         * cse.c: Likewise.
2727         * df.c: Likewise.
2728         * diagnostic.c: Likewise.
2729         * dwarf2out.c: Likewise.
2730         * dwarfout.c: Likewise.
2731         * expmed.c: Likewise.
2732         * final.c: Likewise.
2733         * flags.h: Likewise.
2734         * fold-const.c: Likewise.
2735         * gcc.c: Likewise.
2736         * gcov-io.h: Likewise.
2737         * gcov.c: Likewise.
2738         * genattrtab.c: Likewise.
2739         * genautomata.c: Likewise.
2740         * libgcov.c: Likewise.
2741         * mips-tfile.c: Likewise.
2742         * optabs.c: Likewise.
2743         * prefix.c: Likewise.
2744         * rtlanal.c: Likewise.
2745         * stmt.c: Likewise.
2746         * stor-layout.c: Likewise.
2747         * toplev.c: Likewise.
2748         * varasm.c: Likewise.
2749         * vmsdbgout.c: Likewise.
2751 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2753         * expr.c (emit_single_push_insn): If padding is needed
2754         downward, adjust the stack pointer first, and then store the
2755         data into the stack location using an offset.
2757 2003-06-29  Andreas Jaeger  <aj@suse.de>
2759         * collect2.h: Convert prototypes to ISO C90.
2760         * collect2.c: Likewise.
2761         * conflict.c: Likewise.
2762         * coverage.c: Likewise.
2763         * convert.h: Likewise.
2764         * convert.c: Likewise.
2766 2003-06-29  Nathan Sidwell  <nathan@codesourcery.com>
2768         * c-decl.c (c_init_decl_processing): Use a location_t. Set input
2769         filename to <internal>.
2770         * tree.c (make_node): Just copy the current location.
2772 2003-06-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2774         PR optimization/11210
2775         * fold-const (decode_field_reference): Revert 2003-06-26 patch.
2777 2003-06-29  Neil Booth  <neil@daikokuya.co.uk>
2779         * toplev.c (flag_dummy): Remove.
2780         (f_options): Restore flag pointers.
2782 2003-06-29  David Edelsohn  <edelsohn@gnu.org>
2784         * config/rs6000/rs6000.c (processor_target_table): Add 970.
2785         * config.gcc: Add 970.
2787 2003-06-29  Kazu Hirata  <kazu@cs.umass.edu>
2789         * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
2790         -1) with ggc_strdup.
2791         * stmt.c (expand_asm_operands): Likewise.
2792         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2794 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2796         * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
2797         definition.
2799 2003-06-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2801         * opts.c: Include insn-attr.h.
2802         * Makefile.in (opts.o): Depend on INSN_ATTR_H.
2804 2003-06-27  J"orn Rennecke <joern.rennecke@superh.com>
2806         * flow.c (propagate_one_insn): Use proper test for a register
2807         being part of the return value.
2809 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2811         * config/avr/avr.c: Fix a comment typo.
2813 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2815         * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
2816         with avr_simplify_comparison_p.
2817         * config/avr/avr.c: Likewise.
2819 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2821         * builtins.c: Follow spelling conventions.
2822         * cgraph.c: Likewise.
2823         * cpplex.c: Likewise.
2824         * config/arm/arm.c: Likewise.
2825         * config/arm/iwmmxt.md: Likewise.
2826         * config/c4x/c4x-modes.def: Likewise.
2827         * config/c4x/c4x.c: Likewise.
2828         * config/c4x/c4x.h: Likewise.
2829         * config/c4x/c4x.md: Likewise.
2830         * config/i386/i386-interix.h: Likewise.
2831         * config/mips/mips.h: Likewise.
2833 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2835         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
2836         __mc68020__ on TARGET_68020.
2838 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2840         * config/h8300/h8300.c: Fix a comment typo.
2842 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
2844         * c-parse.in (yylexstring): Use a location_t.
2846         * diagnostic.h (diagnostic_set_info): Replace file and lineno
2847         parameters with a location_t.
2848         * diagnostic.c (diagnostic_set_info): Replace file and lineno
2849         parameters with a location_t.
2850         (inform, warning, pedwarn, error, sorry, fatal_error,
2851         internal_error, warning_with_decl, pedwarn_with_decl,
2852         error_with_decl): Adjust.
2853         * c-error.c (pedwarn_c99): Adjust.
2854         * c-format.c (status_warning): Adjust.
2855         * rtl-error.c (file_and_line_for_asm): Rename to ...
2856         (location_for_asm): Return a location_t.
2857         (diagnostic_for_asm): Adjust.
2859 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2861         * cpptrad.c (skip_macro_block_comment): New.
2862         (copy_comment): Use it if appropriate.
2864 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2866         * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
2867         definition.
2868         (store_killed_in_insn): Likewise.
2869         * print-rtl.c (print_rtx): Likewise.
2870         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2871         * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
2872         (m68hc11_reassign_regs): Likewise.
2873         (m68hc11_reorg): Likewise.
2875 2003-06-28  Gabriel Dos Reis <gdr@integrable-solutions.net>
2877         * diagnostic.c (output_integer_with_precision): New macro.
2878         (output_format): Use it.  Handle more format specifiers.
2879         (output_long_decimal): Remove.
2880         (output_unsigned_decimal): Likewise.
2881         (output_long_unsigned_decimal): Likewise.
2882         (output_octal): Likewise.
2883         (output_long_octal): Likewise.
2884         (output_hexadecimal): Likewise.
2885         (output_long_hexadecimal): Likewise.
2886         (output_long_long_decimal): Likewise.
2888 2003-06-28  Andreas Schwab  <schwab@suse.de>
2890         * config/ia64/ia64.md: Follow recent emit_note API change.
2892 2003-06-28  Nathan Sidwell  <nathan@codesourcery.com>
2894         * c-parse.in (%union): Replace filename & lineno with location.
2895         (save_filename, save_lineno): Remove.
2896         (save_location): New.
2897         (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
2898         nested_function, notype_nested_function, if_prefix, lineno_stmt,
2899         lineno_label, label): Adjust.
2901 2003-06-28  Jakub Jelinek  <jakub@redhat.com>
2903         * builtins.c (c_strlen): Add only_value argument.
2904         Handle COND_EXPR and COMPOUND_EXPR.
2905         (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
2906         Adjust c_strlen callers.
2907         (expand_builtin_strcpy, expand_builtin_strncpy,
2908         expand_builtin_strcmp, expand_builtin_strncmp,
2909         expand_builtin_fputs, expand_builtin_sprintf,
2910         fold_builtin): Adjust c_strlen callers.
2912 2003-06-28  Josef Zlomek  <zlomekj@suse.cz>
2914         * bb-reorder.c (find_traces_1_round): Do not send basic block
2915         to next round when we are in the last round.
2917 2003-06-28  Neil Booth  <neil@daikokuya.co.uk>
2919         * Makefile.in: Update.
2920         * opts.c: Include tm_p.h.
2921         (handle_options): Make static.
2922         (decode_options): Copied from toplev.c.
2923         * opts.h (decode_options): New.
2924         * toplev.c (parse_options_and_default_flags): Move most to opts.c,
2925         some to...
2926         (general_init): ...here.
2927         (toplev_main): Use decode_options instead.
2928         * toplev.h (save_argc, save_argv): New.
2930 2003-06-28  Kazu Hirata  <kazu@cs.umass.edu>
2932         * explow.c (find_next_ref): Remove.
2933         * rtl.h: Remove the prototype for find_next_ref.
2935 2003-06-27  Roger Sayle  <roger@eyesopen.com>
2937         * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
2938         call to match recent API change.
2940 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
2942         * dbxout.c (flag_debug_only_used_symbols): Delete redundant
2943         declaration.
2945         * c-format.c (check_format_string, get_constant)
2946         * cfgrtl.c (rtl_split_edge):
2947         Mark the definition static, matching the forward declaration.
2949 2003-06-27  Gunther Nikl <gni@gecko.de>
2951         * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
2953         PR target/11014
2954         * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
2955         syntax for MIT / MOTOROLA.
2957         PR other/10240
2958         * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
2959         * configure: Rebuilt.
2961 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
2963         * config/mips/mips.c (mips_build_va_list): Make padding in
2964         va_list structure explicit to avoid -Wpadded warnings.
2966 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
2968         * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
2969         * config/s390/s390.c (s390_secondary_output_reload_class): New function.
2970         * config/s390/s390-protos.h (s390_secondary_output_reload_class):
2971         Declare it.
2972         * config/s390/s390.md ("reload_outti", "reload_outdi",
2973         "reload_outdf"): New expanders.
2975         * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
2976         memory operands as source.
2977         ("movdi" + splitters): Likewise.
2978         ("movdf" + splitters): Likewise.
2979         * config/s390/s390.c (s390_split_ok_p): New function.
2980         * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
2982 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2984         * combine.c (force_to_mode): Replace the equality comparison
2985         of INTVALs with a pointer equality comparison.
2986         (simplify_comparison): Likewise.
2988 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2990         * jump.c (rtx_renumbered_equal_p): Replace an expression that
2991         is known to be 0 with 0.
2993 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
2995         * gcse.c (expr_equiv_p): Replace expressions that are known to
2996         be 0 with 0.
2998 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
3000         * cse.c (fold_rtx): Replace the equality comparison of INTVALs
3001         with a pointer equality comparison.
3003 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
3005         * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
3006         are known to be not equivalent.
3008 2003-06-27  Richard Henderson  <rth@redhat.com>
3010         * config/alpha/alpha.c (function_arg): Don't pass small aggregates
3011         in floating point registers.  Validate that we don't receive complex
3012         values here.  Use #elif.
3013         (return_in_memory, function_value): New.
3014         (alpha_va_arg): Handle complex values as two arguments.
3015         * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
3016         (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
3017         (SPLIT_COMPLEX_ARGS): New.
3018         * config/alpha/alpha-protos.h: Update.
3020 2003-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
3022         * ggc-page.c (inverse_table): Change type of mult to size_t.
3023         (compute_inverse): Compute inverse using size_t, not unsigned int.
3024         Compute inverse also for sizes larger than half a machine page.
3026 Fri Jun 27 18:36:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
3028         * toplev.c (rest_of_decl_compilation):  Only varpoolize argument
3029         when called before cgraph_optimize.
3031 2003-06-27  Zack Weinberg  <zack@codesourcery.com>
3033         * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
3034         * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
3035         be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
3037 Fri Jun 27 17:41:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
3039         * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
3040         of known_decls.
3042 2003-06-27  Hans-Peter Nilsson  <hp@axis.com>
3044         * defaults.h (REGISTER_MOVE_COST): Define default here.
3045         * regclass.c: Don't define default REGISTER_MOVE_COST here.
3046         * reload.c, reload1.c: Ditto.
3048 2003-06-27  Richard Earnshaw <rearnsha@arm.com>
3050         * flags.h: Really install previous change.
3052 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
3054         * rtl.h (emit_note): Remove FILE parameter.
3055         * emit-rtl.c (emit_line_note): Adjust emit_note call.
3056         (emit_note): Remove FILE parameter. Adjust.
3057         * builtins.c (expand_builtin_expect): Adjust emit_note call.
3058         * c-semantics.c (genrtl_scope_stmt): Likewise.
3059         (expand_stmt): Likewise.
3060         * cfglayout.c (reemit_insn_block_notes): Likewise.
3061         (duplicate_insn_chain): Likewise.
3062         * except.c (expand_eh_region_start, expand_eh_region_end,
3063         sjlj_emit_function_enter): Likewise.
3064         * explow.c (probe_stack_range): Likewise.
3065         * expr.c (emit_block_move_via_loop): Likewise.
3066         * function.c (init_function_start, expand_function_start,
3067         expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
3068         * integrate.c (expand_inline_function, copy_insn_list): Likewise.
3069         * reg-stack.c (compensate_edge): Likewise.
3070         * reload1.c (reload): Likewise.
3071         * rtlanal.c (hoist_insn_to_edge): Likewise.
3072         * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
3073         expand_loop_continue_here, expand_end_loop, expand_continue_loop,
3074         expand_exit_loop_top_cond, expand_value_return,
3075         expand_start_bindings_and_block, expand_end_bindings,
3076         expand_decl_cleanup, expand_start_case): Likewise.
3077         * unroll.c (copy_loop_body
3078         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
3079         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3080         * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
3081         rs6000_emit_allocate_stack, rs6000_output_function_prologue,
3082         rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
3083         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3084         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3086 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
3088         * c-tree.h (grokfield): Remove unused filename and line parameters.
3089         * c-decl.c (grokfield): Remove unused filename and line parameters.
3090         * c-parse.in (component_decl): Adjust field grokking rules, adjust
3091         grokfield calls.
3092         (component_declarator): Likewise.
3093         (component_notype_declarator): Likewise.
3094         * objc/objc-act.c (build_module_descriptor): Adjust grokfield
3095         calls.
3096         (build_protocol_template, build_method_prototype_list_template,
3097         build_method_prototype_template, build_category_template,
3098         build_selector_template, build_class_template,
3099         build_super_template, build_ivar_template,
3100         build_ivar_list_template, build_method_list_template,
3101         build_method_template, add_instance_variable): Likewise.
3103 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
3105         * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
3106         OP2 are known to be not equivalent.
3108 2003-06-26  Devang Patel <dpatel@apple.com>
3110         * final.c (debug_flush_symbol_queue): New function.
3111         (debug_queue_symbol): New function.
3112         (debug_free_queue): New function.
3113         (debug_nesting): New variable.
3114         (symbol_queue): New variable.
3115         (symbol_queue_index): Same.
3116         (symbol_queue_size): Same.
3117         * debug.h (debug_flush_symbol_queue): New.
3118         (debug_queue_symbol): New.
3119         (debug_free_queue): New.
3120         (debug_nesting): New.
3121         (symbol_queue_index): New.
3122         * dbxout.c (DBXOUT_DECR_NESTING): New macro.
3123         (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
3124         (dbxout_init): Delay symbol output.
3125         (dbxout_global_decl): Save, set and reset TREE_USED bit around
3126         dbxout_symbol() call.
3127         (dbxout_begin_function): Same.
3128         (dbxout_finish): Free symbol queue.
3129         (dbxout_type): Put appropriate symbols in queue.
3130         (dbxout_symbol): Put info for symbol's type in queue.
3131         Decrement/Increment nesting counts flush symbol queue appropriately.
3132         (dbxout_parms): Increment dbxout nesting.
3133         (dbxout_reg_parms): Same.
3134         * flags.h (flag_debug_only_used_symbols): New.
3135         * toplev.c (flag_debug_only_used_symbols): New variable.
3136         (lang_independent_options): Add entries for new option
3137         -feliminate-unused-debug-symbols.
3138         * common.opt: Add entry for -feliminate-unused-debug-symbols.
3139         * opts.c (common_handle_options): Same.
3140         * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
3141         -feliminate-unused-debug-symbols.
3142         * doc/invoke.texi (Debugging Options): Document
3143         -feliminate-unused-debug-symbols.
3145 2003-06-26  Roger Sayle  <roger@eyesopen.com>
3146             Jakub Jelinek  <jakub@redhat.com>
3148         * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
3149         obtain the format string instead of using TREE_STRING_POINTER and
3150         TREE_STRING_LENGTH.  Only optimize sprintf(dst,"%s",src) when the
3151         return value is unused or the length of src is a known constant.
3153 2003-06-26  Richard Henderson  <rth@redhat.com>
3155         * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
3157 2003-06-26  Richard Henderson  <rth@redhat.com>
3159         * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
3160         (ia64_split_call): Only load descriptor for GP register inputs.
3161         (ia64_expand_epilogue): Check current_frame_info.mask not
3162         current_function_is_leaf to restore ar.pfs.
3164 2003-06-26  Richard Henderson  <rth@redhat.com>
3166         * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
3167         instead of replacing it.
3169 2003-06-26  Richard Henderson  <rth@redhat.com>
3171         * flow.c (propagate_one_insn): Kill function return value
3172         registers across tail calls.
3174         * flow.c (propagate_one_insn): Preserve live-at-end registers
3175         across tail calls.
3177 2003-06-26  J"orn Rennecke <joern.rennecke@superh.com>
3179         * reload.c (can_reload_into): New function.
3180         (push_reload): Use it.
3182 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3184         * config/h8300/h8300.c (compute_a_rotate_length): Fix the
3185         references to the amount of a rotation.
3187 2003-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
3189         * config/sh/coff.h: Don't include dbxcoff.h.
3190         * config.gcc: List it here.
3192 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3194         * postreload.c (reload_cse_simplify_set): Call cselib_lookup
3195         earlier.  Don't check if SRC is a constant.
3197 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3199         * Makefile.in (OBJS): Add postreload.o.
3200         Remove cselib.h from the dependency list for reload1.o.
3201         Add a dependency list for postreload.o.
3202         * reload.h: Change the comment for the prototype of
3203         reload_cse_regs.
3204         * reload1.c: Don't include cselib.h.
3205         (reload_cse_regs): Move to postreload.c
3206         (reload_cse_regs_1): Likewise.
3207         (reload_cse_noop_set_p): Likewise.
3208         (reload_cse_simplify_set): Likewise.
3209         (reload_cse_simplify_operands): Likewise.
3210         (RELOAD_COMBINE_MAX_USES): Likewise.
3211         (reload_combine_ruid): Likewise.
3212         (LABEL_LIVE): Likewise.
3213         (reload_combine): Likewise.
3214         (reload_combine_note_use): Likewise.
3215         (reload_combine_note_store): Likewise.
3216         (reg_set_luid): Likewise.
3217         (reg_offset): Likewise.
3218         (reg_base_reg): Likewise.
3219         (reg_mode): Likewise.
3220         (move2add_luid): Likewise.
3221         (move2add_last_label_luid): Likewise.
3222         (MODES_OK_FOR_MOVE2ADD): Likewise.
3223         (reload_cse_move2add): Likewise.
3224         (move2add_note_store): Likewise.
3225         (reload_cse_simplify): Likewise.
3226         * postreload.c: New.
3228 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3230         * config/avr/avr.c (final_prescan_insn): Remove support for
3231         -mrtl.
3232         * config/avr/avr.h (MASK_RTL_DUMP): Remove.
3233         (TARGET_RTL_DUMP): Likewise.
3234         (TARGET_SWITCHES): Remove -mrtl.
3236 2003-06-26  Kazu Hirata  <kazu@cs.umass.edu>
3238         * config/h8300/h8300-protos.h: Change emit_a_rotate to
3239         output_a_rotate.  Add a prototype for compute_a_rotate_length.
3240         * config/h8300/h8300.c (emit_a_rotate): Change to
3241         output_a_rotate.
3242         (compute_a_rotate_length): New.
3243         (h8300_adjust_insn_length): Remove.
3244         * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
3245         * config/h8300/h8300.md (adjust_length): Remove.
3246         (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
3247         (*rotlhi3_1): Likewise.
3248         (*rotlsi3_1): Likewise.
3250 2003-06-26  Roger Sayle  <roger@eyesopen.com>
3251             Richard Henderson  <rth@redhat.com>
3253         * builtins.c (expand_builtin_mathfn): Always stabilize the argument
3254         list against re-evaluation.  If expand_unop fails, call expand_call
3255         with the stabilized argument list rather than return NULL_RTX.
3256         (expand_builtin_mathfn2): Likewise, always stabilize the argument
3257         list, and call expand_call ourselves if expand_binop fails.
3259 2003-06-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
3261         PR optimization/11210
3262         * fold-const (decode_field_reference): Strip only NOPs that
3263         don't affect the sign.
3265 2003-06-26  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
3267         * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
3268         (pop_fpscr, fpu_switch): Likewise.
3270 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3272         * value-prof.c: New.
3273         * value-prof.h: New.
3274         * Makefile.in (value-prof.o): New.
3275         (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
3276         (profile.o): Add value-prof.h and tree.h dependency.
3277         * flags.h (flag_profile_values): Declare.
3278         * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
3279         Add new counters.
3280         (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
3281         GCOV_COUNTER_V_DELTA): New counter sections.
3282         (__gcov_merge_single, __gcov_merge_delta): Declare.
3283         * flow.c (mark_used_regs): Set subregs_of_mode only when the
3284         structure is initialized.
3285         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
3286         * profile.c: Include value-prof.h and tree.h.
3287         (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
3288         gen_const_delta_profiler, instrument_values): New static functions.
3289         (get_exec_counts): Fix comment.
3290         (branch_prob): Invoke instrument_values.
3291         * toplev.c (flag_profile_values): New flag.
3292         * doc/invoke.texi (-fprofile-values): Document.
3294 2003-06-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3296         * Makefile.in (cfgrtl.o): Add expr.h dependency.
3297         * cfgrtl.c: Include expr.h.
3298         (mark_killed_regs, safe_insert_insn_on_edge): New
3299         functions.
3300         * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
3301         * basic-block.h (safe_insert_insn_on_edge): Declare.
3303 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
3305         * c-opts.c (missing_arg): Make non-static.
3306         (c_common_handle_option): Don't check for missing arguments.
3307         * opts.c (handle_option): Check for missing arguments.
3309 2003-06-26  David Edelsohn  <edelsohn@gnu.org>
3311         * config/rs6000/power4.md (power4-veccomplex): Correct latency.
3313 2003-06-25  Loren James Rittle  <ljrittle@acm.org>
3315         * configure.in (ld_vers): Portability [sed].
3316         * configure: Regenerate with autoconf213.
3318 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
3320         * doc/extend.texi: Document new builtin functions for Intel
3321         Prescott New Intrunctions.
3323         * doc/invoke.texi: Document new command-line options, -mpni and
3324         -mno-pni, for Intel Prescott New Intrunctions.
3326         * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
3328         * config/i386/i386.c (override_options): Turn on MASK_SSE2
3329         for -mpni. Turn on MASK_SSE for -msse2.
3330         (bdesc_2arg): Add PNI builtins with 2 args.
3331         (bdesc_1arg): Add PNI builtins with 1 arg.
3332         (ix86_init_mmx_sse_builtins): Handle PNI builtins.
3333         (ix86_expand_builtin): Likewise.
3335         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
3336         MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
3337         MASK_TLS_DIRECT_SEG_REFS): Renumbered.
3338         (TARGET_PNI): New.
3339         (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
3340         -mpni and -mno-pni.
3341         (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
3342         (ix86_builtins): Add PNI builtins.
3343         (config/i386/i386.md): Add PNI patterns.
3345         * config/i386/pmmintrin.h: New file.
3347 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
3349         * config/h8300/h8300.md (call): Fix the insn lengths.
3350         (call_value): Likewise.
3352 Thu Jun 26 00:13:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
3354         * c-common.c (handle_used_attribute): Use mark_referenced.
3355         * varasm.c (mark_referenced): Break out from ...
3356         (assemble_name): ... here.
3357         * tree.h (mark_referenced): Declare.
3359 2003-06-25  Wolfgang Bangerth  <bangerth@dealii.org>
3361         * gccbug.in: Add PCH to list of categories.
3363 2003-06-25 Martin Schaffner <schaffner@gmx.li>
3365         * cppfiles.c: Clarify comments.
3366         * cpphash.h: Likewise.
3367         * cpplib.h: Likewise.
3368         * cppmacro.c: Likewise.
3369         * mkdeps.h: Likewise.
3371 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
3373         * c-opts.c (complain_wrong_lang, write_langs): Remove.
3374         (c_common_handle_option): Complaints about wrong language are
3375         handled in opts.c now.
3376         * opts.c (complain_wrong_lang, write_langs, handle_options): New.
3377         (find_opt): Fix thinko.
3378         (handle_option): Update prototype.  Complain about switches for
3379         a different front end.
3380         * opts.h (lang_names, handle_options): New.
3381         (handle_option): Remove.
3382         * opts.sh: Write out language names array.
3383         * toplev.c (parse_options_and_default_flags): Use handle_options.
3385 2003-06-25  H.J. Lu <hongjiu.lu@intel.com>
3387         * config/i386/i386.c (MASK_SSE1): Removed.
3388         (MASK_SSE164): Removed.
3389         (MASK_SSE264): Removed.
3390         (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
3391         MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
3392         with MASK_SSE2 | MASK_64BIT.
3393         (bdesc_1arg): Likewise.
3394         (ix86_init_mmx_sse_builtins): Likewise.
3396         * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
3397         (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
3398         -msse2.
3400 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3402         * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
3403         (HOST_WIDE_INT_PRINT_DEC_SPACE,
3404         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
3405         HOST_WIDEST_INT_PRINT_DEC_SPACE,
3406         HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
3407         (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
3408         HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
3409         terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
3411         * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
3412         * ra-debug.c (dump_static_insn_cost): Likewise.
3414 2003-06-26  Nick Clifton  <nickc@redhat.com>
3416         * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3417         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3418         Replace occurances of '???' with 'XXX' incase they are
3419         mistaken for trigraphs.
3420         (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
3421         does not have a register for the first operand.
3423 2003-06-25      Dhananjay Deshpande <dhananjayd@kpitcummins.com>
3425         * config/sh/sh.c (sh_register_move_cost):
3426         Add case for moving between MAC_REGS.
3428 2003-06-25  Zack Weinberg  <zack@codesourcery.com>
3430         PR 10178
3431         * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
3432         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
3433         * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
3434         to true.
3435         * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
3436         return 0.
3438 2003-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3440         * Makefile.in (bt-load.o): Depend on $(TM_P_H).
3441         * bt-load.c: Include "tm_p.h".
3443 2003-06-25  Kazu Hirata  <kazu@cs.umass.edu>
3445         * config/h8300/h8300.c (compute_mov_length): Adjust for the
3446         new optimization.
3447         * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
3448         an SImode constant whose upper and lower are the same.
3450 Wed Jun 25 11:31:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
3452         * varasm.c (assemble_name): Mark needed variables even when
3453         global info is ready.
3455 2003-06-24  Jerry Quinn  <jlquinn@optonline.net>
3457         PR other/11280
3458         * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
3459         -freorder-functions description.
3461 2003-06-25  Josef Zlomek  <zlomekj@suse.cz>
3463         * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
3465 2003-06-25  Neil Booth  <neil@daikokuya.co.uk>
3467         * opts.c (common_handle_option): Add missing break;s.
3469 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3471         * config/h8300/h8300-protos.h: Add a prototype for
3472         compute_mov_length.
3473         * config/h8300/h8300.c (compute_mov_length): New.
3474         * config/h8300/h8300.md (*movqi_h8300): Use it.
3475         (*movqi_h8300hs): Likewise.
3476         (movstrictqi): Likewise.
3477         (*movhi_h8300): Likewise.
3478         (*movhi_h8300hs): Likewise.
3479         (movstricthi): Likewise.
3480         (*movsi_h8300): Likewise.
3481         (*movsf_h8300): Likewise.
3482         (*movsi_h8300hs): Likewise.
3483         (*movsf_h8300hs): Likewise.
3485 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3487         * jump.c (next_nondeleted_insn): Remove.
3488         * rtl.h: Remove the prototype for next_nondeleted_insn.
3490 2003-06-24  Roger Sayle  <roger@eyesopen.com>
3492         PR optimization/11311
3493         * builtins.c (powi_cost): Fix typo.  The number of multiplications
3494         required is the number to reduce the argument, result, plus the
3495         cost of calculating the residual, val [not n, the original value].
3497 2003-06-24  Roger Sayle  <roger@eyesopen.com>
3499         * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
3501 2003-06-24  Richard Henderson  <rth@redhat.com>
3502             (blame to: Loren James Rittle  <ljrittle@acm.org>)
3504         * real.h (ieee_extended_intel_96_round_53_format): New.
3505         * real.c (ieee_extended_intel_96_round_53_format): New.
3506         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
3507         for XFmode and TFmode.
3509 2003-06-24  Kazu Hirata  <kazu@cs.umass.edu>
3511         * config/h8300/h8300.md (4 anonymous patterns): Give internal
3512         names.
3513         (movsi_h8300): Change the name to *movsi_h8300.
3514         (movsi_h8300hs): Change the name to *movsi_h8300hs.
3515         (movsf_h8300): Change the name to *movsf_h8300.
3516         (movsf_h8300hs): Change the name to *movsf_h8300hs.
3518 2003-06-24  Jakub Jelinek  <jakub@redhat.com>
3520         * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
3521         src twice.
3523 2003-06-24  J"orn Rennecke <joern.rennecke@superh.com>
3525         Back out these patches:
3526          2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
3527           * sh.h (OLD_ARG_MODE): New macro.
3528           (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
3529           (FUNCTION_ARG_1): Break out of:
3530           (FUNCTION_ARG).  Use OLD_ARG_MODE.
3531          2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
3532           * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
3533           of the generated register.
3535         * sh.h (FUNCTION_ARG_SCmode_WART): Define.
3536         (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
3537         an even number of floating point regs are in use, use the same
3538         sequence of argument passing registers for SCmode as would be
3539         used for two SFmode values.
3540         * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
3541         swap real / imaginary parts in incoming SCmode values passed
3542         in registers.
3544 2003-06-24  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3546         PR target/11260
3547         * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
3549 Tue Jun 24 18:49:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
3551         * Makefile.in (cgraph.o): Depend on output.h, not depend on
3552         tree-inline.h
3553         * cgraph.c: Do not include tree-inline.h; include output.h
3554         (known_fns): Rename to ...
3555         (known_decls): ... this one; update all uses.
3556         (cgraph_varpool_hash): New static variable.
3557         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
3558         variables.
3559         (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
3560         cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
3561         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3562         New functions.
3563         * cgraph.h (cgraph_varpool_node): New structure.
3564         (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
3565         (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
3566         cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
3567         cgraph_varpool_asemble_pending_decls): Declare.
3568         * cgraphunit.c (record_call_1): Notice variable references.
3569         (cgraph_finalize_compilation_unit): Assemble pending variables.
3570         * toplev.c (wrapup_global_declarations): Use varpool.
3571         (compile_file): Assemble pending declarations.
3572         (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
3573         * varasm.c (assemble_name): Notice varpool references.
3575 Tue Jun 24 13:52:11 CEST 2003  Jan Hubicka  <jh@suse.cz>
3577         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
3578         * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
3579         * varasm.c (assemble_variable): Call prepare_assemble_variable.
3581 2003-06-23  Roger Sayle  <roger@eyesopen.com>
3583         * builtins.c (expand_builtin): Use expand_builtin_pow to expand
3584         calls for pow, powf, powl and their __builtin_ variants.
3585         (expand_builtin_pow): If the second argument is a constant
3586         integer and compiling with -ffast-math, use expand_powi to
3587         generate RTL if powi_cost is less than POWI_MAX_MULTS.
3588         (powi_cost): New function to return the number of multiplications
3589         necessary to evaluate an Nth power, for integer constant N.
3590         (expand_powi): New function to expand the RTL for evaluating
3591         the Nth power of a floating point value, for integer constant N.
3593         * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
3595 Mon Jun 23 23:07:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
3597         * cgraph.c (cgraph_nodes_queue): Declare.
3598         (eq_node): Take identifier as p2.
3599         (cgraph_node): Update htab_find_slot_with_hash call.
3600         (cgraph_node_for_identifier): New.
3601         (cgraph_mark_needed_node): Move here from cgraphunit.c.
3602         * cgraph.h (cgraph_nodes_queue): Declare.
3603         (cgraph_node_for_identifier): Declare.
3604         * cgraphunit.c (cgraph_finalize_function): Collect entry points here
3605         instead of in cgraph_finalize_compilation_unit; constructors and
3606         destructors are entry points.
3607         (cgraph_finalize_compilation_unit): Reorganize debug outout;
3608         examine nested functions after lowerng; call collect_functions hook.
3609         (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
3610         (cgraph_finalize_compilation_unit): Do not collect entry points.
3611         * varasm.c: Include cgraph.h
3612         (assemble_name): Mark referenced identifier as needed.
3614         * cgraphunit.c (record_call_1): Use get_callee_fndecl.
3616 2003-06-23  Jakub Jelinek  <jakub@redhat.com>
3618         * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
3619         just SYMBOL_REF.
3620         * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
3621         mode, as it requires pic register loaded.
3623         * varasm.c (resolve_unique_section): Remove prototype.  No longer
3624         static.
3625         * tree.h (resolve_unique_section): New prototype.
3627 2003-06-23  Andreas Schwab  <schwab@suse.de>
3629         PR debug/9905
3630         * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
3631         recursing through first argument.
3633 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3635         * ChangeLog.1: Fix a typo.
3636         * cfgrtl.c: Fix comment typos.
3637         * dwarf2out.c: Likewise.
3638         * expmed.c: Likewise.
3639         * genrecog.c: Likewise.
3640         * jump.c: Likewise.
3641         * rtlanal.c: Likewise.
3642         * ssa-dce.c: Likewise.
3643         * toplev.c: Likewise.
3645 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3647         * doc/extend.texi: Fix typos.
3648         * doc/md.texi: Likewise.
3649         * doc/tm.texi: Likewise.
3651 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3653         * basic-block.h: Fix comment formatting.
3654         * bt-load.c: Likewise.
3655         * builtins.c: Likewise.
3656         * c-common.c: Likewise.
3657         * c-common.h: Likewise.
3658         * c-format.c: Likewise.
3659         * coverage.c: Likewise.
3660         * cpplib.h: Likewise.
3661         * cpppch.c: Likewise.
3662         * dbxout.c: Likewise.
3663         * diagnostic.c: Likewise.
3664         * dwarf2out.c: Likewise.
3665         * expr.c: Likewise.
3666         * fold-const.c: Likewise.
3667         * function.c: Likewise.
3668         * gcc.c: Likewise.
3669         * gcov-io.c: Likewise.
3670         * gcov-io.h: Likewise.
3671         * gcov.c: Likewise.
3672         * profile.c: Likewise.
3673         * real.h: Likewise.
3674         * sched-deps.c: Likewise.
3676 2003-06-23  Roger Sayle  <roger@eyesopen.com>
3677             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3679         * doc/contrib.texi (Contributors): Add a note on testing and
3680         remove duplicates from testers list.
3682 2003-06-23  Nick Clifton  <nickc@redhat.com>
3684         * read-rtl.c (read_braced_string): Check for EOF.  If
3685         encountered issue an error message.
3687 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3689         * doc/invoke.texi: Document dump options, dT and dW.
3691 2003-06-23  Kazu Hirata  <kazu@cs.umass.edu>
3693         * genrecog.c (pred_table): Remove the entry for
3694         mode_independent_operand.
3695         * recog.c (next_insns_test_no_inequality): Remove.
3696         (mode_independent_operand): Likewise.
3697         * recog.h: Remove the prototype for mode_independent_operand.
3699 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3701         * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
3702         store into bit 0.
3703         * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
3704         second alternative to set_znv.
3705         (*extzv_1_r_inv_h8300hs): Likewise.
3707 2003-06-23  Hans-Peter Nilsson  <hp@bitrange.com>
3709         * configure.in (in_tree_gas): Find out here whether GAS is ELF,
3710         set in_tree_gas_is_elf accordingly.
3711         (in_tree_ld): Find out whether LD emulation is ELF, set
3712         in_tree_ld_is_elf accordingly.
3713         (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
3714         (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
3715         (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
3716         (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
3717         grepping gas/Makefile.
3718         (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
3719         $in_tree_ld_is_elf instead of grepping ld/Makefile.
3720         * configure: Regenerate.
3722 2003-06-22  Roger Sayle  <roger@eyesopen.com>
3724         * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
3725         up the stabilized argument list, not build_tree_list.
3726         (expand_builtin_strcpy): Construct new argument list manually
3727         instead of using chainon to modify the original argument list.
3728         (expand_builtin_stpcpy): Construct new argument list manually
3729         instead of using copy_list and chainon.
3730         (expand_builtin_sprintf): New function.  Optimize calls to
3731         sprintf when the format is "%s" or doesn't contain a '%'.
3732         (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
3733         expand_builtin_sprintf.
3735 2003-06-22  Andreas Schwab  <schwab@suse.de>
3737         * function.c (set_insn_locators): Mark as unused.
3739 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3741         * common.opt: Add -finline-limit.
3742         * opts.c (common_handle_options): Handle it.
3743         * opts.sh: Temporary kludge for -finline-limit.
3744         * toplev.c (decode_f_option, independent_decode_option): Die.
3745         (parse_options_and_default_flags): No independent_decode_option.
3747 2003-06-22  Andreas Jaeger  <aj@suse.de>
3749         * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
3751 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3753         * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
3755 2003-06-22  Andreas Schwab  <schwab@suse.de>
3757         * doc/invoke.texi: Remove leading `-' from options in index.
3759 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3761         * bt-load.c: Follow spelling conventions.
3763 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3765         * expr.c (emit_move_insn_1): Fix a comment typo.
3767 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3769         * doc/invoke.texi: Alphabetize dump options.
3771 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3773         * doc/invoke.texi: Remove a duplicate -dk.
3775 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3777         * doc/invoke.texi: Update dump file names.
3779 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
3781         * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
3782         and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
3784 2003-06-22  Kazu Hirata  <kazu@cs.umass.edu>
3786         * doc/rtl.texi: Fix the @findex for pre_modify.
3788 2003-06-22  Andreas Jaeger  <aj@suse.de>
3790         * caller-save.c: Convert to ISO C90.
3791         * calls.c: Likewise.
3792         * cfg.c: Likewise.
3793         * cfganal.c: Likewise.
3794         * cfgbuild.c: Likewise.
3795         * cfgcleanup.c: Likewise.
3796         * cfghooks.c: Likewise.
3797         * cfglayout.c: Likewise.
3798         * cfglayout.h: Likewise.
3799         * cfgloop.c: Likewise.
3800         * cfgloop.h: Likewise.
3801         * cfgloopanal.c: Likewise.
3802         * cfgloopmainip.c: Likewise.
3803         * cfgrtl.c: Likewise.
3805 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
3807         * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
3808         64-bit alignment.
3810 2003-06-22  Richard Earnshaw  <rearnsha@arm.com>
3812         * arm.md (all call_value patterns): Remove register constraints on
3813         value operand.
3815 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3817         * common.opt: More -f switches.
3818         * opts.c (common_handle_options): Handle them.
3819         * toplev.c (time_report): Make extern.
3820         (f_options): USe flag_dummy.
3821         (decode_f_option): No need to use f_options now.
3822         * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
3823         flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
3825 2003-06-22  Andreas Jaeger  <aj@suse.de>
3827         * c-lex.c: Convert to ISO C90.
3828         * c-objc-common.c: Likewise.
3829         * c-opts.c: Likewise.
3830         * c-pch.c: Likewise.
3831         * c-ppoutput.c: Likewise.
3832         * c-pragma.h: Likewise.
3833         * c-pretty-print.c: Likewise.
3834         * c-pretty-print.h: Likewise.
3835         * c-semantics.c: Likewise.
3836         * c-tree.h: Likewise.
3837         * c-typeck.c: Likewise.
3839         * c-lang.c: Convert to ISO C90.
3841 2003-06-22  Neil Booth  <neil@daikokuya.co.uk>
3843         * opts.c (find_opt): Fix to always guarantee a find of a
3844         switch with joined parameter.
3845         * opts.h (struct cl_option): New member back_chain.
3846         * opts.sh: Update to calculate and add back_chain member.
3848 2003-06-22  Gabriel Dos Reis <gdr@integrable-solutions.net>
3850         * diagnostic.h (output_host_wide_integer): Declare.
3851         * diagnostic.c (output_long_long_decicaml): New function.
3852         (output_host_wide_integer): Likewise.
3853         (output_format): Use them.  Handle "%ll" and "%w".
3855 2003-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
3857         * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
3859 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
3861         * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
3862         * configure.in: Don't use gcc_AC_C_CHARSET.
3863         * configure, config.in: Regenerate.
3864         * config/i370/i370.c, config/i370/i370.h: Use
3865         (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
3866         instead of HOST_EBCDIC or !HOST_EBCDIC.  Clarify comments a tad.
3868 2003-06-21  Neil Booth  <neil@daikokuya.co.uk>
3870         * Makefile.in: Update.
3871         * common.opt: New switches.
3872         * opts.c: Include diagnostic.h.
3873         (common_handle_option): Handle new switches.
3874         * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
3875         flag_if_conversion2, flag_delete_null_pointer_checks,
3876         flag_rerun_cse_after_loop): Make extern.
3877         (flag_dummy): New.
3878         (f_options): Update to use flag_dummy for moved options.
3879         (decode_f_option): Some switches moved to opts.c.
3880         * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
3881         flag_if_conversion2, flag_delete_null_pointer_checks,
3882         flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
3883         flag_tracer, flag_thread_jumps, flag_unroll_loops,
3884         flag_unroll_all_loops, flag_unswitch_loops): New.
3886 Sat Jun 21 13:41:00 CEST 2003  Jan Hubicka  <jh@suse.cz>
3888         * i386.c (ix86_va_arg): Fix allocation of temporary slot.
3890 2003-06-20  Kazu Hirata  <kazu@cs.umass.edu>
3892         * config/h8300/h8300-protos.h: Add a prototype for
3893         same_cmp_preceding_p.
3894         * config/h8300/h8300.c (same_cmp_preceding): New.
3895         * config/h8300/h8300.md: Extend peephole2's that transform
3896         compare:SI into shorter sequences so that they can deal with
3897         signed comparisons.
3899 2003-06-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3901         * doc/contrib.texi (Contributors): Use Windows instead of Win32.
3903         Update Andreas Jaeger's entry.
3905         Merge the two entries of Kaveh Ghazi, David Edelsohn, and
3906         Loren J. Rittle.
3908 2003-06-21  Nathanael Nerode  <neroden@gcc.gnu.org>
3910         * mkconfig.sh: Add multiple inclusion guards to generated headers.
3912 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
3914         * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
3915         * common.opt: Add remaining -W options and -g.
3916         * diagnostic.c (warnings_are_errors): Remove.
3917         * flags.h: Make most warning flags boolean.
3918         * opts.c (common_handle_option): Handle remaining -W options, and -g.
3919         Move many warning flags from toplev.c, making them boolean.
3920         * toplev.c: Remove many warning flags.
3921         (decode_W_option): Remove.
3922         (decode_g_option): Make extern.  Error on unknown switch.
3923         (lang_independent_W_options): Use warn_dummy.
3924         (independent_decode_option): Just handle -f switches now.
3925         * toplev.h (decode_g_option): New.
3927 2003-06-20  Aldy Hernandez  <aldyh@redhat.com>
3929         PR/11092
3930         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
3931         vectors.
3933 2003-06-20  Kelley Cook  <kelleycook@wideopenwest.com>
3935         * opts.sh: Tweak awk script for portability.
3937 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
3939         PR c++/10888
3940         * tree-inline.c (expand_call_inline): Do not warn about failing to
3941         inline functions declared in system headers.
3942         * doc/invoke.texi (-Winline): Expand on documentation.
3944 2003-06-20  Richard Henderson  <rth@redhat.com>
3946         * config/alpha/alpha.c (alpha_file_start): Disable
3947         file_start_file_directive for ELF and not MDEBUG.
3949 2003-06-20  J"orn Rennecke <joern.rennecke@superh.com>
3951         * sh.h (ROUND_TYPE_ALIGN): Remove.
3953 2003-06-20  Richard Henderson  <rth@redhat.com>
3955         * hooks.c (hook_int_void_no_regs): Rename from
3956         hook_reg_class_void_no_regs; change return type.
3957         * hooks.h: Update.
3958         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
3959         * target.h (branch_target_register_class): Change return type to int.
3960         Add documentation.
3961         * config/sh/sh.c (sh_target_reg_class): Change return type.
3962         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3964 2003-06-20  Andreas Tobler <toa@pop.agri.ch>
3966         * c-format.c: Change _Bool to bool reverting part of the last
3967         patch.
3969 2003-06-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3971         * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
3972         strip name encoding.
3974 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3976         * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
3977         * configure: Regenerate.
3978         Fixes PR driver/9362.
3980 2003-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3982         * config/alpha/alpha.c (alpha_file_start): Fix typo.
3984 2003-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3986         * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
3987         to ASM_OUTPUT_SOURCE_LINE.
3989 2003-06-20  Daniel Egger  <degger@fhm.edu>
3990             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3992         * doc/install.texi (Building): Correct and improve statement
3993         about parallel builds.
3995 2003-06-20  Andreas Jaeger  <aj@suse.de>
3997         * c-common.c: Change _Bool to bool reverting part of the last
3998         patch.
4000 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
4002         * tree.h (expand_function_end): Remove all parameters.
4003         * function.c (expand_function_end): Remove all parameters.
4004         Use input_location. Never expand_end_bindings.
4005         * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
4006         * coverage.c (create_coverage): Likewise.
4008 2003-06-20  Nick Clifton  <nickc@redhat.com>
4010         * doc/extend.texi (ARM Built-in Functions): New node.  Document
4011         ARM builtin functions for iWMMXt support.
4013 2003-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
4015         * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
4016         SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
4017         (--with-as): Add @anchor.
4018         (--with-gnu-ld): Fix typo.
4019         (--with-ld): Add @uref to --with-as.
4021 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
4023         * doc/tm.texi: Uniformly use @defmac for macros, rather than
4024         @table items.  Minor formatting and editorial corrections.
4026 2003-06-20  Neil Booth  <neil@daikokuya.co.uk>
4028         * line-map.c, line-map.h: Convert to ISO prototypes.
4030 2003-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4032         * gcse.c (store_killed_in_insn): Fix.
4034 2003-06-19  Zack Weinberg  <zack@codesourcery.com>
4036         * target.h (asm_out.file_start, file_start_app_off,
4037         file_start_file_directive): New hooks.
4038         * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4039         TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
4040         New hook-definition macros.
4041         * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
4042         * varasm.c (default_file_start): New.
4043         * output.h: Prototype it.
4044         * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
4045         * system.h: Poison ASM_FILE_START.
4047         * config/alpha/alpha.c (alpha_write_verstamp): Delete.
4048         (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
4049         (unicosmk_asm_file_start): Rename unicosmk_file_start,
4050         make static, take no arguments.
4051         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
4052         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
4053         * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
4054         TARGET_ASM_FILE_END.  Remove reference to ASM_FILE_START in
4055         comment.
4056         * config/arc/arc.c (arc_asm_file_start): Rename
4057         arc_file_start, take no arguments, make static.
4058         (TARGET_ASM_FILE_START): Set it.
4059         * config/arm/arm.c (aof_file_start): New static function.
4060         (TARGET_ASM_FILE_START): Set it, when appropriate.
4061         * config/arm/coff.h, config/arm/elf.h:
4062         Set TARGET_ASM_FILE_START_APP_OFF to true.
4063         * config/avr/avr.c (asm_file_start): Rename avr_file_start,
4064         take no arguments, make static.
4065         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
4066         Set them.
4067         * config/c4x/c4x.c (c4x_file_start): New static function.
4068         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
4069         Set them.
4070         * config/cris/cris.c (cris_file_start): New static function.
4071         (TARGET_ASM_FILE_START): Set it.
4072         * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
4073         dsp16xx_file_start, make static.
4074         (luxworks_dsp16xx_file_start): Delete.
4075         (TARGET_ASM_FILE_START): Set it.
4076         * config/h8300/h8300.c (asm_file_start): Rename
4077         h8300_file_start, make static, take no arguments.
4078         (TARGET_ASM_FILE_START): Set it.
4079         * config/i370/i370.c (i370_file_start): New static function.
4080         (TARGET_ASM_FILE_START): Set it.
4081         * config/i386/i386.c (x86_file_start): New static function.
4082         (TARGET_ASM_FILE_START): Set it.
4083         * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
4084         X86_FILE_START_FLTUSED): New macros, default to false.
4085         * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
4086         * config/i386/sysv4.h, config/i386/sco5.h: Override
4087         X86_FILE_START_VERSION_DIRECTIVE to true.
4088         * config/ia64/ia64.c (ia64_file_start): New static function.
4089         (TARGET_ASM_FILE_START): Set it.
4090         (emit_safe_across_calls): Take no arguments.
4091         * config/ia64/ia64.md: Update to match.
4092         * config/m32r/m32r.c (m32r_asm_file_start): Rename
4093         m32r_file_start, make static, take no arguments.
4094         (TARGET_ASM_FILE_START): Set it.
4095         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
4096         m68hc11_file_start, make static, take no arguments.
4097         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4098         (print_options): Delete.
4099         * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
4100         (TARGET_ASM_FILE_START_APP_OFF): Set.
4101         * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
4102         m68k_hp320_file_start.
4103         * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
4104         Make static, take no arguments.
4105         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4106         * config/mmix/mmix.c (mmix_asm_file_start): Rename
4107         mmix_file_start, make static, take no arguments.
4108         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4109         * config/mn10300/mn10300.c (asm_file_start): Rename
4110         mn10300_file_start, make static, take no arguments.
4111         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4112         * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
4113         * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
4114         pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
4115         pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
4116         pa_hpux64_hpas_file_start): New static functions.
4117         * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
4118         * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
4119         pa_linux_file_start.
4120         * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
4121         pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
4122         appropriate.
4123         * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
4124         * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
4125         (rs6000_file_start): Make static, take no arguments.  Reset
4126         default_cpu under certain conditions.
4127         (rs6000_xcoff_file_start): New function.
4128         * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
4129         * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
4130         TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
4131         * config/sh/sh.c (output_file_start): Rename
4132         sh_file_start, make static, take no arguments.  Merge in old
4133         code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
4134         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4135         * config/sh/sh.c (TARGET_ELF): Define to 0.
4136         * config/sh/elf.h (TARGET_ELF): Redefine to 1.
4137         * config/v850/v850.c (asm_file_start): Delete.
4138         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
4139         * config/vax/vax.c (vax_file_start): New static function.
4140         (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
4142         * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
4143         * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
4144         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
4145         * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
4146         * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
4147         * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
4149         * config/darwin.h, config/elfos.h, config/alpha/elf.h
4150         * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
4151         * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
4152         * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
4153         * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
4154         * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
4155         * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
4156         * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
4157         * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
4158         * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
4159         * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
4160         * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
4161         * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
4162         * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
4163         * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
4164         * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
4165         * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
4166         * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
4168         * config/alpha/alpha-protos.h, config/arc/arc-protos.h
4169         * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
4170         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4171         * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
4172         * config/mips/mips-protos.h, config/mmix/mmix-protos.h
4173         * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
4174         * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
4176         * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
4177         Remove reference to ASM_FILE_START in comment.
4178         * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
4179         * config/arm/linux-gas.h, config/arm/netbsd-elf.h
4180         * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
4182 2003-06-19  Graeme Peterson <gp@qnx.com>
4184         * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
4185         SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
4186         sysroot_hdrs_suffix_spec): New.
4187         (static_specs): Initialize new variables.
4188         (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
4189         * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
4190         New macros.
4192 2003-06-19  Andreas Jaeger  <aj@suse.de>
4194         * c-aux-info.c: Convert to ISO C90.
4195         * c-pragma.c: Likewise.
4196         * c-common.c: Likewise.
4197         * c-common.h: Likewise.
4198         * c-convert.c: Likewise.
4199         * c-cppbuiltin.c: Likewise.
4200         * c-dump.c: Likewise.
4201         * c-decl.c: Likewise
4202         * c-format.c: Likewise.
4203         * c-incpath.c: Likewise.
4204         * c-incpath.h: Likewise.
4206 2003-06-19  Roger Sayle  <roger@eyesopen.com>
4208         * builtins.c (expand_errno_check): Assume that flag_errno_math
4209         and HONOR_NANS have been tested before calling here.  Only try
4210         to set errno ourselves if the decl can't throw an exception.
4211         (expand_builtin_mathfn): Move the code to stabilize the arg
4212         after the main switch, so that that its only done when needed.
4213         BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
4214         Don't modify the original expr when stabilizing the argument.
4215         (expand_builtin_mathfn_2): Likewise, move the code to stabilize
4216         the args after the main switch, and don't modify the orginal exp.
4218 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
4220         * expr.c (const_vector_from_tree): Initialize remaining elements
4221         to 0.
4223 2003-06-19  Aldy Hernandez  <aldyh@redhat.com>
4225         * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
4226         Change "fix" to "float".
4228 2003-06-19  Andreas Jaeger  <aj@suse.de>
4230         * c-tree.h: Remove declaration of poplevel.
4232         * tree.h: Remove declaration of approx_sqrt.
4234         * c-lex.c: Remove redundant declaration of asm_out_file.
4236         * flags.h: Remove declaration of warn_unknown_pragma and
4237         main_input_filename.
4239         * rtl.h: Remove functions from fold-const.c since they're already
4240         declared in tree.h.
4242         * regs.h: Remove redundant declaration of reg_names.
4244         * bt-load.c (migrate_btr_defs): Correct printf arguments.
4246         * protoize.c: Fix breakage from last patch.
4248 2003-06-19  J"orn Rennecke <joern.rennecke@superh.com>
4250         * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
4251         has been included.
4253 2003-06-18  James A Morrison <ja2morri@student.math.uwaterloo.ca>
4255         * config/sparc/sparc.c: Update copyright year.
4257 2003-06-19  David Edelsohn  <edelsohn@gnu.org>
4259         * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
4260         to ABI_V4.
4262 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
4264         PR bootstrap/4068
4265         * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
4267 2003-06-19  Kazu Hirata  <kazu@cs.umass.edu>
4269         * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
4270         to the end of the file.  Remove unnecessary prototypes.
4272 2003-06-19  Hans-Peter Nilsson  <hp@axis.com>
4274         * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
4275         calls to insn_default_latency and result_ready_cost.  Initialize
4276         def_latency to 1.
4278 2003-06-18  Richard Henderson  <rth@redhat.com>
4280         * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
4281         (_Unwind_FindEnclosingFunction): Implement.
4283 2003-06-18  Kazu Hirata  <kazu@cs.umass.edu>
4285         * toplev.c (rest_of_handle_sched): Hide the entire function if
4286         INSN_SCHEDULING is not defined.
4287         (rest_of_compilation): Call rest_of_handle_sched() only when
4288         INSN_SCHEDULING is defined.
4290 2003-06-18  Stephen Clarke <stephen.clarke@superh.com>
4291             J"orn Rennecke <joern.rennecke@superh.com>
4293         * bt-load.c: New file.
4294         * Makefile.in (OBJS): Include bt-load.o
4295         (bt-load.o): Add dependencies.
4296         * flags.h (flag_branch_target_load_optimize): Declare.
4297         (flag_branch_target_load_optimize2): Likewise.
4298         * hooks.c (hook_reg_class_void_no_regs): New function.
4299         (hook_bool_bool_false): Likewise.
4300         * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
4301         * rtl.h (branch_target_load_optimize): Declare.
4302         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
4303         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4304         (TARGET_INITIALIZER): Include these.
4305         * target.h (struct gcc_target): Add branch_target_register_class
4306         and branch_target_register_callee_saved members.
4307         * toplev.c (enum dump_file_index): Add DFI_branch_target_load
4308         (dump_file) Add "tars" entry.
4309         (flag_branch_target_load_optimize): New variable.
4310         (flag_branch_target_load_optimize2): Likewise.
4311         (lang_independent_options): Add entries for new options.
4312         (rest_of_compilation): Call branch_target_load_optimize.
4313         * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
4314         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4315         * doc/invoke.texi: Document -fbranch-target-load-optimize and
4316         -fbranch-target-load-optimize2.
4317         * rtl.h (epilogue_completed): Declare.
4318         * recog.c (epilogue_completed): New variable.
4319         * toplev.c (rest_of_compilation): Set it.
4320         * flow.c (mark_regs_live_at_end): Use it.
4321         * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
4322         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4323         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4324         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4326         * sh.c (shmedia_space_reserved_for_target_registers): New variable.
4327         (sh_target_reg_class): New function.
4328         (sh_optimize_target_register_callee_saved): Likwise.
4329         (shmedia_target_regs_stack_space): Likewise.
4330         (shmedia_reserve_space_for_target_registers_p): Likewise.
4331         (shmedia_target_regs_stack_adjust): Likewise.
4332         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
4333         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4334         (calc_live_regs): If flag_branch_target_load_optimize2 and
4335         TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
4336         for target registers, make sure that we save all target registers.
4337         (sh_expand_prologue, sh_expand_epilogue): Take target register
4338         optimizations into account.  Collapse stack adjustments if that
4339         is beneficial.
4340         (initial_elimination_offset): Reserve space for target registers
4341         if necessary.
4342         * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
4343         (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
4345 2003-06-18  Nick Clifton  <nickc@redhat.com>
4347         * config.gcc: Add an extra_header for ARM targets.
4348         Support configuring with --with-cpu=iwmmxt.
4349         * doc/invoke.texi: Document new value for -mcpu= ARM switch.
4350         * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
4351         names.  Fix formatting.
4352         * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
4353         names.
4354         * config/arm/arm-protos.h (arm_emit_vector_const): New
4355         prototype.
4356         (arm_output_load_gr): New prototype.
4357         * config/arm/arm.c (extra_reg_names1): Delete.
4358         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
4359         * arch_is_iwmmxt): Define.
4360         (all_cores, all_architecture): Add entry for iwmmxt.
4361         (arm_override_options): Add support for iwmmxt.
4362         (use_return_insn, arm_function_arg, arm_legitimate_index_p,
4363         arm_print_value, arm_rtx_costs_1, output_move_double,
4364         arm_compute_save_reg_mask, arm_output_epilogue,
4365         arm_get_frame_size, arm_expand_prologue, arm_print_operand,
4366         arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
4367         Likewise.
4368         (arm_init_cumulative_args): Count iwmmxt registers.
4369         (arm_function_ok_for_sibcall): Return false of sibcall_blocked
4370         has been set.
4371         (struct minipool_node): Add fix_size field.
4372         (add_minipool_forward_ref): Add support for 8-byte aligning of
4373         the pool.
4374         (add_minipool_backward_ref, add_minipool_offsets,
4375         dump_minipool, push_minipool_fix): Likewise.
4376         (struct builtin_description): New struct.
4377         (builtin_description): New array of iwmmxt builtin functions.
4378         (arm_init_iwmmxt_builtins): New function.
4379         (arm_init_builtins): New function.
4380         (safe_vector_operand): New function.
4381         (arm_expand_binop_builtin): New function.
4382         (arm_expand_unop_builtin): New function.
4383         (arm_expand_builtin): New function.
4384         (arm_emit_vector_const): New function.
4385         (arm_output_load_gr): New function.
4386         * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
4387         TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
4388         TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
4389         DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
4390         (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
4391         (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
4392         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
4393         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4394         REG_CLASS_FOR_LETTER): Add iwmmxt registers.
4395         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
4396         registers unless the iwmmxt target is selected.
4397         (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
4398         FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
4399         IS_IWMMXT_GR_REGNUM): Define.
4400         (FIRST_PSEUDO_REGISTER): Bump to 63.
4401         (struct machine_function): Add sibcall_blocked field.
4402         (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
4403         nargs fields.
4404         (enum arm_builtins): New enum list.
4405         * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
4406         UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
4407         UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
4408         UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
4409         (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
4410         VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
4411         (movv2si, movv4hi, movv8qi): New expands for vector moves.
4412         Include iwmmxt.md.
4413         * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
4414         multilib.
4415         (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
4416         * config/arm/mmintrin.h: New ARM specific header file.
4417         * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
4419 2003-06-18  J"orn Rennecke <joern.rennecke@superh.com>
4421         * toplev.c (Remaining -d letters summary): Update.
4423 2003-06-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4425         * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
4426         argument.
4427         (function_arg): Handle CALL_LIBCALL flag.
4428         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
4429         prototype.
4430         * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
4431         (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
4432         (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
4433         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
4435 2003-06-18  Neil Booth  <neil@daikokuya.co.uk>
4437         * Makefile.in: Update.
4438         * common.opt: New options.
4439         * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
4440         set_Wunused): New.
4441         (common_handle_option): Handle new options.
4442         * toplev.c (set_target_switch): Export.
4443         (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
4444         (decode_W_option): -Wunused and -Wextra handled in opts.c now.
4445         (independent_decode_option): More options handled in opts.c now.
4446         Change prototype.
4447         * toplev.h (set_target_switch): New.
4449 2003-06-17  Robert Abeles  <rabeles@archaelogic.com>
4451         PR debug/4252
4452         * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
4453         to dump_switch_p().
4454         * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
4455         from static strings in dump_files.
4457 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4459         * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
4460         VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
4461         libiberty macros.
4463 2003-06-17  Jason Merrill  <jason@redhat.com>
4465         PR c++/10929
4466         * tree-inline.c (expand_call_inline): Don't warn about failing to
4467         inline a function which was made inline by -finline-functions.
4469 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4471         * config/h8300/h8300-protos.h: Update to ISO C.
4472         * config/h8300/h8300.c: Likewise.
4473         * config/h8300/h8300.h: Likewise.
4474         * config/h8300/h8300.md: Likewise.
4476 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4478         * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
4479         * configure: Regenerate.
4480         * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
4482 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
4484         * install.texi (Testing): Add information on how to run Java
4485         runtime tests separately.
4487 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4489         * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
4491         * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
4492         (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
4494 2003-06-17  Christopher Faylor  <cgf@redhat.com>
4496         * doc/install.texi: Add msvc rebuild caveat.
4498 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4500         * config/sh/coff.h: Replace Hitachi with Renesas.
4501         * config/sh/elf.h: Likewise.
4502         * config/sh/embed-elf.h: Likewise.
4503         * config/sh/lib1funcs.asm: Likewise.
4504         * config/sh/sh-protos.h: Likewise.
4505         * config/sh/sh.c: Likewise.
4506         * config/sh/sh.h: Likewise.
4507         * config/sh/sh.md: Likewise.
4509 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4511         * ChangeLog.3: Fix comment typos.
4512         * ChangeLog.6: Likewise.
4513         * config/d30v/d30v.c: Likewise.
4514         * config/h8300/h8300.md: Likewise.
4515         * config/m32r/m32r.md: Likewise.
4516         * config/mips/mips.c: Likewise.
4517         * config/mips/mips.md: Likewise.
4518         * config/ns32k/NOTES: Likewise.
4520 2003-06-17  Ranjit Mathew  <rmathew@hotmail.com>
4521             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4523         * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
4524         to run Java runtime tests separately.
4526 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4528         * config/h8300/h8300-protos.h: Update a comment.
4530 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
4532         * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
4533         are aligned like integral modes.
4534         (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
4536         * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
4537         (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
4538         * sh.md (*pt): Remove.
4540         * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
4542         * sh.md (return_media_rte): New pattern.
4543         (return_media): Use it.
4545 2003-06-17  Kazu Hirata  <kazu@cs.umass.edu>
4547         * doc/contrib.texi: Replace Hitachi with Renesas.
4548         * doc/install.texi: Likewise.
4549         * doc/invoke.texi: Likewise.
4551 2003-06-17  J"orn Rennecke <joern.rennecke@superh.com>
4553         * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
4554         behaviour.
4556 2003-06-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4558         * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
4560         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
4561         2003-01-23 patch. Corrected to handle kernels with changed ucontext.
4563         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
4564         -msdata=eabi usages.
4566         * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
4568 2003-06-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4570         * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
4571         * fixinc/gnu-regex.c: Don't define `volatile'.
4572         * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
4573         * ggc-simple.c: Likewise.
4574         * system.h: Don't define `volatile'.
4576         * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
4577         * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
4578         call these macros.
4579         * config.in, configure: Regenerated.
4581 2003-06-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4583         * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
4584         Handle POINTERS_EXTEND_UNSIGNED.
4586 2003-06-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4588         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
4589         !TARGET_IRIX6]: Define as NULL.
4591 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4593         * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
4595 2003-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4597         * dbxout.c (dbxout_source_line_counter): New global variable.
4598         Mark it with GTY(()).
4599         (dbxout_source_line): Increment dbxout_source_line_counter
4600         and pass it to ASM_OUTPUT_SOURCE_LINE.
4601         * sdbout.c (sdbout_source_line_counter): New global variable.
4602         Mark it with GTY(()).
4603         (unnamed_struct_number): Mark it with GTY(()).
4604         (sdbout_source_line): Increment sdbout_source_line_counter
4605         and pass it to ASM_OUTPUT_SOURCE_LINE.
4606         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
4607         (xcoffout_source_line): Pass 0 as third argument to
4608         ASM_OUTPUT_SOURCE_LINE.
4609         (xcoffout_begin_prologue): Likewise.
4610         * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4611         Use it instead of 'sym_lineno' but without incrementing it.
4612         * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4613         * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4614         * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4615         * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
4616         argument to ASM_OUTPUT_SOURCE_LINE.
4617         * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4618         * config/arm/aout.h: Remove useless comment.
4619         * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4620         * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4621         * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4622         Use it instead of 'sym_lineno' but without incrementing it.
4623         * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4624         * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
4625         parameter. Use it instead of 'sym_lineno' but without incrementing it.
4626         * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
4627         argument to ASM_OUTPUT_SOURCE_LINE.
4628         * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4629         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4630         * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
4631         Use it instead of 'sym_lineno' but without incrementing it.
4632         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4633         * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4634         * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4635         * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4636         * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
4638 2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
4640         * config/mips/mips-protos.h (mips_expand_block_move): Declare.
4641         (expand_block_move, output_block_move): Remove.
4642         * config/mips/mips.h (enum block_move_type): Remove.
4643         * config/mips/mips.c (block_move_call, output_block_move): Remove.
4644         (mips_block_move_straight, mips_adjust_block_mem): New function.
4645         (mips_block_move_loop): Renamed and reworked from block_move_loop.
4646         (mips_expand_block_move): Likewise expand_block_move.  Return false
4647         to fall back on the target-independent code.
4648         * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
4649         (movstrsi_internal*): Remove.
4651 2003-06-16  Zack Weinberg  <zack@codesourcery.com>
4653         * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
4654         * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
4655         * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
4656         ISO C: new-style function declarations, no need for PARAMS,
4657         no special punctuation on indirect function calls, use string
4658         constant concatenation where convenient.
4660 2003-06-17  Andreas Jaeger  <aj@suse.de>
4662         * rtl.h: Remove declarations from coverage.h.
4663         * toplev.c: Include coverage.h.
4664         * Makefile.in (toplev.o): Depend on coverage.h.
4666         * toplev.h: Remove extra declaration of print_time.
4668         * gengtype.c (close_output_files): Remove duplicated declaration.
4670 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4672         * config/sparc/sysv4.h: Remove target-independent comment;
4673         replace "GNU CC" with "GCC".
4674         * config/vxworks.h: Replace "GNU compiler" with "GCC".
4675         * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
4676         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4677         config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
4678         config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
4679         config/sparc/rtemself.h, config/sparc/sol2-64.h,
4680         config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
4681         config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
4682         config/sparc/sol2.h, config/sparc/sp64-aout.h,
4683         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
4684         config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
4685         "GNU compiler", "GNU CC" with "GCC".
4686         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4687         config/sparc/sparc-modes.def, config/sparc/sparc.c,
4688         config/sparc/sparc.md, config/sparc/sparclet.md,
4689         config/sparc/supersparc.md, config/sparc/ultra1_2.md,
4690         config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
4691         "GNU C Compiler" with "GCC".
4692         * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
4694 2003-06-16  Aldy Hernandez  <aldyh@redhat.com>
4696         * simplify-rtx.c (simplify_subreg): Do not over-extend vector
4697         constants.
4699         * testsuite/gcc.c-torture/execute/simd-4.c: New.
4701 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4703         * config/ip2k/ip2k.h: Remove target-independent comments.
4705         * config.gcc: Explicitly mention elfos.h in ip2k entry.
4706         * config/ip2k/ip2k.h: Don't #include it here.
4708 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4710         * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
4711         config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
4712         dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
4713         function.c, gcc.c, genoutput.c, gensupport.c, global.c,
4714         haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
4715         loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
4716         read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
4717         stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
4718         the PTR macro.
4720         * gengtype.c: Don't use UNION_INIT_ZERO.
4721         * system.h (UNION_INIT_ZERO): Delete.
4723 2003-06-16  Richard Henderson  <rth@redhat.com>
4725         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
4726         GET_MODE_UNIT_SIZE when simplifying constant vectors.
4728 2003-06-16  Andreas Jaeger  <aj@suse.de>
4730         * timevar.c (get_run_time): Remove function provided also by
4731         libiberty.
4732         * timevar.h: Remove get_run_time declaration.
4734 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
4736         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
4737         unreachable code.
4739 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4741         * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
4742         cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
4743         use macros from "symcat.h", instead rely on ISO C.
4745         * system.h: Don't include "symcat.h".
4746         * configure.in (AC_C_STRINGIZE): Delete.
4747         * config.in, configure: Regenerate.
4749 2003-06-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4751         * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
4753         * tree.h (STMT_CHECK): New macro.
4754         Also upper-case argument names on all checking macros and
4755         fix some whitespace problems; assume CODE argument does not
4756         have side-effects.
4758 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4760         * scan.h: Convert to ISO C.
4761         * system.h: Likewise.
4763         * c-format.c (dynamic_format_types): New pointer for dynamic data.
4764         (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
4765         New functions split out of...
4766         (handle_format_attribute): ...here.
4768 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
4770         * sh.h (REG_CLASS_FROM_LETTER): Change to:
4771         (REG_CLASS_FROM_CONSTRAINT).
4772         (CONST_OK_FOR_I): Rename to:
4773         (CONST_OK_FOR_I08).  Changed all users.
4774         (CONST_OK_FOR_J): Rename to:
4775         (CONST_OK_FOR_I16).  Changed all users.
4776         (CONST_OK_FOR_K): Rename to:
4777         (CONST_OK_FOR_P27).  Changed all users.
4778         (CONST_OK_FOR_L): Rename to:
4779         (CONST_OK_FOR_K08).  Changed all users.
4780         (CONST_OK_FOR_O): Rename to:
4781         (CONST_OK_FOR_I06).  Changed all users.
4782         (CONST_OK_FOR_P): Rename to:
4783         (CONST_OK_FOR_I10).  Changed all users.
4784         (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
4785         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
4786         (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
4787         (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
4788         (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
4789         (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
4790         (CONST_OK_FOR_LETTER_P): Replace with
4791         (CONST_OK_FOR_CONSTRAINT_P).
4792         (EXTRA_CONSTRAINT_S): Rename to:
4793         (EXTRA_CONSTRAINT_C16).  Changed all users.
4794         (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
4795         (EXTRA_CONSTRAINT_T): Rename to:
4796         (EXTRA_CONSTRAINT_Csy).  Changed all users.
4797         (EXTRA_CONSTRAINT_Z): Remove.
4798         (EXTRA_CONSTRAINT): Replace with:
4799         (EXTRA_CONSTRAINT_STR).
4800         (EXTRA_CONSTRAINT_U): Rename to:
4801          (EXTRA_CONSTRAINT_Z).  Changed all users.
4802         * sh.c (and_operand): Use CONST_OK_FOR_J16.
4803         * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
4804         (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
4805         (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
4806         (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
4807         (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
4808         (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
4809         (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
4810         (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
4811         (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
4812         (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
4813         (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
4814         (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
4815         (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
4816         (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
4817         (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
4818         (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
4819         (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
4820         (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
4821         (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
4822         (sssubv4hi3): Likewise.
4823         (movsf_i): Change I[08]/r to G/r.
4824         (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
4826         * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
4828 2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>
4830         * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
4832 2003-06-16  Andreas Jaeger  <aj@suse.de>
4834         * basic-block.h: Remove duplicate prototype of
4835         note_prediction_to_br_prob.
4837         * tree.h: Remove duplicate prototype of strip_float_extensions.
4839 2003-06-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4841         * config/c4x/c4x.c: Don't include "c-tree.h".
4842         * config/pa/pa.c: Likewise.
4843         * langhooks.c: Likewise.
4844         * tree.h (poplevel): Declare.
4846 2003-06-16  Kazu Hirata  <kazu@cs.umass.edu>
4848         * config/h8300/h8300.c (const_costs): Move this to ...
4849         (h8300_rtx_costs): ... here.
4851 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4853         * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
4854         (tan_optab, atan_optab): Define corresponding macros.
4855         * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
4856         * genopinit.c (optabs): Implement tan_optab and atan_optab
4857         using tan?f2 and atan?f2 patterns.
4858         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
4859         using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
4860         Change the default value of errno_set to false.
4861         (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
4862         using expand_builtin_mathfn.
4864         * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
4865         expander patterns implemented using existing atan2?f3 patterns.
4867 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4869         * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
4870         both operands of the addition equal, reuse the expanded RTL.
4871         (expand_expr <MULT_EXPR>): Likewise for multiplication.
4873 2003-06-16  Roger Sayle  <roger@eyesopen.com>
4874             Jeff Law  <law@redhat.com>
4876         * fold-const.c (operand_equal_p): Consider two calls to "const"
4877         functions with identical non-volatile arguments to be equal.
4878         Consider the FUNCTION_DECL for the "__builtin_foo" form of a
4879         built-in function to be equal to the "foo" form.
4881 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4883         * config/rs6000/sysv4le.h: Remove target-independent comment.
4884         Replace "GNU compiler" with "GCC" in comment.
4886 2003-06-16  Andreas Jaeger  <aj@suse.de>
4888         * tracer.c: Remove duplicate declaration.
4890         * toplev.c: Remove extra declaration of decode_d_option.
4892         * ssa.c: Remove duplicate declaration.
4894         * sreal.c: Remove extra declaration of dump_sreal.
4896         * reload1.c: Remove duplicate declarations.
4898         * integrate.c: Remove extra declaration of
4899         set_decl_abstract_flags.
4901         * flow.c: Remove extra declaration of dump_flow_info.
4903         * alias.c: Remove extra declaration of get_addr.
4905 2003-06-16  Nathanael Nerode  <neroden@gcc.gnu.org>
4907         * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
4908         config/vxworks.h: GNU CC -> GCC.
4910         * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
4911         lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
4912         stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
4913         ssa.h, tree.def: Replace overly specific references to "GNU C"
4914         and "GNU C Compiler" with references to "GCC".
4916 2003-06-16  J"orn Rennecke <joern.rennecke@superh.com>
4918         * sh.c (prepare_move_operand): Check if operand 0 is an invalid
4919         memory reference.  Fix test that checks if operand 1 is using r0.
4920         * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
4922         * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
4923         defined.
4925 2003-06-15  Nathan Sidwell  <nathan@codesourcery.com>
4927         * function.h (struct emit_status): Remove x_last_linenum,
4928         x_last_filename. Add x_last_location.
4929         * rtl.h: #include "input.h".
4930         (NOTE_DATA): New.
4931         * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
4932         number notes.
4933         * emit-rtl.c (last_linenum, last_filename): Remove.
4934         (last_location): New.
4935         (emit_line_note_after): LINE must always be >= 0.
4936         (emit_line_note): Likewise. Check not duplicate here...
4937         (emit_note): ... rather than here.
4938         (emit_line_note_force, force_next_line_note, init_emit): Adjust.
4939         * integrate.c (expand_inline_function): Use emit_line_note for
4940         line number notes.
4941         (copy_insn_list): Likewise.
4942         * unroll.c (copy_loop_body): Likewise.
4943         * Makefile.in (RTL_H): Add input.h.
4945 2003-06-16  Richard Sandiford  <rsandifo@redhat.com>
4947         * optabs.c (emit_libcall_block): Don't hoist insns past a label.
4949 2003-06-16  Richard Henderson  <rth@redhat.com>
4951         * config/alpha/alpha-protos.h, config/alpha/elf.h,
4952         config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
4953         config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
4954         * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
4955         Remove unneeded static function decls.
4957 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
4959         * c-opts.c (c_common_handle_option): s/on/value/.
4960         (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
4961         directly rather than converting the argument.
4962         * c.opt: Update docs.  Use UInteger where appropriate.
4963         * common.opt: Use UInteger where appropriate.
4964         * opts.c (integral_argument): New.
4965         (handle_argument): Handle integral arguments, and optional
4966         joined arguments.
4967         (common_handle_option): Update.
4968         * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
4969         * opts.sh: Handle JoinedOrMissing and UInteger flags.
4971 2003-06-16  Neil Booth  <neil@daikokuya.co.uk>
4973         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
4974         unnecessary extern declaration.
4976 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
4978         * config/gofast.h, config/interix.h, config/interix3.h,
4979         config/libgloss.h, config/linux-aout.h, config/linux.h,
4980         config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
4981         * config/kaos.h: "GNU compiler" -> GCC.
4982         * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
4984         * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
4985         config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
4986         GNU CC -> GCC.
4988         * config/svr3.h: Remove #if 0 code, misleading comments.
4989         GNU CC -> GCC.
4991 2003-06-15  Zack Weinberg  <zack@codesourcery.com>
4993         * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
4994         main_input_filename to avoid conflict with input_filename macro.
4996 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
4998         * config/mips/mips.h (asm_file_name, g_switch_set,
4999         g_switch_value): Remove.
5000         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5001         unnecessary extern declarations.
5003 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
5005         * config/frv/frv.h: Remove declaration of g_switch_value.
5006         * config/m32r/m32r.h: Remove declaration of g_switch_value.
5007         * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
5009 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
5011         * opts.sh: Quote '+' in regex.
5013 2003-06-15  Andrew Pinski <pinskia@physics.uc.edu>
5015         * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
5016         * config/rs6000/rs6000.c: Include cfglayout.h.
5017         * config/alpha/alpha.c: Likewise.
5018         * config/ia64/ia64.c: Likewise.
5019         * config/sparc/sparc.c: Likewise.
5020         * config/sh/sh.c: Likewise.
5022 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
5024         * opts.sh: Quote '+' in regex.
5026 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
5028         * c-opts.c (lang_flags): Update for new spelling of flags.
5029         (write_langs): Similarly.
5030         * c.opt: Specify languages.
5031         * opts.h: Remove languages.
5032         * opts.sh: Recognise front-end defined languages.
5033         * doc/sourcebuild.texi: Update.
5035 2003-06-15  Andreas Jaeger  <aj@suse.de>
5037         * alloc-pool.c: Convert to ISO C90 prototypes.
5038         * alloc-pool.h: Likewise.
5039         * alias.c: Likewise.
5040         * attribs.c: Likewise.
5041         * bb-reorder.c: Likewise.
5042         * bitmap.h: Likewise.
5043         * bitmap.c: Likewise.
5044         * builtins.c: Likewise.
5046         * tree.h: Convert prototypes of attribs.c to ISO C90.
5047         * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
5048         * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
5049         * expr.h: Convert prototypes of builtins.c to ISO C90.
5051 2003-06-15  Roger Sayle  <roger@eyesopen.com>
5053         * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
5054         implement exp, expf and expl built-ins as inline x87 intrinsics.
5055         (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
5056         represent x87's fscale, frndint and f2xm1 insns respectively.
5057         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
5058         to encode x87's "fscale" instruction followed by a pop.
5059         (*frndintxf2): New insn pattern for "frndint".
5060         (*f2xm1xf2): New insn pattern for "f2xm1".
5062         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
5063         UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
5064         UNSPEC_FPATAN.
5066 2003-06-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5068         * gencheck.c (main): Avoid generating duplicate macros.
5070         * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
5071         knowing names of language subdirectories.
5073 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
5075         * c-pch.c (asm_file_name): Remove.
5076         * common.opt: Add more switches.
5077         * flags.h (g_switch_set): Boolify.
5078         * opts.c (g_switch_value, g_switch_set, exit_after_options,
5079         version_flag): Move from toplev.c.
5080         (common_handle_option): Handle more switches from toplev.c.
5081         * toplev.c (display_help, display_target_options, decode_d_option,
5082         print_version): Make non-static, remove prototypes.
5083         (aux_base_name, asm_file_name, aux_info_file_name): Constify.
5084         (version_flag, g_switch_value, g_switch_set, exit_after_options):
5085         Remove.
5086         (independent_decode_option): Move some handlers to opts.c.
5087         * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
5088         exit_after_options, version_flag, display_help, display_target_options,
5089         print_version, decode_d_option): New.
5091 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
5093         * config/alpha/alpha.md: Follow spelling conventions.
5094         * config/arm/arm.c: Likewise.
5095         * config/arm/arm.h: Likewise.
5096         * config/arm/arm.md: Likewise.
5097         * config/arm/crtn.asm: Likewise.
5098         * config/m32r/m32r.c: Likewise.
5099         * config/m32r/m32r.md: Likewise.
5100         * config/rs6000/rs6000.c: Likewise.
5102 2003-06-15  Richard Henderson  <rth@redhat.com>
5104         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
5105         insn_locators_initialize.
5106         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5107         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5108         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5109         * config/sh/sh.c (sh_output_mi_thunk): Do it later.
5111 2003-06-15  Kazu Hirata  <kazu@cs.umass.edu>
5113         * builtins.c (expand_builtin_expect_jump): Remove redundant
5114         tests that are also in any_condjump_p().
5116 2003-06-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5118         * libgcc2.c: Delete sysV68 L_trampoline section.
5119         * config/m68k/mot3300-crt0.S: Delete file.
5120         * config/m68k/mot3300Mcrt0.S: Likewise.
5122 2003-06-15  Nathanael Nerode  <neroden@gcc.gnu.org>
5124         * config/aoutos.h: Remove.
5125         * config.gcc: Remove reference to aoutos.h.
5126         * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
5128 2003-06-14  Kazu Hirata  <kazu@cs.umass.edu>
5130         * doc/install.texi: Follow spelling conventions.
5131         * doc/tm.texi: Likewise.
5132         * config/fp-bit.c: Likewise.
5133         * config/arm/arm.c: Likewise.
5134         * config/frv/frv.c: Likewise.
5135         * config/ns32k/NOTES: Likewise.
5136         * config/ns32k/STATUS: Likewise.
5138 2003-06-14  Roger Sayle  <roger@eyesopen.com>
5139             Zack Weinberg  <zack@codesourcery.com>
5141         * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
5142         * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
5143         * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
5145         * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
5146         * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
5147         * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
5148         * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
5149         * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
5150         * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
5151         * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
5152         * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
5153         * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
5154         * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
5155         * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
5156         * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
5157         * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
5158         * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
5159         * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
5160         * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
5161         * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
5162         * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
5163         * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
5164         * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
5166 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
5168         * opts.sh (POSIXLY_CORRECT): Unset it.
5170         * tree.h (init_function_start): Remove filename and line paramters.
5171         * function.c (init_function_start): Remove filename and line
5172         parameters. Use DECL_SOURCE_LOCATION.
5173         * c-decl.c (store_parm_decls): Adjust init_function_start call.
5174         (c_expand_body_1): Likewise.
5175         * coverage.c (create_coverage): Likewise.
5176         * objc/objc-act.c (build_tmp_function_decl): Set line number to
5177         zero.
5178         (hack_method_prototype): Adjust init_function_start call.
5180 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
5182         PR target/3724
5183         * arm/linux-elf.h (PROFILE_HOOK): Define.
5185 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
5187         PR target/11183
5188         * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
5190 2003-06-14  Roger Sayle  <roger@eyesopen.com>
5192         * opts.sh: Work around a mysterious feature in cygwin's gawk
5193         where specifying the input files explicitly has a different
5194         behavior to piping them via stdin.
5196 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
5198         * doc/sourcebuild.texi: Update.
5200 2003-06-14  Richard Earnshaw  <rearnsha@arm.com>
5202         PR target/11183
5203         * arm.c (output_move_double): Pass SImode to adjust_address.
5205 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
5207         * Makefile.in: Update to use common.opt and lang_opt_files.
5208         (c-options.c, c-options.h): Remove.
5209         (options.c, options.h): Add.
5210         * c-opts.c: Include options.h not c-options.h.
5211         * common.opt: New file.
5212         * configure, configure.in: Add lang_opt_files.
5213         * opts.c: Include flags.h and diagnostic.h.
5214         (common_handle_option): New.
5215         (handle_option): Update to recognize common options and all
5216         language-dependent options.
5217         * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
5218         (struct cl_option): Make flags of type int.
5219         * opts.h: Flag option with front ends to which it applies.
5220         Handle duplicate options.
5221         * toplev.c (filename): Remove.
5222         (independent_decode_option): Don't handle filenames and -quiet.
5223         (process_options, do_compile): Update.
5225 2003-06-14  Nick Clifton  <nickc@redhat.com>
5227         * doc/install.texi (Specific): Add description of different
5228         ARM supported file format targets.
5230 Sat Jun 14 11:12:04 CEST 2003  Jan Hubicka  <jh@suse.cz>
5232         * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
5233         inside delay slots.
5235 2003-06-13  Matt Kraai  <kraai@alumni.cmu.edu>
5237         * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
5238         * unwind-pe.h (size_of_encoded_value): Do not define if
5239         NO_SIZE_OF_ENCODED_VALUE is defined.
5241 2003-06-13  Roger Sayle  <roger@eyesopen.com>
5243         * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
5244         expanding a complex constant into a CONCAT target.
5246 2003-06-13  Zack Weinberg  <zack@codesourcery.com>
5248         * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
5249         (ASM_FILE_START_1): Delete.
5250         * config/i386/att.h, config/i386/sco5.h,
5251         config/i386/sysv3.h
5252         (ASM_FILE_START_1): Delete.
5254 2003-06-13  Kelley Cook  <kelleycook@wideopenwest.com>
5256         * config/i386/bsd.h: Remove ASM_FILE_START.
5257         * config/i386/djgpp.h: Likewise.
5258         * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
5260         * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
5261         * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
5263 2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>
5265         PR bootstrap/10835
5266         * haifa-sched.c (max_lookahead_tries,
5267         cached_first_cycle_multipass_dfa_lookahead,
5268         cached_issue_rate): New variables.
5269         (max_issue): Check the number of tries.
5270         (choose_ready): Calculate max_lookahead_tries.
5271         (sched_init): Check cached_issue_rate.
5273 2003-06-13  Richard Henderson  <rth@redhat.com>
5275         * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
5276         * cfgrtl.c (purge_dead_edges): Expect it too.
5278 2003-06-13  Jim Wilson  <wilson@tuliptree.org>
5279             Eric Botcazou  <ebotcazou@libertysurf.fr>
5281         PR bootstrap/10983
5282         * combine.c (make_extraction): Use gen_lowpart_for_combine
5283         when extracting from a REG and not in the destination of a SET.
5285 2003-06-13  Doug Evans  <dje@sebabeach.org>
5287         * tsystem.h (abort): Declare in inhibit_libc case to remove build
5288         warnings for addvsi3, et.al.
5290 2003-06-13  Aldy Hernandez  <aldyh@redhat.com>
5292         * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
5294         * simplify-rtx.c (simplify_subreg): Same.
5296         * emit-rtl.c (gen_lowpart_common): Same.
5298 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
5300         * builtins.c: Fix comment typos.
5301         * fold-const.c: Likewise.
5303 2003-06-13  Doug Evans  <dje@sebabeach.org>
5304             Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5306         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
5307         * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
5308         (m32r_va_arg): Use it.
5309         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
5310         (RETURN_IN_MEMORY): Ditto.
5312 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5314         * c-typeck.c: Remove #if 0 clauses.
5316         PR other/1494
5317         * config/alpha/openbsd.h, config/i386/openbsd.h,
5318         config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
5319         residual reference to EGCS.
5321 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
5323         * arm.c (output_call_mem): If the address references the link-register
5324         use an instruction sequence that avoids early-clobbering IP.
5325         (eliminate_lr2ip): Delete.
5327 2003-06-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5329         * c-format.c (format_types_orig): Disallow '*' width/precision in
5330         asm_fprintf format checks.
5332 2003-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
5334         * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
5335         non-integral types from integer register save area slots.
5337 2003-06-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5339         * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
5341 2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
5343         * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
5345 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5347         * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
5348         to file_end_indicate_exec_stack.
5350 2003-06-12  Richard Henderson  <rth@redhat.com>
5352         PR target/11089
5353         * config/i386/i386.md (sse_movaps): Use an expander to force
5354         one operand to be a register.
5355         (sse_movups): Likewise.
5357 2003-06-13  Doug Evans  <dje@sebabeach.org>
5359         Remove some build warnings.
5360         * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
5361         (__do_global_ctors,__do_global_dtors): Ditto.
5363 2003-06-12  Richard Henderson  <rth@redhat.com>
5365         PR middle-end/10557
5366         * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
5368 2003-06-13  Kazu Hirata  <kazu@cs.umass.edu>
5370         * config/m32r/m32r.md: Fix a comment typo.
5372 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
5373             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5375         PR target/10142
5376         * config/sparc/sparc.c (function_arg_record_value_parms): Add
5377         new 'stack' field.
5378         (function_arg_record_value_1): Set 'stack' to 1 if we run out of
5379         integer slots for an integer field.
5380         (function_arg_record_value_3): Shift vector index.
5381         (function_arg_record_value_2): Likewise.
5382         (function_arg_record_value): Initialize 'stack' to 0.
5383         Set 'stack' to 1 if we run out of integer slots for an integer field.
5384         Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
5386 2003-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
5388         PR optimization/10955
5389         * unroll.c (unroll_loop): Fix off-by-one bug.
5391 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5393         * config/rs6000/rs6000.c (function_arg): Remove typo.
5395 2003-06-12  Richard Henderson  <rth@redhat.com>
5397         * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
5398         and UNSPEC_DTPOFF.
5400 2003-06-12  Richard Henderson  <rth@redhat.com>
5402         PR middle-end/10475
5403         * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
5404         for extracting sub-words.
5406 2003-06-12  Richard Henderson  <rth@redhat.com>
5408         PR target/7594
5409         * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
5410         (zero_extendqihi2, zero_extendqisi2): Likewise.
5412 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5414         * config/rs6000/rs6000.c (function_arg): Always split vectors for
5415         e500 if it's a stdarg function.
5416         (function_arg_advance): Advance 2 registers for vectors in a
5417         stdarg function.
5418         (init_cumulative_args): Initialize stdarg.
5419         (rs6000_spe_function_arg): New.
5421         * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
5423 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5425         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
5427 2003-06-12  Roger Sayle  <roger@eyesopen.com>
5429         PR middle-end/168
5430         * fold-const.c (tree_expr_nonnegative_p):  Handle addition
5431         and multiplication of zero extensions, floating point division,
5432         and integer<->fp, fp<->fp and zero extension conversions.
5433         The built-in ceil and floor functions preserve signedness.
5435 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
5437         * ChangeLog: Follow spelling conventions.
5438         * ChangeLog.2: Likewise.
5439         * c-decl.c: Likewise.
5440         * cfgloop.h: Likewise.
5441         * cgraph.c: Likewise.
5442         * coverage.c: Likewise.
5443         * cppcharset.c: Likewise.
5444         * cpphash.h: Likewise.
5445         * cpplex.c: Likewise.
5446         * cpplib.c: Likewise.
5447         * dbxout.c: Likewise.
5448         * df.c: Likewise.
5449         * dwarf2out.c: Likewise.
5450         * dwarfout.c: Likewise.
5451         * emit-rtl.c: Likewise.
5452         * explow.c: Likewise.
5453         * gcov-io.c: Likewise.
5454         * gcov-io.h: Likewise.
5455         * gcov.c: Likewise.
5456         * gengtype.c: Likewise.
5457         * ggc.h: Likewise.
5458         * opts.c: Likewise.
5459         * real.c: Likewise.
5460         * reload.c: Likewise.
5461         * stmt.c: Likewise.
5463 2003-06-12  Janis Johnson  <janis187@us.ibm.com>
5465         * doc/install.texi (m32r-*-elf): Change company to Renesas.
5467 Thu Jun 12 20:00:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
5469         * basic-block.h (flow_delete_block_noexpunge): Kill.
5470         * cfgrtl.c (flow_delete_block_noexpunge): Merge to
5471         rtl_delete_block.
5473 2003-06-10  Richard Henderson  <rth@redhat.com>
5475         PR inline-asm/4823
5476         * reg-stack.c (any_malformed_asm): New.
5477         (check_asm_stack_operands): Set it.
5478         (convert_regs_1): Check it before aborting.
5480 2003-06-12  Aldy Hernandez  <aldyh@redhat.com>
5482         * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
5484 2003-06-12  Jakub Jelinek  <jakub@redhat.com>
5486         * c-opts.c (complain_wrong_lang): Add on argument.
5487         Print no- switch if on is false.
5488         (c_common_decode_option): Adjust caller.
5490 2003-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
5492         * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
5493         to initialize GOT register.
5495 2003-06-12  Roger Sayle  <roger@eyesopen.com>
5497         * fold-const.c (tree_expr_nonnegative_p): Add support for
5498         floating point constants, addition and multiplication.
5500 2003-06-12  J"orn Rennecke <joern.rennecke@superh.com>
5502         * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
5503         constraint modifier for operand 0.
5505 2003-06-12  Hans-Peter Nilsson  <hp@axis.com>
5507         Don't warn on dollars in builtin macro definitions,
5508         e.g. __REGISTER_PREFIX__.
5509         * cpphash.h (struct cpp_reader): Move member warn_dollars...
5510         * cpplib.h (struct cpp_options): ...to here.  Change type to
5511         unsigned char.
5512         * cppinit.c (cpp_create_reader): Set it to 1 here.
5513         (post_options): Don't set it here.
5514         * c-opts.c (c_common_init_options): Reset it to 0 here.
5515         (finish_options): Set it here.
5516         * cpplex.c (forms_identifier_p): Tweak for new location of
5517         warn_dollars.
5519         * configure.in (assembler dwarf2 debug_line support): Define insn
5520         for cris-*-* and mmix-*-*.
5521         * configure: Regenerate.
5523 2003-06-11  Uwe Stieber  <uwe@kaos-group.de>
5525         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5526         powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
5527         (sh-*-elf*): Add sh*-*-kaos* support.
5528         * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
5529         config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
5530         config/sh/kaos-sh.h: New files.
5532 2003-06-12  Kazu Hirata  <kazu@cs.umass.edu>
5534         * gcse.c (fis_get_condition): Make it a global function.
5535         * reload1.c (reload_cse_move2add): Detect implicit sets.
5536         * rtl.h: Add a prototype for fis_get_condition.
5538 2003-06-11  Richard Henderson  <rth@redhat.com>
5540         * stmt.c (expand_asm_operands): Don't warn for memories with
5541         queued addresses.
5543 2003-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
5545         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
5546         brackets.
5548 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
5550         * hooks.c (hook_int_size_t_constcharptr_int_0): New.
5551         * hooks.h (hook_int_size_t_constcharptr_int_0): New.
5552         * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
5553         (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
5554         * langhooks.c (lhd_decode_option): Remove.
5555         * langhooks.h (struct lang_hooks): Remove decode_option.
5556         * opts.c (handle_option): No longer use decode_option.
5558 2003-06-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5560         * cfgloopanal.c (variable_initial_value): Update the set of altered
5561         registers correctly.
5563 2003-06-11  Roger Sayle  <roger@eyesopen.com>
5564             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5566         * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
5567         * config/i386/netbsd-elf.h: Likewise.
5568         * config/m32r/m32r.h: Likewise.
5569         * config/mn10300/mn10300.h: Likewise.
5570         * config/stormy16/stormy16.h: Likewise.
5571         * config/v850/v850.h: Likewise.
5572         * config/vax/netbsd-elf.h: Likewise.
5573         * config/xtensa/elf.h: Likewise.
5574         * config/xtensa/linux.h: Likewise.
5576 2003-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5578         * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
5579         DWARF 2 default.
5581         * config/mips/dbxmdebug.h: New file.
5582         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
5583         gas and --with-stabs.
5585 2003-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
5587         * expr.c (can_move_by_pieces): align argument may be unused.
5589 2003-06-11  J"orn Rennecke <joern.rennecke@superh.com>
5591         * expr.c (convert_move): Handle moves between two CONCATs.
5593 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
5595         * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
5596         !TARGET_H8300.
5598 2003-06-11  Kazu Hirata  <kazu@cs.umass.edu>
5600         * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
5601         * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
5602         (TARGET_RTL_DUMP): Likewise.
5603         (TARGET_SWITHCES): Remove -mrtl-dump.
5605 2003-06-10  Richard Henderson  <rth@redhat.com>
5607         * optabs.c (gen_cond_trap): Fix prepare_operand typo.
5609 2003-06-10  Richard Henderson  <rth@redhat.com>
5611         * config/ia64/ia64.md (call_gp): Fix memory mode.
5613 2003-06-10  James E Wilson  <wilson@tuliptree.org>
5615         PR target/8812
5616         * reload1.c (choose_reload_regs): For equiv reg, add loop over all
5617         hard regs for reload_reg_used_at_all and reg_class_contents checks.
5619 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
5621         * config/h8300/h8300.c (print_operand): Remove support for
5622         operand character 'b'.
5623         Add the AND case to operand character 'c'.
5624         * config/h8300/h8300.md (two anonymous patterns): Replace
5625         operand character 'b' with 'c'.
5627 2003-06-10  Kazu Hirata  <kazu@cs.umass.edu>
5629         * config/h8300/h8300.c (print_operand): Remove support for
5630         operand character 'u'.
5632 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
5634         * configure.in: Fix typo.
5635         * configure: Regenerate.
5637 2003-06-10  Loren James Rittle  <ljrittle@acm.org>
5639         * config/alpha/alpha.c (unicosmk_file_end): Add conditional
5640         compilation guard.
5642 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
5644         * sh-protos.h (function_symbol): Declare.
5645         * sh.c (expand_block_move, expand_ashiftrt): Use it.
5646         (sh_expand_prologue, sh_expand_epilogue): Likewise.
5647         (sh_initialize_trampoline): Likewise.
5648         (function_symbol): New function.
5649         * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
5650         (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
5651         (call_value_pop, shcompact_return_tramp): Likewise.
5653         * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
5655         * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
5656         target register.
5658 2003-06-10  DJ Delorie  <dj@redhat.com>
5660         * doc/md.texi (Machine Constraints): Document stormy's Z
5661         constraint.
5663 2003-06-10  Geoffrey Keating  <geoffk@apple.com>
5665         * except.c (call_site_base): Mark with GTY.
5667 2003-06-10  Richard Earnshaw  <rearnsha@arm.com>
5669         * arm-proto.h: Convert to ISO C90 prototypes.
5670         * arm.c: Likewise.
5672 2003-06-10  J"orn Rennecke <joern.rennecke@superh.com>
5674         * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
5676 2003-06-10  Steve Ellcey  <sje@cup.hp.com>
5678         * calls.c (expand_call): Convert structure_value_addr to Pmode if
5679         necessary.
5681 2003-06-10  Andrew Haley  <aph@redhat.com>
5683         * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
5684         (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
5685         (lhd_decl_ok_for_sibcall): New.
5686         * langhooks.c (lhd_decl_ok_for_sibcall): New.
5687         * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
5688         * calls.c (expand_call): Check lang_hook before generating a
5689         sibcall.
5691 2003-06-10  DJ Delorie  <dj@redhat.com>
5693         * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
5694         which matches (const_int 0) for addhi3.
5695         * config/stormy16/stormy16.md: Document known constraints.
5696         (addhi3): Handle adding zero.
5698 2003-06-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5700         * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
5701         * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
5702         * config/m32r/m32r-protos.h: Prototype it.
5704 2003-06-10  Janis Johnson  <janis187@us.ibm.com>
5706         * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
5707         common to rs6000 sysv targets.
5708         * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
5709         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
5711 2003-06-10  Nick Clifton  <nickc@redhat.com>
5713         * config.gcc: Add arm-wince-pe target.
5714         * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
5715         Add comment about default apcs26 support.
5716         * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
5717         multilib.
5718         (MULTILIB_DIRNAMES): Add 'apcs32'.
5719         * config/arm/t-wince-pe: New makefile fragment.
5720         * config/arm/wince-pe.h: New file.  Overrides a few definitions
5721         in arm/pe.h
5723 2003-06-10  Roger Sayle  <roger@eyesopen.com>
5725         * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
5726         * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
5727         when x is easily negated and f is sin, tan or atan.
5728         (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
5729         sin(x) with flag_unsafe_math_optimizations.
5730         (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
5731         sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
5733 2003-06-10  Roger Sayle  <roger@eyesopen.com>
5735         * fold-const.c (fold <EQ_EXPR>):  Don't fold x == x only if x
5736         is a floating point type *and* we currently honor NaNs.
5737         (fold <NE_EXPR>): Likewise.
5739 2003-06-10  Mark Mitchell  <mark@codesourcery.com>
5741         PR c++/11131
5742         * tree-inline.c (inlinable_function_p): Call the language-specific
5743         hook early.
5745 2003-06-09  David Taylor  <dtaylor@emc.com>
5747         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg):  Skip over
5748         the f_res field.
5750 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
5752         * configure.in: Remove references to host_truncate_target.
5753         * configure: Regenerate.
5754         * config.gcc: Remove references to truncate_target,
5755         host_truncate_target.
5757         * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
5758         Replace "build_canonical" with build, "host_canonical" with host.
5759         * configure.in: Use GCC_TOPLEV_SUBDIRS.
5760         * aclocal.m4: Include ../config/acx.m4.
5761         * configure: Regenerate.
5763 2003-06-09  David Taylor  <dtaylor@emc.com>
5765         * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
5766         bytes of padding in the __va_list_tag structure a name (reserved).
5768 2003-06-09  Jason Merrill  <jason@redhat.com>
5770         * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
5772 2003-06-09  Osku Salerma  <osku@iki.fi>
5774         * c-format.c (check_format_string, get_constant): New.
5775         (handle_format_attribute, handle_format_arg_attribute,
5776         decode_format_attr): Change to use above functions.
5778 2003-06-09  Richard Henderson  <rth@redhat.com>
5780         * stmt.c (expand_asm_operands): Re-word warning.
5782 2003-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
5784         PR target/8787
5785         * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
5786         if -masm=intel.
5788 2003-06-09  James E Wilson  <wilson@tuliptree.org>
5790         * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
5791         config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
5792         Add libgcc exception.
5794 2003-06-09  David Edelsohn  <edelsohn@gnu.org>
5795             Ayal Zaks  <gcchaifa@us.ibm.com>
5797         * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
5798         (insvsi*): Add insert_word attribute.
5799         * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
5800         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
5801         power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
5803 2003-06-09  Kazu Hirata  <kazu@cs.umass.edu>
5805         * fold-const.c (fold): Fix a comment typo.
5807 2003-06-09  Nathan Sidwell  <nathan@codesourcery.com>
5809         * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
5810         removed.
5812 2003-06-09  J"orn Rennecke <joern.rennecke@superh.com>
5814         * sh.c (gen_block_redirect): Use locators.
5816 2003-06-09  Richard Earnshaw  <rearnsha@arm.com>
5818         * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
5819         cast to int.
5821 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5823         * configure.in: Assume gas 2.14 and above can handle MIPS relocation
5824         operators.
5825         * configure: Regenerated.
5827 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5828             Alexandre Oliva  <aoliva@redhat.com>
5830         * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
5831         (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
5832         (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
5833         n32/64 PIC.
5834         (MUST_SAVE_REGISTERS): Delete.
5835         * config/mips/mips.c (mips_frame_info): Remove extra_size field.
5836         (machine_function): Add global_pointer field.
5837         (mips_classify_constant): Check for (const $gp) using pointer equality
5838         with pic_offset_table_rtx.
5839         (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
5840         (mips_restore_gp): Use current_function_outgoing_args_size.
5841         (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
5842         GP_REG_FIRST + 28.  Handle relocation strings that have
5843         more than one '('.
5844         (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
5845         (mips_global_pointer): New function.
5846         (mips_save_reg_p): New function, mostly split out from...
5847         (compute_frame_size): ...here.  Remove handling of extra_size.
5848         Reclaim args_size if no variables depend on it.  Don't treat gp
5849         as a special case: handle it in the main GPR loop.
5850         (mips_initial_elimination_offset): Fix comment.
5851         (save_restore_insns): Save every register in the GPR mask,
5852         removing distinction between mask and real_mask.
5853         (mips_output_function_prologue): Update .frame psuedo-op after
5854         the removal of extra_size.  Move the SVR4 PIC stack allocation
5855         and cprestore instructions to mips_expand_prologue.
5856         (mips_gp_insn): New function.
5857         (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
5858         the chosen global pointer.  Handle SVR4 PIC stack allocation
5859         in the same way as other ABIs.  Adjust varargs code accordingly.
5860         Emit a cprestore insn after allocating the stack.  Use mips_gp_insn
5861         to emit the loadgp sequence.  Follow it with a loadgp_blockage
5862         if not using explicit relocs.
5863         (mips_output_function_epilogue): Reinstate the default gp register.
5864         (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
5865         (mips16_optimize_gp): Likewise.
5866         * config/mips/mips.md (UNSPEC_LOADGP): Remove.
5867         (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
5868         (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
5869         (loadgp): Remove.
5870         (loadgp_blockage, cprestore): New instructions.
5871         (builtin_setjmp_setup): Implement using emit_move_insn.  Use
5872         pic_offset_table_rtx.
5873         (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
5874         (builtin_longjmp): Use gen_raw_REG to force use of $28.
5876 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5878         * config/mips/mips-protos.h (mips_output_division): Declare.
5879         * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
5880         (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
5881         (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
5882         (TARGET_CHECK_ZERO_DIV): New macro.
5883         (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
5884         * config/mips/mips.c (mips_output_division): New function.
5885         * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
5886         account when calculating the default length of a division.
5887         (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
5888         Enable regardless of optimization level.  Use mips_output_division.
5889         (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
5890         udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
5891         divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
5892         modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
5893         udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
5894         umoddi3_internal): Remove.
5896 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5898         * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
5899         (mips_sw_reg_names): Likewise.
5900         (mips_regno_to_class): Change hilo entry to NO_REGS.
5901         (hilo_operand): Use MD_REG_P.
5902         (extend_operator): New predicate.
5903         (override_options): Remove 'a' constraint.
5904         (mips_secondary_reload_class): Remove hilo handling.  Also remove
5905         handling of (plus sp reg) reloads for mips16.
5906         (mips_register_move_cost): Remove hilo handling.
5907         * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
5908         (MD_REG_LAST): Remove hilo from range.
5909         (HILO_REGNUM): Delete.
5910         (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
5911         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5912         (PREDICATE_CODES): Add entry for extend_operator.
5913         (DEBUG_REGISTER_NAMES): Change hilo entry to "".
5914         * config/mips/mips.md: Remove hilo clobbers wherever they occur.
5915         Remove constraints from multiplication define_expands.  Remove
5916         clobbers from "decorative" define_expand patterns.
5917         (UNSPEC_HILO_DELAY): Delete.
5918         (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
5919         (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
5920         Adjust C code to just emit insns for !TARGET_64BIT.
5921         (mulsidi3_internal): Rename to mulsidi3_32bit.
5922         (mulsidi3_64bit): Use a "d" constraint for the destination.
5923         Use extend_operator so that the pattern can handle umulsidi3 as well.
5924         Split the instruction after reload.
5925         (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
5926         (umulsidi3_internal): Rename to umulsidi3_32bit.
5927         (umulsidi3_64bit): Remove.
5928         (*smsac_di, *umsac_di): Line-wrap fixes.
5929         (udivsi3_internal): Don't allow operand 2 to be constant.
5930         (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
5931         (movdi_internal2, movsi_internal): Remove hilo alternatives.
5932         (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
5934 2003-06-09  Richard Sandiford  <rsandifo@redhat.com>
5936         PR target/10913
5937         * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
5938         PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
5939         PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
5940         PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
5941         SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
5942         (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
5943         PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
5944         asm_out_text_file with asm_out_file.
5945         * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
5946         * config/mips/elf.h (TEXT_SECTION): Undefine.
5947         * config/mips/elf64.h (TEXT_SECION): Undefine.
5948         * config/mips/openbsd.h (TEXT_SECION): Undefine.
5949         * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
5950         (override_options): Disable small-data optimizations unless using
5951         gas or explicit relocations.
5952         (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
5953         iris6_asm_named_section, iris6_asm_file_start): Remove code for
5954         handling TARGET_FILE_SWITCHING.
5955         (copy_file_data): Move into TARGET_IRIX6 block.
5957 2003-06-08  Richard Henderson  <rth@redhat.com>
5959         * expr.h (EXPAND_MEMORY): New.
5960         * expr.c (expand_expr): Check it.
5961         * stmt.c (expand_asm_operands): Provide it when the constraint
5962         requires a memory.  Warn for memory input constraints without
5963         a memory operand.
5965 2003-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5967         * varasm.c: Don't include c-tree.h.
5969 2003-06-08  Andreas Jaeger  <aj@suse.de>
5971         * predict.h: Convert to ISO C90 prototypes.
5972         * predict.c: Likewise.
5973         * tree-dump.h: Likewise.
5974         * tree-dump.c: Likewise.
5975         * diagnostic.h: Likewise.
5976         * diagnostic.c: Likewise.
5977         * combine.c: Likewise.
5979         * rtl.h: Convert prototypes of combine.c to ISO C90.
5981 Sun Jun  8 21:27:41 CEST 2003  Jan Hubicka  <jh@suse.cz>
5983         * cfglayout.c (insn_scope): New static function
5984         (block_locators_*, line_locators*, file_locators*): New static varrays.
5985         (scope_to_insns_initialize): Use them.
5986         (insn_line, insn_file): New functions.
5987         (scope_to_insns_finalize): Use insn_scope.
5988         (prologue_locator, epilogue_locator): New global variables.
5989         * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
5990         make_call_insn_raw, emit_copy_of_insn_after): Use locators.
5991         (emit_insn_after_scope, emit_insn_before_scope
5992         emit_jump_insn_after_scope, emit_jump_insn_before_scope
5993         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
5994         (emit_insn_after_setloc, emit_insn_before_setloc
5995         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
5996         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
5997         use locators.
5998         * final.c (notice_source_line): Use locators.
5999         (final_start_function): Set initial source file and line.
6000         (final_scan_insn): Use locators.
6001         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6002         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
6003         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
6004         noce_process_if_block, find_cond_trap): Likewise.
6005         * integrate.c (copy_insn_list): Likewise.
6006         * jump.c (duplicate_loop_exit_test): LIkewise.
6007         * print-rtl.c (print_rtx): Print locators.
6008         * recog.c (peephole2_optimize): Likewise.
6009         * rtl.h (INSN_SCOPE): Remove.
6010         (emit_insn_after_scope, emit_insn_before_scope
6011         emit_jump_insn_after_scope, emit_jump_insn_before_scope
6012         emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
6013         (emit_insn_after_setloc, emit_insn_before_setloc
6014         emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
6015         emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
6016         (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
6017         * unroll.c (copy_loop_body): Use locators.
6018         * function.c (set_insn_locators): New function.
6019         (thread_prologue_and_epilogue_insns): Set the locators accordingly.
6021 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
6023         * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
6024         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
6025         _fixsfdi _fixunssfdi.
6026         (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
6027         popcounthi2.
6028         (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
6029         * config/h8300/clzhi2.c: New.
6030         * config/h8300/ctzhi2.c: Likewise.
6031         * config/h8300/parityhi2.c: Likewise.
6032         * config/h8300/popcounthi2.c: Likewise.
6034 Sun Jun  8 15:52:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
6036         * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
6037         * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
6039         * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
6040         (dump_bb): New based on old dump_bb in cfgrtl.c
6041         (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
6042         * cfghooks.h (cfgh_verify_flow_info): Return status.
6043         * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
6044         * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
6045         (dump_bb): Remove generic parts.
6046         (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
6047         (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
6049 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
6051         * Makefile.in: Rename options.c and options.h to c-options.c and
6052         c-options.h.
6053         (OBJS): Remove options.o.
6054         * c-opts.c: Don'tInclude c-options.h instead of options.h.
6055         * opts.c: Don't include options.h.
6056         (find_opt): Can't use enum opt_code or N_OPTS.
6057         * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
6058         * opts.sh: ... here.
6060 2003-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6061             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6063         PR pch/9830
6064         * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
6065         if HAVE_MINCORE is defined.
6066         (MAP_FAILED): Define if not defined.
6067         (gt_pch_save): Test against MAP_FAILED.
6068         (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
6069         the mapping address to the preferred base after checking it
6070         is possible to do so. Test against MAP_FAILED.
6071         * configure.in: Test for the presence of mincore in libc.
6072         * config.in: Regenerate.
6073         * configure: Regenerate.
6075 2003-06-07  Richard Henderson  <rth@redhat.com>
6077         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
6078         conditional compilation guard.
6080 2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
6082         * optabs.c (expand_abs): Set result_unsignedp to 1 if
6083         flag_trav is zero.
6085 2003-06-07  Richard Henderson  <rth@redhat.com>
6087         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
6089 2003-06-07  Richard Henderson  <rth@redhat.com>
6091         * basic-block.h (EDGE_SIBCALL): New.
6092         (EDGE_ALL_FLAGS): Update.
6093         * cfg.c (dump_edge_info): Add sibcall name.
6094         * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
6095         * cfgrtl.c (purge_dead_edges): Handle sibcalls.
6097 2003-06-07  Andreas Jaeger  <aj@suse.de>
6099         * mklibgcc.in (lib2funcs): Remove _exit.
6100         * libgcc2.c: Remove L_exit.
6101         * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
6103         * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
6105         * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
6107         * ggc.h: Convert to ISO C90 prototypes.
6108         * ggc-none.c: Likewise.
6109         * ggc-common.c: Likewise.
6110         * ggc-page.c: Likewise.
6111         * ggc-simple.c: Likewise.
6113         * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
6115         * system.h: Poison INIT_SECTION_PREAMBLE.
6117 2003-06-07  Zack Weinberg  <zack@codesourcery.com>
6119         * config.gcc (with_cpu handling): Translate sparc64 in
6120         $machine to --with-cpu=v9.
6121         * config/alpha/alpha.c
6122         (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
6123         (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
6125         * target.h: New hook asm_out.file_end.
6126         * target.h: Update to match.  New hook macro TARGET_ASM_FILE_END.
6127         * toplev.c (compile_file): Use targetm.asm_out.file_end.
6128         * system.h: Poison ASM_FILE_END.
6129         * varasm.c (file_end_indicate_exec_stack): New.
6130         * output.h: Prototype it.
6131         * doc/tm.texi: Document TARGET_ASM_FILE_END and
6132         file_end_indicate_exec_stack.  Delete references to attasm.h.
6134         * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
6135         (ASM_FILE_END): Delete; move code...
6136         * config/darwin.c (darwin_file_end): Here; new function.
6137         * config/darwin-protos.h: Prototype it.
6138         * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
6139         rename unicosmk_file_end.
6140         * config/arm/aof.h (ASM_FILE_END): Delete; move code...
6141         * config/arm/arm.c (aof_file_end): ... here; new static function.
6142         Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
6143         Make aof_dump_imports and aof_dump_pic_table static.
6144         * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
6145         Set TARGET_ASM_FILE_END to avr_file_end.
6146         * config/c4x/c4x.c (c4x_file_end): Make static.  Take no arguments.
6147         Set TARGET_ASM_FILE_END to c4x_file_end.
6148         * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
6149         make static. Take no arguments.  Set TARGET_ASM_FILE_END to
6150         h8300_file_end.
6151         * config/i370/i370.h (ASM_FILE_END): Delete; move code...
6152         * config/i370/i370.c (i370_file_end): ... here; new static function.
6153         Set TARGET_ASM_FILE_END to i370_file_end.
6154          * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
6155          Take no arguments.  Call file_end_indicate_exec_stack if
6156          NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
6157         * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
6158         Define NEED_INDICATE_EXEC_STACK to 0.
6159         * config/i386/linux.h, config/i386/linux64.h: Redefine
6160         NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
6161         * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
6162         i386_pe_file_end.  Take no arguments.  Use ix86_file_end.
6163         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
6164         ia64_hpux_file_end, make static.  Take no arguments.
6165         * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
6166         commands_in_prologues, commands_in_epilogues): Delete.
6167         (function_epilogue): Update to match.
6168         * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
6169         make static.  Take no arguments.
6170         (iris6_asm_file_end): Rename iris6_file_end, make static, use
6171         mips_file_end, take no arguments.
6172         Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
6173         appropriate.
6174         * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
6175         make static, take no arguments. Set TARGET_ASM_FILE_END to
6176         mmix_file_end.
6177         * config/pa/pa.c (output_deferred_plabels): Make static, take
6178         no arguments.  Set TARGET_ASM_FILE_END to output_deferred_plabels.
6179         * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
6180         (ASM_FILE_END): Delete; move code...
6181         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
6182         new static function.
6184         * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
6185         * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
6186         Don't set ASM_FILE_END.
6187         * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
6188         * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
6189         * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
6190         file_end_indicate_exec_stack; don't set ASM_FILE_END.
6191         * config/alpha/unicosmk.h, config/i386/cygming.h
6192         * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
6193         * config/arm/arm-protos.h, config/alpha/alpha-protos.h
6194         * config/avr/avr-protos.h, config/c4x/c4x-protos.h
6195         * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
6196         * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
6197         * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
6199 Sat Jun  7 18:32:13 CEST 2003  Jan Hubicka  <jh@suse.cz>
6201         * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
6202         specified.
6204 Sat Jun  7 15:20:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
6206         * Makefile.in (stageprofile_build): Kill redundant target.
6207         * i386.c (mdep_reorg): Don't pad jumps for Athlon.
6209 2003-06-07  Andreas Jaeger  <aj@suse.de>
6211         * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
6213         * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
6214         * config/dsp16xx/dsp16xx.h: Likewise.
6215         * config/i386/i386.h: Likewise.
6216         * config/ip2k/ip2k.h: Likewise.
6218 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
6220         * Makefile.in (OJBS, c-opts.o): Update.
6221         (c-options.c, c-options.h): Rename options.h and options.c.
6222         (options.h): Rename options_.h.
6223         (opts.o): New.
6224         * c-common.h (c_common_handle_option): Replace c_common_decode_option.
6225         (c_common_init_options): Update prototype.
6226         * c-lang.c (c_init_options): Update prototype.
6227         (LANG_HOOKS_HANDLE_OPTION): Override.
6228         (LANG_HOOKS_DECODE_OPTION): Drop.
6229         * c-opts.c: Include opts.h and options.h instead of c-options.h
6230         and c-options.c.
6231         (lang_flags): Move to file scope.
6232         (find_opt, c_common_decode_option): Remove.
6233         (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
6234         CL_REJECT_NEGATIVE): Move to opts.h.
6235         (missing_arg): Update prototype.
6236         (c_common_init_options): Update for new prototype.
6237         (c_common_handle_options): Filenames are passed as N_OPTS.
6238         * hooks.c (hook_int_void_0): New.
6239         * hooks.h (hook_int_void_0): New.
6240         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
6241         (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
6242         (LANG_HOOKS_INITIALIZER): Update.
6243         * langhooks.h (init_options): Update.
6244         (handle_option): New.
6245         * opts.c, opts.h: New files.
6246         * opts.sh: Update c file to include opts.h and options.h.
6247         * toplev.c: Include opts.h; change options.h to options_.h.
6248         (parse_options_and_default_flags): Get lang_mask, use
6249         handle_option for language-specific handling.
6250         * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
6251         (LANG_HOOKS_HANDLE_OPTION): Override.
6252         (objc_init_options): Update.
6254 2003-06-07  Magnus Kreth <magnus.kreth@gmx.de>
6255             Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
6257         PR other/7031
6258         * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
6259         gcov.
6261 2003-06-07  Kelley Cook  <kelleycook@wideopenwest.com>
6263         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
6264         section names.
6265         * configure: Regenerate.
6267 2003-06-07  Alan Modra  <amodra@bigpond.net.au>
6269         * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
6271 2003-06-06  James E Wilson  <wilson@tuliptree.org>
6273         PR inline-asm/10890
6274         * reload1.c (merge_assigned_reloads): Abort only if two reloads have
6275         different in fields.
6277 2003-06-06  Nathanael Nerode  <neroden@gcc.gnu.org>
6279         * configure.in: Make $(target_subdir) correspond with top level usage.
6280         * Makefile.in: Likewise.
6281         * configure: Regenerate.
6283 2003-06-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6285         * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
6286         ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
6287         unsigned HOST_WIDE_INT.
6288         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
6289         Likewise.
6290         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
6291         Likewise.
6293 2003-06-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6295         * doc/install.texi (Prerequisites): New section documenting
6296         tools and packages necessary prior to building and/or
6297         modifying GCC.
6298         * doc/install.texi2html: Also generate prerequisites.html.
6300 2003-06-06  Richard Earnshaw  <rearnsha@arm.com>
6302         PR target/11052
6303         * ifcvt.c (noce_process_if_block): Fail if the destination has
6304         side-effects.
6306 2003-06-06  Jason Merrill  <jason@redhat.com>
6308         * stmt.c (resolve_asm_operand_names): Rename from
6309         resolve_operand_names.  No longer static.  Avoid needless copying.
6310         Don't build array of constraints.
6311         (expand_asm_operands): Build it here.
6312         * tree.h: Declare resolve_asm_operand_names.
6314         * stmt.c (expand_decl): Put artificial vars into registers even
6315         when not optimizing, and don't mark the regs as user vars.
6317 2003-06-06  J"orn Rennecke <joern.rennecke@superh.com>
6319         * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
6320         of the generated register.
6322 2003-06-06  Daniel Jacobowitz  <drow@mvista.com>
6324         * config.gcc: Add a missing sparc64 case.
6326 2003-06-06  Jakub Jelinek  <jakub@redhat.com>
6328         * mklibgcc.in: Propagate .note.GNU-stack section if needed into
6329         the .hidden assembly stubs.
6331 2003-06-06  H.J. Lu <hongjiu.lu@intel.com>
6333         * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
6334         and x86_64-*-*.
6336         * config/i386/mmintrin.h: Update version and add alternate
6337         intrinsic names.
6338         * config/i386/xmmintrin.h: Likewise.
6340         * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
6341         intrinsics to ...
6342         * config/i386/emmintrin.h: Here. New file.
6344 2003-06-06  Roger Sayle  <roger@eyesopen.com>
6346         * fold-const.c (fold <ABS_EXPR>):  Re-fold the result of folding
6347         fabs(-x) into fabs(x).  Use tree_expr_nonnegative_p to determine
6348         when the ABS_EXPR (fabs or abs) is not required.
6349         (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
6350         always nonnegative from fold to here.  Additionally, cabs and fabs
6351         are always non-negative, and pow and atan are non-negative if
6352         their first argument is non-negative.
6354         * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
6355         Evaluate cabs of a constant at compile-time.  Convert cabs of a
6356         non-complex argument into fabs.  Convert cabs(z) into
6357         sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
6358         -funsafe-math-optimizations or -ffast-math.
6359         (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
6360         Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
6362 Thu Jun  5 20:51:09 CEST 2003  Jan Hubicka  <jh@suse.cz>
6364         * sourcebuild.texi (Front End Directory): Document new hooks.
6366 Fri Jun  6 11:02:35 CEST 2003  Jan Hubicka  <jh@suse.cz>
6368         * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
6369         * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
6370         stack frames.
6371         (pro_epilogue_adjust_stack_rex64_2): New pattern
6373 Fri Jun  6 11:03:14 CEST 2003  Jan Hubicka  <jh@suse.cz>
6374                                Pop Sebastian
6375                                Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6377         * cfghooks.h, cfghooks.c: New files.
6378         * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
6379         (OBJS): Add cfghooks.o.
6380         (cfghooks.o): New rule.
6381         * basic-block.h (split_edge): Rename to rtl_split_edge.
6382         (verify_flow_info): Rename to rtl_verify_flow_info.
6383         (cfghooks.h): Included here.
6384         * cfgrtl.c (split_edge): Renamed rtl_split_edge.
6385         (verify_flow_info): Renamed rtl_verify_flow_info.
6386         * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
6388         * basic-block.h (split_block, split_edge, flow_delete_block,
6389         redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
6390         (flow_delete_block_noexpunge):  Return void.
6391         * cfg.c (verify_flow_info): New function.
6392         * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
6393         try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
6394         Use delete_block.
6395         * cfglayout.c (function_footer): Rename to...
6396         (cfg_layout_function_footer): ... this variable
6397         (unlink_insn_chain): Make global.
6398         (fixup_reorder_chain, record_effective_endpoints): Update.
6399         (cleanup_unconditional_jumps): Use delete_block.
6400         (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
6401         (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
6402         (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
6403         * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block):  Delete.
6404         (cfg_layout_function_footer): Declare.
6405         * cfgloopmanip (split_loop_bb): Do not update RBI.
6406         (remove_bbs): Use delete_block.
6407         (loop_reidrect_edge, loop_delete_branch_edge): Use
6408         redirect_edge_and_branch.
6409         (create_preheader): Use split_block and redirect_edge_and_branch_force.
6410         (split_edge_with): Likewise.
6411         * cfgrtl.c: Include cfglayout.h
6412         (split_edge): Rename to ...
6413         (rtl_split_edge) ... this one; make local.
6414         (redirect_edge_and_branch): Rename to ...
6415         (rtl_redirect_edge_and_branch) ... this one; make local.
6416         (redirect_edge_and_branch_force): Rename to ...
6417         (rtl_redirect_edge_and_branch_force) ... this one; make local.
6418         (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
6419         (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
6420         cfglayout.c; update to directly call RTL counterparts.
6421         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
6422         * ifcvt.c (find_cond_trap): Use delete_block.
6423         (find_if_case_1): Use delete_block.
6424         (find_if_case_2): Use delete_block.
6425         * rtl.h (unlink_insn_chain): Declare.
6426         * toplev.c (rtl_reigster_cfg_hooks): New.
6428 2003-06-05  Richard Henderson  <rth@redhat.com>
6430         * recog.c (peephole2_optimize): Revert last change.
6432 2003-06-05  Richard Henderson  <rth@redhat.com>
6434         * recog.c (peephole2_optimize): Don't split block unless
6435         can_throw_internal.
6437 2003-06-06  Kazu Hirata  <kazu@cs.umass.edu>
6439         * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
6440         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
6442 2003-06-05  Kelley Cook  <kelleycook@wideopenwest.com>
6444         PR optimization/4490
6445         * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
6446         * doc/invoke.texi (m96bit-long-double, m128bit-long-double):  Reword
6447         documentation to accurately reflect what these options do.
6449 2003-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
6451         * config/sh/linux.h (STARTFILE_SPEC): Handle -pie.  Simplify.
6452         (ENDFILE_SPEC): Redefine to handle -pie.
6454 2003-06-05  Phil Edwards <phil@jaj.com>
6456         * Makefile.in (qmtest-g++): Use target_alias, not target.
6458 2003-06-05  Per Bothner  <pbothner@apple.com>
6460         * toplev.c (push_srcloc):  Simplify behavior to save current location
6461         and set current location to parameters.
6462         (pop_srcloc):  Simplify semantics.
6463         (lang_dependent_init):  Remove now-useless initial push_srcloc.
6465 2003-05-06  Richard Henderson  <rth@redhat.com>
6467         * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
6468         language-specific tree codes.
6470 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6472         PR middle-end/9986
6473         * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
6474         BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
6476 Thu Jun  5 18:32:46 CEST 2003  Jan Hubicka  <jh@suse.cz>
6478         * install.tex: Document profiledbootstrap.
6480         * configure.in:  Add support for lang.stageprofile and
6481         lang.stagefeedback
6482         * Makefile.in (clean, distclean): Kill new stages
6483         (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
6484         (STAGE2_FLAGS_TO_PASS): ... this one.
6485         (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
6486         (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
6487         (stageprofile_build, stageprofile_copy, stagefeedback_build,
6488         stagefeedback_copy): New.
6489         (restageprofile, restagefeedback, stageprofile-start,
6490         stageprofile, stagefeedback-start): Likewise.
6492 2003-06-05  David Miller  <davem@redhat.com>
6493             Richard Henderson  <rth@redhat.com>
6495         * optabs.c (HAVE_conditional_trap): Provide default.
6496         (gen_conditional_trap): Likewise.
6497         (init_optabs): Merge init_traps.
6498         (gen_cond_trap): Use prepare_operand.  Restructure and avoid ifdef.
6500 Thu Jun  5 14:59:44 CEST 2003  Jan Hubicka  <jh@suse.cz>
6502         * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
6503         is REG for nonzero_bits (REG) == 8.
6505 Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
6507         * i386.md (align): Fix warning; clarify what to do when no p2align
6508         is available.
6510 2003-06-05  Nick Clifton  <nickc@redhat.com>
6512         * config.gcc (m32r-elf): Revert previous delta.
6513         * config/m32r/t-m32r (crtinit.o): Fix rule to work with
6514         multilibs.  Remove m32rx specific version.
6515         (crtfini.o): Likewise.
6516         (EXTRA_MULTILIB_PARTS): Define.
6518 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
6520         * doc/md.texi (Machine Constraints): Correct the meaning of
6521         constraints related to floating-point registers on SPARC.
6523 2003-06-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
6524             Paolo Bonzini  <bonzini@gnu.org>
6526         PR target/10663
6527         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
6528         assembler and linker output to /dev/null.
6529         Use a 'sed' construct instead of 'grep -A1'.
6530         * configure: Regenerate.
6532 2003-06-04  Richard Henderson  <rth@redhat.com>
6534         * config/i386/i386.c (struct ix86_address): Add seg.
6535         (no_seg_address_operand): New.
6536         (ix86_decompose_address): Restructure PLUS loop.  Accept one
6537         UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS.  Adjust ESP swap test
6538         to test for a regnum, not stack_pointer_rtx.
6539         (ix86_address_cost): Reduce cost if non-default segment.
6540         (legitimate_address_p): Remove UNSPEC_TP check.
6541         (get_thread_pointer): Add to_reg argument.  Don't represent
6542         the thread pointer as a memory load.
6543         (legitimize_tls_address): Split out of ...
6544         (legitimize_address): ... here.
6545         (print_operand_address): Handle parts.seg.
6546         (ix86_expand_move): Use legitimize_tls_address.
6547         (ix86_rtx_costs): Handle UNSPEC_TP.
6548         * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
6549         (TARGET_TLS_DIRECT_SEG_REFS): New.
6550         (TARGET_SWITCHES): Add tls-direct-seg-refs.
6551         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
6552         (PREDICATE_CODES): Add no_seg_address_operand.
6553         * config/i386/i386.md (lea_1): Use it.
6554         (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
6555         (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
6556         * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
6557         * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
6558         * doc/invoke.texi: Add -mtls-direct-seg-refs.
6560 2003-06-04  Mark Mitchell  <mark@codesourcery.com>
6562         * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
6563         (QMTEST_GPP_TESTS): Use "g++" by default.
6564         (stamp-qmtest): Tweak database creation.
6565         (QMTEST_DIR/context): Update context file format.
6566         (qmtest-g++): Tweak command-line.
6568 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6570         * Makefile.in (varasm.o): Don't set -Wno-error.
6571         * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
6573 2003-06-04  Zack Weinberg  <zack@codesourcery.com>
6575         PR bootstrap/3163
6576         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
6577         (gcc_AC_FUNC_MMAP_BLACKLIST): New.
6578         * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
6579         and AC_CHECK_FUNCS lists, respectively.  Use
6580         gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
6581         AC_FUNC_MMAP_FILE.
6582         * configure, config.in: Regenerate.
6584 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6586         * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
6587         * arm.c (arm_output_function_prologue): Fix format specifiers.
6588         * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
6589         * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
6590         HOST_WIDE_INT_PRINT_DEC.
6591         * vax.c (vax_output_function_prologue): Fix format specifiers.
6593 2003-06-04  Richard Henderson  <rth@redhat.com>
6595         * cse.c (find_best_addr): Consider binary operators even if second
6596         argument is not CONST_INT.
6598 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6600         * doc/invoke.texi (max-cse-path-length): Document.
6602 2003-06-04  Richard Henderson  <rth@redhat.com>
6604         * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
6606 2003-06-04  Andrew Pinski <pinskia@physics.uc.edu>
6608         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
6609         Remove semi-colon at the end of the expression.
6611 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6613         * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
6614         * i370.h (mvs_function_name_length): Likewise.
6615         * i960.h (CONSTANT_ALIGNMENT): Likewise.
6616         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6617         * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6618         * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6619         * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
6620         variable.
6622 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6624         * config.gcc: Reorganize --with-cpu logic.  Set
6625         configure_default_options according to the default CPU, --with-cpu,
6626         --with-arch, --with-tune, --with-schedule, --with-abi, and
6627         --with-float.  Check for legal values of various options.
6628         * configure.in: Define configure_default_options in configargs.h.
6629         * configure: Regenerated.
6630         * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
6631         (TARGET_DEFAULT_FLOAT_P): New macros.
6632         * gcc.c (do_option_spec): New function.
6633         (struct default_spec, option_default_specs): New.
6634         (main): Call do_option_spec.
6635         * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
6636         config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
6637         config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
6639         * doc/install.texi: Update --with-cpu documentation.  Mention
6640         --with-arch, --with-schedule, --with-tune, --with-abi, and
6641         --with-float.
6642         * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
6644 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6646         * config.gcc: Only process --with-cpu logic in the third pass.
6648 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6650         * config.gcc: Reorganize --with-cpu section.  Remove an
6651         obsolete comment about the default CPU for x86-64.  Fix
6652         a typo for the ep9312.  Update the list of supported PowerPC
6653         CPUs.  Support a limited set of new --with-cpu options
6654         for i386.
6656 2003-06-04  Aldy Hernandez  <aldyh@redhat.com>
6658         * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
6659         complex numbers <= 32 bits into two registers.
6661 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6663         * alpha.c (print_operand_address): Fix format specifier warnings.
6664         * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6665         * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6666         * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
6667         * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
6668         * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
6669         ASM_OUTPUT_SKIP): Likewise.
6670         * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6671         * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6672         * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
6673         Likewise.
6674         * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6675         * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
6676         * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
6677         * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6678         * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
6679         * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6680         * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6681         * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6682         * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6683         * svr3.h (ASM_OUTPUT_COMMON): Likewise.
6685 2003-06-04  J"orn Rennecke <joern.rennecke@superh.com>
6687         * c-decl.c (c_init_decl_processing): Clear input_file_name
6688         while building common nodes.
6689         * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
6690         Don't add working directory for strings like <built-in> .
6692 2003-06-04  David Edelsohn  <edelsohn@gnu.org>
6694         * doc/install.texi (*-ibm-aix*): Native as and ld required
6695         to bootstrap on AIX 5L.
6697 2003-06-04  Richard Henderson  <rth@redhat.com>
6699         * c-common.c (handle_cleanup_attribute): New.
6700         (c_common_attributes): Add it.
6701         * c-decl.c (finish_decl): Honor the cleanup attribute.
6702         * doc/extend.texi (Variable Attributes): Document it.
6704         * unwind-c.c: New file.
6705         * Makefile.in (LIB2ADDEH): Add it.
6706         * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
6707         config/ia64/t-ia64: Likewise.
6709 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
6711         * function.c (trampolines_created): New variable.
6712         (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
6713         * function.h (trampolines_created): Add.
6714         * config/s390/linux.h (ASM_FILE_END): Define.
6715         * config/alpha/linux-elf.h (ASM_FILE_END): Define.
6716         * config/m68k/linux.h (ASM_FILE_END): Define.
6717         * config/rs6000/linux.h (ASM_FILE_END): Define.
6718         * config/rs6000/linux64.h (ASM_FILE_END): Define.
6719         * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
6720         * config/sparc/linux.h (ASM_FILE_END): Define.
6721         * config/sparc/linux64.h (ASM_FILE_END): Define.
6722         * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
6723         * config/i386/linux.h (SUBTARGET_FILE_END): Define.
6724         * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
6726 Wed Jun  4 18:39:33 CEST 2003  Jan Hubicka  <jh@suse.cz>
6728         * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
6729         (ix86_reorg): Use it.
6730         * i386.md (align): New insn pattern.
6732 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6734         * toplev.c (rest_of_type_compilation): Fix typo.
6736 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
6737             Alan Modra  <amodra@bigpond.net.au>
6739         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
6740         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
6741         * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
6742         * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
6743         * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
6744         * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
6745         (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
6746         * config/rs6000/rs6000.c (output_profile_hook): Likewise.
6748         * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
6749         Pass it to $gcc_cv_as.
6750         * configure: Rebuilt.
6752         * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
6753         (print_operand): Allow TARGET_AIX to be non-constant.
6754         (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
6755         Define unconditionally.
6756         (rs6000_elf_declare_function_name): New function.
6757         * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
6758         non-constant.
6759         * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
6760         to 1.
6761         (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
6762         [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
6763         is defined.
6764         (TARGET_AIX): Define to 1 if TARGET_64BIT.
6765         (PROCESSOR_DEFAULT): Remove.
6766         (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
6767         INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6768         [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
6769         (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
6770         -m32 and -m64.
6771         (MULTILIB_DEFAULTS): Define.
6772         (SUBSUBTARGET_EXTRA_SPECS): Define.
6773         (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
6774         (TARGET_TOC): Define only if !RS6000_BI_ARCH.
6775         (TARGET_NO_TOC): Remove.
6776         [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
6777         TARGET_PROTOTYPE): Define to 0.
6778         (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
6779         (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
6780         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
6781         if !TARGET_64BIT.
6782         (USER_LABEL_PREFIX): Remove.
6783         (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
6784         (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
6785         if TARGET_64BIT.
6786         (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
6787         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
6788         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
6789         (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
6790         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6791         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
6792         TARGET_64BIT.
6793         (RS6000_CALL_GLUE): Likewise.
6794         (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
6795         RESTORE_FP_SUFFIX): Likewise.
6796         (ASM_DECLARE_FUNCTION_NAME): Remove.
6797         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
6798         DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
6799         name if TARGET_64BIT.
6800         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
6801         !TARGET_64BIT.
6802         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
6803         (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
6804         (DRAFT_V4_STRUCT_RET): Define.
6805         (SIGNAL_FRAMESIZE): New enum value.
6806         (MD_FALLBACK_FRAME_STATE_FOR): Define.
6807         * config/rs6000/default64.h: New file.
6808         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
6809         options.
6810         (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
6811         to RS6000_ABI_NAME.  Only disallow mixing of -fPIC with -mcall-aixdesc
6812         if !TARGET_64BIT.
6813         [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6814         (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
6815         function.
6816         (TARGET_OS_SYSV_CPP_BUILTINS): Define.
6817         (TARGET_OS_CPP_BUILTINS): Use it.
6818         (CPP_SYSV_SPEC): Remove.
6819         (CPP_SPEC): Remove cpp_sysv.
6820         (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
6821         Add SUBSUBTARGET_EXTRA_SPECS.
6822         (SUBSUBTARGET_EXTRA_SPECS): Define.
6823         * config/rs6000/biarch64.h: New file.
6824         * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
6825         New prototype.
6826         * config/rs6000/x-linux64: New file.
6827         * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
6828         multilibs.
6829         * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
6830         * config/rs6000/eabi-cn.asm: Likewise.
6831         * config/rs6000/tramp.asm: Likewise.
6832         * config/rs6000/sol-ci.asm: Likewise.
6833         * config/rs6000/sol-cn.asm: Likewise.
6834         * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
6835         (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
6836         * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
6837         _CALL_AIXDESC section.
6838         * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
6839         defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
6840         or default32.
6842 2003-06-04  Daniel Jacobowitz  <drow@mvista.com>
6844         * config.gcc: Revert accidentally committed ARM changes.
6846 2003-06-04  Roger Sayle  <roger@eyesopen.com>
6848         * builtins.c (dconstpi, dconste): New mathematical constants.
6849         (init_builtin_dconsts): New function to initialize dconstpi
6850         and dconste.
6851         (fold_builtin): Optimize exp(1.0) = e.  Evaluate exp(x) at
6852         compile time with -ffast-math when x is an integer constant.
6853         Optimize tan(0.0) = 0.0.  Optimize atan(0.0) = 0.0,
6854         atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
6856 2003-06-04  Roger Sayle  <roger@eyesopen.com>
6858         * calls.c (expand_call): Avoid calling pure or const functions
6859         when the result is ignored (or void) and none of the arguments
6860         are volatile.  Move warning diagnostic earlier in function.
6862 2003-06-04  Andreas Jaeger  <aj@suse.de>
6864         * system.h: Do not poison TDESC_SECTION_ASM_OP,
6865         RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
6867 2003-06-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6869         * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
6870         optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
6871         handle %ll, optimize regular character case.
6873 2003-06-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6875         * Makefile.in (cse.o): Add params.h dependency.
6876         * cse.c: Include params.h.
6877         (PATHLENGTH): Removed.
6878         (struct cse_basic_block_data): Make path array dynamic.
6879         (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
6880         of PATHLENGTH.
6881         (cse_main, cse_basic_block): Allocate path array.
6882         * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
6884 Wed Jun  4 09:49:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
6886         * i386.c (ix86_reorg): Replace the jump instead of adding nop.
6887         * i386.md (UNSPEC_REP): New constant.
6888         (return_internal_long): New pattern.
6890 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6892         PR optimization/11018
6893         * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
6894         consistently to decide whether the scratch register is really
6895         required.
6897 2003-06-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6899         PR optimization/10876
6900         * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
6901         new 'O' constraint for constant 4096.
6902         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
6903         * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
6904         Do not transform into MINUS insn for constant 4096.
6905         (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
6906         for constant 4096 as third operand.
6907         (addsi3 expander): Remove.
6908         (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
6909         new alternative for constant 4096 as third operand.
6910         (subdi3 expander): Do not transform into PLUS insn for constant 4096.
6911         (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
6912         operand.
6913         (subsi3 expander): Remove.
6914         (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
6915         constant 4096 as third operand.
6916         * doc/md.texi (Machine Constraints): Document new 'O' constraint for
6917         the SPARC port.
6919 2003-06-03  Chris Demetriou  <cgd@broadcom.com>
6921         * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
6923 2003-06-04  Andreas Jaeger  <aj@suse.de>
6925         * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
6927         * config/i386/i386.c (ix86_expand_prologue): Do not use
6928         SUBTARGET_PROLOGUE.
6930         * system.h: Poision SUBTARGET_PROLOGUE.
6932         * config/arm/arm-protos.h: Remove unused rdate_section prototype.
6934         * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
6935         dependend code.
6937         * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
6939         * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
6940         INSN_CACHE_LINE_WIDTH.
6942         * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
6943         (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
6944         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6946         * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
6947         INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
6949         * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
6950         (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
6951         (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
6952         (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
6953         (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
6954         (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
6956         * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
6957         DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
6958         DBX_WORKING_DIRECTORY.
6960         * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
6961         DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
6963         * config/frv/frv-protos.h: Remove unused const_section
6964         declaration.
6965         * config/vax/vax-protos.h: Likewise.
6967         * output.h: Remove CONST_SECTION_ASM_OP usage.
6969         * system.h: Poison CONST_SECTION_ASM_OP.
6971         * crtstuff.c (__do_global_dtors_aux): Remove usage of
6972         CRT_GET_RFIB_TEXT.
6973         (frame_dummy): Likewise.
6974         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
6975         * system.h: Poison CRT_GET_RFIB_TEXT.
6977         * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
6979         * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
6980         (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
6981         (recognized_function): Likewise.
6982         (read_scan_file): Likewise.
6984 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6986         * optabs.c (expand_binop): Optimize complex multiplication for
6987         the case of squaring a complex argument.
6989 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6991         * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
6992         non-volatile operands of binary operations.
6993         (prepare_cmp_insn): Likewise.
6995 2003-06-03  Roger Sayle  <roger@eyesopen.com>
6997         * varasm.c (force_const_mem): Handle alignment of constants not
6998         representable as a type in the front-end language.
7000 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
7002         * flow.c (initialize_uninitialized_subregs): Use
7003         emit_move_insn instead of emitting a hardcoded move.
7005 2003-06-03  Richard Henderson  <rth@redhat.com>
7007         * optabs.c (expand_abs_nojump): Split out from ...
7008         (expand_abs): ... here.
7009         * optabs.h (expand_abs_nojump): Declare.
7010         * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
7011         * Makefile.in (ifcvt.o): Depend on optabs.h.
7013 2003-06-03  Alan Modra  <amodra@bigpond.net.au>
7015         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
7017 2003-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
7019         * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
7020         (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
7021         to yes.
7022         * configure.in: Allow default_use_cxa_atexit to determine the
7023         value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
7024         disabled.
7025         * configure: Regenerate.
7027 2003-06-03  Douglas B Rupp  <rupp@gnat.com>
7029         * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
7030         * doc/gcc.texi: Remove vms.texi section.
7031         * doc/vms.texi: Remove obsolete file.
7033 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
7035         * configure.in (inhibit_libc): Don't define when configuring
7036         with --with-newlib --with-headers.
7037         * configure: Regenerate.
7039         * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
7041 2003-06-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7043         * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
7044         IRIX 6 without GNU ld.
7045         * configure: Regenerate.
7047 2003-06-03  Roger Sayle  <roger@eyesopen.com>
7049         * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
7050         of a complex number rather than invoke mov_optab directly.
7052 2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
7054         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
7055         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
7057 2003-06-03  Nathanael Nerode  <neroden@gcc.gnu.org>
7059         * config/i386/x86-64.h: Remove two target-independent comments;
7060          replace "GNU CC" with "GCC".
7062 2003-06-03  Anthony Green  <green@redhat.com>
7064         * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
7066 2003-06-03  Roger Sayle  <roger@eyesopen.com>
7068         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
7069         New builtins representing ISO C99's cabs, cabsf and cabsl.
7070         * builtins.c (expand_builtin_fabs): New function.
7071         (expand_builtin_cabs): New function.
7072         (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
7073         using expand_builtin_fabs and expand_builtin_cabs respectively.
7075         * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
7077 2003-06-03  Aldy Hernandez  <aldyh@redhat.com>
7079         * function.c (assign_parms): Split complex arguments.
7081         * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
7083         * expr.h (SPLIT_COMPLEX_ARGS): Define.
7084         (split_complex_types): Protoize.
7085         (split_complex_values): Protoize.
7087         * calls.c (expand_call): Split complex arguments on architectures
7088         that require it.
7089         (split_complex_values): New.
7090         (split_complex_types): New.
7092         * config/rs6000/rs6000.c (rs6000_libcall_value): New.
7093         (rs6000_function_value): Handle complex values on AIX.
7094         (rs6000_complex_function_value): New.
7096         * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
7098         * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
7099         (SPLIT_COMPLEX_ARGS): New.
7101 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
7103         * configure.in (HAVE_LD_PIE): Check for ld -pie.
7104         * config.in: Rebuilt.
7105         * configure: Rebuilt.
7106         * toplev.c (flag_pie, flag_shlib): New variables.
7107         (f_options): Add -fpie and -fPIE.
7108         (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
7109         Set flag_shlib if flag_pic and not -fpie/-fPIE.
7110         * flags.h (flag_pic, flag_shlib): Add.
7111         * varasm.c (default_binds_local_p): Use flag_shlib instead of
7112         flag_pic.
7113         * gcc.c (LINK_PIE_SPEC): Define.
7114         (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
7115         (option_map): Add --pie -> -pie mapping.
7116         * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
7117         and -fPIE the same way as -fPIC.
7118         * config/openbsd.h (ASM_SPEC): Likewise.
7119         * config/frv/frv.h (ASM_SPEC): Likewise.
7120         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
7121         * config/arm/semi.h (ASM_SPEC): Likewise.
7122         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
7123         * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
7124         * config/i386/beos-elf.h (CC1_SPEC): Likewise.
7125         * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
7126         * config/m68k/linux.h (CPP_SPEC): Likewise.
7127         * config/m68k/netbsd.h (ASM_SPEC): Likewise.
7128         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
7129         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
7130         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
7131         * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
7132         * config/pa/pa-linux.h (CPP_SPEC): Likewise.
7133         * config/netbsd-aout.h (ASM_SPEC): Likewise.
7134         * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
7135         * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
7136         * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
7137         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
7138         * config/sparc/sparc.h (ASM_SPEC): Likewise.
7139         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7140         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
7141         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
7142         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
7143         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
7144         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
7145         Simplify.
7146         * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7147         * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7148         * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7149         * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7150         * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7151         * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7152         * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
7153         * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
7155 2003-06-03  Jakub Jelinek  <jakub@redhat.com>
7157         * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
7158         != 0 handling.  Pass 0 to store_by_pieces.
7159         (expand_builtin_mempcpy): Add endp argument.  Don't call
7160         expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
7161         directly.  If ignoring result, only do expand_call.
7162         (expand_builtin_stpcpy): Likewise.  Call expand_builtin_mempcpy
7163         otherwise.
7164         (expand_builtin_strncpy, expand_builtin_memset): Adjust
7165         store_by_pices callers.
7166         (expand_builtin): Adjust expand_builtin_memcpy and
7167         expand_builtin_mempcpy callers.
7168         * expr.c (can_move_by_pieces): New function.
7169         (move_by_pieces): Add endp argument, return to resp. memory at end
7170         or one byte earlier depending on endp.
7171         (store_by_pieces): Likewise.
7172         (emit_block_move): Adjust call to move_by_pieces.
7173         (emit_push_insn): Adjust move_by_pieces caller.
7174         * expr.h (can_move_by_pieces): New prototype.
7175         (store_by_pieces): Adjust prototypes.
7176         * rtl.h (move_by_pieces): Adjust prototype.
7177         * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
7178         caller.
7180 2003-06-03  Ben Elliston  <bje@wasabisystems.com>
7182         * doc/md.texi (Processor pipeline description): Improve wording.
7184 2003-06-03  Neil Booth  <neil@daikokuya.co.uk>
7186         * c-opts.c (c_common_handle_option): New, pulled out of
7187         c_common_decode_option.  Substitute uses of argv.
7188         (c_common_decode_option): Broken into two.
7190 2003-06-02  Roger Sayle  <roger@eyesopen.com>
7191             Zack Weinberg  <zack@codesourcery.com>
7193         * emit-rtl.c (gen_complex_constant_part):  Remove unnecessary
7194         test of TREE_CONSTANT_POOL_ADDRESS_P.
7196 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7198         * mips.c: Don't include output.h twice.
7199         * stormy16.c: Likewise.
7200         * xtensa.c: Likewise.
7201         * output.h: Protect against multiple inclusion.
7203 2003-06-02  J"orn Rennecke <joern.rennecke@superh.com>
7205         * sh.h (OLD_ARG_MODE): New macro.
7206         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
7207         (FUNCTION_ARG_1): Break out of:
7208         (FUNCTION_ARG).  Use OLD_ARG_MODE.
7210 2003-06-02  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7212         * gcc/config.gcc Add support multilib parts for m32rx processor.
7214 2003-06-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7216         * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
7217         (mostlyclean): Delete c-options.c and c-options.h.
7219 2003-06-02  Neil Booth  <neil@daikokuya.co.uk>
7221         * c-opts.c (CL_REJECT_NEGATIVE): New.
7222         (c_common_decode_option): Update to use it.
7223         * c.opt: Update documentation; use RejectNegative.
7224         * opts.sh: Handle RejectNegative.
7226 2003-06-01  Zack Weinberg  <zack@codesourcery.com>
7228         * ggc-page.c (init_ggc): Give better diagnostics on failure to
7229         open /dev/zero.
7230         * toplev.c (crash_signal): Reset handling for received signal
7231         to SIG_DFL.
7233 2003-06-02  Ben Elliston  <bje@wasabisystems.com>
7235         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
7236         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
7237         (arm_use_dfa_pipeline_interface): Implement.
7238         * config/arm/arm.md (arm): New automaton.
7239         (write_buf): Remove function units; new cpu unit.
7240         (write_blockage): Remove function units; new cpu unit.
7241         (core): Remove function units; new cpu unit.
7242         (r_mem_f_wbuf): New instruction reservation.
7243         (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
7244         (store1_ldsched, store2, store3, store4): Likewise.
7245         (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
7246         (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
7247         (multi_cycle, single_cycle): Likewise.
7248         * config/arm/fpa.md (armfp): New automaton.
7249         (fpa): Remove function units; new cpu unit.
7250         (fpa_mem): Remove function unit; new cpu unit.
7251         (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
7252         (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
7254 2003-06-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7256         * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
7257         * c-format.c (enum format_type): Add asm_fprintf_format_type.
7258         (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
7259         asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
7260         (format_types_orig): Renamed from format_types.  Add new data.
7261         (format_types): Declare as pointer.
7262         (handle_format_attribute): Move later in file so we have all
7263         necessary declarations.  Add section to capture HOST_WIDE_INT.
7264         * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
7265         (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
7267 2003-06-01  Andreas Jaeger  <aj@suse.de>
7269         * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
7270         ROUND_TYPE_SIZE_UNIT.
7272         * stor-layout.c (finalize_record_size): Remove usages of
7273         ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
7274         (finalize_type_size): Likewise.
7275         (layout_type): Likewise.
7277         * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
7279         * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
7281         * config/d30v/d30v.h: Remove text copied from the manual.
7283 2003-06-01  Roger Sayle  <roger@eyesopen.com>
7284             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7285             Geoffrey Keating  <geoffk@apple.com>
7287         * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
7288         constants as condition code values.
7290 2003-06-01  DJ Delorie  <dj@redhat.com>
7292         * cppmacro.c (warn_of_redefinition): Handle cases where the two
7293         definitions have different numbers of tokens.
7295 2003-06-01  Andreas Jaeger  <aj@suse.de>
7297         * gen-protos.c (main): Readd unused attribute for argc.
7299 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
7301         * Makefile.in (c-options.c, c-options.h): Parallel make safe.
7302         * c.opt: End in blank line.
7303         * opts.sh: Take AWK from environment if available; use C locale.
7305 2003-06-01  Andreas Schwab  <schwab@suse.de>
7307         * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
7309 2003-06-01  Andreas Jaeger  <aj@suse.de>
7311         * gen-protos.c (main): Revert patch to check for argument.
7313 2003-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
7315         PR target/11044
7316         * config/i386/i386.md (length attribute): Set length to 4
7317         for instructions of type "fcmp".
7319 2003-06-01  Andreas Jaeger  <aj@suse.de>
7321         * toplev.c: Use ISO C90 prototypes.
7323         * toplev.h: Use ISO C90 prototypes.
7325         * genrecog.c: Use ISO C90 prototypes.
7326         (nodes_identical): Correct declaration to match prototype.
7327         (maybe_both_true): Likewise.
7328         (merge_trees): Likewise.
7330         * genpeep.c (gen_peephole): Remove #if 0 code.
7331         Use ISO C90 prototypes.
7333         * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
7334         Remove #if 0'ed function simplify_by_alternatives.
7335         (optimize_attrs): Remove #if 0'ed code.
7336         Remove ^L.
7337         Use ISO C90 prototypes.
7338         (make_canonical): Remove #if 0'ed code.
7339         (convert_const_symbol_ref): Remove #if 0'ed function.
7341         * gen-protos.c (main): Check for argument.
7343         * rtl.h: Use ISO C90 prototypes for functions from lists.c.
7345         * params.h: Use ISO C90 prototypes.
7346         * params.c: Likewise.
7347         * intl.c: Likewise.
7348         * intl.h: Likewise.
7349         * lists.c: Likewise.
7350         * errors.c: Likewise.
7351         * errors.h: Likewise.
7352         * gencodes.c: Likewise.
7353         * genpreds.c: Likewise.
7354         * genattr.c: Likewise.
7355         * gen-protos.c: Likewise.
7356         * genflags.c: Likewise
7357         * genconditions.c: Likewise.
7358         * genautomata.c: Likewise.
7359         * gencheck.c: Likewise.
7360         * genconfig.c: Likewise.
7361         * genconstants.c: Likewise.
7362         * genemit.c: Likewise.
7363         * genextract.c: Likewise.
7364         * gengenrtl.c: Likewise.
7365         * gengtype.c: Likewise.
7366         * gengtype.h: Likewise.
7367         * genopinit.c: Likewise.
7368         * genoutput.c: Likewise.
7369         * gensupport.c: Likewise.
7370         * gensupport.h: Likewise.
7372         * sdbout.h: Use ISO C90 prototypes.
7374         * sdbout.c (CONTIN): Removed empty macro.
7375         (sdbout_one_type): Remove CONTIN usages.
7376         Remove ^Ls.
7377         (tag_of_ru_type): Remove #if 0'ed function.
7378         (sdbout_symbol): Remove #if 0'ed code.
7379         (sdbout_one_type): Remove a #if 1.
7380         (sdbout_one_type): Remove #if 0'ed code.
7381         (sdbout_init): Remove RMS_QUICK_HACK_1 code.
7382         Remove PARAMS, use ISO C90 prototypes for all functions.
7384 2003-06-01  Josef Zlomek  <zlomekj@suse.cz>
7386         * rtl.def (CONST_DOUBLE): Update comment.
7388 2003-06-01  Neil Booth  <neil@daikokuya.co.uk>
7390         * opts.sh: Remove path from sort.
7392 2003-06-01  Aldy Hernandez  <aldyh@redhat.com>
7394         PR/9680
7395         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
7396         TARGET_SPE for SPE_VECTOR_MODE.
7398 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
7400         * toplev.c (botch): Remove.
7401         (do_abort): Remove.
7402         (set_Wunused): Comment.
7403         (set_Wextra): Comment.
7404         Remove ^L's.
7405         (rest_of_compilation): Factor out common code into functions.
7406         (rest_of_handle_inlining): New.
7407         (rest_of_handle_ssa): New.
7408         (rest_of_handle_cse): New.
7409         (rest_of_handle_gcse): New.
7410         (rest_of_handle_loop_optimize): New.
7411         (rest_of_handle_jump_bypass): New.
7412         (rest_of_handle_sibling_calls): New.
7413         (rest_of_handle_null_pointer): New.
7414         (rest_of_handle_addresof): New.
7415         (rest_of_handle_flow): New.
7416         (rest_of_handle_branch_prob): New.
7417         (rest_of_handle_if_conversion): New.
7418         (rest_of_handle_tracer): New.
7419         (rest_of_handle_loop2): New.
7420         (rest_of_handle_cse2): New.
7421         (rest_of_handle_life): New.
7422         (rest_of_handle_combine): New.
7423         (rest_of_handle_if_after_combine): New.
7424         (rest_of_handle_regmove): New.
7425         (rest_of_handle_sched): New.
7426         (rest_of_handle_old_regalloc): New.
7427         (rest_of_handle_new_regalloc): New.
7428         (rest_of_handle_regrename): New.
7429         (rest_of_handle_reorder_blocks): New.
7430         (rest_of_handle_sched2): New.
7431         (rest_of_handle_new_regalloc): New.
7432         (rest_of_handle_old_regalloc): New.
7433         (rest_of_handle_regrename): New.
7434         (rest_of_handle_reorder_blocks): New.
7435         (rest_of_handle_stack_regs): New.
7436         (rest_of_handle_machine_reorg): New.
7437         (rest_of_handle_delay_slots): New.
7438         (rest_of_handle_final): New.
7440         * toplev.h (botch): Remove prototype.
7441         (do_abort): Same.
7443 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
7445         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
7446         * c-opts.c: Include c-options.h and c-options.c.
7447         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
7448         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
7449         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
7450         OPT, opt_comp): Remove.
7451         (missing_arg, c_common_init_options, c_common_decode_option,
7452         write_langs): Update for macro redefinitions and enumeration
7453         name changes.
7454         * c.opt, opts.sh: New files.
7455         * doc/passes.texi: Update.
7457 2003-05-31  Andreas Jaeger  <aj@suse.de>
7459         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
7460         usage.
7462         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
7464         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
7466         * system.h: Poison ALLOCATE_TRAMPOLINE.
7468         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
7469         * system.h: Poison HANDLE_PRAGMA.
7471 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
7473         * doc/invoke.texi: Update dump file names.
7475 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7477         * c-format.c (format_length_info, format_char_info,
7478         format_flag_spec, format_flag_pair, format_kind_info):
7479         De-const-ify structure members.
7481 2003-05-31  Roger Sayle  <roger@eyesopen.com>
7483         * flags.h (flag_wrapv): New flag controlling overflow semantics.
7484         * toplev.c (flag_wrapv): Declare the variable with default false.
7485         (lang_independent_options): New option "-fwrapv" to set the above.
7487         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
7488         as x, when signed arithmetic overflow wraps around.
7489         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
7490         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
7491         overflow when flag_wrapv is true.
7493         * doc/invoke.texi: Document new -fwrapv command line option.
7494         * doc/c-tree.texi: Mention that the overflow semantics of
7495         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
7496         upon both flag_wrapv and flag_trapv.
7498 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7500         * doc/install.texi (mips-sgi-irix5): Add missing
7501         HTML <hr> marker.
7503 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7505         * doc/md.texi (Machine Constraints): Document
7506         missing SPARC constraints.
7508 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
7510         * doc/md.texi (Automaton pipeline description): Use
7511         "type" instead of "cpu" as the attribute in the examples.
7513 2003-05-30  Stan Shebs  <shebs@apple.com>
7515         * system.h: Poison OBJC_PROLOGUE.
7517 2003-05-30  Roger Sayle  <roger@eyesopen.com>
7519         * emit-rtl.c (gen_complex_constant_part): New function for getting
7520         the constant real or imaginary part of a complex constant.
7521         (gen_realpart): Use it.
7522         (gen_imagpart): Likewise.
7524 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
7526         * doc/invoke.texi: Fix typos.
7527         * doc/rtl.texi: Likewise.
7529 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
7531         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
7532         mode.
7533         * config/h8300/crtn.asm: Likewise.
7534         * config/h8300/lib1funcs.asm: Likewise.
7535         * config/h8300/h8300.c (asm_file_start): Likewise.
7536         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
7537         h8300snelf emulations for normal mode.
7538         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
7539         emulations for normal mode.
7541 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
7543         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
7544         true if TARGET_NORMAL_MODE.
7546 2003-05-30  Roger Sayle  <roger@eyesopen.com>
7548         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
7549         making a substitution.
7550         (dead_libcall_p): If directly replacing a libcall with a
7551         constant value produces an invalid instruction, also try forcing
7552         the constant into the constant pool.
7553         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
7554         obvious that the source is a constant.
7555         (compress_float_constant): Use set_unique_reg_note to place
7556         REG_EQUAL notes on instructions.
7558 2003-05-30  Eric Christopher  <echristo@redhat.com>
7560         * config/mips/mips.c (extern_list): Add GTY marker.
7561         (extern_head): Separate out definition. Add marker.
7562         (mips_output_external): Use ggc_alloc for extern_list
7563         allocation.
7564         (mips_output_external_libcall): Ditto.
7566 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
7568         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
7569         later.
7571 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7573         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
7574         warnings.
7575         (PRINT_OPERAND): Likewise.
7577 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7579         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
7580         -mdebug/-no-mdebug switches ...
7581         (MDEBUG_ASM_SPEC): ... here.
7582         Use only with gas.
7583         (EXTRA_SPECS): Initialize mdebug_asm_spec.
7585 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
7587         * gthr-gnat.c: Remove #undef UNUSED.
7588         (__gnat_default_lock, __gnat_default_unlock): Prototype.
7589         (__gnat_task_lock, __gnat_task_unlock): Make declarations
7590         prototypes.
7591         (__gnat_install_locks): Convert declaration to ISO C90, make
7592         parameter declarations prototypes, and remove blank line.
7593         * gthr-gnat.h (__gnat_install_locks): Make parameter
7594         declarations prototypes.
7596 2003-05-29  Jason Merrill  <jason@redhat.com>
7598         * Makefile.in (unstrap): Remove stage_last after make unstage1.
7600 2003-05-29  Roger Sayle  <roger@eyesopen.com>
7602         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
7604 2003-05-29  Roger Sayle  <roger@eyesopen.com>
7605             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
7607         PR bootstrap/10169
7608         * mips-tfile.c (main): Use getopt_long instead of getopt.
7609         Add new command line option --version to display version.
7610         Treat --verbose like -v to report a single line version.
7611         (options): New global variable for getopt_long.
7612         * mips-tdump.c (main): Use getopt_long instead of getopt.
7613         New command line options -v, --version and -verbose to display
7614         the program version number (to match mips-tfile's behavior).
7615         (options): New global variable for getopt_long.
7617         * gcov.c (options): Zero-terminate getopt_long array.
7618         * gcov-dump.c (options): Likewise.
7620         * Makefile.in (mips-tdump.o): Add dependency on version.h.
7622 2003-05-29  Stan Shebs  <shebs@apple.com>
7624         Remove OBJC_PROLOGUE everywhere.
7625         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
7626         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
7627         * config/d30v/d30v.h: Similarly.
7628         * config/ip2k/ip2k.h: Similarly.
7629         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
7631 2003-05-29  Roger Sayle  <roger@eyesopen.com>
7633         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
7634         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
7635         (expand_unreachable_stmt): Expand unreachable while statements
7636         using genrtl_do_stmt_1.
7638 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
7640         * config/mips/mips-protos.h (mips_output_load_label): Declare.
7641         * config/mips/mips.c (mips_output_load_label): New function.
7642         (mips_output_conditional_branch): Use it.
7643         * config/mips/mips.md (jump): And here.
7645 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
7647         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
7648         (xtensa_split_operand_pair): New proto.
7649         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
7650         (smalloffset_double_mem_p): Delete.
7651         (gen_float_relational, printx, print_operand, xtensa_va_arg):
7652         Fix whitespace.
7653         (xtensa_split_operand_pair): New.
7654         (xtensa_dbx_register_number): Fix formatting.
7655         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
7656         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
7657         instead of splitting them into single-word moves.  Remove unnecessary
7658         checks for reload_in_progress and reload_completed.
7659         (movdi_internal, movdf_internal): Change to post-reload split patterns.
7660         Add constraints to allow constant operands.
7661         (movsf_internal): Allow CONST_INT operands.
7663 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
7665         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
7666         fragment i386/x-mingw32.
7667         * config/i386/x-mingw32: New file. Make local_includedir
7668         relative to EXEC_PREFIX.
7670 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
7672         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
7673         (MD_STARTFILE_PREFIX): Define.
7675 2003-05-27  Denis Chertykov  <denisc@overta.ru>
7677         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
7678         VOIDmode.
7679         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
7680         call of cselib_invalidate_regno.
7682 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
7684         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
7685         -lthread to -lpthread.
7687 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7688             Bruce Korb  <bkorb@gnu.org>
7689             Arno Klaassen  <arno@heho.snv.jussieu.fr>
7691         * fixinc/inclhack.def: Add missing declaration of getpagesize()
7692         to unistd.h on Solaris 2.5.1.
7693         Fix prototype of recv() and send() in sys/socket.h on
7694         Solaris 2.5.1 and 2.6.
7695         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
7696         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
7697         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
7698         * fixinc/fixincl.x: Regenerate.
7700 2003-05-27  Jason Merrill  <jason@redhat.com>
7702         * tree.c (expr_first, expr_length): New fns.
7703         * tree.h: Declare them.
7705         * tree.c (iterative_hash_expr): Hash commutative expressions
7706         consistently.
7708 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7710         * tree.h (contains_placeholder_p): Now returns bool.
7711         (CONTAINS_PLACEHOLDER_P): New macro.
7712         (type_contains_placeholder_p): New function.
7713         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
7714         (contains_placeholder_p): Now returns bool.
7715         Rework to use CONTAINS_PLACEHOLDER_P macro.
7716         (type_contains_placeholder_p): New function.
7717         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
7718         type_contains_placeholder_p.
7719         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
7720         Use CONTAINS_PLACEHOLDER_P macro.
7721         * builtins.c (fold_builtin): Likewise.
7722         * calls.c (initialize_argument_information): Likewise.
7723         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7724         * explow.c (expr_size): Likewise.
7725         * expr.c (store_constructor, get_inner_reference): Likewise.
7726         * function.c (assign_parms): Likewise.
7727         * stor-layout.c (variable_size): Likewise.
7729 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
7731         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
7732         attribute.
7734 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7736         * doc/contrib.texi (Contributors): Update Kean Johnston.
7738 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
7740         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
7742 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7744         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
7745         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
7746         Replace "GNU CC" with "GCC".
7748 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
7750         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
7751         intermediate computation.
7753 2003-05-23  Eric Christopher  <echristo@redhat.com>
7755         * config/mips/mips.md (clzsi, clzdi): New patterns.
7757 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
7759         * gcc.c (default_compilers): Use -o to specify preprocessor's output
7760         file.  Make -no-integrated-cpp work when building PCH files.
7761         * objc/lang-specs.h: Likewise.
7763 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
7765         * fixinc/Makefile.in: Correct description.
7766         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
7767         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
7768         fixinc/genfixes: Replace "GNU CC" with "GCC".
7770 2003-05-23  Roger Sayle  <roger@eyesopen.com>
7772         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
7773         builtin functions (and their __builtin_* variants).
7774         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
7775         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
7776         optimizing.
7778         * doc/extend.texi: Document new tan and atan builtins, and
7779         their float and long double variants.
7781 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
7783         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
7784         __sparcv9 in the TARGET_ARCH64 case.
7786 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
7788         * i386.c (ix86_reorg): Calls are also jumps.
7790 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
7792         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
7793         note containing an EXPR_LIST, process all the arguments.
7795 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
7796                                Andreas Jaeger  <aj@suse.de>
7798         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
7799         do not use assertion.
7801 2003-05-23  Mike Stump  <mrs@apple.com>
7803         * tlink.c (scan_linker_output): Add support for darwin linker, as it
7804         emits unresolved symbols one per line, consuming the entire line.
7806 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
7807             Zack Weinberg <zack@codesourcery.com>
7809         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
7810         * config/m68k/m68k.c (m68k_output_function_prologue):
7811         Remove code under #if NEED_PROBE.
7812         * config/m68k/m68k.h: Don't define NEED_PROBE.
7813         * config/m68k/m68k.md: Remove "probe" insn.
7814         * doc/md.texi: Remove documentation of "probe" pattern.
7816 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
7818         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
7820 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7822         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
7823         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
7825 2003-05-22  Roger Sayle  <roger@eyesopen.com>
7827         * real.c (real_maxval): New function to return the largest finite
7828         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
7829         * real.h (real_maxval): Prototype here.
7830         * fold-const.c (fold_inf_compare): Transform comparisons against
7831         +-Infinity into comparisons against DBL_MAX (or equivalent).
7833 2003-05-22  Mike Stump  <mrs@apple.com>
7835         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
7836         default.
7838 2003-05-22  DJ Delorie  <dj@redhat.com>
7840         * calls.c (expand_call): If the arg block is going to grow
7841         downward, we need argblock to point to the top of the block,
7842         not the bottom.
7844 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7846         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
7848         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
7849         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
7851 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7853         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
7854         * m68k.c: Likewise.
7855         * m68k.h: Likewise.
7857 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
7859         PR other/2873
7860         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
7861         expressions to prevent triggering on recent curses.h,
7862         linux/nls.h, or X11/Xlib.h.
7863         (stdio_va_list): Add _G_va_list to bypass pattern.
7864         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
7865         * fixinc/fixincl.x: Regenerate.
7867 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
7869         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
7870         switches when --target-help option is specified.
7872 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7874         PR bootstrap/10805
7875         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
7876         failure with Sun assembler 5.0 Alpha 03/27/98.
7878 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
7880         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
7881         to match system compiler convention.
7883 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
7885         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
7886         value, not just if defined.
7887         Update copyright year.
7889 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7891         PR target/6428
7892         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
7893         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
7894         option is used without `-static'.
7895         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
7896         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
7898 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
7900         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
7901         TARGET_SERIALIZE_VOLATILE): Delete.
7902         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
7903         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
7904         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
7905         "-mno-serialize-volatile".
7906         * config/xtensa/xtensa.c (print_operand): Remove checks of
7907         TARGET_SERIALIZE_VOLATILE.
7908         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
7909         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
7910         "-mserialize-volatile" and "-mno-serialize-volatile" options.
7912 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
7914         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
7915         (nested_function): Likewise.
7916         (notype_nested_function): Likewise.
7918 2003-05-21  Nick Clifton  <nickc@redhat.com>
7920         * config/stormy16/stormy-abi: Update overflow type for
7921         R_XSTORMY16_16 reloc.
7923 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
7925         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
7926         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
7927         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
7928         * print-tree.c (print_node): Remove ambient-boundedness.
7929         * tree.h (tree_common): Remove bounded_flag.
7930         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
7931         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
7932         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
7933         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
7934         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
7935         Remove.
7936         (TYPE_QUALS): Remove BOUNDED.
7937         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
7938         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
7939         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
7940         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
7941         VA_LIST_POINTER_DEPTH): Remove.
7942         (struct tree_type): Remove pointer_depth.
7944 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7946         * c-pretty-print.c (pp_c_integer_literal): Use
7947         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
7949 2003-05-20  Roger Sayle  <roger@eyesopen.com>
7950             Kazu Hirata  <kazu@cs.umass.edu>
7951             Joern Rennecke  <joern.rennecke@superh.com>
7953         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
7954         setcc and jump, if they exist.  If substituted instruction
7955         fails to validate, store current effort in a REG_EQUAL note.
7956         (cprop_insn): Don't attempt further substitutions if the
7957         current instruction has been deleted.
7958         (local_cprop_pass): Likewise.
7960         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
7961         one is attached to the jump instruction.
7962         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
7964 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
7966         PR c++/9738
7967         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
7968         even if not first.
7970 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7972         * genautomata.c (output_description, output_automaton_units,
7973         output_state_arcs): Add missing specifiers.
7975 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
7977         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
7978         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
7979         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
7980         (nsau): Rename to do_nsau.  Provide alternate version for use when
7981         the NSAU instruction is available.
7982         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
7983         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
7984         * config/xtensa/xtensa-config.h: Update comments to match binutils.
7985         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
7986         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
7987         (TARGET_ABS, TARGET_ADDX): Define.
7988         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
7989         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
7990         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
7991         *subx8): Set predicate condition to TARGET_ADDX.
7992         (abssi2): Set predicate condition to TARGET_ABS.
7993         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
7994         "-maddx", and "-mno-addx" options.
7995         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
7997 2003-05-20  Kevin Ryde <user42@zip.com.au>
7998             Wolfgang Bangerth <bangerth@dealii.org>
8000         PR/10355
8001         * doc/extend.texi: Put a warning into the documentation
8002         of attribute regparm.
8004 2003-05-20  Jason Merrill  <jason@redhat.com>
8006         * tree.c (expr_last): New fn.
8007         * tree.h: Declare it.
8008         * objc/objc-act (expr_last): Rename to objc_expr_last.
8010 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
8012         * sh.c (sh_register_move_cost): Add clase for moving between
8013         FP registers and MAC registers.
8015 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
8017         * pa/milli64.S ($$mulI): Fix typo.
8019 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
8021         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
8022         (nonlocal_set_p): Remove initial blank line.
8023         * dwarf2out.c (simple_type_size_in_bits): Likewise.
8024         * et-forest.c (et_forest_create): Likewise.
8025         * explow.c (stabilize): Likewise.
8026         * fix-header.c (write_lbrac): Likewise.
8027         * graph.c (start_fct, node_data): Likewise.
8028         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
8029         * rtlanal.c (global_reg_mentioned_p): Likewise.
8030         * tree.c (bit_position): Likewise.
8032 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
8034         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
8035         -lthread to -lpthread.
8037 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
8039         * c-opts.c (c_common_decode_option): Don't accept dollars
8040         as identifier characters in assembly.
8041         * doc/cpp.texi: Document this.
8043 2003-05-19  Seth Arnold  <sarnold@wirex.com>
8044             Aldy Hernandez  <aldyh@redhat.com>
8046         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
8047         vrsave_size twice.
8049 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
8051         * doc/tm.texi (function_arg): Fix typo.
8053 2003-05-19  Matt Austern  <austern@apple.com>
8055         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
8056         * c-common.h (warn_invalid_offsetof): Declare.
8057         * c-common.c (warn_invalid_offsetof): Define.
8058         * doc/invoke.texi: Document -Winvalid-offsetof.
8059         * testsuite/g++.dg/other/offsetof3.C: New.
8060         * testsuite/g++.dg/other/offsetof4.C: New.
8062 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
8063             David Edelsohn  <edelsohn@gnu.org>
8065         * config/rs6000/rs6000.c (rs6000_alignment_string,
8066         rs6000_alignment_flags): New variables.
8067         (rs6000_parse_alignment_option): New function.
8068         (rs6000_override_options): Call it.
8069         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
8070         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
8071         macros.
8072         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
8073         natural alignment if TARGET_NATURAL_ALIGNMENT
8074         (ROUND_TYPE_ALIGN): Always use default record alignment if
8075         TAGET_NATURAL_ALIGNMENT.
8076         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
8077         (ROUND_TYPE_ALIGN): Same.
8078         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
8079         (ROUND_TYPE_ALIGN): Same.
8080         * doc/invoke.texi (Option Summary, PowerPC Options): Document
8081         new options.
8083 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
8085         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
8086         of a function using ASMSPEC, prepend a star.
8088 2003-05-19  Jason Merrill  <jason@redhat.com>
8090         * tree-inline.c (copy_body_r): Avoid generating &* during inline
8091         substitution.
8093 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
8095         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
8096         not mark assignments to the hard frame pointer as being stack
8097         frame related.
8098         (xstormy16_expand_epilogue): Mark adjustments to the stack
8099         pointer as being stack frame related.
8101 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8103         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
8104         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
8105         (PREDICATE_CODES): Add hilo_operand.
8106         * config/mips/mips.c (hilo_operand): New predicate.
8107         (mips_adjust_insn_length): Account for the number nops that might
8108         be needed to avoid hardware hazards.
8109         * config/mips/mips.md (dslot): Remove attribute.
8110         (hazard): New attribute.
8111         (can_delay): Use it.  Check for calls, branches & jumps.
8112         (muldi3): Use the standard dmult pattern for mips16 code.
8113         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
8115 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8117         * config/mips/mips-protos.h (final_prescan_insn,
8118         mips_count_memory_refs, mips_fill_delay_slot): Remove.
8119         * config/mips/mips.h (delay_type, dslots_load_total,
8120         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
8121         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
8122         mips_load_reg3, mips_load_reg4): Remove.
8123         (MASK_STATS): Remove.
8124         (MASK_EXPLICIT_RELOCS): Reuse its value.
8125         (TARGET_STATS): Remove.
8126         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
8127         Warn that -mstats is now ignored.
8128         (FINAL_PRESCAN_INSN): Undefine.
8129         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
8130         (ASM_OUTPUT_REG_POP): Likewise.
8131         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
8132         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
8133         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
8134         mips_fill_delay_slot, mips_count_memory_refs,
8135         final_prescan_insn): Remove.
8136         (output_block_move): Remove calls to mips_count_memory_refs.
8137         (print_operand): Remove printing of #nop for TARGET_STATS.
8138         (mips_output_function_epilogue): Remove TARGET_STATS code.
8139         Reorganize setting of fnnmae.
8140         * config/mips/mips.md: Remove handling of dslot statistics
8141         throughout file.  Change all fcmp patterns into normal asm
8142         templates, removing calls to mips_fill_delay_slot.
8143         * doc/invoke.texi: Remove documentation of -mstats.
8145 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8147         * config/mips/mips.c (mips_class_max_nregs): Return the number of
8148         words in the mode.
8150 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
8152         * config/mips/mips.c (override_options): Disable explicit
8153         relocs for old ABIs unless using gas.
8155 2003-05-18  Eric Christopher  <echristo@redhat.com>
8157         * config/mips/mips.h: Remove definition of g_switch_value.
8159 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
8161         * flags.h (g_switch_value): Change to an unsigned
8162         HOST_WIDE_INT.
8163         * toplev.c (g_switch_value): Likewise.
8165         * config/alpha/alpha.c (small_symbolic_operand): Remove
8166         g_switch_value cast.
8167         (alpha_in_small_data_p): Cast size to an unsigned
8168         HOST_WIDE_INT.
8170         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
8171         unsigned HOST_WIDE_INT.
8172         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
8173         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
8175         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
8176         unsigned HOST_WIDE_INT.
8177         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
8178         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
8179         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
8181         * config/rs6000/rs6000.c (rs6000_file_start): Use
8182         HOST_WIDE_INT_PRINT_UNSIGNED.
8183         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
8184         (rs6000_elf_in_small_data_p): Cast size to unsigned
8185         HOST_WIDE_INT.
8186         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
8187         Remove.
8188         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
8189         g_switch_set.
8190         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
8191         g_switch_value cast.
8193 2003-05-18  Roger Sayle  <roger@eyesopen.com>
8194             Zack Weinberg  <zack@codesourcery.com>
8196         PR middle-end/10472
8197         * builtins.c (expand_builtin_memcpy):  Call force_operand on
8198         expressions and use simplify_gen_binary to create the addition.
8200 2003-05-18  Andreas Schwab  <schwab@suse.de>
8202         * config/m68k/m68k.md: Use define_constants for unspec numbers.
8204 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
8206         * config/sparc/sparc.h: Define sparc for now.
8208 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
8210         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
8212         * config/stormy16/stormy16.h: Remove about 3000 lines of
8213         target-independent comments.  Update copyright notice.
8215         * doc/collect2.texi: GNU CC -> GCC.
8216         * doc/headerdirs.texi: GNU CC -> GCC.
8218 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
8220         * hashtable.h (struct ht_identifier): Add data member "hash_value".
8221         * hashtable.c (ht_lookup): Use it when searching, remember.
8222         (ht_expand): Do not recompute.
8223         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
8225 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
8227         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
8229 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
8231         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
8232         Default here.
8233         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
8234         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
8235         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
8236         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
8237         config/arm/linux-elf.h, config/arm/rtems-elf.h,
8238         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
8239         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
8240         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
8241         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
8242         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
8243         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
8244         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
8245         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
8246         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
8247         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
8248         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
8249         Don't define __ELF__.
8250         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
8251         Define __ELF__.
8252         * doc/cpp.texi: Document __ELF__.
8253         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
8255 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8257         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
8258         always use stdarg.
8259         * c-errors.c (pedwarn_c99): Likewise.
8260         * c-format.c (status_warning): Likewise.
8261         * c-semantics.c (build_stmt): Likewise.
8262         * calls.c (emit_library_call, emit_library_call_value): Likewise.
8263         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
8264         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
8265         * diagnostic.c (build_message_string, output_printf,
8266         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
8267         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
8268         error_with_decl, fnotice): Likewise.
8269         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
8270         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
8271         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
8272         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
8273         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
8274         dw2_asm_output_encoded_addr_rtx): Likewise.
8275         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
8276         * errors.c (warning, error, fatal, internal_error): Likewise.
8277         * final.c (output_operand_lossage, asm_fprintf): Likewise.
8278         * fix-header.c (fatal): Likewise.
8279         * gcc.c (fatal, error, notice): Likewise.
8280         * gcov.c (fnotice): Likewise.
8281         * genattrtab.c (attr_rtx, attr_printf): Likewise.
8282         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
8283         * gensupport.c (message_with_line): Likewise.
8284         * mips-tfile.c (fatal, error): Likewise.
8285         * protoize.c (notice): Likewise.
8286         * ra-debug.c (ra_debug_msg): Likewise.
8287         * read-rtl.c (fatal_with_file_and_line): Likewise.
8288         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
8289         * tree.c (build, build_nt, build_function_type_list): Likewise.
8291 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8293         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
8294         * gcc.c (cpp_predefines): Remove.
8295         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
8296         (static_specs): Remove predefines.
8297         * system.h: Poison CPP_PREDEFINES.
8298         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
8299         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
8301 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8303         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
8304         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
8305         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
8306         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
8308 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8310         PR c/9209
8311         * c-common.c, c-common.h (dollars_in_ident): Remove.
8312         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
8313         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
8314         * cpphash.h (warned_dollar): Rename warn_dollars.
8315         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
8316         Permit dollars regardless of -std=.
8317         (post_options): Set warn_dollars.
8318         * cpplex.c (forms_identifier_p): Use warn_dollars.
8319         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
8320         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
8321         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
8322         Update documentation.
8324 2003-05-17  Andreas Schwab  <schwab@suse.de>
8326         * config/m68k/m68k.c (m68k_output_function_prologue): Use
8327         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
8328         formatting a HOST_WIDE_INT.
8329         (m68k_output_function_epilogue): Likewise.
8331 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
8333         * doc/install.texi: Remove information about desupported targets.
8335 2003-05-17  Andreas Schwab  <schwab@suse.de>
8337         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
8338         * config/m68k/linux.h: Likewise.
8339         * config/m68k/m68k-none.h: Likewise.
8340         * config/m68k/netbsd-elf.h: Likewise.
8341         * config/m68k/sgs.h: Likewise.
8342         * config/m68k/m68k.h: Likewise.
8343         * config/m68k/m68k.md: Likewise.
8344         * config/m68k/m68k.c: Likewise.
8345         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
8346         constraints.
8347         * doc/invoke.texi (Option Summary): Remove -mfpa.
8348         (M680x0 Options): Likewise.
8350 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
8352         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
8354 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8356         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
8357         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
8358         config/sparc/rtemself.h, config/sparc/sol2-64.h,
8359         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
8360         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
8362 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8364         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
8365         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
8367 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
8369         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
8370         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
8371         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
8372         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
8373         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
8374         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
8375         sparc/sysv4.h,
8376         * sparc/sysv4-only.h: New.
8378 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
8380         * function.c (assign_parms): Check for zero size args.
8382 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8384         * cfgloopanal.c (test_for_iteration): Use string concatentation on
8385         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
8386         function calls into one.
8387         * dbxout.c (dbxout_symbol): Likewise.
8388         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
8389         * dwarf2asm.c (dw2_asm_output_data_uleb128,
8390         dw2_asm_output_data_sleb128): Likewise.
8391         * genrecog.c (debug_decision_2): Likewise.
8392         * loop.c (emit_prefetch_instructions): Likewise.
8393         * print-rtl.c (print_rtx): Likewise.
8394         * print-tree.c (print_node_brief, print_node): Likewise.
8395         * ra-debug.c (dump_igraph, dump_graph_cost,
8396         dump_static_insn_cost): Likewise.
8397         * ra-rewrite.c (dump_cost): Likewise.
8398         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
8399         * sreal.c (dump_sreal): Likewise.
8400         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
8401         * varasm.c (assemble_vtable_entry): Likewise.
8403         * avr.c (avr_output_function_prologue,
8404         avr_output_function_epilogue, print_operand): Fix format specifier
8405         warnings.
8406         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
8407         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
8409 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
8411         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
8412         and ! TARGET_STRING cases.
8414         * doc/cppopts.texi (-undef): Fix texinfo warning.
8416         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
8417         * cppfiles.c (validate_pch): When -H is used, print some information
8418         about PCH files found.
8420 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8422         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
8423         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
8424         * config/mips/t-sr71k: Likewise.
8426 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8428         * arc.c (arc_output_function_prologue,
8429         arc_output_function_epilogue): Fix format specifier warnings.
8430         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
8432         * v850.c (print_operand): Fix format specifier warnings.
8434         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
8435         specifier warnings.
8437         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
8438         format specifier warnings.
8440         * ip2k.c (function_prologue, function_epilogue, print_operand):
8441         Fix format specifier warnings.
8442         * ip2k.md: Likewise.
8444         * i960.c (i960_output_function_prologue, i960_print_operand,
8445         i960_print_operand_addr): Fix format specifier warnings.
8447         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
8448         (i370_output_function_prologue): Fix format specifier warnings.
8449         * i370.h (PRINT_OPERAND): Likewise.
8451         * fr30.c (fr30_print_operand): Fix format specifier warnings.
8453         * dsp16xx.c (print_operand_address): Fix format specifier warning.
8454         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
8456         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
8457         specifier warnings.
8459         * alpha.c (print_operand_address, alpha_start_function,
8460         unicosmk_output_ssib): Use string concatentation on
8461         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
8462         function calls into one.
8463         * arm.c (arm_print_operand): Likewise.
8464         * cris.c (cris_asm_output_mi_thunk): Likewise.
8465         * frv.c (frv_asm_output_mi_thunk): Likewise.
8466         * ia64.c (ia64_print_operand, process_set): Likewise.
8467         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
8468         Likewise.
8469         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
8470         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
8471         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
8472         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
8473         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
8474         * s390.c (s390_assemble_integer): Likewise.
8475         * sparc.c (sparc_flat_function_prologue,
8476         sparc_flat_function_epilogue): Likewise.
8477         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
8478         * vax.c (vax_output_mi_thunk): Likewise.
8480         * frv.c (frv_print_operand_memory_reference): Fix format specifier
8481         warning.
8482         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
8484         * m68k.c (m68k_output_function_epilogue): Fix format specifier
8485         warnings.
8487         * stormy16-protos.h (xs_hi_general_operand,
8488         xs_hi_nonmemory_operand): Prototype.
8489         * stormy16.c (xstormy16_output_shift): Fix format specifier
8490         warnings.
8492         * cris.c: Fix format specifier warnings.
8494 2003-05-16  Nick Clifton  <nickc@redhat.com>
8496         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
8498 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
8500         * doc/bugreport.texi: Remove most of the of the preface of the
8501         bugs section.
8503 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
8505         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
8506         .save XX, r0.
8508 2003-05-15  Roger Sayle  <roger@eyesopen.com>
8510         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
8512 2003-05-15  Eric Christopher  <echristo@redhat.com>
8514         * cfgcleanup.c (merge_blocks): Fix return value.
8516 2003-05-15 Eric Christopher <echristo@redhat.com>
8518         * combine.c (expand_compound_operation): Make sure
8519         that zero_extend operation is profitable.
8521 2003-05-15  Richard Henderson  <rth@redhat.com>
8523         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
8524         code protected by USE_GNULIBC_1.
8526 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
8528         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
8529         remove hppa*-*-mpeix* which could not be built, and prune
8530         files from tmake_file= or tm_file= lists that don't exist.
8532         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
8533         * config/alpha/t-interix, config/arm/conix-elf.h
8534         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
8535         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
8536         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
8537         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
8538         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
8539         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
8540         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
8541         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
8542         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
8543         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
8544         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
8545         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
8546         * config/m68k/tower-as.h, config/m68k/tower.h
8547         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
8548         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
8549         * config/m88k/m88k-protos.h, config/m88k/m88k.c
8550         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
8551         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
8552         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
8553         * config/mips/rtems64.h, config/mips/sni-gas.h
8554         * config/mips/sni-svr4.h, config/mips/t-ecoff
8555         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
8556         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
8557         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
8558         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
8559         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
8560         * config/romp/romp-protos.h, config/romp/romp.c
8561         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
8562         * config/rs6000/aix3newas.h, config/rs6000/mach.h
8563         * config/sparc/bsd.h, config/sparc/hal.h
8564         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
8565         * config/sparc/lynx.h, config/sparc/netbsd.h
8566         * config/sparc/sp86x-aout.h, config/sparc/splet.h
8567         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
8568         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
8569         * config/sparc/t-halos, config/sparc/t-sparcbare
8570         * config/sparc/t-splet, config/sparc/t-sunos41
8571         * config/v850/rtems.h: Delete file.
8573 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
8575         * config/rs6000/rs6000-protos.h (function_value): Protoize.
8577         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
8579         * config/rs6000/rs6000.c (rs6000_function_value): New.
8581 2003-05-15  Philip Blundell  <philb@gnu.org>
8583         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
8584         All uses updated.
8585         (arm_tune_xscale): New variable.
8586         (arm_override_options): Set it.
8587         (arm_adjust_cost): Use it in place of arm_arch_xscale.
8588         (arm_gen_load_multiple): Likewise.
8589         (arm_gen_store_multiple): Likewise.
8590         * config/arm/arm.md (is_xscale): Likewise.
8591         * config/arm/arm.h (arm_tune_xscale): Declare.
8593 2003-05-15  Philip Blundell  <philb@gnu.org>
8595         PR target/10730
8596         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
8597         involving invalid constants.
8599 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8601         * pa.c (hppa_expand_prologue): Remove blockage.
8603 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
8605         * doc/bugreport.texi: Remove most of the bug reporting
8606         instructions and merge them into bugs.html.
8608 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
8610         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
8611         g_switch_value to unsigned HOST_WIDE_INT.
8613 2003-05-14  Eric Christopher  <echristo@redhat.com>
8615         * combine.c: Fix header comments.
8616         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
8617         to all calls and prototype.
8619 2003-05-14  Roger Sayle  <roger@eyesopen.com>
8621         PR optimization/10764
8622         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
8623         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
8624         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
8625         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
8626         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
8627         the corresponding *fyl2x_?fxf3 instructions.
8629 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
8631         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
8632         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
8633         XCHAL_HAVE_L32R): New.
8634         * config/xtensa/xtensa-protos.h (non_const_move_operand,
8635         xtensa_load_constant, xtensa_function_prologue,
8636         xtensa_function_epilogue): Delete prototypes.
8637         (xtensa_expand_prologue): New.
8638         * config/xtensa/xtensa.c (frame_size_const,
8639         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
8640         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
8641         xtensa_function_prologue): Delete.
8642         (add_operand, xtensa_mem_offset): Formatting.
8643         (move_operand): If the const16 option is available, allow any SFmode
8644         and SImode constants.
8645         (xtensa_emit_move_sequence): Inline the former contents of
8646         xtensa_load_constant with modifications to handle the const16 option.
8647         (override_options): Add xtensa_char_to_class['W'] and set it to
8648         the general register class only if the const16 option is enabled.
8649         Fix formatting.  Disallow PIC when using the const16 option.
8650         (print_operand): Reorganize to switch on "letter" instead of the
8651         RTL code.  Add output_operand_lossage calls for invalid cases.
8652         Add support for 't' and 'b' letters.
8653         (xtensa_expand_prologue): New function to replace
8654         xtensa_function_prologue and xtensa_reorg.
8655         (xtensa_function_epilogue): Declare this as static.  Delete code
8656         to print the retw.n or retw instruction.
8657         (xtensa_return_addr): Use A0_REG instead of 0.
8658         (xtensa_rtx_costs): Add costs for using the const16 option.
8659         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
8660         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
8661         (TARGET_SWITCHES): Add "const16" and "no-const16".
8662         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
8663         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
8664         using the const16 option.
8665         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
8666         (TRAMPOLINE_SIZE): Change from 49 to 59.
8667         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
8668         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
8669         when using the const16 option.
8670         (PREDICATE_CODES): Delete non_const_move_operand.
8671         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
8672         UNSPECV_ENTRY.
8673         (movdi, movdf): If the source is a constant, always expand to a
8674         sequence of movsi insns.
8675         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
8676         (movsi_internal, movsf_internal): Add alternative using const16 insns.
8677         (movsf): Add const16 support.
8678         (entry, prologue, epilogue): New.
8679         (set_frame_ptr): Add missing mode for unspec_volatile operation.
8680         Likewise for subsequent split pattern.
8681         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
8682         "-mconst16" and "-mno-const16" options.
8684 2003-05-14  Richard Henderson  <rth@redhat.com>
8686         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
8687         to be DImode register.  Merge load_symptr.
8688         * config/ia64/ia64.md (load_symptr): Remove.
8690 2003-05-14  Richard Henderson  <rth@redhat.com>
8692         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
8693         DEFERRED_CONSTANT_P.
8694         * integrate.c (copy_rtx_and_substitute): Update use.
8695         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
8696         to the copy generated.
8697         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
8698         of the constant to see if we should emit.
8699         (mark_constant): Similarly.
8700         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
8702 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
8704         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
8705         move record condition.
8706         (movdi_internal2): Same.
8708 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
8710         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
8711         (GCOV_TAG_*) Force type to gcov_unsigned_t.
8712         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
8713         (struct gcov_var): Remove modified. Add start, length, offset,
8714         overread. Have buffer array for libgcov.
8715         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
8716         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
8717         * gcov-io.c (gcov_open): Set mode, do not read anything.
8718         (gcov_close): Write final block.
8719          (gcov_write_block, gcov_allocate): New.
8720         (gcov_write_bytes): Make static. Write or allocate buffer.
8721         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
8722         null.
8723         (gcov_write_string): Adjust.
8724         (gcov_write_tag)
8725         (gcov_write_length): Adjust. Flush the block.
8726         (gcov_write_tag_length): Buffer can never be null.
8727         (gcov_read_bytes): Make static. Read in block.
8728         (gcov_sync): Moved here. Adjust.
8729         (gcov_seek): Moved here. Adjust.
8730         * coverage.c (read_counts_file): Adjust.
8731         * gcov-dump.c (print_prefix): Add position parameter.
8732         (flag_dump_positions): New flag.
8733         (options, main, print_usage): Add it.
8734         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
8735         tag_summary): Adjust.
8736         * gcov.c (read_graph_file, read_count_file): Adjust.
8737         * libgcov.c (gcov_exit): Adjust.
8739         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
8740         (libgcov.a): Depend on libgcc.a.
8741         (gcov.o, gcov-dump.o): Add gcov-io.c.
8742         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
8744         * loop.c (check_dbra_loop): Factor common test.
8746 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
8748         * doc/md.texi (Automaton pipeline description): Grammar fixes.
8750 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
8752         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
8753         (TARGET_INITIALIZER): Include it.
8754         * target.h (struct gcc_target): Add machine_dependent_reorg field.
8755         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
8756         * system.h: Poison MACHINE_DEPENDENT_REORG.
8758         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
8759         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
8760         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8761         (alpha_handle_trap_shadows): Remove "first insn" parameter.
8762         (alpha_align_insns): Likewise.
8763         (alpha_reorg): Likewise.  Make static.  Update calls to above
8764         functions.
8766         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
8767         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
8768         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8769         (arm_reorg): Remove parameter.  Make static.
8771         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
8772         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
8773         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8774         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
8775         Remove parameter.
8777         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
8778         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
8779         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8780         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
8781         Remove parameter.
8783         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
8784         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
8785         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
8787         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
8788         * config/frv/frv.c: Remove orphaned comment.
8790         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
8791         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
8792         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8793         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
8794         Remove parameter.
8796         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
8797         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
8798         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8799         (emit_insn_group_barriers): Remove "first insn" parameter.
8800         (emit_all_insn_group_barriers): Likewise.
8801         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
8802         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
8804         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
8805         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
8806         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8807         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
8808         Remove parameter.
8810         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
8811         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
8812         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8813         (m68hc11_reorg): Make static.  Remove parameter.
8815         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
8816         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
8817         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8818         (conditionalize_optimization): Remove parameter.
8819         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
8820         Make static.  Update call to conditionalize_optimization.
8822         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
8823         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
8824         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8825         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
8826         Make static.
8828         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
8829         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
8830         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8831         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
8832         Remove parameter.
8834         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
8835         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
8836         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8837         (pa_combine_instructions): Remove "first insn" parameter.
8838         (remove_useless_addtr_insns): Likewise.
8839         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
8841         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
8842         commented-out definition.
8844         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
8845         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
8846         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8847         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
8848         Remove parameter.
8850         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
8851         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
8852         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8853         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
8854         Remove parameter.
8855         (sh_output_mi_thunk): Call sh_reorg directly.
8856         * config/sh/sh.md: Update comment.
8858         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
8859         commented-out definition.
8861         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
8862         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
8863         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8864         (v850_reorg): Make static.  Remove parameter.
8866         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
8867         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
8868         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
8869         (xtensa_reorg): Make static.  Remove parameter.
8871         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
8872         (TARGET_MACHINE_DEPENDENT_REORG): Document.
8874 2003-05-13  Richard Henderson  <rth@redhat.com>
8876         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
8877         the old decl had instantiated DECL_RTL.
8879 2003-05-13  Mike Stump  <mrs@apple.com>
8881         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
8883 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
8885         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
8886         HOST_WIDE_INT argument.
8888 2003-05-13  Jason Merrill  <jason@redhat.com>
8890         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
8892         * tree.c (iterative_hash_expr): New fn.
8894         * c-semantics.c (emit_local_var): Don't mess with temp slots if
8895         there's no initializer.
8897 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
8899         * final.c (final_scan_insn): Apply the effects of frame-related
8900         delay slot insns before emitting a delayed branch.
8902 2003-05-13  Nick Clifton  <nickc@redhat.com>
8904         * config/mcore/mcore.md (jump): Use emit_jump_insn.
8906 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8908         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
8909         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
8911 2003-05-12  DJ Delorie  <dj@redhat.com>
8913         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
8914         (emit_push_insn): Don't use push when the source alignment is less
8915         than the stack's push rounding.
8917 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
8919         * diagnostic.c (output_format): Add support for %m.
8920         (output_printf, output_verbatim, diagnostic_set_info,
8921         verbatim): Set err_no field of the text_info structure being
8922         initialized.
8923         (fatal_io_error): Delete function.
8924         * diagnostic.h (text_info): Add err_no field.
8925         * toplev.h (fatal_io_error): Delete prototype.
8927         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
8928         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
8929         * objc/objc-act.c: Replace all calls to fatal_io_error with
8930         calls to fatal_error; add ": %m" to the end of all the affected
8931         error messages.
8933 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
8935         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
8936         * rtl.h: Prototype it.
8937         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
8938         when appropriate.
8940 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
8942         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
8943         ("*iorsi3_oi"): Likewise.
8945 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
8947         * arm.md (compare_scc): Use shorter sequence for EQ case.
8948         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
8949         (and_scc_scc): Ensure split only applies when there is a dominance
8950         of the comparisons.
8951         (and_scc_scc_nodom): New insn-and-split pattern.
8953 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
8955         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
8956         to _Unwind_SetGRPtr().
8958 2003-05-13  Michael Eager <eager@mvista.com>
8960         * Makefile.in: Initialize program_transform_cross_name from
8961         @program_transform_name@ instead of target_alias.
8963 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
8964             Alan Modra  <amodra@bigpond.net.au>
8965             Jakub Jelinek  <jakub@redhat.com>
8967         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
8968         * configure: Rebuild.
8969         * config/rs6000/rs6000-protos.h: Update.
8970         * config/rs6000/rs6000.c (rs6000_tls_size): New.
8971         (rs6000_tls_size_string): New.
8972         (rs6000_parse_tls_size_option): New.
8973         (rs6000_legitimize_tls_address): New.
8974         (rs6000_tls_get_addr): New.
8975         (rs6000_got_sym): New.
8976         (rs6000_tls_symbol_ref): New.
8977         (rs6000_tls_symbol_ref_1): New.
8978         (rs6000_get_some_local_dynamic_name): New.
8979         (rs6000_get_some_local_dynamic_name_1): New.
8980         (TARGET_HAVE_TLS): New.
8981         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8982         (rs6000_override_options): Handle -mtls-size option.
8983         (constant_pool_expr_1): Handle TLS symbols.
8984         (rs6000_legitimize_address): Handle TLS symbols.
8985         (rs6000_tls_referenced_p): New.
8986         (rs6000_legitimate_address): Handle TLS symbols.
8987         (rs6000_emit_move): Handle TLS symbols.
8988         (print_operand): Handle TLS symbols.
8989         (uses_TOC): Handle TLS symbols.
8990         (rs6000_emit_prologue): Use symbol for unspec constant.
8991         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
8992         (some_ld_name): New.
8993         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
8994         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
8995         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
8996         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
8997         Support TLS.
8998         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
8999         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
9000         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
9001         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
9002         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
9003         tls_tls_64): New.
9004         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
9006 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
9008         * Makefile.in (stage2_build, stage3_build, stage4_build):
9009         Set BUILD_CC to the same as CC.
9011 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
9013         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
9015 2003-05-12  Andreas Schwab  <schwab@suse.de>
9017         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
9018         as unused.
9019         (bundling): Initialize 'pos'.
9020         (ia64_expand_builtin): Initialize 'rmode'.
9022 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
9024         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
9025         (ASM_OUTPUT_ALIGNED_COMMON): Same.
9026         (ASM_OUTPUT_LOCAL): Same.
9028 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
9030         * varasm.c (output_constant):  Fix underflow.
9032 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
9034         PR other/10745
9035         * configure.in: Correct detection of GNU ld version number.
9036         * configure: Regenerated.
9038 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
9040         * diagnostic.c (diagnostic_for_decl): Take a
9041         diagnostic_context argument.  Restructure to be consistent
9042         with diagnostic_report_diagnostic.
9043         (diagnostic_count_diagnostic): Now static.  Take a
9044         diagnostic_info argument, not just a diagnostic_t.  Some code
9045         moved here from internal_error.  Move a case label for
9046         clarity.
9047         (diagnostic_action_after_output): New function.  Code moved
9048         here from internal_error and fatal_error.
9049         (bug_report_request): New #define so that this text appears in
9050         only one place.
9051         (diagnostic_report_diagnostic): Update to match changes to
9052         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
9053         (diagnostic_set_info): Call gettext here.
9055         (pedwarn): Update comment.  Don't call gettext here.
9056         (sorry): Use report_diagnostic.  Don't call gettext here.
9057         (fatal_error): Remove final fnotice and exit, but call
9058         real_abort to prevent warnings about noreturn function returning.
9059         (internal_error): Likewise.  Don't do ICE suppression here nor
9060         call context->internal_error.
9061         (warning_with_decl): Suppress for decls in system headers.
9062         Adjust call to diagnostic_for_decl.
9063         (pedwarn_with_decl): Likewise.
9064         (error_with_decl): Adjust call to diagnostic_for_decl.
9065         (error_recursion): Use bug_report_request.
9067         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
9068         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
9069         diagnostic_count_diagnostic.
9071 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9073         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
9075 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
9077         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
9078         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
9079         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
9081 2003-05-12  Roger Sayle  <roger@eyesopen.com>
9083         * doc/rtl.texi: Document zero_extract as a valid destination
9084         of a set insn.
9086 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
9088         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
9089         '.'.  Change all local symbol definitions and references to use LSYM.
9091 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
9093         * expr.h (assemble_static_space): Update prototype.
9094         * output.h (assemble_zeros, output_constant): Likewise.
9095         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
9096         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
9097         it 64bit clean.
9098         * elf.h (ASM_OTUPUT_SKIP): Likewise.
9099         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
9100         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9101         Expect HOST_WIDE_INT operand.
9102         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9103         Expect HOST_WIDE_INT operand.
9104         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9105         Expect HOST_WIDE_INT operand.
9106         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
9107         HOST_WIDE_INT operand.
9108         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
9109         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
9110         * aout.h (ASM_OTUPUT_SKIP): Likewise.
9111         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
9112         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
9113         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
9114         * frv.h (ASM_OTUPUT_SKIP): Likewise.
9115         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
9116         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9117         Make it 64bit
9118         clean.
9119         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
9120         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9121         Make it 64bit clean.
9122         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
9123         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
9124         HOST_WIDE_INT operand
9125         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9126         Expect HOST_WIDE_INT operand
9127         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
9128         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
9129         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
9130         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9131         Likewise.
9132         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
9133         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9134         Likewise.
9135         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9136         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
9137         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9138         ASM_OUTPUT_SKIP): Likewise.
9139         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
9140         Likewise.
9141         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9142         ASM_OUTPUT_SKIP): Likewise.
9143         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9144         ASM_OUTPUT_SKIP): Likewise.
9145         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
9146         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
9147         ASM_OUTPUT_SKIP): Likewise.
9148         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
9149         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
9150         ASM_OUTPUT_SKIP): Likewise.
9151         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
9152         Likewise.
9153         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
9154         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
9155         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
9156         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
9157         ASM_OUTPUT_SKIP): Make it 64bit clean.
9158         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
9159         Make it 64bit clean.
9160         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
9161         ASM_OUTPUT_SKIP): Make it 64bit clean.
9162         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
9163         64bit clean.
9164         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
9165         HOST_WIDE_INT argument
9166         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
9167         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
9168         HOST_WIDE_INT argument
9169         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
9170         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
9171         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
9172         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
9173         HOST_WIDE_INT argument
9174         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
9175         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
9176         * varasm.c (asm_output_bss, asm_output_aligned_bss,
9177         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
9178         HOST_WIDE_INT argument
9180 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
9182         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
9183         favor of walk_tree_without_duplicates.  Add comments.
9185 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
9187         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
9188         (struct alloc_pool_def): New element 'id'.
9189         * alloc-pool.c (fancy_abort): Extern function prototype.
9190         (abort): Macro which uses fancy_abort.
9191         (struct allocation_object_def): New structure.
9192         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
9193         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
9194         (last_id): New variable.
9195         (create_alloc_pool): Add the offset of u.data to size of element,
9196         increase and use last_id.
9197         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
9198         (pool_alloc): Likewise. Set ID for elements.
9199         (pool_free): Check whether the PTR was allocated from POOL.
9201 2003-05-11  Richard Henderson  <rth@redhat.com>
9203         PR c/10675
9204         * c-decl.c: Include hashtab.h.
9205         (detect_field_duplicates): New.
9206         (finish_struct): Use it.
9207         * Makefile.in (c-decl.o): Update.
9208         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
9209         (component_decl_list, component_decl_list2,
9210         components, components_notype): Build list in reverse order.
9211         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
9213         * tree.c (chainon): Special case op2 null as well.
9214         Reorg for clarity.
9216 2003-05-11  Roger Sayle  <roger@eyesopen.com>
9218         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
9219         to implement log, logf and logl built-ins as inline x87 intrinsics.
9220         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
9221         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
9222         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
9224         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
9225         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
9227 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9229         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
9231         * sparc.c (print_operand): Fix uninitialized warning.
9233 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9235         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
9236         real insns.
9237         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
9238         condition.
9240 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
9242         * doc/cpp.texi: Fix typos.
9244 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
9246         * config/s390/s390.c (s390_function_arg_float): New function.
9247         (s390_function_arg_pass_by_reference): Use it.
9248         (s390_function_arg_advance): Likewise.
9249         (s390_function_arg): Likewise.
9250         (s390_va_arg): Likewise
9252 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
9254         * coverage.h (coverage_counter_alloc): New function.
9255         * function.h (struct function): Remove arc_profile flag.
9256         * coverage.c (fn_ident): Remove.
9257         (fn_b_ctrs, no_coverage): New.
9258         (get_coverage_counts): Use current_function_funcdef_no.
9259         (coverage_counter_alloc): New.
9260         (coverage_counter_ref): Adjust.
9261         (coverage_begin_output): Check no_coverage. Use
9262         current_function_funcdef_no.
9263         (coverage_end_function): Likewise.
9264         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
9265         than clearing flag_inline_functions. Do not clear arc_profile
9266         flag.
9267         * function.c (prepare_function_start): Do not set arc_profile
9268         flag.
9269         * profile.c (instrument_edges): Return number of instrumented
9270         edges. Use a for loop.
9271         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
9272         local to here and simplify. Use profile_arc_flag not arc_profile
9273         flag.
9274         (find_spanning_tree): Reformat.
9275         * toplev.c (rest_of_compilation): Use profile_arc_flags and
9276         flag_test_coverage rather than arc_profile flag.
9278 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
9280         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
9282 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9284         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
9286 2003-05-11  Bruno Haible  <bruno@clisp.org>
9288         * cppfiles.c (find_or_create_entry): Preserve errno.
9290 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
9292         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
9293         cpplib as it's a Standard Predefined Macro.
9294         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
9295         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
9296         __STDC_HOSTED__ appropriately.
9297         * cpplib.h (_cpp_init_builtins): Update.
9298         * fix-header.c (read_scan_file): Update.
9299         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
9301 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9303         PR C++/689
9304         PR C++/9257
9305         * c-opts.c (c_common_decode_option): Don't set
9306         warn_ctor_dtor_privacy wen -Wall.
9307         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
9309 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
9311         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
9312         patch.
9314 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
9316         * diagnostic.c: Reorder functions for clarity, putting all the
9317         functions in the "error" family next to each other, and
9318         likewise all the functions in the "error_with_decl" family.
9319         Some other routines were moved too.  Add comments.
9320         (vbuild_message_string): Fold into sole caller.
9323 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
9325         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
9326         (EH_RETURN_HANDLER_RTX): Likewise.
9327         (expand_builtin_eh_return): Do not copy stack adjustment
9328         if EH_RETURN_STACKADJ_RTX is not defined.
9329         (expand_eh_return): Likewise.  Also, do not pass stack
9330         adjustment as argument to the eh_return pattern.
9331         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
9332         because EH_RETURN_STACKADJ_RTX is not defined.
9333         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
9334         is not defined, treat stack pointer like a regular register.
9335         (uw_init_context_1): Set up fake initial stack pointer register.
9336         (uw_install_context_1): Do not compute stack adjustment if
9337         EH_RETURN_STACKADJ_RTX is not defined.
9339         * config/i386/i386.md ("eh_return"): Remove first argument.
9340         * config/mips/mips.md ("eh_return"): Likewise.
9341         * config/rs6000/rs6000.md ("eh_return"): Likewise.
9342         * config/sh/sh.md ("eh_return"): Likewise.
9344         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
9346 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
9348         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
9350 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
9352         * defaults.h (GCOV_TYPE_SIZE): Remove.
9353         * gcov-io.h (gcov_type): Set to specific mode int on target.
9354         (gcov_unsigned_t, gcov_position_t): New.
9355         (GCOV_TYPE_NODE): New.
9356         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
9357         (GCOV_COUNTERS_SUMMABLE): New.
9358         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
9359         gcov_ctr_info, gcov_info): Adjust types.
9360         (gcov_var): Adjust types.
9361         (gcov_write_unsigned, gcov_write_tag,
9362         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
9363         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
9364         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
9365         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
9366         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
9367         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
9368         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
9369         __gcov_init, __gcov_merge_add): Adjust gcov types.
9370         * coverage.c (ctr_merge_functions): Constify.
9371         (ctr_names): New.
9372         (read_counts_file): Adjust gcov types. Only summarize & merge
9373         summable counters.
9374         (coverage_counter_ref): Use GCOV_TYPE_NODE.
9375         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9376         build_ctr_info_value, build_gcov_info): Adjust types.
9377         * profile.c (branch_prob): Adjust gcov types.
9378         * gcov_dump (dump_file): Adjust gcov types.
9380 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
9382         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
9383         constants.
9384         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
9385         * arm.c (arm_select_dominance_cc_mode): Renamed from
9386         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
9387         Callers updated.
9388         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
9390 2003-05-09  Roger Sayle  <roger@eyesopen.com>
9392         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
9393         as unsigned to avoid signed/unsigned comparison warnings.
9395 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
9397         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
9398         instruction if the Xtensa density option is enabled.
9400 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
9402        * mklibgcc.in: Remove extra quotes.
9404 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
9406         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
9407         of int_ftype_void.
9409 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
9411         * reload1.c (reload_cse_move2add): Don't turn an implicit
9412         truncation into a self-set in the narrow mode.
9414 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
9416         * arm.md (clzsi2): The CLZ instruction is predicable.
9418 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
9420         * config/xtensa/xtensa.c: Formatting.
9422 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
9424         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
9425         instead of TREE_OPERAND to access the operand of a
9426         CONSTRUCTOR node.
9428 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
9430         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
9431         one operand.
9433 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
9435         * toplev.h (warning_with_file_and_line): Don't declare.
9436         (error_with_file_and_line): Likewise.
9437         * diagnostic.c (error_with_file_and_line): Remove.
9438         (warning_with_file_and_line): Likewise.
9440 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
9442         * c-parse.in (if_stmt_locus): New object.
9443         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
9444         (select_or_iter_stmt rule): Likewise.
9445         (if_stmt_file): Remove.
9446         (if_stmt_line): Likewise.
9447         * jump.c: include "diagnostic.h"
9448         (never_reached_warning): Don't use warning_with_file_and_line.
9449         * Makefile.in (jump.o): Add dependce on diagnostic.h
9451 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
9453         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
9454         Move code handling pieces not larger than a word to..
9455         * function.c (assign_parms): ..here, but use change_address instead
9456         of adjust_address and operand_subword, and expand_binop instead of
9457         expand_shift.  Adjust calls to move_block_from_reg.
9458         * expr.h (move_block_from_reg): Update declaration.
9459         (copy_blkmode_from_reg): Formatting.
9460         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
9461         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
9462         move_block_from_reg calls.
9463         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
9464         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
9465         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9466         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
9467         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
9468         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
9469         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
9470         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
9471         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
9473 2003-05-08  DJ Delorie  <dj@redhat.com>
9475         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
9476         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
9477         variable-sized types).
9478         (xstormy16_function_arg): New.  Pass them that way too.
9479         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
9480         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
9482 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
9484         * mklibgcc.in: Use mkinstalldirs when installing multilib
9485         directories.
9487 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
9489         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
9490         instead of CODE_FOR_jump
9492 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
9494         * objc/objc-act.c (error_with_ivar): Don't use
9495         error_with_file_and_line.
9496         (warn_with_method): Don't use warning_with_file_and_line.
9498 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9500         * stmt.c (emit_locus): New macro.
9501         (emit_filename): Remove.
9502         (emit_lineno): Likewise.
9503         (struct stmt_status): Replace members x_emit_filename and
9504         x_emit_lineno with x_emit_locus.
9505         (set_file_and_line_for_stmt): Adjust.
9506         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
9507         (warn_if_unused_value): Likewise.
9508         (check_seenlabel): Likewise.
9510 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9512         * c-decl.c (define_label): Tidy.  Don't use any of
9513         error_with_file_and_line or warning_with_file_and_file.
9514         (pending_xref_error): Likewise.
9515         (store_parm_decls): Likewise.
9516         (current_function_prototype_locus): New object.  Package from
9517         current_function_prototype_file and current_function_prototype_line.
9518         (start_function): Use it.
9519         (current_function_prototype_file): Remove.
9520         (current_function_prototype_line): Remove;
9522 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9524         * builtins.c (readonly_data_expr): New function.
9525         (expand_builtin_memmove): Optimize any rodata source, not just
9526         strings.
9528 2003-05-07  David Mosberger <davidm@hpl.hp.com>
9530         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
9532 2003-05-07  Richard Henderson  <rth@redhat.com>
9534         * config/i386/i386.c (ix86_split_long_move): Fix base register
9535         mode for XFmode splits for TARGET_64BIT.
9537 2003-05-07  Richard Henderson  <rth@redhat.com>
9539         * sched-ebb.c (schedule_ebb): Supply the correct starting
9540         block number to save_line_notes.
9542 2003-05-07  Richard Henderson  <rth@redhat.com>
9544         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
9545         (dump_file): Likewise.
9547 2003-05-07  David Mosberger <davidm@hpl.hp.com>
9549         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
9550         forget to preserve gp.
9551         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
9553         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
9554         .prologue directive.
9555         Use .skip instead of data8 for .bss section to make Intel
9556         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
9557         explicit in the .mib bundles and remove the unnecessary stop
9558         bits.  Replace local labels with normal labels, to make ias
9559         happy.  Don't register __do_global_ctors_aux here, do it in
9560         crtend.asm instead.
9562         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
9563         __do_global_ctors_aux in .init_array section instead of
9564         declaring it as a hidden global.  Replace local labels with
9565         ordinary labels to make ias happy.
9567 2003-05-07  Richard Henderson  <rth@redhat.com>
9569         PR c++/10570
9570         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
9571         * flags.h, toplev.c, doc/invoke.texi: Likewise.
9573         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
9574         * unwind.inc (_Unwind_DeleteException): Check for null
9575         exception_cleanup.
9577         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
9578         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
9579         * unwind.h: Declare them.
9580         * libgcc-std.ver (GCC_3.3): Export them.
9582 2003-05-07  Richard Henderson  <rth@redhat.com>
9584         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
9585         not _Unwind_Word.
9587 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
9589         * stmt.c (force_label_rtx): New function, based on logic
9590         formerly found in expand_expr.
9591         * expr.h: Prototype it.
9592         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
9593         appropriate.
9594         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
9596         * print-tree.c (debug_tree): Free the table after we're done
9597         with it.  Use putc.
9599 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
9601         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
9602         Unreverse arguments for __ev_subw.
9604         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
9606 2003-05-07  Nick Clifton  <nickc@redhat.com>
9608         * config/stormy16/stormy-abi: Update to include
9609         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
9610         R_XSTORMY16_12 relocs.
9612 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
9614         * function.c (assign_parms): Correct reversed reg_parm_stack_space
9615         test.  Add partial in-regs size to stack_args_size.
9617 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9619         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
9620         as a C only option.
9622 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
9624         * gcov-io.h (GCOV_LOCKED): New #define.
9625         (GCOV_LINKAGE): Make sure it is #defined.
9626         (gcov_write_string, gcov_write_tag, gcov_write_length,
9627         gcov_read_string, gcov_time): Poison in libgcov.
9628         (gcov_seek_end): Remove.
9629         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
9630         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9631         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9632         GCOV_TAG_SUMMARY_LENGTH): New #defines.
9633         (gcov_write_tag, gcov_write_length): Not in libgcov.
9634         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
9635         (gcov_write_tag, gcov_write_length): Not in libgcov.
9636         (gcov_write_tag_length): New.
9637         (gcov_write_summary): Use gcov_write_tag_length.
9638         * libgcov.c: Always #include gcov-io.h.
9639         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
9640         (GCOV_LINKAGE): Define to nothing for L_gcov.
9641         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
9642         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
9643         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
9644         (read_count_file): Likewise.
9645         * gcov-dump.c (dump_file): Likewise.
9646         * coverag.c (read_counts_file): Likewise.
9648 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
9650         PR other/10658
9651         * gcc.c (process_command): Update copyright date.
9653 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
9655         * doc/install.texi (mips-*-*):  Add note about libstdc++.
9657 2003-05-06  DJ Delorie  <dj@redhat.com>
9659         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
9660         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
9661         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
9663 2003-05-06    <neil@cat.daikokuya.co.uk>
9665         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
9666         and -Wstrict-prototypes if C++.
9668 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
9670         * config/rs6000/linuxspe.h: New file.
9672         * config.gcc: Add powerpc-*-linux-gnuspe* target.
9674 2003-05-06  Richard Henderson  <rth@redhat.com>
9676         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
9677         previous frame didn't save sp.  Clear sp for next frame.
9678         (uw_install_context_1): Honor saved sp from frame.
9680 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
9682         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
9683         (mips_move_1word, mips_move_2words): Remove declaration.
9684         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
9685         (mips_restore_gp): Remove insn argument.
9686         * config/mips/mips.h (FP_REG_RTX_P): New macro.
9687         * config/mips/mips.c (volatile_buffer): Remove.
9688         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
9689         (mips_move_1word, mips_move_2words): Remove, replacing with...
9690         (mips_output_move): ...this new function.
9691         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
9692         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
9693         handling of floating-point constants.  Handle zero CONST_DOUBLE
9694         arguments.
9695         (mips_annotate_frame_insn): Replace with...
9696         (mips_set_frame_expr): ...this, which just takes one argument.
9697         (mips_frame_set): Change the register argument to an rtx.
9698         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
9699         check whether moves should be split.  Use mips_split_64bit_move
9700         to split them.  Use mips_subword to generate the high and low
9701         parts of a paired FPR.  Adjust calls to frame_set and
9702         mips_set_frame_expr.
9703         (mips_expand_prologue): Simplify due to above changes.
9704         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
9705         targets, replacing xisting register-only versions.
9706         (UNSPEC_STORE_DF_HIGH): New unspec.
9707         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
9708         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
9709         (*paradoxical_extendhidi2): Remove.
9710         (movdi_internal, movdi_internal2): Use mips_output_move.
9711         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
9712         (movsf_internal1, movsf_internal2): Likewise.
9713         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
9714         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
9715         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
9716         Add m <- G alternative.
9717         (load_df_low, load_df_high, store_df_low): New patterns.
9718         (movhi_internal): Use @ template instead of calling a function.
9719         Remove unnecessary 'z' alternatives.
9720         (movqi_internal): Likewise.
9721         (exception_receiver): Update call to mips_restore_gp.
9723 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
9725         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
9726         (mips_delegitimize_address): Declare.
9727         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
9728         (FIND_BASE_TERM): Define.
9729         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Defi~e.
9730         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
9731         Handle small-data addresses.
9733 2003-05-05  Roger Sayle  <roger@eyesopen.com>
9735         * real.c (real_powi): New function to calculate the value of
9736         a real raised to an integer power, i.e. pow(x,n) for int n.
9737         (real_sqrt): Convert to using the faster do_add, do_multiply
9738         and do_divide API for consistency with the rest of real.c.
9739         * real.h (real_powi): Prototype here.
9740         * builtins.c (fold_builtin):  Avoid local variable mode when
9741         evaluating sqrt at compile time.  Attempt to evaluate pow at
9742         compile-time, by checking for an integral exponent.
9744 2003-05-05  Richard Henderson  <rth@redhat.com>
9746         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
9748 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
9750         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
9751         other FreeBSD ports.
9752         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
9753         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
9755 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
9757         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
9758         expanded variables.
9759         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
9761 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
9763         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
9764         * varasm.c (struct varasm_status): Add deferred_constants field.
9765         (n_deferred_strings): Delete variable.
9766         (n_deferred_constants): New #define.
9767         (struct constant_descriptor_tree): Kill next and label fields.
9768         (const_hash_table, MAX_HASH_TABLE): Delete.
9769         (const_desc_htab): New static variable.
9770         (const_hash): Rename const_desc_hash, and make it fit the
9771         hashtab.h interface.
9772         (const_desc_eq): New.
9773         (const_hash_1, compare_constant): Const-ify arguments.
9774         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
9775         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
9776         (output_constant_def): Do the lookup/insert using the
9777         hashtab.h interface.  Don't muck with n_deferred_constants or
9778         DEFERRED_CONSTANT_P here.
9779         Always call maybe_output_constant_def_contents.
9780         (maybe_output_constant_def_contents): Take a pointer to the
9781         descriptor, not the EXP and RTL separately.  Return
9782         immediately if this constant is not deferred.  Defer output of
9783         everything, except writable string constants.  Update
9784         n_deferred_constants here.
9785         (output_constant_def_contents): Now takes just one argument,
9786         an rtx.  Clear DEFERRED_CONSTANT_P here.
9787         (mark_constant_pool): Update for rename of n_deferred_strings.
9788         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
9790         (init_varasm_status): Clear p->deferred_constants.
9791         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
9793 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9795         * builtins.c (expand_builtin_stpcpy): Only expand when the length
9796         of the source string can be evaluated at compile-time.
9798 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9800         * testsuite/gcc.c-torture/compile/simd-6.c: New.
9802         * c-typeck.c (digest_init): Handle arrays of vector constants.
9804 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
9806         * builtins.c (expand_builtin_mempcpy): New function.
9807         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
9808         ignored into strcpy no matter what arguments it has.
9809         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
9810         expand_builtin_mempcpy.
9812 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9814         * testsuite/gcc.dg/20030505.c: New.
9816         * c-typeck.c (convert_for_assignment): Opaque pointers can
9817         interconvert.
9819         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
9820         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
9821         (spe_init_builtins): Rename all pv2si_type_node to
9822         opaque_p_V2SI_type_node.
9823         Remove declaration of pv2si_type_node.
9824         (is_ev64_opaque_type): Accept opaque pointers.
9826 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
9828         * config/rs6000/rs6000.c (validate_condition_mode): Use
9829         flag_finite_math_only.
9830         (rs6000_reverse_condition): Never return UNKNOWN; use
9831         flag_finite_math_only.
9832         (rs6000_generate_compare): Use flag_finite_math_only.
9833         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
9834         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
9835         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
9837         * toplev.c (check_global_declarations): Suppress not-used warning
9838         for volatile variables.
9840 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
9842         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
9843         usage of bitfield instructions for mode1 != BLKmode, only ignoring
9844         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
9845         (store_field): Likewise.
9847 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9849         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
9850         evsubifw to builtins accepting 5-bit unsigned constants.
9851         (easy_vector_constant): Return if V1DImode.  Fix typo.
9853 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
9855         * config/rs6000/spe.h: Revert licensing change from last patch.
9857 2003-05-05  DJ Delorie  <dj@redhat.com>
9859         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
9860         before reload, but defer the split until after.
9861         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
9862         to match.
9864 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
9866         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
9867         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
9869 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9871         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
9872         is defined.
9874 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9876         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
9877         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
9878         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
9880         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
9881         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
9882         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
9883         New.
9885         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
9886         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
9888         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
9889         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
9890         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
9891         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
9892         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
9893         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
9894         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
9895         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
9896         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
9897         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
9898         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
9899         BUILT_IN_STRDUP): Add "nonnull" attribute.
9901 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9903         * expr.c (store_field): Don't clobber TEMP in shift: it might be
9904         a variable.
9905         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
9906         whose purpose is to step up the alignment.
9907         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
9909         * stor-layout.c (compute_record_mode): Relax restriction
9910         on fields crossing word boundaries forcing BLKmode.
9912 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
9914         * cppinit.c (cpp_create_reader, post_options): Warn about
9915         trigraphs unless explicity set or -trigraphs.
9916         * cpplex.c (warn_in_comment): New.
9917         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
9918         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
9919         * doc/cppopts.texi, doc/cpp.texi: Update.
9921 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9923         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
9924         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
9925         namespace clash.
9926         (GCOV_MERGE_FUNCTIONS): New.
9927         (gcov_merge_fn): Declare.
9928         (struct gcov_ctr_info): New field "merge".
9929         (__gcov_merge_add): Declare.
9930         * coverage.c (ctr_merge_functions): New.
9931         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
9932         of gcov_ctr_info type.
9933         * libgcov.c (__gcov_merge_add): New.
9934         (gcov_exit): Call a hook to merge values of counters.
9936 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
9938         * toplev.h (pedwarn_with_file_and_line): Don't declare.
9939         * diagnostic.c (pedwarn_with_file_and_line): Remove.
9941 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9943         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
9945 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9947         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
9948         expand_builtin_frame_address): Update prototypes.
9949         (expand_builtin_constant_p, expand_builtin_strlen,
9950         expand_builtin_strcpy, expand_builtin_memset,
9951         expand_builtin_bzero, expand_builtin_args_info,
9952         expand_builtin_frame_address): Pass in just the argument(s)
9953         needed, not the entire expression `exp'.
9954         (expand_builtin): Update all calls to these functions.
9956 2003-05-03  Richard Henderson  <rth@redhat.com>
9958         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
9959         <BUILT_IN_DWARF_SP_COLUMN>: New.
9960         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
9961         (BUILT_IN_DWARF_SP_COLUMN): New.
9962         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
9963         (expand_builtin_dwarf_sp_column): New.
9964         * except.h: Update to match.
9965         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
9966         (execute_cfa_program): Record location expression address
9967         before extracting length.
9968         (uw_update_context_1): Install old CFA into stack pointer column.
9969         (uw_init_context_1): Set cfa_reg to stack pointer column.
9971 2003-05-03  Richard Henderson  <rth@redhat.com>
9973         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
9974         return bool.
9975         (toc_relative_expr_p): Likewise.
9976         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
9977         (legitimate_constant_pool_address_p): Move from rs6000.h, change
9978         into a function, downcase all users.
9979         (legitimate_small_data_p): Likewise.
9980         (legitimate_offset_address_p): Likewise.
9981         (legitimate_indexed_address_p): Likewise.
9982         (legitimate_indirect_address_p): Likewise.
9983         (legitimate_lo_sum_address_p): Likewise.
9984         (rs6000_mode_dependent_address): Likewise.
9985         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
9986         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
9987         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
9988         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
9989         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
9990         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
9991         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
9992         * config/rs6000/rs6000-protos.h: Update.
9994 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
9996         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
9997         (REVERSE_CONDITION): Define.
9999         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
10000         to branch_positive_comparison_operator.
10001         (ccr_bit): Check that sCOND conditions are actually a positive bit.
10002         (print_operand): Remove %D substitution.
10003         (rs6000_emit_sCOND): Generate complement operation to ensure that
10004         sCOND input is a positive bit.
10005         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
10006         same order as bCOND, and add the missing ones.  Remove the %D
10007         substitutions from the scc patterns.
10009         * simplify-rtx.c (simplify_relational_operation): Add case for
10010         ! (fabs(x) < 0.0).
10012 2003-05-03  Bruce Korb  <bkorb@gnu.org>
10014         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
10015         in fixincl.x
10016         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
10018 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
10020         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
10022 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
10024         PR c/10604
10025         * c-common.c (warn_sign_compare): Initialize to -1.
10026         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
10027         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
10028         for C++ only.
10029         (c_common_post_options): Set warn_sign_compare from extra_warnings
10030         if it's still -1 at this point.
10032         * toplev.c (maybe_warn_unused_parameter): New static variable.
10033         (set_Wextra): New static function.
10034         (W_options): Remove "extra".
10035         (decode_W_option): Call set_Wextra.
10036         (independent_decode_option): Likewise.
10037         (set_Wunused): Cooperate with set_Wextra in setting
10038         warn_unused_parameter.
10039         (rest_of_compilation): No need to check extra_warnings as
10040         well as warn_uninitialized.
10042         * c-typeck.c (build_binary_op, build_conditional_expr):
10043         No need to check extra_warnings as well as warn_sign_compare.
10044         (internal_build_compound_expr): No need to check extra_warnings
10045         as well as warn_unused_value.
10046         * function.c (expand_function_end): No need to check extra_warnings
10047         as well as warn_unused_parameter.
10048         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
10049         as well as warn_unused_value.
10051         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
10053         * Makefile.in: Disable -Werror for gengtype-lex.o.
10055 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
10057         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
10058         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
10059         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
10060         * calls.c (emit_call_1): Likewise.
10061         (expand_call): For calls initializing constant memory, replace
10062         emission of standalone mem /u clobber with function usage entry.
10063         * expr.c (emit_block_move_via_libcall): Likewise.
10064         * cse.c (count_reg_usage, case EXPR_LIST): New case.
10065         * flow.c (propagate_one_insn): Pass entire operand of
10066         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
10067         * integrate.c (try_constants): For CALL_INSNs, substitute constants
10068         within the FUNCTION_USAGE also.
10069         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
10070         FUNCTION_USAGE lists.
10071         * reload1.c (replace_pseudos_in): Renamed.
10072         (reload): Use it for clobbers surviving until the end of the reload.
10074 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10076         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
10077         gen_lowpart on non-integer modes.
10079         * stor-layout.c (place_field): When adjusting offset_align, use
10080         desired_align, not DECL_ALIGN.
10082 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
10084         * c-decl.c (pending_invalid_xref_file): Remove.
10085         (pending_invalid_xref_line): Remove.
10086         (pending_invalid_xref_location): New.
10087         (lookup_label): Use location_t and input_location directly.
10088         (lookup_tag): Likewise.
10089         (pending_xref_error): Likewise.
10090         (c_expand_body_1): Likewise.
10091         * c-common.c (x_expand_start_cond): Likewise.
10092         * c-semantics.c (genrtl_for_stmt): Likewise.
10093         (find_reachable_label): Likewise.
10094         * expr.c (expand_expr): Likewise.
10095         * integrate.c (output_inline_function): Likewise.
10096         * tree-inline.c (find_alloca_call): Likewise.
10097         (find_builtin_longjmp_call): Likewise.
10098         * gcc.c (input_filename): Make static.
10100 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
10102         * config/mips/mips.md: Fix comment typo.
10104         * config/mips/mips.c (mips_integer_op): New structure.
10105         (MIPS_MAX_INTEGER_OPS): Define.
10106         (mips_const_insns): Use mips_build_integer to determine the number
10107         of instructions needed to load a CONST_INT.
10108         (move_operand): Reject compound CONST_INTs.
10109         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
10110         (mips_move_integer): New fn.
10111         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
10112         (mips_legitimize_move): Only legitimize constants when moving
10113         word or subword values.
10115 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
10117         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
10119 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10121         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
10122         modifying it.
10124 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
10125             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10127         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
10128         Hernandez, and Kazu Hirata.  Update Richard Henderson.
10130 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
10132         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
10133         to tentative declaration.
10135         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
10136         (SYMBOL_FLAG_SMALL_V4): Delete.
10137         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
10138         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
10139         (rs6000_elf_in_small_data_p): Add extra section names.  Add
10140         comment about TREE_PUBLIC test.
10142         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
10143         expand_stmt on result of expand_unreachable_stmt.
10145 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10147         * doc/contrib.texi (Contributors): Add Daniel Berlin.
10149 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
10151         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
10152         number of automata.
10154         * config/rs6000/rs6000.c (symbol_ref_operand): Check
10155         SYMBOL_REF_FUNCTION_P on AIX.
10156         (current_file_function_operand): Same.
10157         * config/rs6000/rs6000.md (call,call_value): Force non-function
10158         symbol_ref into register on AIX.
10160 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
10162         * calls.c (struct arg_data): Move offset, slot_offset, size and
10163         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
10164         (initialize_argument_information): Adjust call to locate_and_pad_parm.
10165         Delete alignment_pad var.  Don't calculate slot_offset here.
10166         (emit_library_call_value_1): Delete alignment_pad, offset and size
10167         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
10168         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
10169         partial in-regs here.  Formatting fixes.
10170         * expr.h (struct locate_and_pad_arg_data): New struct.
10171         (locate_and_pad_parm): Adjust declaration.
10172         * function.c (assign_parms): Localize vars.  Use "locate" instead of
10173         other arg location vars.  Don't invoke FUNCTION_ARG or
10174         FUNCTION_INCOMING_ARG unless pretend_named is different from
10175         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
10176         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
10177         Use slot_offset for stack home of reg parms.  Correct test for
10178         parm passed in memory.  Formatting fixes.
10179         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
10180         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
10181         Correct initial_offset_ptr handling.  Localize vars.  Always pad
10182         locate->offset even when in_regs.
10184 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
10186         * Makefile.in (TREE_H): Replace location.h with input.h.
10187         (GTFILES) Remove location.h
10188         (gt-lists.h): Replace gt-location.h with gt-input.h
10189         * input.h (input_filename, input_line): Remove variables.
10190         (location_s, location_t): Move from location.h.
10191         (input_location): New.
10192         (input_filename, input_line): New #defines.
10193         * location.h: Remove.
10194         * tree.h: Replace location.h with input.h.
10195         (input_filename, input_line): Remove.
10196         * diagnostic.h: Replace location.h with input.h.
10197         * gcc.h (input_filename, input_filename_length): Remove declarations.
10198         * toplev.c (input_filename, input_line): Remove.
10199         (input_location): Define.
10200         (push_srcloc, pop_srcloc): Adjust.
10201         * diagnostic.c (diagnostic_report_current_module): Adjust.
10203 2003-05-02  Nick Clifton  <nickc@redhat.com>
10205         * configure.in: Add xstormy16 to list of targets that has a nop
10206         instruction and hence which can be tested to see if the
10207         assembler supports the --gdwarf2 switch.
10208         * configure: Regenerate.
10210 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10212         PR target/8257
10213         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
10214         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
10215         Avoid undefined shifts by making the shift operand unsigned.
10217 2003-05-01  DJ Delorie  <dj@redhat.com>
10219         * reload.c (find_reloads): Also check that all of a multi-reg
10220         value is in the class.
10222 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
10224         * scan.h (lineno): Revert the rename here.
10226 2003-05-01  Stan Shebs  <shebs@apple.com>
10228         * config/darwin.c (darwin_encode_section_info): Call
10229         default_encode_section_info.
10231 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
10233         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
10234         (movsi_internal1): Use new mfjmpr attribute.
10235         (movhi_internal): Same.
10236         (movqi_internal): Same.
10237         (movcc_internal1): Same.
10238         (movdi_internal64): Same.
10239         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
10240         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
10241         * config/rs6000/40x.md: Add fpu_405.
10242         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
10243         into power4misc automata.  Remove extraneous parentheses.
10244         * config/rs6000/440.md: New file.
10245         * config/rs6000/rs6000.c (processor_target_table): Add 440,
10246         440fp.  Rename 405f to 405fp.
10247         (function_arg_padding): Correct formatting.
10248         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
10250 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
10252         * input.h (lineno): Rename to ...
10253         (input_line): ... here.
10254         * tree.h (lineno): Rename to ...
10255         (input_line): ... here.
10256         * scan.h (lineno): Rename to ...
10257         (input_line): ... here.
10258         * toplev.c (lineno): Rename to ...
10259         (input_line): ... here.
10260         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
10261         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
10262         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
10263         store_parm_decls, c_expand_body_1): Likewise.
10264         * c-errors.c (pedwarn_c99): Likewise.
10265         * c-format.c (status_warning): Likewise.
10266         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
10267         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
10268         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
10269         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
10270         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
10271         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
10272         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
10273         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
10274         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
10275         * coverage.c (create_coverage): Likewise.
10276         * diagnostic.c (pedwarn, sorry, error, fatal_error,
10277         internal_error, warning, diagnostic_report_current_module,
10278         inform): Likewise.
10279         * expr.c (expand_expr): Likewise.
10280         * integrate.c (expand_inline_function,
10281         output_inline_function): Likewise.
10282         * rtl-error.c (file_and_line_for_asm): Likewise.
10283         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
10284         walk_tree): Likewise.
10285         * tree.c (make_node): Likewise.
10286         * ada, cp, f, java, objc, treelang: Likewise.
10287         * objc/objc-act.c (objc_init): Rename lineno to input_line.
10288         (build_module_descriptor, build_selector_translation_table,
10289         build_protocol_template, build_method_prototype_list_template,
10290         build_category_template, build_selector_table,
10291         build_class_template, build_super_template, build_ivar_template,
10292         build_ivar_list_template, build_method_list_template,
10293         build_method_template, add_instance_variable): Likewise.
10295         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
10296         name from input_filename.
10298 2003-04-30  Eric Christopher  <echristo@redhat.com>
10299             Richard Sandiford <rsandifo@redhat.com>
10301         * configure: Regenerate from patches below.
10302         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
10303         for all symbolic operands.
10304         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
10305         to function.
10306         * config/mips/linux.h: Fix typo.
10307         * Merge from mips-3_4-rewrite branch:
10309         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
10311                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
10312                 handling local labels when TARGET_ABICALLS.
10314         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
10316                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
10317                 integer argument.
10318                 (mips_expand_call): Likewise.
10319                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
10320                 (FIXED_REGISTERS): Clear $31 entry.
10321                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
10322                 (EPILOGUE_USES): Define.
10323                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
10324                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
10325                 (override_options): Add a 'j' register class.
10326                 (mips_expand_call): Handle sibcalls
10327                 (mips_expand_epilogue): Handle epilogues for sibcalls.
10328                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
10329                 (sibcall_epilogue): New pattern.
10330                 (call, call_value): Adjust calls to mips_expand_call.
10331                 (sibcall, sibcall_value): New expanders.
10332                 (sibcall_internal, sibcall_value_internal): New patterns.
10333                 (sibcall_value_multiple_internal): New pattern.
10335         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
10337                 * config/mips/mips.md (extended_mips16): New attribute.
10338                 (define_attr length): Default to 8 if extended_mips16 == yes.
10339                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
10340                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
10341                 (call_internal): Set extended_mips16 to yes for direct jumps.
10342                 Remove redundant mode attribute.
10343                 (call_value_internal, call_value_multiple_internal): Likewise.
10344                 (call_split): Remove redundant mode attribute.
10345                 (call_value_split, call_value_multiple_split): Likewise.
10347                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
10348                 of unaligned offsets.
10350                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
10351                 of SYMBOL_GENERAL.
10353         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
10355                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
10356                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
10357                 for mips16 code.
10359         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
10361                 * config/mips/mips.h (ADDRESS_COST): Define.
10363         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
10365                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
10366                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
10367                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
10369         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
10371                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
10372                 of a two-instruction sequence.  Add register->memory alternative.
10373                 (truncdihi2, truncdiqi2): Likewise.
10374                 Rework shift/truncate instructions so that they only handle right
10375                 shifts of 32 (or more, in the case of arithmetic shifts).
10376                 Add patterns for truncate/sign-extend.
10378         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10380                 * configure.in (mips*-*-*): Check for explicit relocation support.
10381                 * configure: Regenerate.
10383         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10385                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
10386                 and -mno-explicit-relocs.
10387                 (MASK_EXPLICIT_RELOCS): Define.
10388                 (TARGET_EXPLICIT_RELOCS): Use it.
10389                 (mips_split_addresses): Remove declaration.
10390                 * config/mips/mips.c (override_options): Update comment for
10391                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
10393         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10395                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
10396                 a CONST as identity.  Check the return value of gen_lowpart_common.
10398         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10400                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
10401                 references for TARGET_EXPLICIT_RELOCS.
10402                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
10403                 !TARGET_MIPS16.
10405         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10407                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
10408                 (addsi3): Remove redundant constraints.
10409                 (addsi3_internal): Use separate register & constant alternatives.
10410                 Use a 'Q' constraint and "addiu" insn for the latter.
10411                 (adddi3_internal_3, addsi3_internal_2): Likewise.
10413         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
10415                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
10416                 (mips_expand_unaligned_store): Declare.
10417                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
10418                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
10419                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
10420                 (UNSPEC_ULD, UNSPEC_USD): Remove.
10421                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
10422                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
10423                 (extv, extzv): Use mips_expand_unaligned_load.
10424                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
10425                 predicate for operand 3.
10426                 (movsi_ulw, movsi_usw): Replace with...
10427                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
10428                 (movdi_uld, movdi_usd): Likewise replace with...
10429                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
10431         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
10433                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
10434                 * config/mips/mips.h (LEA_REGS): New register class.
10435                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
10436                 (GR_REG_CLASS_P): Include LEA_REGS.
10437                 (DANGEROUS_FOR_LA25_P): New macro.
10438                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
10439                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
10440                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
10441                 entries to LEA_REGS.
10442                 (mips_global_pic_constant_p): New function.
10443                 (override_options): Add 'e' register constraint.
10444                 (mips_secondary_reload_class): Return LEA_REGS when reloading
10445                 a dangerous constant into a class containing $25.
10446                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
10447                 (movsi_internal): Likewise.
10449         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
10451                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
10452                 * config/mips/mips.md (call_split): New insn.
10453                 (call_value_split, call_value_multiple_split): New insns.
10454                 (call_internal): Turn into a define_insn_and_split.  Split the
10455                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
10456                 (call_value_internal, call_value_multiple_internal): Likewise.
10458         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
10460                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
10461                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
10462                 (mips_encode_section_info): Don't take symbol visibility into
10463                 account if TARGET_ABICALLS.  Add more commentary.
10464                 * config/mips/mips.md: Add commentary above reloc constants.
10466         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
10468                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
10469                 from mips_legitimize_move.  Legitimize constant pool references.
10470                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
10471                 a REG_EQUAL note to the last instruction.
10473         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
10475                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
10476                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
10477                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
10478                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
10479                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
10480                 (UNSPEC_RELOC_GPREL16): Rename to...
10481                 (RELOC_GPREL16): ...this.
10482                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
10483                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
10484                 (macro_calls): New attribute.
10485                 (length): Use it to set the default length of calls.  Don't allow
10486                 calls to have delay slots if macro_calls is "yes".
10487                 (luisi, luidi): New patterns.
10488                 (lowsi, lowdi): Use '%R' to print the relocation.
10489                 (lowdi_extend): Remove.
10490                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
10491                 (call_internal): Merge alternatives.  Always use "jal".
10492                 (call_value_internal, call_value_multiple_internal): Likewise.
10493                 (reloc_gprel16): Remove.
10494                 * config/mips/mips.c (mips_got_alias_set): New variable.
10495                 (mips_classify_constant): Handle the new relocation constants.
10496                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
10497                 (mips_symbolic_address_p): Return false if generating explicit relocs.
10498                 Otherwise allow local PIC symbols to have an offset.
10499                 (mips_splittable_symbol_p): New function.
10500                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
10501                 (mips_const_insns): Always accept HIGH.
10502                 (call_insn_operand): Don't accept global symbols if using explicit
10503                 relocs.
10504                 (move_operand): Don't accept HIGH when generating PIC.
10505                 (mips_reloc, mips_lui_reloc): New functions.
10506                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
10507                 be a valid right-hand-side for a SET pattern.
10508                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
10509                 (mips_emit_high): New function.
10510                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
10511                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
10512                 address should be used.  Use mips_emit_high to generate the
10513                 high part of such an address.  Adjust the global symbol + offset
10514                 case to match the change to mips_force_temprorary.
10515                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
10516                 If generating explicit-reloc PIC, load the address of global
10517                 symbols from the GOT.  Use mips_emit_high to emit the high part
10518                 of an address.
10519                 (mips_simplify_dwarf_addr): New function.
10520                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
10521                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
10522                 (mips_expand_call): Load the addresses of global functions using
10523                 %call* relocs if generating explicit-reloc PIC.  Don't generate
10524                 an exception_receiver pattern.
10525                 (override_options): Initialize mips_got_alias_set.
10526                 (print_relocation): Remove in favor of...
10527                 (mips_reloc_string): ...this new function.
10528                 (print_operand): Handle '%R'.  Use mips_reloc_string.
10529                 (print_operand_address): Use print_operand to print the symbolic
10530                 part of a LO_SUM address.
10531                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
10532                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
10533                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
10534                 for local symbols.
10536         2003-02-02  Eric Christopher  <echristo@redhat.com>
10538                 * config/mips/mips.c (mips_sign_extend): Remove.
10539                 * config/mips/mips-protos.h: Ditto.
10540                 * config/mips/mips.md (movdi_internal2_extend): Remove.
10541                 (extendsidi2): Fix mode of convert_memory_address.
10543         2003-01-24  Eric Christopher  <echristo@redhat.com>
10545                 * config/mips/mips.md: Rewrite zero_extend* and extend*
10546                 patterns. Use explicit instructions and split after reload
10547                 for register extensions.
10548                 (ashlsi3_internal1_extend): New combiner pattern for
10549                 shift and extend combinations.
10550                 * config/mips/mips.h: Change Pmode back to ptr_mode
10551                 for performance enhancement.
10552                 * combine.c (expand_compound_operation): Make sure
10553                 that zero_extend operation is profitable.
10555         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
10557                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
10558                 addresses depend on ptr_mode rather than Pmode.
10559                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
10560                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
10561                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
10562                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
10563                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
10564                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
10565                 (tablejump_internal1): Remove condition.
10566                 (tablejump_internal2): Change condition to TARGET_64BIT.
10567                 (cpaddsi): Rename to...
10568                 (cpadd): ...this.
10569                 (cpadddi): Remove.
10571         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
10573                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
10574                 mips_address_cost, mips_check_split, double_memory_operand,
10575                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
10576                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
10577                 (mips_legitimate_address_p): Return bool.
10578                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
10579                 mips_legitimize_address, mips_legitimize_move,
10580                 mips_expand_call): Declare.
10581                 (mips_return_addr): Move outside #ifdef RTX_CODE.
10583                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
10584                 (PIC_FN_ADDR_REG): New reg_class.
10585                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
10586                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
10587                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
10588                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
10589                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
10590                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
10591                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
10592                 (LEGITIMATE_PIC_OPERAND): Undefine.
10593                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
10594                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
10595                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
10596                 (FUNCTION_MODE): Change to SImode.
10597                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
10598                 most constants.  Treat const_artih_operands specially if they
10599                 occur in a PLUS or MINUS.
10600                 (CONSTANT_POOL_COST): New macro.
10601                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
10602                 Add LO_SUM handling.
10603                 (ADDRESS_COST): Undefine.
10604                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
10605                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
10606                 to call_insn_operand and remove CONST_INT.
10608                 * config/mips/mips.c: Include integrate.h.
10609                 (SINGLE_WORD_MODE_P): New macro.
10610                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
10611                 (mips_constant_info, mips_address_info): New structs.
10612                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
10613                 (mips_classify_constant, mips_classify_symbol,
10614                 mips_valid_base_register_p, mips_symbolic_address_p,
10615                 mips_classify_address, mips_symbol_insns,
10616                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
10617                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
10618                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
10619                 mips_print_relocation): New functions.
10620                 (const_arith_operand): New operand predicate.
10621                 (arith_operand): Use it.
10622                 (mips_const_double_ok, mips16_simple_memory_operand,
10623                 simple_memory_operand, double_memory_operand, mips_check_split,
10624                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
10625                 mips16_gp_offset_p, mips16_output_gp_offset,
10626                 mips16_constant_after_function_p, mips16_constant): Remove.
10627                 (call_insn_operand): Be more fussy about symbolic constants.
10628                 Use register_operand.
10629                 (move_operand): Use mips_symbolic_address_p to check symbolic
10630                 operands and general_operand to check the rest.
10631                 (symbolic_operand): Use mips_classify_constant.
10632                 (mips_legitimate_address_p): Use mips_classify_address.
10633                 (mips_move_1word): Combine handling of symbolic addresses.
10634                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
10635                 (move_move_2words): Likewise.  Assume addresses are offsettable
10636                 if they need to refer to more than one word.  Add HIGH handling.
10637                 (mips_restore_gp): Use ptr_mode for the GP save slot.
10638                 (mips_expand_call): New function, combining the old mips.md
10639                 call and call_internal define_expands.  If the address isn't
10640                 a call_insn_operand, force it into a register.  For SVR4 PIC,
10641                 emit an exception_receiver instruction after the call.
10642                 (override_options): Only override flag_pic for TARGET_ABICALLS
10643                 if it is currently zero.  Allow mips_split_addresses when
10644                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
10645                 Add new register class letter, 'c'.
10646                 (print_operand): Use mips_classify_constant for constant operands.
10647                 (print_operand_address): Use mips_classify_address.
10648                 (mips_output_function_prologue): Don't use .cprestore.
10649                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
10650                 via the frame pointer if current_function_calls_eh_return.
10651                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
10652                 to mark whether a symbol is local or global.
10653                 (build_mips16_call_stub): Expect the address of the function rather
10654                 than a MEM reference to it.  Update call generation sequences.
10655                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
10656                 small-data adjustments.
10658                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
10659                 length for loads and stores.
10660                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
10661                 (define_attr type): Add const and prefetch.
10662                 (define_attr length): Use mips_const_insns for const instructions.
10663                 Use mips_fetch_insns for load and store instructions.
10664                 (define_attr single_insn): New.
10665                 (define_attr can_delay): Use it.
10666                 (define_attr abicalls): Remove.
10667                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
10668                 (addsi3_internal_2): Add 'Q' constraint.
10669                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
10670                 (high): Remove.
10671                 (lowsi): Renamed from low.
10672                 (lowdi): New pattern.
10673                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
10674                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
10675                 (loadgp): Change operand 0 to an immediate_operand.
10676                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
10677                 beforehand.
10678                 (cpaddsi, cpadddi): New patterns.
10679                 (tablejump_internal3, tablejump_internal4): Remove define_expands
10680                 and associated define_splits.
10681                 (call, call_value): Use mips_expand_call.
10682                 (call_internal): New, replacing all existing call_internal* insns.
10683                 (call_value_internal): Likewise call_value_internal*.
10684                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
10685                 (untyped_call): Remove if (operands[0]) magic.
10686                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
10687                 (prefetch_di_address, prefetch_di): Likewise.
10688                 (leasi, leadi): Remove.
10689                 (reloc_gprel16): New.
10691                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
10692                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
10693                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
10695         2003-01-08  Eric Christopher  <echristo@redhat.com>
10697                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
10698                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
10699                 configure check for libgloss.
10700                 * config/mips/elf64.h: Ditto.
10701                 * config/mips/mips.c: Remove ABI_MEABI.
10702                 * config/mips/mips.h: Ditto.
10704         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
10706                 Fix merge fallout.
10707                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
10708                 (muldi3_internal): Remove outdated comment.
10709                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
10710                 (*smsac_di, *umsac_di): Likewise.  Reformat.
10711                 (umulsi3_highpart): Minor formatting tweaks.
10712                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
10713                 redundant scratch operand.  Minor formatting tweak.
10714                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
10715                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
10716                 (smulsi3_highpart): As for the unsigned version.
10717                 (smulsi3_highpart_internal): Likewise.
10718                 (smulsi3_highpart_mulhi_internal): Likewise.
10719                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
10720                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
10721                 (*smul_acc_di): Remove duplicated pattern.
10722                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
10723                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
10724                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
10726         2002-10-22  Eric Christopher  <echristo@redhat.com>
10728                 * config/mips/mips-protos.h (mips_return_addr): New.
10729                 * config/mips/mips.c (mips_return_addr): New.
10730                 (movdi_operand): Remove.
10731                 (se_register_operand): Ditto.
10732                 (se_reg_or_0_operand): Ditto.
10733                 (se_uns_arith_operand): Ditto.
10734                 (se_arith_operand): Ditto.
10735                 (se_nonmemory_operand): Ditto.
10736                 (extend_operator): Ditto.
10737                 (highpart_shift_operator): Ditto.
10738                 (mips_initial_elimination_offset): Remove return address pointer
10739                 elimination.
10740                 (mips_reg_names): Remove $ra.
10741                 (mips_regno_to_class): Ditto.
10742                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
10743                 and TARGET_64BIT.
10744                 (POINTER_BOUNDARY): Remove.
10745                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
10746                 (PROMOTE_MODE): Promote to Pmode.
10747                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
10748                 (Pmode): Define to TARGET_64BIT.
10749                 (FUNCTION_MODE): Define as Pmode.
10750                 (mips_args): Remove deleted functions.
10751                 (SIZE_TYPE): Depend on POINTER_SIZE.
10752                 (PTRDIFF_TYPE): Ditto.
10753                 (FIXED_REGISTERS): Fix extra registers.
10754                 (CALL_USED_REGISTERS): Ditto.
10755                 (CALL_REALLY_USED_REGISTERS): Ditto.
10756                 (RAP_REG_NUM): Remove.
10757                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
10758                 (RETURN_ADDR_RTX): Define to mips_return_addr.
10759                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10760                 (CAN_ELIMINATE): Ditto.
10761                 * config/mips/mips.md: For DImode patterns, take into account
10762                 deletions above. Split mulsidi patterns into sign_extend and
10763                 zero_extend.
10765         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
10766                     Michael Meissner  <meissner@redhat.com>
10768                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
10769                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
10770                 mop up unnecessarly moves through LO.
10771                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
10772                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
10773                 change mtlo/macc sequences into mul/add sequences when a three-
10774                 address mul is available.
10775                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
10776                 (*mul_sub_si): Fix contraint for operand 5.
10777                 (*muls): Use in 32-bit code as well.
10778                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
10779                 if the destination is LO.  Remove duplicate define_split.
10780                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
10781                 (*msac_di): Likewise.  Fix formatting.
10782                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
10783                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
10784                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
10785                 (*xmulsi3_neg_highpart_mulhi): Likewise.
10786                 (*mul_acc_64bit_di): Remove.
10787                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
10789         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
10791                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
10792                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
10793                 (MULTILIB_DIRNAMES): Remove long32.
10794                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
10795                 (MULTILIB_REDUNDANT_DIRS): Remove.
10797         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
10799                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
10800                 * gcc.c (driver_self_specs): New variable.
10801                 (do_self_spec): New function.
10802                 (main): Use it to process driver_self_specs.
10804         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
10806                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
10807                 Remove DImode define_split for !TARGET_64BIT.
10808                 (anddi3): Remove !TARGET_64BIT support from here as well.
10809                 Change operand 2's predicate to se_uns_arith_operand.
10810                 Add constant alternatives to define_insn.
10811                 (iordi3, xordi3, *nordi3): Likewise.
10812                 (anddi3_internal1, xordi3_immed): Remove.
10814         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10816                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
10817                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
10818                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
10819                 * config/mips/mips.md: Apply same renaming here.
10821         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10823                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
10824                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
10825                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
10826                 * config/mips/mips.md (define_attr cpu): Remove r4320.
10827                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
10829         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10831                 * config/mips/mips.c (mips16_strings): New variable.
10832                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
10833                 symbol in mips16_strings.  Free the list.
10834                 (mips_encode_section_info): Keep track of local strings.
10836         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10838                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
10839                 (sordered_df, sordered_sf): Remove.
10840                 * config/mips/mips.c (get_float_compare_codes): New fn.
10841                 (gen_int_relational, gen_conditional_move): Use it.
10843         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
10845                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
10846                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
10847                 * config/mips/mips.c (fcc_register_operand): New function.
10848                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
10849                 (override_options): Allow TFmode values in float registers
10850                 if ISA_HAS_8CC.
10851                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
10852                 to fcc_register_operand.  Remove misleading source constraint.
10853                 Use mips_emit_fcc_reload.
10854                 (reload_outcc): Duplicate reload_incc.
10857 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
10859         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
10861 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
10863         * tree-inline.c (inlinable_function_p): Back out last change, it's
10864         unnecessary.
10866 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10868         * ggc-page.c (TREE_EXP_SIZE): Define.
10869         (extra_order_size_table): New entry for expr trees with
10870         two operands.
10872 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10874         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
10875         (c_expand_start_cond): Adjust.
10876         (c_expand_end_cond): Don't use warning_with_file_and_file.
10877         (shadow_warning): Likewise.
10879 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
10881         * tree.h (DECL_POINTER_DEPTH): Remove.
10882         (struct tree_decl): Remove pointer_depth.
10884 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
10886         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
10887         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
10888         (rs6000_xcoff_encode_section_info): Remove.
10889         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
10890         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
10891         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
10892         Use SYMBOL_REF_FLAGS.
10893         (rs6000_elf_encode_section_info): Call default_encode_section_info for
10894         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
10895         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
10896         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
10897         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
10898         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
10900 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10902         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
10904 2003-04-30  Andreas Schwab  <schwab@suse.de>
10906         * doc/extend.texi (Other Builtins): Enclose multiple word data
10907         type in braces for @deftypefn.
10909 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10911         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
10913         * doc/install.texi (--enable-threads): Document "gnat" option.
10915 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
10917         * diagnostic.h (output_formatted_scalar): Tweak.
10918         * diagnostic.c (output_long_decimal): Likewise.
10919         (output_unsigned_decimal): Likewise.
10920         (output_long_unsigned_decimal): Likewise.
10921         (output_octal): Likewise.
10922         (output_long_octal): Likewise.
10923         (output_hexadecimal): Likewise.
10924         (output_long_hexadecimal): Likewise.
10925         (output_pointer): New function.
10926         (output_format): Use it.  Recognize "%p" format specifier.
10928 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10930         * function.c (purge_addressof_1): Postpone insn in fewer cases.
10932 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
10934         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
10935         call abort() after running out of stack space.
10937         * c-typeck.c (function_types_compatible_p): Ignore incompatible
10938         'volatile' qualifiers on a function's return type in GNU mode.
10940 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
10942         * expr.c (emit_group_load): Dump parallels of simd types to
10943         memory.
10945 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
10947         * genautomata.c (add_vect): Check undefined value for range type
10948         too.
10950 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
10952         * configure.in:  More general test for cmp --ignore-initial.
10953         * configure:  Regenerate.
10955 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10957         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
10958         (layout_decl, place_field): Likewise.
10959         Also make minor type and whitespace changes.
10961         * tree.c (save_expr): Don't fold a COMPONENT_REF.
10963 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
10965         * calls.c (expand_call): When modes of target and valreg match, force
10966         sibcall failure when target is a MEM.
10968 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
10970         * tree-inline.c (inlinable_function_p): Don't support inlining
10971         functions using varargs.
10973         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
10975         * dwarf2out.c (output_call_frame_info): No need to output EH
10976         unwind information if all_throwers_are_sibcalls.
10978         * c-semantics.c (expand_unreachable_stmt): Return a tree.
10979         (expand_stmt): Update for change to expand_unreachable_stmt.
10980         (expand_unreachable_if_stmt): Likewise.
10982         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
10984 2003-04-29  Jason Merrill  <jason@redhat.com>
10986         PR middle-end/10336
10987         * jump.c (never_reached_warning): Really stop looking if we reach
10988         the beginning of the function.
10990 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
10992         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
10993         Remove redundant macros.
10994         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
10995         (LOCAL_LABEL_PREFIX): Define unconditionally.
10996         (NO_DOT_IN_LABEL): Clarify comment.
10997         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
10998         definition to "long int".
11000 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
11002         bootstrap/10452
11003         * gengtype-yacc.y: Improve portability.
11005 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
11007         * config.gcc: Install obsolete target list for GCC 3.3.
11008         * doc/install.texi: Mention in specific-target instructions
11009         that certain configurations are deprecated.
11011 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
11013         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
11015 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
11017         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
11018         * gcc.c (display_help): Likewise.
11019         * toplev.c (f_options): Likewise.
11020         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
11021         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
11022         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
11023         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
11024         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
11026 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
11028         * varasm.c (default_assemble_visibility): Use assemble_name.
11030 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
11032         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
11033         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
11034         (SIZE_TYPE): New macro.
11035         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
11036         (SET_ASM_OP): New macro.
11037         (HANDLE_SYSV_PRAGMA): New macro.
11038         (ASM_WEAKEN_LABEL): New macro.
11040 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
11042         PR c++/10180
11043         * tree-inline.c (expand_call_inline): Call push_srcloc when
11044         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
11046 2003-04-28  Mike Stump  <mrs@apple.com>
11048         * gdbinit.in: Update to reflect new identifier structure.
11050 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
11052         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
11053         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
11054         struct tree_complex, struct tree_vector): Remove RTL field.
11055         (CONSTRUCTOR_ELTS): Use elt 0.
11056         * tree.def (CONSTRUCTOR): Delete first of its two operands.
11057         * varasm.c (output_constant_def): Remove early exit if
11058         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
11059         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
11060         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
11061         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
11063 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
11065         * c-decl.c (finish_decl): When prototype with asmspec is found
11066         for built-in, adjust built_in_decls as well as expr.c decls.
11067         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
11068         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
11069         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
11071 2003-04-28  Richard Henderson  <rth@redhat.com>
11073         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
11074         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
11075         integral constant mult operand.
11076         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
11077         (const_smulsi3_highpart_v8plus): Likewise.
11078         (const_smulsi3_highpart): Likewise.
11079         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
11080         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
11081         (const_umulsi3_highpart_v8plus): Likewise.
11082         (const_umulsi3_highpart): Likewise.
11084 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
11086         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
11087         Define as 1.
11089 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
11091         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
11093 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
11095         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
11096         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
11097         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
11098         functions.
11099         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
11101 2003-04-28  Nick Clifton  <nickc@redhat.com>
11103         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
11105 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
11107         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
11108         output_constant_def, use its result instead of TREE_CST_RTL (exp).
11109         Can assume it has the form (mem (symbol_ref ".LCxxx")).
11110         (expand_expr <COMPONENT_REF>): Can always just extract the
11111         relevant field of a CONSTRUCTOR.
11112         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
11113         ARRAY_RANGE_REF>): Make control flow explicit.
11114         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
11115         an INTEGER_CST.
11117 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
11119         * reload1.c (reg_set_luid): Fix a comment typo.
11121 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
11123         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
11124         struct deferred_string, const_str_htab): Kill.
11125         (n_deferred_strings): New static variable.
11126         (build_constant_desc): Set SYMBOL_REF_DECL of the new
11127         symbol_ref to point to the constant.
11128         (output_constant_def): When a deferred string is forced out,
11129         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
11130         (mark_constant): Likewise.
11131         (maybe_output_constant_def_contents): When deferring a string
11132         constant, just set STRING_POOL_ADDRESS_P and increment
11133         n_deferred_strings.
11134         (mark_constant_pool): Check n_deferred_strings, not the size
11135         of const_str_htab.
11136         (init_varasm_once): No need to create const_str_htab.
11138         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
11139         SYMBOL_REF_DECL points to a constant.
11141 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
11143         * varasm.c (output_constant_def): Split out two new static
11144         functions, build_constant_desc and maybe_output_constant_def_contents.
11145         Restructure for comprehensibility.  Don't call
11146         output_addressed_constants.  Treat defstr being non-NULL for
11147         STRING_POOL_ADDRESS_P constants as an invariant.
11148         (struct deferred_string): Remove labelno field.
11149         (output_constant_def_contents): Kill labelno argument. Call
11150         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
11151         asm_out.internal_label.
11152         (mark_constant): Update call to output_constant_def_contents.
11153         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
11154         constants as an invariant.
11156 2003-04-26  Richard Henderson  <rth@redhat.com>
11158         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
11159         (ix86_expand_call, ix86_rtx_consts): Likewise.
11161 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11163         * doc/md.texi (cmpstr): Document additional restrictions.
11165 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
11167         * flags.h (time_report): Remove.
11168         * timevar.c (timevar_enable): New.
11169         (TIMEVAR_ENABLE): Remove, use timevar_enable.
11170         (timevar_init): Rename from init_timevar.
11171         * timevar.h (timevar_init): Rename from init_timevar.
11172         * toplev.c (time_report): Make static.
11173         (do_compile): Conditionally call init_timevar first.
11174         (preprocess_options): Move some code to do_compile.
11176 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
11178         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
11180 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
11182         * _cpp_lex_direct: Remove pointless code.
11184 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
11186         * doc/extend.texi (Function Attributes): Document "near" and "far"
11187         for 68HC11 and 68HC12.
11189 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11191         * expr.c (store_field): When making temporary for store, don't
11192         make it TYPE_QUAL_CONST.
11194 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
11196         * toplev.c (read_integral_parameter):  Use "argument" in error
11197         message to distinguish it from actual invalid options.
11199 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
11201         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
11202         addition of __PIC__ and __pic__ macros.
11203         * config/xtensa/xtensa.h: Clean up indentation.
11205 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
11207         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
11208         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
11209         (SUBTARGET_CPP_SPEC): Define.
11210         (LIB_SPEC): Delete.
11211         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
11212         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
11213         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
11214         Define.
11215         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11216         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
11218 2003-04-25  H.J. Lu <hjl@gnu.org>
11220         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
11221         for return mode.
11222         (ia64_expand_builtin): Set rmode to SImode for
11223         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
11224         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
11225         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
11226         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
11228 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
11230         * configure.in (make_compare_target):  Test for GNU cmp and set this
11231         variable appropriately.
11232         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
11233         compare4-lean): Rename actual targets to slowcompare*.  New compare*
11234         targets depend on names based on make_compare_target.
11235         * configure:  Regenerated.
11237 2003-04-25  Richard Henderson  <rth@redhat.com>
11239         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
11240         to clobber ar.pfs and ar.unat.
11241         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
11242         fix test for spilling ar.pfs to the stack.
11244 2003-04-25  Richard Henderson  <rth@redhat.com>
11246         PR opt/10315
11247         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
11248         checks during reload; use validize_mem instead of adjust_address.
11250 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
11252         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
11253         return values from recog_memoized().
11255 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11257         PR opt/8705
11258         * gcse.c (try_replace_reg): On a successful substitution of a constant
11259         into a single set, try to simplify the source of the set.
11260         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
11261         constant source.
11263 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
11265         * cpplex.c (cpp_token_len): Tighten up.
11266         (cpp_token_as_text): Need extra byte now.
11267         * cpplib.c (glue_header_name): Need extra 2 bytes.
11268         * cppmacro.c (cpp_macro_definition): Need extra byte.
11270 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
11272         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
11273         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
11274         where they might be not present. Use their _sp64 equivalent
11275         instead.
11277 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
11279         * i386.md (cvtsi2sdq): Fix typo in previous patch.
11281 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
11283         * configure.in: Check whether mbstowcs works.
11284         * configure, config.in: Regenerate.
11285         * intl.c: Use HAVE_WORKING_MBSTOWCS.
11287 2003-04-24  H.J. Lu <hjl@gnu.org>
11289         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
11290         for __sync_bool_compare_and_swap_di for int return type.
11292         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
11293         Change return type to int.
11294         (__sync_bool_compare_and_swap): Likewise.
11296 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
11298         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
11299         looking for fallthru edge.
11301         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
11302         Fix.
11303         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
11304         athlon-fvector): New.
11305         (athlon_*): Revisit to match new optimization guide.
11306         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
11307         * i386.md (cvt??2?? patterns): Fix modes.
11308         (fistp patterns): Set modes.
11310         Accidentaly commited with my earlier reload patch:
11311         PR c/10308
11312         * reload.c (find_reloads_address_1): Reload plus at the place of
11313         index register.
11315 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
11317         New GCOV_TAG_FUNCTION layout
11318         * coverage.c (struct function_list): Replace name with ident.
11319         (struct counts_entry): Likewise.
11320         (fn_ident): New.
11321         (htab_counts_entry_hash, htab_counts_entry_eq,
11322         htab_counts_entry_del): Adjust.
11323         (reads_count_file, get_coverage_counts,
11324         coverage_begin_output, coverage_end_function): Adjust.
11325         (build_fn_info_type, build_fn_info_value): Likewise.
11326         * gcov-dump.c (tag_function): Adjust.
11327         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
11328         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
11329         * gcov.c (struct function_info): Add ident.
11330         (read_graph_file, read_count_file): Adjust.
11331         * libgcov.c (gcov_exit): Adjust.
11333 2003-04-23  Richard Henderson  <rth@redhat.com>
11335         PR opt/8300
11336         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
11337         after initialize_uninitialized_subregs; update reg info assuming
11338         new pseudos were created.
11340 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
11342         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
11343         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
11344         (lex_string): Take cpp_string with full spelling.
11345         (cb_ident): Update.
11346         (c_lex): Update diagnostics.
11347         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
11348         (create_literal): New.
11349         (lex_string): Unterminated literals have type CPP_OTHER.
11350         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
11351         for CPP_OTHER.
11352         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
11353         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
11354         * cpplib.c (parse_include, do_line, do_linemarker,
11355         destringize_and_run): Update for token storing full spelling.
11356         * cpplib.h: Update token spelling types.
11357         * cppmacro.c (stringify_arg, check_trad_stringification):
11358         Update for token storing full spelling.
11360 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
11362         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
11364 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
11366         * arm.h (TARGET_OPTIONS): Add value field.
11368 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
11370         * doc/extend.texi: Remove duplicate 2003 copyright date.
11372 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
11374         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
11375         (libgcov.a): Depends on LIBGCC_DEPS.
11376         * basic-block.h (profile_info): Moved here from coverage.h. Made
11377         a pointer.
11378         * coverage.c (struct function_list): Fixed array of counter types.
11379         (struct counts_entry): Keyed by counter type, contains summary.
11380         (profile_info): Moved to profile.c.
11381         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
11382         vars.
11383         (profiler_label): Remove.
11384         (ctr_labels): New.
11385         (set_purpose, label_for_tag, build_counter_section_fields,
11386         build_counter_section_value, build_counter_section_data_fields,
11387         build_counter_section_data_values, build_function_info_fields,
11388         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
11389         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
11390         build_ctr_info_value, build_gcov_info): New.
11391         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
11392         (reads_counts_file): Adjust.
11393         (get_coverage_counts): Takes counter number. Add summary
11394         parameter. Adjust.
11395         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
11396         create counter array labels.
11397         (coverage_end_function): Adjust.
11398         (create_coverage): Adjust.
11399         (find_counters_section): Remove.
11400         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
11401         (struct section_info, struct profile_info): Remove.
11402         (profile_info): Moved to basic-block.h.
11403         (coverage_counter_ref): Takes a counter number.
11404         (get_coverage_counts): Takes a counter number. Added summary
11405         parameter.
11406         (find_counters_section): Remove.
11407         * gcov-dump.c (tag_arc_counts): Rename to ...
11408         (tag_counters): ... here. Adjust.
11409         (tag_table): Move tag_counters to 3rd entry. Remove
11410         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
11411         (dump_file): Check for counter tag values here.
11412         (tag_summary): Adjust.
11413         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
11414         * gcov-io.h (GCOV_LOCKED): New.
11415         (GCOV_TAG_ARC_COUNTS): Rename to ...
11416         (GCOV_TAG_COUNTS_BASE): ... here.
11417         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
11418         Remove.
11419         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
11420         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
11421         GCOV_TAG_IS_COUNTER): New.
11422         (struct gcov_ctr_summary): New.
11423         (struct gcov_summary): Adjust.
11424         (struct gcov_counter_section): Remove.
11425         struct gcov_counter_section_data): Remove.
11426         (struct gcov_function_info): Rename to ...
11427         (struct gcov_fn_info): ... here. Adjust.
11428         (struct gcov_ctr_info): New.
11429         (struct gcov_info): Adjust.
11430         * gcov.c (read_count_file): Adjust.
11431         (output_lines): Adjust.
11432         * libgcov.c (gcov_exit): Adjust.
11433         (__gcov_flush): Adjust.
11434         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
11435         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
11436         probably_never_executed_bb_p, compute_frequency_function): Adjust
11437         profile_info use.
11438         * profile.c (struct counts_entry): Remove.
11439         (profile_info): Define here.
11440         (get_exec_counts): Adjust get_coverage_counts call.
11441         (compute_branch_probablilities): Remove find_counters_section
11442         call.
11443         (gen_edge_profiler): Adjust coverage_counter_ref call.
11444         * tracer.c (tail_duplicate): Adjust profile_info use.
11446 2003-04-23  Roger Sayle  <roger@eyesopen.com>
11448         PR optimization/10339
11449         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
11450         directly instead of unsafely transforming call into a memcmp.
11451         (expand_builtin_strncmp): Likewise.
11453 2003-04-22  Roger Sayle  <roger@eyesopen.com>
11455         * alias.c (mark_constant_function):  Check for constancy and
11456         purity even of void functions.  Update both the function decl
11457         and the cgraph RTL info with the results.
11459 2003-04-22  Roger Sayle  <roger@eyesopen.com>
11461         * real.c (do_add): Change to return a bool indicating that the
11462         result of the operation may be inexact due to loss of precision.
11463         (do_multiply): Likewise.
11464         (do_divide): Likewise.
11466 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
11467             Loren James Rittle  <ljrittle@acm.org>
11469         * dwarf2out.c (fde_table_allocated): Mark with GTY.
11470         (decl_die_table_allocated): Likewise.
11471         (abbrev_die_table_allocated): Likewise.
11472         (line_info_table_allocated): Likewise.
11473         (separate_line_info_table_allocated): Likewise.
11474         (pubname_table_allocated): Likewise.
11475         (arange_table_allocated): Likewise.
11476         (ranges_table_allocated): Likewise.
11477         (decl_die_table_in_use): Unconditionalize; mark with GTY.
11478         (abbrev_die_table_in_use): Likewise.
11479         (line_info_table_in_use): Likewise.
11480         (separate_line_info_table_in_use): Likewise.
11481         (pubname_table_in_use): Likewise.
11482         (arange_table_in_use): Likewise.
11483         (ranges_table_in_use): Likewise.
11484         (have_location_lists): Likewise.
11485         (emitcount): New GTY-marked static, moved...
11486         (maybe_emit_file): ...from here.
11487         (label_num): New GTY-marked static, moved...
11488         (gen_internal_sym): ...from here.
11490 2003-04-22  Richard Henderson  <rth@redhat.com>
11492         PR 8866
11493         * rtl.h (MEM_NOTRAP_P): New.
11494         (MEM_COPY_ATTRIBUTES): Copy it.
11495         * rtlanal.c (may_trap_p): Check it.
11496         * expr.c (do_tablejump): Set it.
11497         * doc/rtl.texi (Flags): Document it.
11499         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
11501 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
11503         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
11504         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
11506 2003-04-22  Vincent Celier <celier@gnat.com>
11508         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
11509         --enable-threads=gnat.
11510         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
11511         * configure.in: Add gnat to the list of thread packages
11512         * configure: Rebuild.
11513         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
11515 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
11517         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
11519 2003-04-22  Devang Patel  <dpatel@apple.com>
11521         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
11522         parameter count.
11523         (_cpp_copy_replacement_text): Same.
11525 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
11527         * c-lex.c (c_lex): Handle CPP_OTHER differently.
11528         * cppexp.c (_cpp_parse_expr): Similarly.
11529         * cpplex.c (SPELL_CHAR): Remove.
11530         (_cpp_lex_direct): Stray chars are saved as byte strings.
11531         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
11532         handle SPELL_CHAR.
11533         (cpp_avoid_paste): Update handling of CPP_OTHER.
11534         * cpplib.h: Spell CPP_OTHER like a number.
11535         (struct cpp_token): Remove member c.
11536         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
11538 2003-04-22  David Turner <novalis@gnu.org>
11540         * gbl-ctors.h: Add special license exception.
11541         * libgcc2.h: Likewise.
11542         * tsystem.h: Likewise.
11543         * gcov-io.h: Likewise.
11545 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
11547         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
11548         macro defaulting to original BRANCH_COST heuristic.
11549         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
11551         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
11553 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
11555         * config/rs6000/t-spe: Merge in t-fprules into file.
11557         * config.gcc: Add t-spe to powerpc-eabispe.
11559 2003-04-22  Kean Johnston  <jkj@sco.com>
11561         * tlink.c (recompile_files): Add missing '=' to putenv calls
11563 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
11565         * ginclude/stddef.h: Provide C++ safe offsetof.
11567 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
11569         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
11570         for reg notes, if there are no substitutions, just use a SUBREG.
11572 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11574         * Makefile.in (calls.o): Depend on except.h.
11575         * calls.c: Include except.h.
11576         (emit_call_1): Call note_eh_region_may_contain_throw if
11577         appropriate.
11578         * except.c (eh_region): Add may_contain_throw.
11579         (expand_eh_region_end_cleanup): Do not include handler code when
11580         it cannot be reached.
11581         (note_eh_region_may_contain_throw): New function.
11582         * except.h (note_eh_region_may_contain_throw): New function.
11584 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11586         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
11587         changes.
11589 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
11591         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
11592         64-bit long doubles.
11594 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
11596         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
11597         a number of conversions required for type consistency and previously
11598         stripped off by STRIP_NOPS.
11600         * calls.c (expand_call): Prevent sibcall optimization for calls to
11601         nested subprograms.
11603         * expmed.c (extract_bit_field): Reverse operands of && condition to
11604         prevent a potential division by zero in the previously first branch.
11605         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
11607 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
11609         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
11610         (subrange_type_die): Likewise.
11611         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
11612         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
11614 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
11616         Break out coverage routines to new file.
11617         * Makefile.in (COVERAGE_H): New variable
11618         (C_OBJS): Add coverage.o
11619         (coverage.o): New target.
11620         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
11621         dependencies.
11622         (GTFILES): Adjust.
11623         (gt-coverage.h): New target.
11624         (gt-profile.h): Remove.
11625         * profile.h: Remove. Move to ...
11626         * coverage.h: ... here. New. #include gcov-io.h.
11627         * gcov-io.h: Move function definitions to ...
11628         * gcov-io.c: ... here. New.
11629         * profile.c: Move coverage routines to coverage.c.
11630         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
11631         end_branch_prob): Adjust.
11632         * coverage.c: New. Coverage routines from profile.c
11633         (coverage_counter_ref, coverage_init, coverage_finish,
11634         coverage_end_function, coverage_begin_output,
11635         coverage_counter_ref, get_coverage_counts): Define.
11636         * gcov-dump.c, gcov.c: #include gcov-io.c.
11637         * libgcov.c: Likewise. Adjust.
11638         * loop-init.c: Don't #include profile.h
11639         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
11640         * rtl.h: Add coverage prototypes.
11641         * toplev.c (compile_file): Init coverage, not branch_prob.
11642         Always call coverage_finish.
11643         (rest_of_compilation): Call coverage_end_function.
11645 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
11647         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
11649 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
11651         * c-ppoutput.c (cb_include): Don't take a cpp_token.
11652         * cppfiles.c: Don't undef strcmp.
11653         (find_include_file): Don't take a cpp_token.  Check for empty
11654         file names.
11655         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
11656         (cpp_push_include): Simplify.
11657         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
11658         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
11659         (parse_include): Similary.  Don't check for zero-length filenames.
11660         (do_include_common, do_pragma_dependency): Update accordingly.
11661         * cpplib.h (struct cpp_callbacks): Change prototype of include.
11663 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11665         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
11666         details of conflict handling.
11668         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
11669         when conversion overflows.
11671         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
11673         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
11674         before clearing.
11676 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
11678         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
11679         have the same form as the old RTL.
11681 2003-04-21  Andreas Jaeger  <aj@suse.de>
11683         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
11685 2003-04-20  Chris Lattner  <sabre@nondot.org>
11686             Zack Weinberg  <zack@codesourcery.com>
11688         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
11689         genrtl_cleanup_stmt.  Correct comment at head of
11690         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
11692         * stmt.c (struct nesting): Kill n_function_calls.
11693         (expand_start_bindings): Don't set
11694         thisblock->data.block.n_function_calls.
11695         (expand_end_bindings): Compare function_call_count against 0.
11696         (expand_cleanups): Kill DONT_DO argument; all callers passed
11697         NULL_TREE. All callers updated to match.
11699 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
11701         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
11702         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
11703         (output_constant_def): Remove code predicated on
11704         defer_addressed_constants_flag.
11706         * output.h: Remove prototypes of deleted functions.
11707         * c-typeck.c (constructor_subconstants_deferred): Kill.
11708         (struct initializer_stack): Remove 'deferred' field.
11709         (start_init): Remove all references to the above.
11710         (finish_init): Likewise. Also remove never-executed call to
11711         output_deferred_addressed_constants.  Pull assignment to
11712         defstr out of if expression.
11714 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
11716         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
11717         NOTE_NEWLINE): Remove.
11718         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
11719         to handle new form of line note type.
11721 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
11723         * target.h (encode_section_info): Add new argument carrying
11724         the RTL to be modified by the hook.
11726         * varasm.c (make_decl_rtl, output_constant_def): Update calls
11727         to encode_section_info.
11728         (default_encode_section_info): Take and use RTL argument,
11729         don't use TREE_CST_RTL or DECL_RTL.
11730         * output.h: Update prototype of default_encode_section_info.
11731         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
11732         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
11733         Update calls to encode_section_info.
11735         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
11736         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
11737         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
11738         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
11739         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
11740         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
11741         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
11742         except for PE dllimport/dllexport.  Update calls to
11743         default_encode_section_info.
11745         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
11746         Update prototypes.
11748         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
11750 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11752         PR/8705
11753         * pa.md (movccfp): New expander.
11754         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
11755         Reverse fcmp conditions.
11757 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11759         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
11760         of operand 1 correctly.
11762 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11764         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
11765         * gcov.c (output_lines): Don't be so fussy about going past EOF.
11767 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
11769         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
11770         (cppcharset.o): New target.
11771         * c-lex.c (is_extended_char): Move to cppcharset.c.
11772         (utf8_extend_token): Delete.
11773         * cppcharset.c: New file.
11774         * cpphash.h (_cpp_valid_ucn): New.
11775         * cpplex.c (lex_identifier): Update prototype.
11776         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
11777         escapes.
11778         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
11779         in cppcharset.c.
11780         (lex_number, lex_identifier, cpp_parse_escape): Update.
11781         (_cpp_lex_direct): Update to handle UCNs.
11782         (cpp_avoid_paste): Don't paste to form a UCN.
11784 2003-04-19  Roger Sayle  <roger@eyesopen.com>
11786         * builtins.c (expand_builtin):  Don't expand a pure or const
11787         built-in function if the result will be ignored and none of
11788         its arguments are volatile.
11790 2003-04-19  Kean Johnston  <jkj@sco.com>
11792         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
11793         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
11794         target fragment now: t-sco5; dont compile crti.o.
11795         * config/i386/sco5.h: major overhaul to remove all COFF remnants
11796         and to use elfos.h for most definitions.
11797         (BSS_SECTION_ASM_OP): set correct segment attributes.
11798         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
11799         (DWARF2_UNWIND_INFO): Always set to 1.
11800         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
11801         (MD_STARTFILE_PREFIX_1): Define.
11802         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
11803         (DEFAULT_LINKER): Define if not specified to configure.
11804         (CTORS_SECTION_ASM_OP): Remove COFF crud.
11805         (DTORS_SECTION_ASM_OP): Remove COFF crud.
11806         (WINT_TYPE): Define.
11807         (SDB_DEBUGGING_INFO): Remove.
11808         (EXTRA_SECTIONS): Likewise.
11809         (EXTRA_SECTION_FUNCTIONS): Likewise.
11810         (CTOR_LIST_BEGIN): Likewise.
11811         (CTOR_LIST_END): Likewise.
11812         (INIT_SECTION_FUNCTION): Likewise.
11813         (FINI_SECTION_FUNCTION): Likewise.
11814         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
11815         (LOCAL_LABEL_PREFIX): Likewise.
11816         (NON_SAVING_SETJMP): Likewise.
11817         (RETURN_POPS_ARGS): Likewise.
11818         (ASM_OUTPUT_SKIP): Likewise.
11819         (TARGET_ASM_NAMED_SECTION): Likewise.
11820         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11821         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
11822         (ASM_OUTPUT_IDENT): Likewise.
11823         (ASM_OUTPUT_CASE_LABEL): Likewise.
11824         (ASM_OUTPUT_ASCII): Likewise.
11825         (ASM_OUTPUT_LIMITED_STRING): Likewise.
11826         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
11827         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11828         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11829         (ASM_FINISH_DECLARE_OBJECT): Likewise.
11830         (ASM_DECLARE_OBJECT_NAME): Likewise.
11831         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11832         (ASM_DECLARE_FUNCTION_NAME): Likewise.
11833         (ASM_DECLARE_RESULT): Likewise.
11834         (ASM_WEAKEN_LABEL): Likewise.
11835         (SUPPORTS_WEAK): Likewise.
11836         (APPLY_RESULT_SIZE): Likewise.
11837         (LPREFIX): Likewise.
11838         (ALIGN_ASM_OP): Likewise.
11839         (ASCII_DATA_ASM_OP): Likewise.
11840         (IDENT_ASM_OP): Likewise.
11841         (ASM_SHORT): Likewise.
11842         (ASM_LONG): Likewise.
11843         (TYPE_ASM_OP): Likewise.
11844         (SIZE_ASM_OP): Likewise.
11845         (STRING_ASM_OP): Likewise.
11846         (SKIP_ASM_OP): Likewise.
11847         (EH_FRAME_SECTION_ASM_OP): Likewise.
11848         (READONLY_DATA_SECTION_ASM_OP): Likewise.
11849         (INIT_SECTION_ASM_OP): Likewise.
11850         (FINI_SECTION_ASM_OP): Likewise.
11851         (TEXT_SECTION_ASM_OP): Likewise.
11852         (DATA_SECTION_ASM_OP): Likewise.
11853         (TYPE_OPERANT_FORMAT): Likewise.
11854         (ASM_SPEC): Remove COFF code.
11855         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
11856         cause -pg to emit an error; use pcrt1elf.o with -pp
11857         (ENDFILE_SPEC): Likewise.
11858         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
11859         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
11860         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
11861         add -z alt_resolve to support weak symbols the way GCC wants them.
11862         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
11863         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
11864         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
11865         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
11866         (CRTSTUFF_T_CFLAGS_S): Define.
11867         (MULTILIB_OPTIONS): Likewise.
11868         (MULTILIB_DIRNAMES): Likewise.
11869         (MULTILIB_MATCHES): Likewise.
11870         (MULTILIB_EXTRA_OPTS): Likewise.
11871         (LIBGCC): Likewise.
11872         (INSTALL_LIBGCC): Likewise.
11873         (crti.o): Remove.
11874         * config/i386/t-sco5gas: Remove.
11875         * doc/install.texi: Updated for new OpenServer instructions.
11876         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
11878 2003-04-19  Kean Johnston  <jkj@sco.com>
11880         * fixinc/check.tpl: Allow user to over-ride diff program.
11881         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
11882         (sco_math): Added test for SCO math header files.
11883         (sco_regset): Added check for conflicts with ieeefp.h.
11884         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
11885         * fixinc/fixincl.x: Regenerated
11886         * fixinc/tests/base/math.h: Added sco_math tests.
11887         * fixinc/tests/base/string.h: New file.
11888         * fixinc/tests/base/sys/regset.h: New file.
11890 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11892         * cpphash.h (struct cpp_buffer): Remove backup_to.
11893         * cpplex.c (BACKUP, get_effective_char): Die.
11894         (_cpp_skip_block_comment): Assume '*' is location on entry.
11895         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
11896         (IF_NEXT_IS): Update.
11897         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
11899 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
11901         * README.Portability: Move to a new section and obsolete K+R
11902         portability issues.
11904 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
11906         * rtlanal.c (subreg_offset_representable_p):  Fix call of
11907         subreg_lowpart.
11909 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11911         * cpphash.h (struct cpp_reader): New member warned_dollar.
11912         * cpplex.c (continues_identifier_p): New function.
11913         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
11914         lex_number and lex_string, and simplify.
11915         (parse_slow, unescaped_terminator_p): Die.
11916         (_cpp_lex_direct): Update.
11918 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11920         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
11922 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
11924         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
11925         fork behavior.
11927 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11929         * cppexp.c (eval_token): Permit true and false even if pedantic.
11931 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11933         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
11935 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
11937         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
11938         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
11939         (struct include_file): Remove fefcnt, mapped members.
11940         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
11941         (read_include_file): Don't use mmap, terminate buffers in '\r'.
11942         (purge_cache): Don't use munmap.
11943         * cpphash.h (CPP_BUF_COLUMN): Update.
11944         (lexer_state): Remove lexing_comment.
11945         (struct _cpp_line_note): New.
11946         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
11947         next_line and need_line.  Remove col_adjust and saved_flags.
11948         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
11949         _cpp_skip_block_comment, scan_out_logical_line): New.
11950         (_cpp_init_mbchar): Remove.
11951         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
11952         (cpp_read_main_file): Set line to 1 earlier.
11953         (post_options): -traditional-cpp doesn't want trigraphs.
11954         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
11955         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
11956         _cpp_get_fresh_line): New.
11957         (handle_newline, skip_escaped_newlines, trigraph_p,
11958         continue_after_nul, _cpp_init_mbchar): Remove.
11959         (get_effective_char): Update.
11960         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
11961         (skip_line_comment): Simplify.
11962         (skip_whitespace, parse_identifier, parse_slow, parse_number,
11963         parse_string): Update.
11964         (cpp_lex_direct): Use clean lines and process line notes.  Update.
11965         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
11966         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
11967         directly.
11968         (_cpp_handle_directive): Don't set saved_flags.
11969         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
11970         cpp_undef, handle_assertion, cpp_push_buffer): Update.
11971         (_cpp_pop_buffer): Free notes.
11972         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
11973         * cpppch.c (cpp_read_state): \n terminate buffer.
11974         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
11975         (copy_comment): Use _cpp_skip_block_comment.
11976         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
11977         Simplify.
11978         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
11979         save_replacement_text): Update.
11980         (scan_out_logical_line): Update to use clean lines and process
11981         line notes.
11982         * fix-header.c (read_scan_file): Update.
11984 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
11986         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
11987         null begin parameter (as well as pointer to null).
11988         (__deregister_frame_info_bases): Likewise.
11990 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11992         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
11993         hard or virtual register and copy into pseudo if replacement fails.
11995         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
11997         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
11999 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
12001         * calls.c (expand_call): Move special case for constructor calls
12002         to right place. Ensures constructor calls used to initialize
12003         arguments get a clean outgoing argument block for themselves.
12004         Move check for stack deallocation completeness until after last
12005         deallocation.  Add stack_pointer_delta to set of state
12006         variables saved and restored along with current stack_level.
12008         * integrate.c (expand_inline_function): Ensure non-const actuals
12009         don't end up const in the caller's flow after conversion to possibly
12010         const formal type.
12012 2003-04-18  Vincent Celier  <celier@gnat.com>
12014         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
12015         and *_DIV_EXPR as TRUNC_*_EXPR.
12017 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
12019         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
12020         for orphaned jump tables.
12022 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
12024         * reload1.c: Revert my previous patch on 2002-04-17.
12026 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12028         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
12029         Add Segher Boessenkool.
12031 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
12033         PR c/9177
12034         * c-decl.c (c_expand_body): Don't garbage collect the function
12035         body if we are going to dump it later.
12037 2003-04-18  Richard Henderson  <rth@redhat.com>
12039         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
12040         (alpha_end_function): Don't set them.
12041         (decl_in_text_section): Remove.
12042         (alpha_encode_section_info): Remove.
12043         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
12044         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
12045         sections, rather than decl_in_text_section results.
12047 2003-04-18  Roger Sayle  <roger@eyesopen.com>
12049         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
12050         and SIGN_EXTRACT.
12052 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12054         PR optimization/7675
12055         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
12056         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
12057         nested functions if they refer to declarations from parent functions.
12058         * stmt.c (expand_decl): Don't put automatic variables in registers
12059         if the DECL_NONLOCAL flag is set.
12061 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
12063         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
12064         consider those to be movable where the source matches
12065         want_to_gcse_p.
12066         (update_ld_motion_stores): In comment, refer to
12067         compute_ld_motion_mems for validity of replacement.
12069 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
12071         * gcov-dump.c (tag_summary): Remove max_sum
12072         * gcov-io.h (gcov_summary, gcov_write_summary,
12073         gcov_read_summary): Kill max_sum.
12074         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
12075         message more verbose.
12077         * emit-rtl.c (subreg_hard_regno):  Check that register is
12078         representable.
12080         * reload.c (reload_inner_reg_of_subreg):  When register is not
12081         representable, reload the whole thing.
12082         (find_reloads): Likewsie.
12083         * rtlanal.c (subreg_representable_p):  New function.
12085         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
12086         allow negative probabilities for edges from the call to exit.
12087         (branch_prob): Do not add fake edges for functions that may return
12088         twice.
12090 2003-04-17  DJ Delorie  <dj@redhat.com>
12092         * toplev.c (target_options): Add value field.
12093         (set_target_switch): Handle target options with values.
12094         * doc/tm.texi: Document how fixed vs variable target
12095         options work.
12096         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12097         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
12098         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12099         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
12100         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12101         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
12102         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
12103         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
12104         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
12105         Add value initializer to target options.
12107 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
12109         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
12111 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
12113         * reload1.c (move2add_last_cc0): New.
12114         (reload_cse_move2add): Detect implicit sets.
12115         (move2add_note_store): Notice a store into cc0.
12117 2003-04-17  Roger Sayle  <roger@eyesopen.com>
12119         PR c/10375
12120         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
12121         function attributes.
12123 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
12125         * doc/sourcebuild.texi (Test Suites): Document support for testing
12126         binary compatibility (moved from testsuite/README.compat).
12128 2003-04-17  Richard Henderson  <rth@redhat.com>
12130         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
12132 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
12134         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
12135         the one provided by the FSF.
12137 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12139         * doc/install.texi (Binaries): Update URL and list of platforms
12140         provided by ftp.thewrittenword.com.
12142 2003-04-17  Richard Henderson  <rth@redhat.com>
12144         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
12145         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
12146         * config/xtensa/xtensa.md (call, call_value): Likewise.
12148 2003-04-17  Richard Henderson  <rth@redhat.com>
12150         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
12151         (print_operand_address): Likewise.
12152         (ep_memory_operand): Likewise.
12153         (special_symbolref_operand): Likewise.
12154         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
12155         (v850_encode_section_info): Call default_encode_section_info.
12156         (v850_strip_name_encoding): Remove.
12157         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
12158         (ASM_OUTPUT_LABELREF): Remove.
12159         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
12160         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
12161         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
12162         (ENCODED_NAME_P): Remove.
12163         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
12164         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
12165         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
12167 2003-04-17  Richard Henderson  <rth@redhat.com>
12169         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
12170         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
12171         SYMBOL_REF_FUNCTION_P.
12173 2003-04-17  Richard Henderson  <rth@redhat.com>
12175         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
12176         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
12177         (text_segment_operand): Likewise.
12179 2003-04-17  Richard Henderson  <rth@redhat.com>
12181         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
12182         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12183         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
12184         (sh_encode_section_info): Remove.
12185         (sh_strip_name_encoding): Remove.
12186         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
12187         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
12188         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
12189         (ASM_OUTPUT_LABELREF): Remove.
12190         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
12191         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
12193 2003-04-17  Richard Henderson  <rth@redhat.com>
12195         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
12196         (tls_model_chars): Remove.
12197         (larl_operand): Use SYMBOL_REF_FLAGS.
12198         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12199         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
12200         (s390_output_mi_thunk): Likewise.
12201         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
12202         (s390_function_profiler): Likewise.
12203         (s390_encode_section_info): Use default_encode_section_info
12204         and SYMBOL_FLAG_ALIGN1.
12205         (s390_strip_name_encoding): Remove.
12206         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
12207         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
12208         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
12210 2003-04-17  Richard Henderson  <rth@redhat.com>
12212         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
12213         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
12214         (print_operand_address): Likewise.
12216         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
12217         * config/ns32k/ns32k.c (expand_block_move): Don't check
12218         flag_unroll_loops.
12220 2003-04-17  Richard Henderson  <rth@redhat.com>
12222         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
12223         SYMBOL_REF_FLAG.
12225 2003-04-17  Richard Henderson  <rth@redhat.com>
12227         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
12229         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
12230         (SYMBOL_REF_MODEL): New.
12231         (LIT_NAME_P): Move from m32r.h.
12232         (m32r_select_section): Remove.
12233         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
12234         (m32r_strip_name_encoding): Remove.
12235         (m32r_in_small_data_p): New.
12236         (small_data_operand): Use SYMBOL_REF_SMALL_P.
12237         (addr24_operand): Use SYMBOL_REF_MODEL.
12238         (call26_operand): Likewise.
12239         (addr32_operand): Tidy.
12240         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
12241         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
12242         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
12243         (READONLY_DATA_SECTION_ASM_OP): Remove.
12244         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
12245         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
12246         (TARGET_ASM_SELECT_SECTION): Remove.
12247         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
12248         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
12249         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
12250         (ASM_OUTPUT_LABELREF): Remove.
12252 2003-04-17  Richard Henderson  <rth@redhat.com>
12254         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
12255         (encode_section_info): Remove.
12256         * config/ip2k/ip2k-protos.h: Update.
12258 2003-04-17  Richard Henderson  <rth@redhat.com>
12260         * varasm.c (default_encode_section_info): Don't set
12261         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
12262         * config/i370/i370.c (i370_encode_section_info): Remove.
12263         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
12264         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
12265         * config/i370/i370.md (movsi): Likewise.
12267         * config/i370/t-i370: Add missing backslash.
12269 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12271         * doc/invoke.texi (inline-limit): Fix pasto.
12273 2003-04-17  Richard Henderson  <rth@redhat.com>
12275         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
12276         (small_call_insn_operand): Use it.
12277         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
12278         (h8300_eightbit_constant_address_p): Use it.
12279         (SYMBOL_FLAG_TINY_DATA): New.
12280         (h8300_tiny_constant_address_p): Use it.
12281         (h8300_encode_label, h8300_strip_name_encoding): Remove.
12282         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
12283         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
12284         (ASM_OUTPUT_LABELREF): Remove.
12286 2003-04-16  Richard Henderson  <rth@redhat.com>
12288         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
12289         all users with SYMBOL_REF_SMALL_P.
12290         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
12291         (frv_encode_section_info): Remove.
12292         (frv_strip_name_encoding): Remove.
12293         (frv_in_small_data_p): Merge tests from encode_section_info.
12294         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
12295         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
12296         (SDATA_NAME_P): Remove.
12297         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
12298         (ASM_OUTPUT_LABELREF): Remove.
12299         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
12301         * config/frv/frv.c (frv_asm_out_constructor): New.
12302         (frv_asm_out_destructor): New.
12303         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
12304         (DTORS_SECTION_ASM_OP): New.
12305         (ASM_OUTPUT_CONSTRUCTOR): Remove.
12306         (ASM_OUTPUT_DESTRUCTOR): Remove.
12308 2003-04-16  Richard Henderson  <rth@redhat.com>
12310         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
12311         SYMBOL_REF_LOCAL_P; abort if not pic.
12312         (cris_encode_section_info): Remove.
12314 2003-04-16  Richard Henderson  <rth@redhat.com>
12316         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
12317         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
12319         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
12320         flag_inline_trees.
12322 2003-04-16  Richard Henderson  <rth@redhat.com>
12324         * config/avr/avr.c (avr_encode_section_info): Remove.
12325         (avr_insert_attributes): New.
12326         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
12327         (avr_assemble_integer): Likewise.
12329 2003-04-16  Richard Henderson  <rth@redhat.com>
12331         * arc.c (arc_encode_section_info): Remove.
12332         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
12333         (arc_print_operand, arc_print_operand_address): Likewise.
12334         * arc.h (EXTRA_CONSTRAINT): Likewise.
12336 2003-04-16  Roger Sayle  <roger@eyesopen.com>
12338         * c-semantics.c (find_reachable_label): New function to find a
12339         potentially reachable label in an expression.
12340         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
12341         assumes the start of the IF_STMT is unreachable (dead) code.
12342         (expand_unreachable_stmt): Similar to expand_stmt but assumes
12343         the start of the statement list is unreachable (dead) code.
12344         (genrtl_if_stmt):  If the controlling expression of the IF
12345         is constant, use expand_unreachable_stmt for the THEN or ELSE
12346         clause as appropriate.
12347         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
12348         the body of a SWITCH statement.
12349         (expand_stmt): The code immediately following a "return",
12350         "break", "continue" or "goto" is unreachable.
12351         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
12353 2003-04-16  Richard Henderson  <rth@redhat.com>
12355         * rtl.h (MEM_ALIAS_SET): Update documentation.
12356         * doc/rtl.texi (Special Accessors): New node.
12357         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
12359 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
12361         * reload1.c (reload_cse_noop_set_p): Return false if mode of
12362         SET_DEST is not the same as that returned by...
12363         * cselib.h (cselib_reg_set_mode): ... new function.
12364         * cselib.c (cselib_reg_set_mode): Define it.
12365         (REG_VALUES): Document semantics of first element as set mode.
12366         (cselib_subst_to_values): Skip first element if ELT is NULL.
12367         (cselib_lookup): Likewise.  Insert past the first element.
12368         (cselib_invalidate_regno): NULLify first element.
12369         (cselib_record_set): Set first element.
12371 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
12373         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
12374         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
12375         * tree.h: Add prototypes for the two new functions.
12376         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
12377         updates introduced in the previous revision by call to saved_expr_p.
12378         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
12380         * expr.c (store_field): Force usage of bitfield instructions when
12381         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
12382         (expand_expr, case BIT_FIELD_REF): likewise.
12384 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
12386         PR middle-end/8866
12387         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
12388         jumptables.
12390 2003-04-16  Richard Henderson  <rth@redhat.com>
12392         * config/ia64/ia64.c (sdata_symbolic_operand): Use
12393         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
12394         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12395         (function_operand): Use SYMBOL_REF_FUNCTION_P.
12396         (ia64_expand_load_address): Likewise.
12397         (ia64_assemble_integer): Likewise.
12398         (ia64_encode_section_info): Remove.
12399         (ia64_strip_name_encoding): Remove.
12400         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
12401         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
12403 2003-04-16  Richard Henderson  <rth@redhat.com>
12405         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
12406         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
12407         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
12408         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
12409         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
12410         (global_symbolic_operand): Similarly.
12411         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
12412         (tls_symbolic_operand_type): Likewise.
12413         (alpha_encode_section_info): Use default_encode_section_info.
12414         (alpha_strip_name_encoding): Remove.
12415         (get_tls_get_addr): Split out from ...
12416         (alpha_legitimize_address): ... here.
12417         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
12418         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
12419         (alpha_initialize_trampoline): Use init_one_libfunc.
12420         (alpha_setup_incoming_varargs): Mark unused parameters.
12421         (alpha_initial_elimination_offset): Likewise.
12422         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
12423         (unicosmk_unique_section): Use default_strip_name_encoding.
12424         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
12426 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
12428         * config.gcc: Add t-spe for eabispe.
12430         * config/rs6000/t-spe: New.
12432 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
12434         Re-apply this patch:
12436         2002-05-16  Dale Johannesen  <dalej@apple.com>
12437           * combine.c (cant_combine_insn_p):  Reenable combinations
12438           involving hard regs unless CLASS_LIKELY_SPILLED_P.
12440 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12442         PR/10271
12443         * pa-protos.h (function_arg): Remove last argument.
12444         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
12445         * pa.h (struct hppa_args): Add member incoming.
12446         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
12447         member incoming.
12448         (FUNCTION_ARG): Revise call to function_arg.
12449         (FUNCTION_INCOMING_ARG): Delete.
12451 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
12453         * configure.in: Unify the code which creates symlinks to a
12454         just-built as, ld, objdump, and nm with the code that detects
12455         their presence for purposes of feature tests.
12456         * configure: Regenerate.
12458 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
12460         * varasm.c (output_constant_def): Do not consult
12461         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
12462         (after_function_constants, output_after_function_constants): Delete.
12463         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
12464         * config/mips/mips-protos.h, config/mips/mips.c
12465         (mips16_constant_after_function_p): Delete.
12466         * config/mips/mips.h: Delete #if-0-ed definition of
12467         CONSTANT_AFTER_FUNCTION_P.
12468         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
12469         mention of CONSTANT_AFTER_FUNCTION_P in comment.
12471 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
12473         * tree.c (next_decl_uid): Mark with GTY.
12474         (next_type_uid): Likewise.
12476 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
12478         PR target/9594:
12479         * sh.c (barrier_align): Also recognize stuff_delay_slot as
12480         an indicator that a barrier was created by branch splitting.
12482 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
12484         * c-decl.c (implicitly_declare): Copy declarations that are going
12485         to be placed in a local scope.
12487 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
12489         * invoke.texi (Spec Files): Wrap if-exists-else example.
12490         (MCore): Remove duplicate @itemx entries and @opindex entries.
12492 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
12494         * unwind.inc (_Unwind_Backtrace): New function.
12495         * unwind.h (_Unwind_Backtrace): Declare it.
12496         * libgcc-std.ver (_Unwind_Backtrace): Export it.
12498 2003-04-14  Jason Merrill  <jason@redhat.com>
12500         PR middle-end/10336, c++/10401
12501         * jump.c (never_reached_warning): Also stop looking if we reach the
12502         beginning of the function.
12504 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12506         PR target/10338
12507         PR bootstrap/10198
12508         PR bootstrap/10140
12509         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
12511 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
12513         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
12515 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12517         * optabs.c (expand_binop): In multi-word add cases, ensure
12518         XTARGET is copied to TARGET if they are different.
12520 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
12522         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
12523         to region, possible after integration of function with unreachable
12524         regions that were optimized away.
12526 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
12528         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
12529         instead of TOC_REGISTER in epilogue in
12530         current_function_calls_eh_return functions.
12532 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
12534         * doc/extend.texi (Empty Structures): Correct description of G++'s
12535         handling of these structures.
12537         * c-decl.c (grokdeclarator): Reject extern redeclarations of
12538         static variables.
12540 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
12542         * config/rs6000/rs6000.md (define_constants): Define constants for
12543         all UNSPEC usage, including new values for TLS support.
12544         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
12545         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
12546         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
12547         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
12548         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
12549         eh_set_lr_di): Use them.
12550         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
12551         rs6000_emit_epilogue) Use them.
12553         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
12555 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
12557         * Makefile.in (c-opts.o): Use custom action.
12559 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
12561         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
12563 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12565         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
12566         handle "superflat arrays" in Ada.
12568         * integrate.c (expand_inline_function): Don't inline if would
12569         lose /u on a BLKmode TARGET.
12571 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
12573         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
12574         extracted from dbxout_type.
12575         (dbxout_range_type): print large bounds in octal format.
12576         (dbxout_type): Replace extracted code by call to
12577         print_int_cst_bounds_in_octal_p.
12579         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
12580         of DW_LANG_Ada83 for Ada units.
12582 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
12584         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
12585         temporary used to round CONST_INT sizes.
12587         * tree.c (int_fits_type_p): Extract generic checks from the case
12588         of constant type bounds. Refine the checks against constant type
12589         bounds to allow for possible decisions against each of these bounds
12590         without requiring both bounds to be constant.
12591         (tree_int_cst_msb): Put back.
12592         * tree.h (tree_int_cst_msb): Likewise.
12594         * global.c (global_conflicts): Prevent allocation of call clobbered
12595         hard regs to pseudos live across abnormal edges, as later passes are
12596         not ready to handle them.
12598         * fold-const.c (fold): Reorder tests for conditional expressions.
12600         * expr.c (highest_pow2_factor): Return unsigned.
12601         * expr.h (offset_address): Likewise.
12602         * emit-rtl.c (offset_address): POW2 argument now unsigned.
12604 2003-04-14  Roger Sayle  <roger@eyesopen.com>
12606         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
12607         string literals at compile-time.
12609 2003-04-14  Roger Sayle  <roger@eyesopen.com>
12611         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
12612         comparison operation and c1/c2 are floating point constants into
12613         x swap(cmp) (c1 - c2).
12615 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
12617         * genautomata.c (output_translate_vect): Fix a typo in loop
12618         condition.
12620 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
12622         PR target/10377
12623         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
12624         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
12625         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
12626         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
12627         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
12628         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
12629         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
12630         ("*extopqihi_swap_side", "*extopqisi_swap_side")
12631         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
12632         When next to constraint R, replace constraint i with n.
12634 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
12636         PR opt/10024
12637         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
12639 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
12641         * doc/contrib.texi (Contributors): Correct my entry.
12643 2003-04-13  Roger Sayle  <roger@eyesopen.com>
12645         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
12646         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
12647         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
12648         implies DECL_BUILT_IN to simplify logic.
12649         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
12651 2003-04-13  Roger Sayle  <roger@eyesopen.com>
12653         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
12654         (BT_FN_PTR_SIZE_SIZE): Likewise.
12655         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
12656         New built-in functions for malloc, calloc and strdup respectively.
12657         * calls.c (special_function_p): No need to handle malloc-like
12658         functions any longer.  ECF_MALLOC is set via built-in attributes.
12660         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
12662         * doc/extend.texi: Document these new built-in functions.
12664 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12666         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
12667         (expand_builtin_stpcpy): New.
12668         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
12669         * builtins.def: Add mempcpy & stpcpy support.
12670         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
12672 2003-04-13  Nick Clifton  <nickc@redhat.com>
12674         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
12675         "GCC".
12676         * config/rs6000/40x.md, config/rs6000/603.md,
12677         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
12678         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
12679         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
12680         config/rs6000/aix43.h, config/rs6000/aix51.h,
12681         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
12682         config/rs6000/altivec.h, config/rs6000/altivec.md,
12683         config/rs6000/beos.h, config/rs6000/darwin.h,
12684         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
12685         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
12686         config/rs6000/freebsd.h, config/rs6000/gnu.h,
12687         config/rs6000/host-darwin.c, config/rs6000/linux.h,
12688         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
12689         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
12690         config/rs6000/netbsd.h, config/rs6000/power4.md,
12691         config/rs6000/rios1.md, config/rs6000/rios2.md,
12692         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
12693         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12694         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
12695         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
12696         config/rs6000/spe.md, config/rs6000/sysv4.h,
12697         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
12698         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
12700 2003-04-13  Nick Clifton  <nickc@redhat.com>
12702         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
12703         support for -mcall-aix switch.
12704         * config/rs6000/eabiaix.h: Delete.
12705         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
12706         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
12707         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
12708         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
12709         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
12710         debug_stack_info, output_function_profiler,
12711         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
12712         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
12713         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
12714         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
12715         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
12716         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
12717         multilibs.
12718         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
12719         (MULTILIB_EXCEPTIONS): Delete.
12720         (MULTILIB_MATCHES): Remove mcall-aix matches.
12722         * doc/fragments.texi: Replace -mcall-aix example with an ARM
12723         one.
12724         * doc/install.texi: Delete powerpc-*-eabiaix target.
12725         * doc/invoke.texi: Remove documentation of mcall-aix switch.
12726         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
12727         * config.gcc: Delete powerpc-*-eabiaix target.
12729 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
12731         * doc/invoke.texi: Fix typos.
12732         * doc/tm.texi: Likewise.
12734 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12736         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
12738 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12740         * tree.c (build_constructor): New function.
12741         * tree.h: Prototype it.
12743         * c-typeck.c (build_c_cast, pop_init_level)
12744         * profile.c (build_function_info_value, build_gcov_info_value)
12745         (create_profiler):
12746         Use build_constructor.
12748         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
12750         * objc/objc-act.c (build_constructor):
12751         Rename objc_build_constructor. Use build_constructor.
12752         (build_objc_string_object, objc_add_static_instance)
12753         (init_def_list, init_objc_symtab, init_module_descriptor)
12754         (generate_static_references, build_selector_translation_table)
12755         (build_descriptor_table_initializer, generate_descriptor_table)
12756         (build_protocol_initializer, build_ivar_list_initializer)
12757         (generate_ivars_list, build_dispatch_table_initializer)
12758         (generate_dispatch_table, generate_protocol_list)
12759         (build_category_initializer, build_shared_structure_initializer):
12760         Update to match.
12762 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12764         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
12766 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12768         * config/m68hc11/m68hc11-protos.h
12769         (m68hc11_eq_compare_operator): Declare
12770         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
12771         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
12772         (d_register_operand): Check the operand mode.
12773         (hard_addr_reg_operand): Likewise.
12775 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12777         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
12778         pattern for dbcc/ibcc generation for 68HC12.
12779         ("doloop_end"): New pattern.
12780         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
12781         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
12782         ("m68hc12_dbcc_dec_qi"): New pattern.
12783         ("m68hc12_dbcc_inc_qi"): New pattern.
12784         (split): Add split for the above when we can't use dbcc/ibcc due to
12785         reloading.
12786         (peephole2): Add peephole2 to generate the above when possible.
12788 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12790         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
12791         mode of operand 0.
12792         (peephole2 optimize const load): Likewise for operand 2.
12793         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
12794         clobbers CC_REGNUM.
12795         ("*rotrhi3_with_carry"): Likewise.
12796         (ashift:DI 1 split): Update pattern to create the above rotate.
12797         (lshiftrt:DI 1 split): Likewise.
12799 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12801         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
12802         ("tstqi_z_used" split): Use it.
12803         ("cmphi_z_used"): Likewise.
12804         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
12805         ("cmpqi_z_used"): Likewise.
12807 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
12809         PR c++/7910
12810         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
12812 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
12814         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
12815         * configure, config.in: Regenerate.
12816         * intl.c (gcc_gettext_width): New function.
12817         * intl.h: Prototype it.
12819 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12821         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
12822         recognize -mnorelax.
12823         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
12824         (REG_CLASS_NAMES): Add its name.
12825         (REG_CLASS_CONTENTS): Define its content.
12827 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
12829         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
12830         parameters so that offsets are valid for far definition.
12831         (__mulsi3): Likewise and use ret to return.
12832         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
12834 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
12836         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
12838 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
12840         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
12841         containing a libgcc.a, move lib* to the corresponding stage dir.
12843         * Makefile.in (stage1-start, stage2-start, stage3-start,
12844         stage4-start): Move $(SPECS) to specs in stage dir.
12845         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
12846         back as $(SPECS).
12848         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
12849         object files from the non-libgcc/ multilib directories as well.
12851 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
12853         * profile.c (read_counts_file): Initialise 'checksum'.
12855         * emit-rtl.c (gen_rtx): Really correct typo.
12857         PR c++/9393
12858         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
12859         * configure.in: Check for gettimeofday.
12860         * tree.c (flag_random_seed): Define.
12861         (default_flag_random_seed): New.
12862         (append_random_chars): Use flag_random_seed rather than trying
12863         to acquire randomness here.
12864         * tree.h (default_flag_random_seed): Declare.
12865         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
12866         descriptions.
12867         (decode_f_option): Handle -frandom-seed.
12868         (print_switch_values): Call default_flag_random_seed.
12869         * flags.h (flag_random_seed): Declare.
12870         * configure: Regenerate.
12871         * config.in: Regenerate.
12872         * config/alpha/t-crtfm: Use -frandom-seed.
12874         * doc/extend.texi (Empty Structures): New.
12876         * c-pch.c: Include flags.h.  Add comments to routines.
12877         (struct c_pch_validity): New.
12878         (get_ident): Update PCH file version number.
12879         (pch_init): Output current debugging type.
12880         (c_common_valid_pch): Check debugging type.
12881         * Makefile.in (c-pch.o): Update dependencies.
12882         * flags.h (debug_type_names): Declare.
12883         * toplev.c (debug_type_names): Move out of decode_g_option.
12885 2003-04-11  Eric Christopher  <echristo@redhat.com>
12887         * emit-rtl.c (gen_rtx): Fix typos.
12889 2003-04-11  Richard Henderson  <rth@redhat.com>
12891         * emit-rtl.c (gen_rtx): Zero '0' fields.
12893 2003-04-11  Richard Henderson  <rth@redhat.com>
12895         PR c++/10202
12896         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
12897         not COMPLETE_TYPE_P for re-invoking layout_decl.
12899 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
12901         * doc/bugreport.texi: Fix paragraph breaking between sections
12902         in preparation for TeXinfo's paragraph indentation fixes.
12903         * doc/extend.texi: Ditto.
12904         * doc/invoke.texi: Ditto.
12905         * doc/objc.texi: Ditto.
12906         * doc/gcov.texi: Wrap 'gcov' in @command{}.
12907         * doc/invoke.texi (Darwin Options): Add a preamble.
12909 2003-04-11  Richard Henderson  <rth@redhat.com>
12911         * config/i386/i386.c (tls_model_chars): Remove.
12912         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
12913         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
12914         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
12915         (tls_symbolic_operand_1): Likewise.
12916         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
12917         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
12918         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
12919         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
12920         bits "copied from i386.h" with default_encode_section_info.
12922 2003-04-11  Richard Henderson  <rth@redhat.com>
12924         * rtl.def (SYMBOL_REF): Add two 0 fields.
12925         * gengtype.c (adjust_field_rtx_def): Handle them.
12926         * print-rtl.c (print_rtx): Print them.
12927         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
12928         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
12929         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
12930         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
12931         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
12932         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
12933         (SYMBOL_FLAG_MACH_DEP): New.
12934         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
12935         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
12936         (assemble_static_space): Set SYMBOL_REF_FLAGS.
12937         (assemble_trampoline_template): Likewise.
12938         (output_constant_def, force_const_mem): Likewise.
12939         (default_encode_section_info): New.
12940         * output.h: Declare it.
12941         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
12943 2003-04-11  Richard Henderson  <rth@redhat.com>
12945         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
12946         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
12947         * optabs.c (init_optabs): Initialize them.
12948         (init_libfuncs): Use init_one_libfunc.
12949         * calls.c (expand_call): Use gcov_flush_libfunc.
12950         * expr.c (store_constructor): Use setbits_libfunc.
12951         * function.c (expand_main_function): Use init_one_libfunc.
12952         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
12954 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
12956         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
12957         documentation; add DECL_FRIEND_CONTEXT.
12959 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12961         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
12962         notes on linker selection and configuration for 64-bit HP-UX port.
12963         * doc/invoke.texi (hppa): Remove hppa text from description for
12964         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
12965         and -threads options.
12967         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
12968         libc.a on libdld.sl when -static is specified and -nolibdld is not
12969         specified.
12970         * pa64-hpux.h (LIB_SPEC): Likewise.
12971         * pa-hpux11.h (LIB_SPEC): Likewise.
12972         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
12973         is not specified.
12975 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
12977         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
12978         not IDENTIFIER_LOCAL_VALUE.
12980 2003-04-11  Richard Henderson  <rth@redhat.com>
12982         PR c/10201
12983         * expr.c (expand_expr): Move DECL_RTL frobbing ...
12984         * stor-layout.c (layout_decl): ... here.
12986 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
12988         * doc/invoke.texi: Eliminate extra white-space caused by
12989         @gccoptlist{ on its own line.
12990         * doc/invoke.texi: Ensured there are two spaces between each option.
12991         * doc/invoke.texi: Re-wrapped option lines that were too wide.
12992         Added @gol to options that didn't have them.
12994 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
12996         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
12997         gcov-iov.h.
12999         Simplify interface to gcov reading and writing.
13000         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
13001         gcov_alloc, gcov_modified, gcov_errored): Move into ...
13002         (struct gcov_var gcov_var): ... this static structure.
13003         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
13004         Return void.
13005         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
13006         read object.
13007         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
13008         (gcov_reserve_length): Remove.
13009         (gcov_write_tag): New.
13010         (gcov_write_length): Adjust.
13011         (gcov_read_summary, gcov_write_summary): Adjust.
13012         (gcov_eof, gcov_ok): Rename to ...
13013         (gcov_is_eof, gcov_is_error): ... here. Return error code.
13014         (gcov_save_position, gcov_resync): Rename to ...
13015         (gcov_position, gcov_seek): ... here.
13016         (gcov_skip, gcov_skip_string): Remove.
13017         (gcov_error): Remove.
13018         (gcov_open, gcov_close): Adjust.
13019         * gcov.c (find_source): Take const char *, copy it on allocation.
13020         (read_graph_file): Adjust.
13021         (read_count_file): Adjust.
13022         * libgcov.c (gcov_exit): Adjust.
13023         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
13024         tag_arc_counts, tag_summary): Return void. Adjust.
13025         (struct tag_format): Adjust proc member.
13026         (dump_file): Adjust gcov calls.
13028 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
13030         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
13031         mkfixinc.sh.
13032         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
13033         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
13034         build != host sysrooted builds.
13035         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
13036         TARGET_SYSTEM_ROOT even on sysrooted natives.
13037         * configure: Rebuilt.
13039 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
13041         * c-decl.c (struct binding_level): Add shadowed_tags and
13042         function_body; remove this_block, tag_transparent, and
13043         subblocks_tag_transparent; update comments.
13044         (clear_binding_level, lookup_tag_reverse): Kill.
13045         (make_binding_level): Use ggc_alloc_cleared or memset.
13046         (lookup_tag): Remove struct binding_level* parameter.  All
13047         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
13048         current_binding_level->tags if asked for thislevel_only or if
13049         we might have to diagnose "struct foo; union foo;"
13050         (pushlevel): Ignore argument.  Do not push another binding
13051         level on the transition from the parameters to the top level
13052         of the function body; just tweak the flags and proceed.
13053         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
13054         a function body, separate the parameter list from the
13055         top-level local variables.
13056         (set_block): Do nothing.
13057         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
13058         shadowed_tags if necessary.
13059         (warn_if_shadowing): Nuke the special case for local shadowing
13060         parameter.
13061         (pushdecl): Do not create a shadow entry if we are replacing
13062         an older decl in the same binding level.
13063         (pushdecl_function_level): Tweak for new way of indicating
13064         function scope.
13065         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
13066         (start_function): Don't set subblocks_tag_transparent.
13067         (finish_function): Fix up the binding_level stack for totally
13068         empty functions.  Otherwise, don't call poplevel.
13070         * c-common.c (shadow_warning): MANDATORY argument is no longer
13071         necessary.  Always use plain warning.
13072         * c-common.h: Update to match.
13074         * cfglayout.c (scope_to_insns_initialize): Clear block when we
13075         hit the FUNCTION_DECL.
13076         * function.c: Do not create cyclic tree structure.
13078 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
13080         * c-tree.h (struct lang_identifier): Replace global_value,
13081         local_value members with symbol_value, tag_value.  Kill
13082         implicit_decl and limbo_value.
13083         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
13084         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
13085         C_MISSING_PROTOTYPE_WARNED): Kill.
13086         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
13087         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
13088         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
13089         (implicit_decl_warning, lookup_name_current_level,
13090         record_function_scope_shadow): Don't prototype.
13091         (pushdecl_function_level): Prototype.
13093         * c-decl.c (truly_local_externals): New variable.
13094         (struct binding_level): Adjust commentary.
13095         (get_function_binding_level, clear_limbo_values,
13096         record_function_scope_shadow): Kill.
13097         (lookup_name_current_level, implicit_decl_warning): Are now static.
13098         (any_external_decl, record_external_decl): New static functions.
13099         (clone_underlying type): Split out of pushdecl.
13100         (c_print_identifier): Update to match changes to struct
13101         lang_identifier.
13102         (poplevel): Delete #if 0 block.  Make externals invisible
13103         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
13104         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
13105         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
13106         (duplicate-decls): For real parm decl after a forward decl,
13107         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
13108         foo(...) { } with only a warning.  Say whether a previous
13109         declaration was implicit.
13110         (warn_if_shadowing): Now handles all shadowing, not just
13111         local-over-local.  Clarify comments.
13112         (pushdecl): Rewritten.  There is no longer a distinction
13113         between global and local symbol values; they're all
13114         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
13115         DECL_EXTERNAL decls, and use any_external_decl to check
13116         against previous externals.  Kill #if 0 blocks.  Don't
13117         tolerate error_mark_node being NULL.
13118         (pushdecl_top_level): Handle only those cases which
13119         Objective C (the only user) needs.
13120         (pushdecl_function_level): New function.
13121         (implicitly_declare): Create ordinary decls with
13122         C_DECL_IMPLICIT set.  Recycle old decls, however they got
13123         created.
13124         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
13125         for C_DECL_INVISIBLE symbols.
13126         (lookup_name_current_level): Likewise.  Use chain_member.
13127         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
13128         Use pushdecl_function_level.
13129         (builtin_function): Use C_DECL_INVISIBLE.
13130         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
13131         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
13132         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
13133         (identifier_global_value): Same.  Must scan
13134         global_binding_level in extremis.
13136         * c-typeck.c (undeclared_variable): New static function, split
13137         from build_external_ref.
13138         (build_external_ref): Use DECL_CONTEXT, not
13139         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
13140         an instance variable.  Restructure for clarity.
13141         * objc/objc-act.c: Use identifier_global_value, not
13142         IDENTIFIER_GLOBAL_VALUE.
13144 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
13146         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
13147         not Working Paper.
13148         * doc/invoke.texi (C++ Dialect Options): Same.
13150 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
13152         * tree.c (tree_operand_check_failed): New function.
13153         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
13154         TREE_RTL_OPERAND_CHECK): New checking macros.
13155         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
13156         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
13157         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
13158         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
13159         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
13160         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
13161         checking macros.
13163 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
13165         PR inline-asm/8803
13166         * function.c (instantate_virtual_regs):  Verify that all ASM statements
13167         match after the virutal regs instantiation.
13169 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
13171         * ia64-protos.h (addp4_optimize_ok): New.
13172         * ia64.c (addp4_optimize_ok): New.
13173         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
13174         (*ptr_extend_plus_2): Ditto.
13176 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
13178         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
13179         not with convert_memory_address.
13180         (store_constructor): Ditto, and same for copy_size_rtx.
13181         (expand_expr): Ditto.
13183 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
13185         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
13187 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
13189         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
13190         even if it is configured to be write-through.
13192 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
13194         * config/s390/s390.c (larl_operand): Do not allow symbols
13195         marked with '@'.
13196         (s390_encode_section_info): Mark symbols with forced 1-byte
13197         alignment with '@'.
13198         (s390_strip_name_encoding): Strip '@'.
13199         (legitimize_pic_address): Handle symbols that are not valid
13200         LARL operands in 64-bit mode.
13202 2003-04-10  Andrew Haley  <aph@redhat.com>
13204         * tree-inline.c (inlinable_function_p): Disable inlining for
13205         synchronized methods.
13207 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
13209         * c-common.h (lang_statement_code_p): Remove declaration.
13210         (statement_code_p): Ditto.
13211         (c_common_stmt_codes): Define; list of c-common statement codes.
13212         (statement_code_p): New extern declaration.
13213         (STATEMENT_CODE_P): Define.
13214         (INIT_STATEMENT_CODES): Define.
13215         * c-common.c (statement_code_p): Kill the function, declare
13216         as an array of bools instead.
13217         (lang_statement_code_p): Remove.
13218         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
13219         (c_safe_from_p): Ditto.
13220         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
13221         to initialize the statement_code_p array.
13222         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
13223         statement_code_p.
13224         (copy_tree_r): Ditto.
13225         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
13226         statement tree codes.
13227         * cp/lex.c (cxx_init): Add missing print line break.  Use
13228         INIT_STATEMENT_CODES to initialize the statement_code_p array.
13229         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
13230         instead of statement_code_p.
13231         * cp/pt.c (tsubst_expr): Ditto.
13232         * cp/tree.c (verify_stmt_tree_r): Ditto.
13233         (cp_statement_code_p): Remove.
13234         (init_tree): Don't set lang_statement_code_p, it's gone.
13236 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
13237             Zack Weinberg  <zack@codesourcery.com>
13239         * regrename.c (struct du_chain): Use a bitfield for reg_class.
13240         * cse.c (struct qty_table_elem, struct table_elt, struct set):
13241         Use bitfields for fields holding enum rtx_code or
13242         enum machine_mode values.  Add comments explaining size choices.
13244 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
13246         * config/fp-bit.c (unpack_d): Handle pair of doubles with
13247         different signs correctly.
13249 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
13251         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
13252         (reg_pending_barrier): Make it of the enumeration type.
13253         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
13254         TRUE_BARRIER.
13255         (sched_analyze): Ditto.
13256         (sched_analyze_insn): Ditto.  Use anti-dependencies for
13257         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
13258         (init_deps_global): Initialize the barrier as NO_BARRIER.
13260 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
13262         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
13263         Check that asm insn starts on a new cycle.  Add nops after asm
13264         insn to end bundle.
13265         (bundling): Move insn type evaluation from the loop.  Call
13266         issue_nops_and_insn with the new parameter.  Ignore changing
13267         position for nops after asm insn.
13269 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
13271         * optabs.c: Comment that gen_add2_insn and others may actually
13272         return emitted insns, if the gen functions turn out to return
13273         emitted insns.
13274         * reload1.c (reload_cse_move2add): Cope with emitted insns from
13275         gen_add2_insn.
13277 2003-04-09  Richard Henderson  <rth@redhat.com>
13279         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
13280         but not tls_symbolic_operand.
13281         (ia64_expand_load_address): Remove scratch operand.
13282         (ia64_expand_tls_address): Split out from ia64_expand_move.
13283         (ia64_expand_move): Split symbolics only after reload.
13284         (ia64_emit_cond_move): New.
13285         * config/ia64/ia64-protos.h: Update.
13286         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
13287         (symbolic splitter): Accept SImode operands too.
13288         (cmove splitter): Use ia64_emit_cond_move.
13290 2003-04-09  Nick Clifton  <nickc@redhat.com>
13292         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
13293         newer.
13294         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
13295         instead of -mno-fpu.
13296         * config/arm/semi.h (ASM_SPEC): Likewise.
13297         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
13298         but only if -msoft-float is specified pass.  Otherwise pass
13299         -mfpu=softvfp.
13301 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13303         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
13304         free_EXPR_LIST_node.
13306 2003-04-08  Roger Sayle  <roger@eyesopen.com>
13308         * fold-const.c (fold):  Use "fold" following build in more places.
13309         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
13310         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
13312 2003-04-08  Roger Sayle  <roger@eyesopen.com>
13314         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
13315         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
13316         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
13317         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
13318         Delete function scope "fcode" variable to avoid shadowing.
13320 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
13322         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
13323         Take into account DWARF_INITIAL_LENGTH_SIZE.
13325 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
13327         * reorg.c (fill_slots_from_thread): When considering changing the
13328         insn following a reg-to-reg copy insn to use the source reg of the
13329         copy, bail out if there's overlap between the registers.
13331 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13333         * function.c (postponed_insns): New.
13334         (purge_addressof_1): Postpone processing of insns if addressofs
13335         are not put into stack.
13336         (purge_addressof): Process postponed insns.
13338 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
13340         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
13341         this is FP_MODE_DOUBLE .
13342         * sh.c (ra.h): #include.
13343         (push_regs): Add second parameter.  Changed all callers.
13344         If necessary, set fpscr before saving floating point registers.
13345         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
13346         do saves / restores with SZ == 1.
13347         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
13348         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
13349         registers are being restored, restore FPSCR only after restoring them.
13351 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
13353         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
13354         regardless of architecture.
13355         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
13357 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
13359         * sh.c (push_regs, calc_live_regs): Return int.  Take single
13360         HARD_REG_SET * parameter.  Changed all callers.
13362 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
13364         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
13365         GOTOFF operand.
13366         (legitimize_pic_address): Move plus outside the unspec.
13367         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
13368         for validity.
13370 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
13372         * gcov-io.h (gcov_save_position): Remove __inline__ from
13373         declaration.
13375 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
13377         * doc/install.texi: Use @command and @samp for single- and
13378         multi-word commands respectively.
13379         * doc/makefile.texi: Likewise.
13380         * doc/sourcebuild.texi: Likewise.
13382 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13383             Richard Henderson  <rth@redhat.com>
13385         PR c/9516
13386         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
13387         favor of looping and tail recursion for TREE_LIST and binops.
13389 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13391         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
13392         for insns without luid.
13394 2003-04-07  Glen Nakamura  <glen@imodulo.com>
13396         PR opt/8634
13397         * explow.c (maybe_set_unchanging): Don't flag non-static const
13398         aggregate type initializers with RTX_UNCHANGING_P.
13400 2003-04-07  Richard Henderson  <rth@redhat.com>
13402         PR opt/8634
13403         * function.c (purge_addressof_1): Don't try arithmetics for
13404         unchanging memories.
13406 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
13408         * doc/sourcebuild.texi (Test Suites): Document testing support for
13409         gcov and profile-directed optimizations; describe gcc.misc-tests.
13411 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
13413         PR target/10077
13414         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
13416 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13418         * doc/rtl.texi (Comparison operations): Update to
13419         record the allowed comparison modes.
13421 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
13423         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
13424         V2SI_type_node to opaque_V2SI_type_node.  Rename all
13425         V2SF_type_node to opaque_V2SF_type_node.
13426         (rs6000_init_builtins): Define opaque_V2SI_type_node and
13427         opaque_V2SF_type_node.
13428         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
13429         opaque_V2SF_type_node are opaque types.
13431 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
13433         * gcse.c (replace_store_insn): Use single_set.
13435 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
13437         Change gcov file interface to single file at a time.
13438         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
13439         Convert to C89 prototypes.
13440         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
13441         gcov_error, gcov_modified): New static variables.
13442         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
13443         functions.
13444         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13445         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13446         (gcov_read_summary, gcov_write_summary): Adjust.
13447         (gcov_save_position, gcov_reserve_length, gcov_write_length):
13448         Adjust.
13449         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
13450         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
13451         (da_file_position, da_file_seek, da_file_write, da_file_read):
13452         Remove.
13453         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
13454         * gcov.c (gcov_type): Don't typedef here.
13455         (IN_GCOV): #define
13456         (read_graph_file, read_count_file): Adjust.
13457         * gcov-dump.c (gcov_type): Don't typedef here.
13458         (IN_GCOV): #define.
13459         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
13460         Remove FILE parameter, adjust.
13461         (struct tag_format): Adjust proc member.
13462         (dump_file): Adjust.
13463         * libgcov.c (IN_LIBGCOV): #define.
13464         (gcov_exit): Adjust.
13465         * loop-init.c: Don't #include gcov-io.h
13466         * profile.c (struct counts_entry): New structure to hold counter
13467         values.
13468         (struct section_reference, struct da_index_entry): Remove.
13469         (bbg_file, da_file): Remove.
13470         (htab_counts_index_hash, htab_counts_index_eq,
13471         htab_counts_index_del): Replace with ...
13472         (htab_counts_entry_hash, htab_counts_entry_eq,
13473         htab_counts_entry_del): ... these.
13474         (cleanup_counts_index, index_counts_file): Remove.
13475         (read_counts_file): New function.
13476         (get_exec_counts): Adjust.
13477         (compute_branch_probabilities): Don't free the exec counts here.
13478         (branch_prob): Adjust.
13479         (init_branch_prob): Adjust.
13480         (end_branch_prob): Adjust.
13482 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
13484         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13485         -mfloat-gprs.
13487         * config/rs6000/rs6000.c: Delete rs6000_fprs.
13488         Declare rs6000_float_gprs.
13489         Declare rs6000_float_gprs_string.
13490         (rs6000_parse_float_gprs_option): New.
13491         (rs6000_override_options): Genericize rs6000_parse_* calls to use
13492         rs6000_parse_yes_no_option.
13493         Change check for cpu=8540, to use TARGET_E500.
13494         (rs6000_parse_isel_option): Delete.
13495         (rs6000_parse_spe_option): Delete.
13496         (rs6000_parse_vrsave_option): Delete.
13498         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
13499         Define rs6000_float_gprs_string.
13500         (TARGET_OPTIONS): Add rs6000_float_gprs option.
13502         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
13504         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
13506 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
13508         PR opt/10024
13509         * cfglayout.c (cfg_layout_redirect_edge):
13510         Redirect any branch edges unified with the fallthru one.
13511         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
13512         case fallthru edges when called via cfglayout.c
13514 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
13516         * c-typeck.c (output_init_element): Check for type == error_mark_node.
13518 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
13520         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
13521         split.
13522         (a splitter): Do zero-extension via HImode.
13524 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
13526         * doc/invoke.texi: Eliminate extra white-space caused by
13527         @gccoptlist{ on its own line.
13528         * doc/invoke.texi: Ensured there are two spaces between each option.
13529         * doc/invoke.texi: Re-wrapped option lines that were too wide.
13530         Added @gol to options that didn't have them.
13532 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
13534         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
13536 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
13538         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
13539         at the sizes of the relevant structures, rather than relying
13540         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
13541         sizes of any such we don't know about.  Use
13542         lang_hooks.identifier_size for IDENTIFIER_NODE.
13544         (initializer_zerop): Use CONSTRUCTOR_ELTS.
13545         * tree.def: Update commentary.  Make fourth element of
13546         the definition for all 'c' and 'x' nodes zero.
13548         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
13549         * langhooks-def.h: Update to match.
13550         * langhooks.c: New default, lhd_tree_size.
13552         * c-common.def (SRCLOC): Kill.
13553         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
13554         Remove entirely - was already #if-ed out.
13557 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
13559         * mklibgcc.in: Use a here document to avoid running afoul of
13560         shells that generate control-A from "echo \1".
13562 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
13564         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
13565         option.
13567         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13568         rs6000_spe.
13570         * config/rs6000/eabi.h (TARGET_E500): Define.
13572         * config/rs6000/rs6000.h (TARGET_E500): Define.
13573         (TARGET_OPTIONS): Add spe= option.
13574         Declare rs6000_spe and rs6000_spe_string extern.
13576         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
13577         Change TARGET_SPE to TARGET_E500.
13578         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
13579         !TARGET_FPRS.
13580         (print_operand): Same.
13581         (rs6000_generate_compare): Same.
13582         (output_cbranch): Same.
13583         (rs6000_spe): Declare.
13584         (rs6000_spe_string): Declare.
13585         (rs6000_override_options): Call rs6000_parse_spe_option.
13586         (rs6000_parse_spe_option): New.
13588 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
13590         * hashtable.c (gcc_obstack_init): Delete this function
13591         and everything related to it.
13592         * hashtable.h: Remove prototype.
13593         * bitmap.c (bitmap_element_allocate): Cleanup redundant
13594         defines.  Cleanup some unnecessary whitespace.
13595         * defaults.h (obstack_chunk_alloc): Redefine with
13596         appropriate casts for libiberty obstacks.
13597         (obstack_chunk_free): Ditto.
13598         (OBSTACK_CHUNK_SIZE): Define, default to 0.
13599         (gcc_obstack_init): Define as a call to _obstack_begin.
13600         * tree.c (print_obstack_statistics): Delete this unused
13601         function.
13602         * tree.h (obstack): Don't forward-declare.
13603         (print_obstack_statistics): Delete prototype.
13604         (print_obstack_name): Ditto.
13605         (gcc_obstack_init): Ditto.
13606         * rtl.h (gcc_obstack_init): Ditto.
13607         * java/jv-scan.c (gcc_obstack_init): Delete this
13608         function, its prototype and related defines.
13609         * java/jvgenmain.c (gcc_obstack_init): Delete this
13610         function, and related defines.
13611         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
13612         (obstack_chunk_free): Ditto
13614 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
13616         * dbxout.c (dbxout_handle_pch): Move prototype out from
13617         #if defined DBX_DEBUGGING_INFO.
13619 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
13621         * gcov.c (struct arc_info): Replace local_span with cycle.
13622         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
13623         (solve_flow_graph): Set is_call_return.
13624         (add_line_counts): Adjust. In block mode, blocks attach to last line.
13625         (accumulate_line_counts): Find graph cycles, not spanning tree.
13626         (output_branch_count): Adjust.
13627         (output_lines): Adjust.
13628         * doc/gcov.texi: Update.
13630 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
13632         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
13633         the second alternative to "#".
13635 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
13637         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
13638         (single_zero_operand): Likewise.
13640 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
13642         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
13643         * df.c: Include alloc-pool.h, not obstack.h.
13644         (df_ref_obstack): Remove.
13645         (df_ref_pool, df_link_pool): Add pools.
13646         (df_alloc): Init the new pools.
13647         (df_free): And free them.
13648         (df_link_create): Use the pools.
13649         (df_ref_create): Ditto.
13651 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
13653         * simplify-rtx.c: Fix formatting.
13655 2003-04-05  Andrew Pinski  <apinski@apple.com>
13657         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
13658         reg with reg1 == reg2 and offset1 = -8.
13660 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
13662         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
13663         multiply costs.  Correct Power4 divide costs.
13664         * config/rs6000/power4.md: Restore multiply and FP latency.
13666 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13668         * alias.c (find_base_term): Export.
13669         * rtl.h (find_base_term): Declare.
13670         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
13671         instead of flag_exceptions.  Move test for parameter passing ...
13672         (store_killed_in_insn): ... here.
13674 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13676         PR bootstrap/10267
13677         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
13678         for configuring.
13680 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
13682         * dbxout.c (scope_labelno): Add GTY.
13683         (have_used_extensions): Add GTY.
13684         (source_label_number): Add GTY.
13685         (lastfile): Add GTY.
13686         (lastfile_is_base): New.
13687         (base_input_file): New.
13688         (dbxout_handle_pch): New.
13689         (dbx_debug_hooks): Add handle_pch.
13690         (xcoff_debug_hooks): Likewise.
13691         (dbxout_function_end): Remove scope_labelno.
13692         (dbxout_init): Set base_input_file.
13693         (dbxout_handle_pch): New.
13694         (dbxout_source_file): Honour lastfile_is_base.
13695         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
13696         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
13697         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
13698         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
13699         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
13700         * debug.h (struct gcc_debug_hooks): Add handle_pch.
13701         * c-pch.c (pch_init): Don't call start_source_file, but do call
13702         handle_pch.
13703         (c_common_write_pch): Call handle_pch.
13704         (c_common_read_pch): Don't call start_source_file,
13705         or end_source_file.
13707 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
13709         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
13710         use of default attributes to agree MEM_ALIGN macro.
13712 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
13714         * dbxout.c (dbxout_type): When printing type index of range type
13715         whose bounds are printed in octal format, print type of parent type if
13716         it exists so enumerated type descriptions are not transformed
13717         into unsigned types.
13719 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
13721         * config/h8300/h8300-protos.h: Add a prototype for
13722         compute_a_shift_cc.
13723         * config/h8300/h8300.c (shift_one): Update the CC status.
13724         (shift_two): Likewise.
13725         (output_a_shift_cc): Set cc_inline and cc_special.
13726         (compute_a_shift_cc): New.
13727         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
13729 2003-04-04  Richard Henderson  <rth@redhat.com>
13731         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
13733 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
13735         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
13736         * fixinc/fixincl.x: Rebuilt.
13737         * fixinc/tests/base/stdio.h: Regenerated.
13739 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
13741         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
13743 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
13745         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
13746         (NORMAL_MODE).
13747         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
13749 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13751         * doc/contrib.texi (Contributors): Add entries for Wolfgang
13752         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
13753         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
13754         Danny Smith, and Ulrich Weigand.
13755         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
13756         entry.
13758 2003-04-04  Nick Clifton  <nickc@redhat.com>
13760         * config/sparc/sol2-bi.h: Revert previous delta.
13761         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
13763 2003-04-04  Nick Clifton  <nickc@redhat.com>
13765         * config/v850/v850.c (expand_prologue): Only use register save
13766         helper functions if long calls are not being used.
13767         Add a clobber of r11 id using long calls.
13768         (pattern_is_ok_for_prologue): Account for the extra clobber.
13769         (construct_save_jarl): Likewise.
13770         * config/v850/v850.md (prolog pattern): Do not use this pattern
13771         for v850e's.
13773 2003-04-04  Andreas Schwab  <schwab@suse.de>
13775         * stor-layout.c (layout_decl): Avoid syntax error in last change
13776         when PCC_BITFIELD_TYPE_MATTERS is defined but not
13777         EMPTY_FIELD_BOUNDARY.
13779 2003-04-03  Jason Merrill  <jason@redhat.com>
13781         PR c/10175
13782         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
13783         Look backwards for a line note.
13785 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
13787         * fix-header.c (read_scan_file): Defer switch processing.
13789 2003-04-03  Matt Austern  <austern@apple.com>
13791         * cpppch.c (reset_ht): Remove.
13792         (cpp_read_state): Remove loop to reset hashtable identifiers.
13793         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
13794         after pch file is written.
13795         * ggc.h (gt_pch_fixup_stringpool): Declare.
13796         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
13797         hashnode's value to another hashtable, then clear the original.
13798         (saved_ident_hash): Define.
13799         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
13800         store definitions in ident_hash, and clear ident_hash.
13801         (gt_pch_fixup_stringpool): Define.  Restore definitions from
13802         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
13804 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
13806         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
13808 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13810         PR optimization/10157
13811         * gcse.c (can_copy_p): Rename it to can_copy.
13812         (can_copy_init_p): Remove.
13813         (compute_can_copy): Use can_copy instead of can_copy_p.
13814         (can_copy_p): New exported function. Call compute_can_copy.
13815         (hash_scan_set): Use it.
13816         (gcse_main): Don't call compute_can_copy.
13817         (bypass_jumps): Don't call compute_can_copy.
13818         * rtl.h (can_copy_p): Declare.
13819         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
13820         copy if the mode doesn't support copy operations.
13822 2003-04-03  Jason Merrill  <jason@redhat.com>
13824         * Makefile.in (unstrap): Also remove stage_last.
13826         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
13827         (dwarf2out_source_line): Don't do anything if line==0.
13829         * stor-layout.c (do_type_align): New fn, split out from...
13830         (layout_decl): ...here.  Do all alignment calculations for
13831         FIELD_DECLs here.
13832         (update_alignment_for_field): Not here.
13833         (start_record_layout, debug_rli): Remove unpadded_align.
13834         * tree.h (struct record_layout_info_s): Remove unpadded_align.
13835         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
13836         or DECL_MODE on the CONST_DECLs.
13837         (finish_struct): Don't mess with DECL_ALIGN.
13839 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
13841         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
13843 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
13845         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
13846         function is an interrupt handler.
13848         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
13849         restoring target registers with EH_RETURN_STACKADJ_RTX; use
13850         multiple registers in round-robin fashion.
13852 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13854         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
13855         * system.h (CHAR_BITFIELD): New.
13857 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
13859         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
13860         and LE.
13861         (another peephole2): Likewise.
13863 2003-04-03  Nick Clifton  <nickc@redhat.com>
13865         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
13866         (DEF_ARCH64_SPEC): Likewise.
13868 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
13870         * i386.c (constant_address_p): Use legitimate_constant_p.
13871         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
13873 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13875         * config/h8300/h8300-protos.h: Add a prototype for
13876         gtle_operator.
13877         * config/h8300/h8300.c (gtle_operator): New.
13878         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
13879         gtle_operator.
13880         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
13881         and LE.
13883 2003-04-02  Richard Henderson  <rth@redhat.com>
13885         * libgcc-std.ver (_Unwind_GetCFA): New.
13886         * unwind-dw2.c (_Unwind_GetCFA): New.
13887         * unwind-libunwind.c (_Unwind_GetCFA): New.
13888         * unwind-sjlj.c (_Unwind_GetCFA): New.
13889         * unwind.h: Declare it.
13891 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
13893         PR inline-asm/8088
13894         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
13895         when MMX/SSE is not available.
13897 2003-04-02  Mike Stump  <mrs@apple.com>
13899         * doc/install.texi (Specific): Update pointers to apple.com.
13901 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
13903         * i386.c (override_options):  Disable red zone by default on i386.
13904         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
13905         Do not test TARGET_64BIT together with TARGET_RED_ZONE
13907 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13909         * config/h8300/h8300.md (a peephole2): Tighten the condition.
13911 2003-04-02  Richard Henderson  <rth@redhat.com>
13913         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
13915 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13917         * config/h8300/h8300.md (a peephole2): New.
13919 2003-04-02  Richard Henderson  <rth@redhat.com>
13921         * except.c (sjlj_find_directly_reachable_regions): Recognize when
13922         must-not-throw region has been deleted.
13924 2003-04-02  Richard Henderson  <rth@redhat.com>
13926         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
13927         optimization when flag_exceptions not enabled.
13929 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
13931         * config/rs6000/rs6000.c
13932         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
13933         macros.
13934         (rs6000_issue_rate): Add case for 8540.
13935         (rs6000_use_sched_lookahead): New function.
13937         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
13938         units into MU ones.
13939         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
13940         reservation before retirement.
13941         (ppc8540_multiply, ppc8540_load, ppc8540_store,
13942         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
13943         Remove additional cycle in the reservation before retirement.
13944         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
13945         reservation of ppc8540_issue.
13947 2003-04-02  Andreas Schwab  <schwab@suse.de>
13949         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
13951 2003-04-01  Richard Henderson  <rth@redhat.com>
13953         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
13954         notes for nothrow calls if flag_forced_unwind_exceptions.
13955         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
13956         (sjlj_find_directly_reachable_regions): Likewise.
13957         (reachable_handlers): Likewise.
13958         (can_throw_external): Likewise.
13959         (collect_one_action_chain): Record cleanups after catch-all and
13960         must-not-throw if flag_forced_unwind_exceptions.
13961         * flags.h (flag_forced_unwind_exceptions): Declare.
13962         * toplev.c (flag_forced_unwind_exceptions): New.
13963         (lang_independent_options): Add it.
13964         * doc/invoke.text: Add it.
13966 2003-04-01  David Mosberger <davidm@hpl.hp.com>
13968         * config/ia64/crti.asm: Clean up trailing whitespace.
13969         Remove trailing hashes (#) from identifiers.
13971         * config/ia64/crtn.asm: Ditto.
13973         * config/ia64/crtend.asm: Remove trailing hashes (#) from
13974         identifiers.
13975         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
13976         directives.  Drop explicit bundling---it just makes the code
13977         harder to read.  Don't save/restore gp needlessly.
13979         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
13980         identifiers (they're only needed if the identifier would clash
13981         with a register name otherwise).
13982         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
13983         directives.  Drop explicit bundling---it just makes the code
13984         harder to read.
13985         (__do_jv_register_classes): Ditto.
13986         (.fini_array): Remove "progbits" (newer
13987         assemblers don't like wrong section-types).
13988         (.init_array): Ditto.
13990 2003-04-01  Roger Sayle  <roger@eyesopen.com>
13992         PR fortran/9974
13993         * gcse.c (reg_killed_on_edge): New function to test whether the
13994         given reg is overwritten by any instruction queued on an edge.
13995         (bypass_block): Ignore substitutions killed on incoming edges.
13996         Don't bypass outgoing edges that have queued instructions.
13998 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
14000         * real.h (EXP_BITS): Make room for...
14001         (struct real_value): ... added canonical bit.
14002         (struct real_format): Added pnan.
14003         (mips_single_format, mips_double_format, mips_extended_format,
14004         mips_quad_format): New.
14005         * real.c: Copy p to pnan in all formats.
14006         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
14007         (real_nan): Use pnan to compute significand's shift.
14008         (real_identical): Disregard significand in canonical
14009         NaNs.
14010         (real_hash): Likewise.  Take signalling into account.
14011         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
14012         Disregard significand bits in canonical NaNs.  Set all bits of
14013         canonical NaN if !qnan_msb_set.
14014         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
14015         qnan_msb_set to tell the base double format.
14016         (ibm_extended_format): Use 53 as pnan.
14017         (mips_single_format, mips_double_format, mips_extended_format,
14018         mips_quad_format): Copied from the corresponding ieee/ibm
14019         formats, with qnan_msb_set false.
14020         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
14021         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
14022         * config/mips/mips.c (override_options): Use mips_single_format
14023         and mips_double_format.  Default TFmode to mips_quad_format.
14024         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
14025         * config/mips/t-irix6: Likewise.
14026         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
14027         * config/fp-bit.c (pack_d, unpack_d): Obey it.
14029 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
14031         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
14032         (live_image_destructor): Reset image to initial state.
14033         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
14035 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
14037         * config/sparc/sparc.c (input_operand): Accept bare
14038         CONSTANT_P_RTX operands.
14040 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14042         * gcse.c (struct ls_expr): Added pattern_regs field.
14043         (ldst_entry): Initialize it.
14044         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
14045         (store_ops_ok): Use regs precomputed by them.
14046         (find_loads, store_killed_in_insn, load_kills_store): Change return
14047         type to bool.
14048         (store_killed_before, store_killed_after): Take position of register
14049         set in account.
14050         (reg_set_info): Store position of the setter.
14051         (gcse_main): Enable store motion.
14052         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
14053         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
14054         sharing.
14055         (simple_mem): Enable store motion of non-symbol mems.
14056         (regvec): Type changed.
14057         (LAST_AVAIL_CHECK_FAILURE): New.
14058         (compute_store_table_current_insn): New.
14059         (build_store_vectors): Computation of availability and anticipatability
14060         moved ...
14061         (compute_store_table, find_moveable_store): ... here.
14062         (delete_store): Remove senseless comment.
14063         (store_motion): Reorganize.
14065 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
14067         * config/mips/mips.c (override_options): Provide mappings for
14068         HI_REGNUM and LO_REGNUM.
14069         * config/mips/mips.h (MD_DBX_FIRST): Define.
14071 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14073         * combine.c (merge_outer_ops): Fix typo.
14075         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
14077 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
14079         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
14080         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
14081         imul_compare.  Add lmul_compare.
14082         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
14083         in second pair of dispatch slots.  Model stores more accurately.
14084         Tweak multiply model.  Add bypasses for CR instructions dependent
14085         on complicated compares.
14086         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
14087         (muldi3): Add lmul_compare patterns.
14088         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
14089         and FPSTORE_UX to split instructions and add COMPARE,
14090         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
14091         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
14092         (rs6000_rtx_costs): Separate POWER4 multiply case.
14094 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
14096         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
14097         Do nothing if __builtin_return_address was not used.
14099 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
14101         * i386.md (test patterns):  Allow memory operand in operand1.
14103 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
14105         * testsuite/gcc.c-torture/execute/simd-3.c: New.
14107         * expr.c (expand_expr): Handle VECTOR_CST.
14108         (const_vector_from_tree): New.
14110         * varasm.c (output_constant): Handle VECTOR_CST.
14112         * c-typeck.c (digest_init): Build a vector constant from a
14113         VECTOR_TYPE.
14115         * config/rs6000/rs6000.c: Remove prototype for
14116         easy_vector_constant.
14117         (easy_vector_constant): Add mode parameter.  Rewrite to handle
14118         more easy constants.
14119         (rs6000_emit_move): Pass mode to easy_vector_constant.
14120         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
14121         (emit_easy_vector_insn): New.
14122         (easy_vector_same): New.
14123         (EASY_VECTOR_15): New macro.
14124         (EASY_VECTOR_15_ADD_SELF): New macro.
14125         (bdesc_2arg): Rename to xorv2si3.
14126         (easy_vector_constant_add_self): New.
14127         (input_operand): Allow vector constants.
14129         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14130         easy_vector_constant, easy_vector_constant_add_self.
14131         (EXTRA_CONSTRAINT): Add 'W'.
14133         * config/rs6000/rs6000-protos.h: Add prototype for
14134         easy_vector_constant, emit_easy_vector_insn.
14136         * config/rs6000/altivec.md (xorv8hi3): New.
14137         (xorv16qi3): New.
14138         Remove all _const0 patterns.
14139         (movv4si_internal): Rewrite to use code.  Add vector constant to
14140         vector alternative.  Add splitter.
14141         (movv8hi_internal): Same.
14142         (movv16qi_internal): Same.
14143         (movv4sf_internal): Same.
14144         Change the unspecs for vspltis* to use constants.
14146         * config/rs6000/spe.md ("xorv4hi3"): New.
14147         ("spe_evxor"): Rename to xorv2si3.
14148         ("xorv1di3"): New.
14149         Remove all _const0 patterns.
14150         (movv2si_internal): Rewrite to use code.  Add vector constant to
14151         alternatives.  Add splitter.
14152         (movv4hi_internal): Add vector constant to alternatives.
14153         (movv1di_internal): Same.
14154         (movv2sf_internal): Same.
14156 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
14158         PR c/9936
14159         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
14160         variably-sized arrays in parameters.
14161         (set_save_expr_context): New function.
14162         (c_expand_body): Use it, via walk_tree.
14164 2003-03-31  Eric Christopher  <echristo@redhat.com>
14166         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
14167         (combinable_i3pat): Remove call to expand_field_assignment and
14168         #if 0'd code.
14170 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
14172         PR c++/10278
14173         * c-common.c (finish_label_address_expr): Handle the
14174         error_mark_node.
14176 2003-03-31  Richard Henderson  <rth@redhat.com>
14178         * real.c (real_identical): Reorg so as to not compare
14179         signalling for normals.
14181 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
14183         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
14185 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
14187         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
14188         notes as they are boggus.
14189         (m68hc11_gen_movqi): Likewise.
14191 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
14193         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
14194         save the soft registers after the frame pointer so that gdb can unwind
14195         the frame more easily.
14196         (expand_epilogue): Likewise in opposite order; allow to use X register
14197         as scratch if the return value is by reference.
14199 2003-03-31  Jason Merrill  <jason@redhat.com>
14201         PR java/10145
14202         * stor-layout.c (update_alignment_for_field): Respect
14203         DECL_USER_ALIGN for zero-length bitfields, too.
14204         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
14205         fields.
14207 2003-03-31  Matt Austern  <austern@apple.com>
14209         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
14210         (count_defs): Keep track of number of defs as well as total size.
14211         (write_defs): Put every definition in cpp_savedstate's defs array.
14212         (comp_hashnode): Define.  Comparison function for qsort.
14213         (cpp_write_pch_deps): Sort definitions before writing them.
14214         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
14215         (collect_ht_nodes): Define.
14216         (cpp_valid_state): When verifying that undefined identifiers in
14217         the pch file are still undefined, read a sorted list of undefined
14218         identifiers, collect all defined identifiers into a sorted list,
14219         and walk through both lists to make sure there's no match.
14221 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
14223         * config/h8300/h8300.md (a peephole2): New.
14225 2003-03-31  Michael Matz  <matz@suse.de>
14227         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
14229 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
14231         PR target/10177
14232         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
14233         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
14234         all call-clobbered registers as used.
14236 2003-03-31  Michael Matz  <matz@suse.de>
14238         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
14239         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
14241 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
14243         * gcov.c: Add -a & -u options.
14244         (struct arc_info): Add local_span, is_call_non_return,
14245         is_nonlocal_return, is_unconditional flags, remove is_call flag.
14246         (struct block_info): Add flags, is_call_site, is_nonlocal_return
14247         members. Make encodings a union with span member.
14248         (struct function_info): Add blocks_executed, line, src, line_next
14249         members.
14250         (struct coverage_info): Make branches a union with blocks member.
14251         (struct source_info): Add functions member.
14252         (object_summary, program_count): New global variables.
14253         (flag_all_blocks, flag_unconditional): New flags.
14254         (find_source, output_branch_count): New functions.
14255         (print_usage): Adjust.
14256         (options): Adjust.
14257         (process_args): Adjust.
14258         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
14259         <GCOV_TAG_BLOCKS>: Read flags.
14260         <GCOV_TAG_LINES>: Adjust.
14261         (read_count_file): Process SUMMARY tags.
14262         (solve_flow_graph): Set is_unconditional and clear is_call_site
14263         appropriately.
14264         (add_branch_counts): Adjust. Don't count unconditional branches.
14265         (add_line_counts): Deal with all-blocks mode, accumulate block
14266         coverage.
14267         (accumulate_line_counts): Adjust, generate local spanning tree for
14268         all-blocks mode.
14269         (output_lines): Adjust.
14270         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
14271         * doc/gcov.texi: Document.
14273 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
14275         * config/h8300/h8300.md: Organize peephole2's that transform
14276         (compare (reg:HI) (const_int)).
14278 2003-03-31  Roger Sayle  <roger@eyesopen.com>
14280         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
14281         (init_emit_once): Initialize dconstm2 and dconsthalf here.
14282         * real.h (dconstm2, dconsthalf): Add prototypes here.
14283         * real.c (real_sqrt): Use dconsthalf rather than local copy.
14284         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
14285         exp(x/2.0) remember to fold the division if possible.
14286         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
14287         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
14288         1.0/(x*x) and pow(x,0.5) as sqrt(x).
14290 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
14292         * config/h8300/h8300.md (a new peephole2): New.
14294 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
14296         * gcse.c (simple_mem): Return false for floating-point accesses
14297         if flag_float_store is true.
14299 2003-03-30  Roger Sayle  <roger@eyesopen.com>
14301         * gcse.c (gcse_constant_p): New function to identify constants
14302         suitable for constant propagation, including COMPARE with two
14303         integer constant arguments.
14304         (hash_scan_set): Use gcse_constant_p.
14305         (find_avail_set): Likewise.
14306         (cprop_insn): Likewise.
14307         (do_local_cprop): Likewise.
14308         (find_implicit_sets): Likewise.
14309         (find_bypass_set): Likewise.
14311 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
14313         * except.h: Remove definition of varray_type.
14315 2003-03-30  Richard Henderson  <rth@redhat.com>
14317         PR opt/10011, opt/10252:
14318         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
14319         before post-gcse cse pass.
14321 2003-03-30  Roger Sayle  <roger@eyesopen.com>
14323         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
14325 2003-03-30  DJ Delorie  <dj@redhat.com>
14327         * profile.c (instrument_edges): Make sure any newly created
14328         jump insns have correct jump label info.
14330 2003-03-30  Richard Henderson  <rth@redhat.com>
14332         * cfgbuild.c (make_edges): Use tablejump_p.
14333         * cfgcleanup.c (label_is_jump_target_p): Likewise.
14334         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
14335         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
14336         (try_redirect_by_replacing_jump): Likewise.
14337         (redirect_edge_and_branch): Likewise.
14338         * cse.c (fold_rtx): Likewise.
14339         * jump.c (delete_related_insns): Likewise.
14340         * rtlanal.c (get_jump_table_offset): Likewise.
14341         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
14343 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14345         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
14346         (STRICT2_WARN): Likewise.
14348 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14350         PR other/6955
14351         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
14352         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
14354 2003-03-30  Richard Henderson  <rth@redhat.com>
14356         PR c/10083
14357         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
14358         don't zero_extend const inputs.
14360 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
14362         * reload1.c (reload_cse_move2add): Fix a comment typo.
14364 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
14366         * config/h8300/h8300.md (a peephole2): Remove useless code.
14368 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
14370         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
14371         (*iorsi3_and_lshiftrt): Likewise.
14372         (*iorsi3_zero_extract): Likewise.
14374 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
14376         * config/h8300/h8300.md (*insv_si_8_8): New.
14377         (*insv_si_8_8_lshiftrt_8): Likewise.
14378         (a peephole2): Likewise.
14380 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14382         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
14383         Uniformly use bugfix instead of bug fix.
14385 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14387         PR doc/895
14388         * ONEWS: Remove those items that already appear in the EGCS
14389         release notes on our web pages.
14391 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
14393         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
14394         TARGET_HARD_FLOAT.  Reformat.
14395         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
14397 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
14399         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
14400         work on Solaris 2.5.1.
14402 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
14404         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
14405         section of h8300.md
14406         (*addsi3_and_nor_r_1): Likewise.
14408 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
14410         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
14411         set up before any trapping memory access if flag_non_call_exceptions.
14413 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
14415         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
14417         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
14419 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
14421         * configure.in: Clarify comments.
14422         * configure: Regenerate.
14424 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
14426         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
14427         label even if pool empty when generating PIC.
14428         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
14430 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
14431             Dhananjay Deshpande  <dhananjayd@kpit.com>
14433         PR target/10205
14434         * config/h8300/h8300.c (h8300_initial_elimination_offset):
14435         Correct the offset computation when TARGET_NORMAL.
14437 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
14439         PR target/10067
14440         * config/sparc/sparc.md (jump pattern): Correct order
14441         when issuing the annuling marker.
14443 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
14445         PR c/8281
14446         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
14447         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
14449 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
14451         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
14452         globalize_label.
14453         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14454         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14455         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14456         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14457         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14458         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14459         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
14461 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
14463         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
14464         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
14465         notes after hoisting.
14466         (load_mems): Adjust replace_loop_mems call.
14468 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
14469             Richard Henderson  <rth@redhat.com>
14471         PR target/10114 and PR target/10084
14472         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
14474 2003-03-27  Richard Henderson  <rth@redhat.com>
14476         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
14478 2003-03-27  Roger Sayle  <roger@eyesopen.com>
14480         * fold-const.c (fold_inf_compare):  New function to simplify FP
14481         comparisons against +Infinity or -Infinity.
14482         (fold):  Optimize floating point comparisons against Infs and NaNs.
14484 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
14486         * libgcov.c: Provide only dummy functions if libc is not available.
14488 2003-03-27  Richard Henderson  <rth@redhat.com>
14490         * real.h (struct real_value): Add signalling.
14491         (EXP_BITS): Decrement.
14492         * real.c (get_canonical_qnan): Don't set MSB-1.
14493         (get_canonical_snan): Likewise.  Set signalling.
14494         (real_identical): Compare signalling.
14495         (round_for_format): Remove force-one-bit on code.
14496         (real_nan): Likewise.  Set signalling.
14497         (encode_ieee_single): Add force-one-bit code; honor signalling.
14498         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
14499         (decode_ieee_single): Set signalling.
14500         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
14502 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
14504         PR ada/9953
14505         * ada/Makefile.in (gnatlib configuration for HPUX): Split
14506         the general section for HPUX into specific sections for
14507         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
14508         11 case.
14510 2003-03-27  Glen Nakamura  <glen@imodulo.com>
14512         PR opt/10087
14513         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
14514         while incrementing giv.
14515         (record_biv): Check for duplicate biv locations and
14516         set (struct induction *) v->same if found.
14518 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
14520         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
14521         v0.9 API change: replace read of UNW_REG_HANDLER with
14522         unw_get_proc_info().
14523         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
14524         with unw_get_proc_info().
14525         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
14526         unw_get_proc_info().
14528 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
14530         * config/rs6000/8540.md: Use presence_set instead of absence_set.
14532 2003-03-26  Richard Henderson  <rth@redhat.com>
14534         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
14536 2003-03-26  Roger Sayle  <roger@eyesopen.com>
14538         PR bootstrap/10051, PR bootstrap/10169.
14539         * mips-tfile.c (init_file): Don't provide a static initializer.
14540         (initialize_init_file): Initialize the contents of init_file.
14541         (add_file): Call initialize_init_file if not already initialized.
14543 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
14545         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
14546         registers used for global asm variables.
14547         (s390_frame_info, s390_arg_frame_offset): Likewise.
14548         (s390_emit_prologue, s390_emit_epilogue): Likewise.
14550 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
14552         * config/rs6000/8540.md: New file.
14554         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
14555         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
14556         reservations for imul.
14558         * config/rs6000/rs6000.md: Include 8540.md.  Change
14559         delayed_compare onto mult_compare for insns generating
14560         multiplication.
14561         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
14562         New type attribute values.
14564         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
14565         fpsimple instead of fp.
14566         (*divsf3_gpr): Use type vecfdiv instead of fp.
14567         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
14568         instead of vecfloat.
14569         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
14570         (spe_brinc): Use type brinc instead of veccomplex.
14571         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
14572         veccomplex.
14573         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
14574         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
14575         *movv2sf_internal): Define type attribute values for all
14576         alternatives.
14577         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
14578         of fpcompare.
14579         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
14580         instead of fpcompare.
14582 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
14584         * config/rs6000/power4.md: Allow delay between dispatch and
14585         function units for simple instructions.  Correct store units.
14586         Allow branch to occupy as many dispatch slots as necessary.
14588 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
14590         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
14591         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
14592         zero extend old to it.
14593         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
14594         operand.
14596 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
14598         PR target/7784
14599         * reload.c (find_reloads_address): Handle
14600         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
14601         all base registers.
14603 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
14605         PR other/10203
14606         * version.c: Reference the GCC web site in the URL.
14608 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
14610         * c-incpath.c (add_standard_paths): Add both "translated" and
14611         non-translated header paths.
14613 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
14615         * doc/install.texi (*-*-freebsd*): Update with known status.
14617 2003-03-21  Jason Merrill  <jason@redhat.com>
14619         PR optimization/10171
14620         * unroll.c (unroll_loop): Don't delete the jump at the end unless
14621         we also delete a jump at the beginning.
14623 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
14625         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
14626         contributor.
14628 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
14630         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
14631         constants are not expensive.
14633 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
14635         PR opt/10056
14636         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
14637         jump jumping to the next instruction.
14638         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
14640 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14642         * doc/passes.texi (Passes): Properly document that we do not
14643         perform jump2 any longer; remove command-line option -dJ.
14645 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
14647         PR optimization/8746
14648         * config/i386/i386.md (and promoting splitters): Disable HImode to
14649         SImode promoting when the sign bit matters and is not preserved, or
14650         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
14651         for size.
14653 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14655         * config/h8300/h8300.md (a peephole2): Extend to support loads
14656         in QImode and HImode.
14658 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
14660         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
14661         _return_far
14662         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
14663         (MULTILIB_EXCEPTIONS): Likewise.
14664         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
14665         by calling some board support routine.
14666         ("call_value"): Likewise.
14667         ("*return_void"): Likewise for return.
14668         ("*return_16bit"): Likewise.
14669         ("*return_32bit"): Likewise.
14670         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
14671         for 68HC11 too.
14672         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
14673         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
14674         -mlong-calls for 68HC11.
14675         * config/m68hc11/larith.asm (declare_near): New macro.
14676         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
14677         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
14678         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
14679         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
14680         (__mulhi32): Likewise.
14681         (ret): Update macro for 68HC11.
14682         (__far_trampoline): Implement for 68HC11.
14683         (__call_a16, __call_a32, __return_void, __return_16): New support
14684         routines for 68HC11 memory bank switching calling support.
14685         (__return_32): Likewise.
14687 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
14689         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
14691 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
14693         * doc/install.texi (Testing): Mention test result links from build
14694         status pages.
14696 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
14698         * function.c (put_var_into_stack): Change bool parameter to int.
14699         (gen_mem_addressof): Likewise.
14700         * rtl.h (gen_mem_addressof): Likewise.
14701         * tree.h (put_var_into_stack): Likewise.
14702         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
14703         gen_mem_addressof or put_var_into_stack.
14704         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14705         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
14707 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14709         * config/h8300/h8300.md (a peephole2): New.
14711 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
14713         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
14715 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14717         * doc/contrib.texi (Contributors): Update Janis Johnson.
14719 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
14721         PR target/10072
14722         * combine.c (simplify_if_then_else): Check that the mode
14723         has MODE_INT class before applying the (OP Z (mult COND C2))
14724         transformation.
14726 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
14728         PR optimization/9414
14729         * config/sparc/sparc.md (widening peepholes): Use
14730         widen_memory_access instead of change_address.
14732 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
14734         PR c++/7086
14735         * c-typeck.c (c_mark_addressable): Adjust calls to
14736         put_var_into_stack.
14737         * expr.c (expand_expr): Likewise.
14738         * function.c (put_var_into_stack): Add rescan parameter.  Do not
14739         call fixup_var_refs when rescan is false.
14740         (gen_mem_addressof): Likewise.
14741         (assign_parms): Adjust calls to put_var_into_stack.
14742         (setjmp_protect): Likewise.
14743         (setjmp_protect_args): Likewise.
14744         * rtl.h (gen_mem_addressof): Change prototype.
14745         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
14746         * tree.h (put_var_into_stack): Change prototype.
14748 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
14750         PR middle-end/9967
14751         * builtins.c (expand_builtin_fputs): When optimizing for size,
14752         don't transform fputs into fwrite.
14754 2003-03-23  Glen Nakamura <glen@imodulo.com>
14756         PR c/8224
14757         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
14758         when signedness changes for division or modulus.
14760 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
14762         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
14763         globalize_label.
14765 2003-03-23  Roger Sayle  <roger@eyesopen.com>
14767         PR c/10178
14768         * stmt.c (expand_end_case_type): Check for overflow in range when
14769         determining whether to use a bit-test implementation.
14771 2003-03-23  Richard Henderson  <rth@redhat.com>
14773         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
14774         before flow2.
14775         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
14777 2003-03-23  Richard Henderson  <rth@redhat.com>
14779         PR opt/10116
14780         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
14781         from then_bb or else_bb after flow2.
14783 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
14785         * configure.in: Check whether it is necessary to link against
14786         libm to use ldexp.
14787         * configure: Regenerate.
14788         * Makefile.in: Add LDEXP_LIB substitution variable.
14790 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
14792         * config/h8300/h8300.md: Fix comment typos.
14794 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14796         * pa.c (output_cbranch): Fix typo in comment.
14798 2003-03-22  Richard Henderson <rth@redhat.com>
14800         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
14801         after reload.
14803 2003-03-22  DJ Delorie  <dj at redhat dot com>,
14804         Bruce Korb  <bkorb at gnu dot org>
14806         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
14807         buggy Solaris 2.6 mutex/cond initializers.
14808         (solaris_mutex_init): Rename to solaris_mutex_init_2.
14809         * fixinc/fixincl.x: Regenerate.
14810         * fixinc/tests/base/pthread.h: Update.
14811         * fixinc/fixincl.c(initialize): be explicit about the default case
14812         and indicate verbose level when being very, very verbose.
14813         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
14815 2003-03-22  Andreas Jaeger  <aj@suse.de>
14817         * config/i386/i386.c (ix86_init_machine_status): Return value.
14819 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14821         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
14822         conditional branch to the following instruction.  Use next_real_insn
14823         instead of next_active_insn.
14824         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
14825         instead of next_active_insn.
14827 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
14829         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
14830         instead of 'm' constraint in forced-split alternatives.
14831         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
14832         VALIDATE_ADDRESS parameter to operand_subword.
14834 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14836         * config/h8300/h8300.c (notice_update_cc): Correctly handle
14837         the case where the set destination is STRICT_LOW_PART.
14839 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
14841         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
14842         c30 instead of a c40 processor.
14844 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
14846         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
14848 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
14850         * c-common.c: Include intl.h.
14851         (shadow_warning): Rewrite to allow better diagnostic translations.
14852         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
14853         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
14854         use it throughout.
14855         * Makefile.in (c-common.o): Add intl.h.
14857 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
14859         * config.gcc: Remove 'float_format'.
14861         * fixproto: Define NULL and size_t in generated stdlib.h and
14862         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
14863         Rearrange file generation loop for readability.  Generate time.h,
14864         string.h if missing.
14865         * tsystem.h: Include <string.h>, <time.h> unconditionally.
14866         * config.gcc: Blow away POSIX defines.
14868 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
14870         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
14872 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
14874         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
14875         writing .interrupt command.
14876         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
14877         if it's a far or near function.
14878         ("call_value"): Likewise.
14879         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
14880         near attributes.
14881         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
14882         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
14883         (m68hc11_initial_elimination_offset): Set current_function_far
14884         according to attributes.
14885         (expand_prologue): Likewise.
14886         (trap_handler_symbol): New global to keep track of trap handlers.
14887         (m68hc11_encode_section_info): Mark symbol as far if needed; set
14888         trap symbol.
14889         (m68hc11_is_far_symbol): New function.
14890         (m68hc11_is_trap_symbol): New function.
14891         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
14892         (m68hc11_is_trap_symbol): Declare.
14894 2003-03-21  Jan Hubicka  <jh@suse.cz>
14896         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
14897         only when amount of saved regs changed.
14898         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
14899         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
14901 2003-03-21  Jan Hubicka  <jh@suse.cz>
14903         PR inline-asm/7916
14904         * function.c (instantiate_virtual_regs_lossage): New function.
14905         (instantiate_virtual_regs_1): Use it.
14906         (instantiate_virtual_regs): Do not continue in substition when insn has
14907         been deleted.
14909 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14911         * combine.c (make_field_assignment): Fix a warning.
14913 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14915         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
14917 2003-03-21  Dale Johannesen  <dalej@apple.com>
14919         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
14920         priority for R2 on Darwin.
14921         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
14923 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14925         * combine.c (make_field_assignment): Remove unnecessary AND
14926         when storing into zero_extract.
14928 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
14930         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
14931         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
14932         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
14933         in comment.
14935 2003-03-21  DJ Delorie  <dj@redhat.com>
14937         * optabs.c (init_integral_libfuncs): Make sure we init at least up
14938         to "long long" size words.
14940 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
14942         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
14943         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
14944         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
14946 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14948         PR doc-bug/9813
14949         * doc/extend.texi: Move misplaced paragraph about underscores in
14950         variables in macros.
14952 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
14953             Richard Henderson  <rth@redhat.com>
14955         PR optimization/8366
14956         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
14957         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
14958         PIC+SYMBOLIC_CONST in other modes than Pmode.
14959         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
14960         the form PIC+SYMBOLIC_CONST as mode dependent.
14962 2003-03-21  DJ Delorie  <dj@redhat.com>
14964         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
14965         sure we always emit at least one insn.
14967 2003-03-21  Christopher Faylor  <cgf@redhat.com>
14969         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
14970         stub t-cygming. Use common target header cygming.h. Add extra
14971         c_target_obj and cxx_target_obj file. Default cygwin to posix
14972         threading. Enforce i386 as float format.
14973         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
14974         Remove cygwin.h as target header. Use common target header
14975         cygming.h  Enforce i386 as float format. Correct typo.
14976         * config/i386/cygming.h: New file, containing definitions
14977         common to mingw32 and cygwin.
14978         * config/i386/cygwin.h: Remove definitions common to cygwin and
14979         mingw.  Simplify special spec logic.  Define "wrappers" around
14980         certain include path defines to accommodate -mno-cygwin.
14981         Remove some #if 0'ed code.
14982         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
14983         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
14984         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
14985         * config/i386/mingw32.h: Remove definitions common to cygwin and
14986         mingw.
14987         (EXTRA_OS_CPP_BUILTINS): Adjust.
14988         (TARGET_VERSION): Define.
14989         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
14990         mingw32.h definitions.
14991         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
14992         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
14993         Add compilation rules for cygwin1.o cygwin2.o.
14994         * config/i386/cygwin1.c: New file.
14995         * config/i386/cygwin2.c: New file.
14996         * config/i386/t-cygming: New makefile stub.
14998 2003-03-20  Richard Henderson  <rth@redhat.com>
15000         * fold-const.c (extract_muldiv_1): Revert changing order of
15001         operands in case MULT_EXPR of 2003-02-16 patch.
15003 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
15004         Merge changes from new-regalloc-branch
15006         From Michael Matz  <matz@suse.de>
15007         * df.c (df_ref_record_1): Move init of loc to safe point.
15008         Only recurse on interesting things in parallels.
15009         Handle CLASS_CANNOT_CHANGE_MODE smarter.
15010         (df_uses_record): Ditto.
15012         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
15013         it's already okay to use memory operands in (IE doesn't require
15014         adding another insn or anything).
15016 2003-03-20  Richard Henderson  <rth@redhat.com>
15018         PR middle-end/6348
15019         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
15020         different from word_mode.
15022 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15024         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
15025         source operand to those that can be extracted with bld.
15027 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
15029         PR 10066
15030         * arm.md (UNSPEC_PIC_BASE): New constant.
15031         (pic_add_dot_plus_four): Wrap with unspec.
15032         (pic_add_dot_plus_eight): Likewise.
15034 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15036         * config/h8300/h8300.md (*insv_si_1_n): New.
15037         (*insv_si_1_n_lshiftrt): Likewise.
15039 2003-03-20  Roger Sayle  <roger@eyesopen.com>
15041         * fold-const.c (fold_mathfn_compare): New function to simplify
15042         comparisons against built-in math functions.  Fold comparisons
15043         of sqrt against constants.
15044         (fold): Call fold_mathfn_compare when appropriate.
15046 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
15048         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
15049         information.
15051 2003-03-20  Per Bothner  <pbothner@apple.com>
15053         Various cleanups to help compile server.
15055         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
15056         and pass that to _cpp_init_hashtable.
15057         (cpp_read_main_file):  Drop hash_table* argument; don't call
15058         _cpp_init_hashtable.
15059         * cpplib.h:  Update declarations to match.
15060         * c-opts.c (c_common_init_options):  Pass ident_hash to
15061         cpp_create_reader.
15062         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
15063         * fix-header.c (read_scan_file):  Likewise pass NULL table to
15064         cpp_create_reader rather than cpp_read_main_file.
15066         * cppfiles.c (cpp_rename_file):  Generalized and renamed
15067         to cpp_change_file.
15068         * cpplib.h:  Update declaration to match.
15069         * c-opts.c (push_command_line_line, finish_options):  Change
15070         cpp_rename_file calls to cpp_change_file.
15072         * line-map.c (add_line_map):  Allow leaving the outermost file.
15073         Allowing entering an outermost-file after the initial time.
15075         * toplev.c (pop_srcloc):  Allow popping from initial file.
15077 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
15079         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
15081 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15083         * config/h8300/h8300.md (a peephole2): New.
15085 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15087         * config/h8300/h8300.md (*addsi3_and_r_1): New.
15088         (*addsi3_and_not_r_1): Likewise.
15090 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
15092         * Makefile.in (STRICT2_WARN): Add @WERROR@.
15093         (GCC_WARN_CFLAGS): Remove $(WERROR).
15094         (fixinc.sh-warn): New.
15095         * ada/Make-lang.in (ada-warn): Add $(WERROR).
15096         * cp/Make-lang.in (cp-warn): Add $(WERROR).
15097         * f/Make-lang.in (f-warn): Add $(WERROR).
15098         * java/Make-lang.in (java-warn): Add $(WERROR).
15099         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
15101 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
15103         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
15104         langhooks-def.h (lhd_tree_dump_dump_tree),
15105         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
15106         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
15107         true and false in return statements.
15109 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
15111         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
15112         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
15113         DWARF_INITIAL_LENGTH_SIZE.
15114         (output_compilation_unit_header, output_pubnames, output_aranges)
15115         (output_line_info): Output 0xffffffff escape value for 64-bit
15116         DWARF extension.
15117         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
15119 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
15121         * config/s390/s390.c (s390_preferred_reload_class): Do not
15122         force constants to the pool unless necessary.
15123         (s390_decompose_address): Prefer to use pointer as base,
15124         not index register.
15125         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
15126         Q alternative.
15127         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
15128         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
15129         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
15130         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
15131         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
15133 2003-03-19  Jan Hubicka  <jh@suse.cz>
15135         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
15136         * i386.c (use_fast_prologue_epilogue): Remove.
15137         (ix86_frame): New field save_regs-using_mov;
15138         (ix86_compute_frame_layout):  Decide on fast prologues;
15139         allocate saved registers in red zone.
15140         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
15142 2003-03-19  Nick Clifton  <nickc@redhat.com>
15144         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
15146 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15148         PR 10062
15149         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
15150         * pa-protos.h (output_lbranch): New prototype.
15151         * pa.c (compute_frame_size): Change size of the frame marker on the
15152         64-bit ports to 48 bytes.
15153         (pa_output_function_prologue): Document why SAVE_SP is set.
15154         (hppa_expand_prologue): Save previous stack pointer into frame marker
15155         on targets which use the hpux unwind library.
15156         (output_cbranch): Use output_lbranch.
15157         (output_lbranch): New function to output long unconditional branches.
15158         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
15159         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
15160         64-bit ports.
15161         * pa.md (jump): Use output_lbranch.
15162         (allocate_stack): New expander for dynamic stack allocation.
15164 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
15166         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
15167         when debugging on XCOFF targets.  Delete "abi" temp.
15169         PR target/10073
15170         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
15172 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
15174         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
15175         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
15176         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
15178         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
15179         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
15180         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
15182 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
15184         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
15185         the result of machopic_function_base_name.
15186         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
15187         string rather than a static array.
15189         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
15191         * gengtype.c: Include rtl.h.
15192         (enum rtx_code): Don't define.
15193         (rtx_format): Make declaration match rtl.h.
15194         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
15195         users.
15196         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
15197         * Makefile.in (gengtype.o): Update dependencies.
15199 2003-03-18  Andreas Schwab  <schwab@suse.de>
15201         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
15202         martin@blom.org.
15204 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
15206         * function.c (next_block_index): Mark with GTY.
15208         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
15210 2003-03-18  Richard Henderson  <rth@redhat.com>
15212         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
15213         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
15214         until after reload.
15216 2003-03-18  Richard Henderson  <rth@redhat.com>
15218         * builtins.c (expand_builtin_unop): New target_mode operand;
15219         use it to convert the result to the correct mode.
15220         (expand_builtin): Update all callers.
15222 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
15224         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
15226 2003-03-18  Jan Hubicka  <jh@suse.cz>
15228         * i386.md:  Fix previous commit that mistakely applied the patch
15229         twice.
15231         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
15232         canonicalized.
15233         (memrefs_conflict_p): Likewise.
15234         (addr_side_effect_eval): Canonicalize the constructed address.
15236 2003-03-18  Jan Hubicka  <jh@suse.cz>
15238         * i386.md (cvtts?2si peep2): New.
15240 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15242         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
15244 2003-03-18  Andreas Schwab  <schwab@suse.de>
15246         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
15247         for format.
15249 2003-03-17  Jason Merrill  <jason@redhat.com>
15251         PR c++/10091
15252         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
15253         an unaligned member of TREE_ADDRESSABLE type.
15255 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
15257         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
15258         (TARGET_PROFILE_KERNEL): Define.
15259         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
15260         (PROFILE_BEFORE_PROLOGUE): Don't define.
15261         (PROFILE_KERNEL): Remove hacks.
15262         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
15263         (rs6000_stack_info): No need to save lr if just for profiling when
15264         TARGET_PROFILE_KERNEL.
15265         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
15266         (output_function_profiler): Localize label generation.  Emit code
15267         for kernel profiling.
15269 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
15271         * config/h8300/h8300-protos.h: Add a prototype for
15272         byte_accesses_mergeable_p.
15273         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
15274         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
15275         (a splitter): Likewise.
15276         (*iorsi3_ashift_16_ashift_24): Likewise.
15277         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
15279 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15281         * dwarf2asm.h: Delete obsolete comment.
15282         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
15283         dw2_asm_output_pcrel, dw2_asm_output_addr,
15284         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
15285         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
15286         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
15287         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
15289 2003-03-17  Zack Weinberg <zack@codesourcery.com>
15291         * c-tree.h (struct lang_identifier): Remove error_locus field.
15292         (IDENTIFIER_ERROR_LOCUS): Kill.
15293         (record_function_scope_shadow): New prototype.
15294         * c-typeck.c (build_external_ref): Don't complain if
15295         decl is error_mark_node.  When not at file scope, bind the
15296         decl's local value to error_mark_node to suppress further
15297         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
15299         * c-decl.c (get_function_binding_level): New static function.
15300         (record_function_scope_shadow): New exported function.
15301         (c_make_fname_decl): Use get_function_binding_level.
15303 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
15305         * stmt.c (tail_recursion_args): Call promote_mode to set
15306         unsignedp flag correctly before calling convert_move.
15308 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15310         * loop-unroll.c (decide_peel_completely,
15311         decide_unroll_constant_iterations, decide_unroll_stupid,
15312         decide_unroll_runtime_iterations, decide_peel_simple): Set
15313         loop->has_desc.
15315 2003-03-17  Jan Hubicka  <jh@suse.cz>
15317         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
15319 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
15321         * function.c (assign_parms): For a struct value address passed as
15322         first argument, delay the function's result RTL setup code until
15323         after the emission of parameter conversions.
15325 2003-03-17  Dave Love  <fx@gnu.org>
15326             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15328         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
15329         __arch64__ to match Compaq cc.
15331 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
15333         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
15334         (c_common_init): Set EBCDIC in cpp options.
15335         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
15336         not conditional compilation.
15337         * cpplib.h (struct cpp_options): New entry EBCDIC.
15339 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
15341         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
15343 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15345         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
15346         argument to 0 for redirect_jump.
15348 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
15350         PR c++/8805
15351         * except.c (eh_region_u_cleanup): Add prev_try.
15352         (expand_eh_region_end_cleanup): Set it.
15353         (reachable_handlers): Use it to skip over cleanup blocks.
15355 2003-03-17  Andreas Jaeger  <aj@suse.de>
15357         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
15359 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
15361         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
15362         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
15363         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
15364         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
15366 2003-03-16  Richard Henderson  <rth@redhat.com>
15368         * simplify-rtx (simplify_binary_operation): Don't abort for
15369         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
15371 2003-03-16  Richard Henderson  <rth@redhat.com>
15373         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
15374         optimize_size as well.
15376 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
15378         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
15379         for D register to specify the low part of it, aka B.
15380         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
15381         the register if we are loading 1 or -1 to it; avoid using temp
15382         register when moving X/Y to Y/X.
15383         (m68hc11_gen_movqi): Likewise.
15384         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
15386 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
15388         PR optimization/9016
15389         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
15390         into the constant pool.
15392 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
15394         PR target/9164
15395         * tree.c (get_narrower): For extensions with unchanged bit number,
15396         return the unsignedness of the outer mode.
15398 2003-03-16  Roger Sayle  <roger@eyesopen.com>
15400         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
15401         to avoid "may be used uninitialized" warning on ia64-hpux.
15402         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
15404 2003-03-16  Andreas Jaeger  <aj@suse.de>
15406         * configure.in: Improve check for memcheck.h.
15407         * configure: Regenerated.
15409 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
15411         * doc/cppopts.texi: Remove documentation of -A-.
15413 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
15415         * doc/libgcc.texi: Remove @tie.
15417 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
15419         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
15420         (rtx_pair): Added new element update_label_nuses, renamed to
15421         replace_label_data.
15422         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
15423         replace_label_data instead of rtx_pair.
15424         * loop.c (load_mems): Likewise.
15425         * rtlanal.c (replace_label): Replace label in pool constants and in
15426         INSN_LIST (in REG_LABEL note).
15427         (subrtx_p): Renamed to rtx_referenced_p.
15428         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
15429         LABEL_REF with CODE_LABEL, traverse constants from pool.
15431 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
15432             Zack Weinberg  <zack@codesourcery.com>
15434         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
15435         * doc/libgcc.texi: New file.
15436         * doc/interface.texi: Delete paragraph about libgcc interface.
15437         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
15439 2003-03-15  Jason Merrill  <jason@redhat.com>
15441         PR debug/9039
15442         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
15444         PR debug/6387
15445         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
15446         function DIEs at toplevel.
15447         (decls_for_scope): At -g1, don't descend into subblocks.
15449 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
15451         * varasm.c (struct rtx_const): Change type of un.addr member
15452         to struct holding an additional 'symbol' member.
15453         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
15454         with equal string addresses as equal.
15455         (simplify_subtraction): Adapt to struct rtx_const change.
15457 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
15459         * fix-header.c (read_scan_file): Read main file before handling -D.
15461 2003-03-15  Roger Sayle  <roger@eyesopen.com>
15463         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
15464         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
15465         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
15466         (find_sub_basic_blocks): Likewise.
15467         * cgraphunit.c (cgraph_expand_functions): Likewise.
15468         * dwarf2out.c (prune_unused_types): Likewise.
15469         * expr.c (store_field): Likewise.
15470         * genextract.c (print_path): Likewise.
15471         * haifa-sched.c (schedule_insn): Likewise.
15472         * lcm.c (compute_antinout_edge): Likewise.
15473         * loop-unroll.c (decide_peel_once_rolling): Likewise.
15474         * ra-colorize.c (ra_colorize_free_all): Likewise.
15475         * ra-debug.c (dump_igraph): Likewise.
15476         (debug_hard_reg_set): Likewise.
15477         * reg-stack.c (reg_to_stack): Likewise.
15478         * rtlanal.c (refers_to_regno_p): Likewise.
15479         * tracer.c (layout_superblocks): Likewise.
15481 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
15483         * fix-header.c (read_scan_file): Fix thinko.
15485 2003-03-15  Glen Nakamura  <glen@imodulo.com>
15487         * reload1.c (choose_reload_regs): Use && instead of ||
15488         with REG_CANNOT_CHANGE_MODE_P condition.
15490 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
15492         * Makefile.in: Update.
15493         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
15494         * c-lex.c (init_c_lex): Register builtins hook is dead.
15495         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
15496         (c_common_decode_option): Don't call cpp_handle_option.
15497         Handle -A, -D and -U.
15498         (handle_deferred_opts): Simplify.
15499         (finish_options): Define builtins and command line macros.
15500         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
15501         * cppinit.c: Don't include intl.h.
15502         (init_builtins): Rename cpp_init_builtins.  No hook to call.
15503         (init_library): Don't need to sort options.
15504         (cpp_create_reader): Don't set pending.
15505         (cpp_destroy): Don't free pending.
15506         (struct pending_option, cl_directive_handler, struct cpp_pending,
15507         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
15508         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
15509         cl_options, cpp_handle_option): Remove.
15510         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
15511         cpp_finish_options): Remove.
15512         (cpp_init_builtins): New.
15513         * fix-header.c (read_scan_file): Update to handle -D.  Fix
15514         handling of -I.  Replace call to cpp_finish_options.
15516 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15518         PR optimization/9387
15519         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
15520         for conditional returns.
15522 2003-03-14  Jason Merrill  <jason@redhat.com>
15524         PR optimization/6871
15525         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
15527 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
15529         * c-opts.c (finish_options): New.
15530         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
15531         (missing_arg): Handle OPT_include and OPT_imacros.
15532         (c_common_init, c_common_parse_file): Use finish_options.
15533         (handle_deferred_opts): Update.
15534         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
15535         (cpp_finish_options): Don't handle -imacros here.
15536         (no_fil): Remove.
15537         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
15539 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
15541         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
15542         rs6000_maybe_dead if !fromprolog.
15544 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
15546         * Makefile.in: Update.
15547         * c-common.h (fe_file_change, pp_file_change): New.
15548         * c-lex.c (init_c_lex): Don't set cb_file_change.
15549         (c_common_parse_file): Move to c-opts.c.
15550         (cb_file_change): Rename fe_file_change.
15551         * c-opts.c: Include debug.h.
15552         (warn_unused_macros, include_cursor): New.
15553         (push_command_line_include, cb_file_change): New.
15554         (COMMAND_LINE_OPTIONS): Handle -include.
15555         (c_common_decode_option): Use local warn_unused_macros.
15556         Handle OPT_include.
15557         (c_common_post_options): Set file change callback.
15558         (handle_deferred_opts): Skip -include.  Don't free the array.
15559         (c_common_init): Call cpp_finish_options here, and push an
15560         initial -include file.
15561         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
15562         (preprocess_file): Don't call cpp_finish_options.
15563         (init_pp_output): Don't set the file change callback.
15564         (pp_file_change): Return if no line commands or no output.
15565         * cpphash.h (next_include_file, first_unused_line): Remove.
15566         * cppinit.c (include_head, include_tail): Remove.
15567         (cpp_destroy): Don't free -include chain.
15568         (cpp_finish_options): Don't handle -include, or worry about
15569         -Wunused-macros.
15570         (_cpp_maybe_push_include_file): Remove.
15571         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
15572         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
15573         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
15574         Used flag is set based upon the state of the warn_unused_macros
15575         flag, and so use of first_unused_line is unnecessary.
15577 2003-03-13  Jan Hubicka  <jh@suse.cz>
15579         * cselib.c (clear_table): Do not take argument; always clear just
15580         used slots.
15581         (cselib_process_insn):  Update call of clear_table
15582         (cselib_init): Do not call clear_table.
15583         (cselib_finish): Clear table.
15585         * cse.c (count_reg_usage): Do not check side_effects_p.
15586         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
15587         like noop.
15588         (find_reg_equal_equiv_note): Do not use find_reg_note.
15590 2003-03-14  Richard Henderson  <rth@redhat.com>
15592         PR target/9700
15593         * config/alpha/alpha.c (alpha_va_start): Account for
15594         current_function_pretend_args_size in the AP offset.
15596         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
15597         (INITIAL_ELIMINATION_OFFSET): Move out of line.
15598         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
15599         (alpha_initial_elimination_offset) New.
15600         * config/alpha/alpha-protos.h: Update.
15602 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
15604         * stmt.c (expand_start_case): Call emit_queue ().
15606 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
15607             Alexandre Oliva  <aoliva@redhat.com>
15609         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
15610         words in new abis.
15612 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
15614         PR optimization/8396
15615         * tree-inline.c (initialize_inlined_parameters): Make sure the value
15616         of read-only constant arguments is passed with the right type.
15618 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
15620         * doc/extend.texi (Function Names): Make the example compilable.
15622 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
15624         * config/rs6000/rs6000.c (processor_target_table): Really allow
15625         GP optional instructions on Power4.
15627 2003-03-13  Roger Sayle  <roger@eyesopen.com>
15629         * calls.c (flags_from_decl_or_type): Factor and remove redundant
15630         conditional tests.
15632 2003-03-13  Mike Stump  <mrs@apple.com>
15634         * ggc-page.c (struct page_entry): Remove varray.h header.
15635         Add index_by_depth field.
15636         Remove save_in_use_p field.
15637         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
15638         by_depth_max, by_depth, and save_in_use fields.
15639         (INITIAL_PTE_COUNT): Add.
15640         (save_in_use_p_i): Add.
15641         (save_in_use_p): Add.
15642         (adjust_depth): Add.
15643         (move_ptes_to_front): Add.
15644         (push_depth): Add.
15645         (push_by_depth): Add.
15646         (prefetch): Add.
15647         (free_page): Add support for and use faster data structures.
15648         (ggc_alloc): Likewise.
15649         (init_ggc): Likewise.
15650         (ggc_recalculate_in_use_p): Likewise.
15651         (ggc_pop_context): Likewise.
15652         (clear_marks): Likewise.
15653         (ggc_pch_read): Likewise.
15654         * Makefile.in (ggc-page.o): Remove varray.h.
15656 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
15658         * ChangeLog: Rotated last year's entries to...
15659         * ChangeLog.8: New.
15661         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
15662         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
15663         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
15664         config/ia64/ia64-protos.h, config/ia64/ia64.c,
15665         config/ia64/ia64.h, config/ia64/ia64.md,
15666         config/ia64/itanium1.md, config/ia64/itanium2.md,
15667         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
15668         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
15670 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
15672         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
15673         Differentiate endianness.
15674         (s6000_override_options): Use cpu type instead of TARGET_SPE.
15676 2003-03-13  Nick Clifton  <nickc@redhat.com>
15678         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
15679         LDM instructions with writeback enabled.
15680         (output_return_instruction): Likewise.
15682         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
15683         (CALL_USED_REGISTERS): Remove definition.
15684         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
15686 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
15688         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
15689         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
15690         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
15691         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
15692         (rs6000_legitimize_address): Formatting.
15693         (rs6000_emit_move): Likewise.
15694         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
15695         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
15696         (rs6000_elf_select_section): Comment reason for shlib being
15697         set for ABI_AIX.
15698         (rs6000_elf_unique_section): Likewise.
15699         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
15700         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
15701         as well as flag_pic.
15702         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
15703         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15704         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
15706 2003-03-13  Richard Henderson  <rth@redhat.com>
15708         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
15710         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
15711         (ia64_gp_save_reg): Remove.
15712         (struct ia64_frame_info): Move to the beginning of the file;
15713         add reg_save_gp.
15714         (ia64_expand_call): Rearrange for new call patterns.
15715         (ia64_reload_gp): New.
15716         (ia64_split_call): New.
15717         (ia64_compute_frame_size): Allocate reg_save_gp.
15718         (ia64_expand_prologue): Save reg_save_gp.
15719         (ia64_expand_epilogue): Don't restore gp.
15720         (ia64_hard_regno_rename_ok): Remove R4 hack.
15721         (ia64_function_ok_for_sibcall): New.
15722         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
15723         call try_split on sibcall pattern.
15724         * config/ia64/ia64-protos.h: Update.
15725         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
15726         Rename from nopic versions.  Confiscate 2nd argument to call as
15727         a marker.
15728         (call_pic, call_value_pic, sibcall_pic): Remove.
15729         (call_gp, call_value_gp, sibcall_gp): New.
15730         (builtin_setjmp_setup): Remove.
15731         (builtin_setjmp_receiver): Call ia64_reload_gp.
15733 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15735         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15736         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
15737         "GNU CC" with "GCC".
15739         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
15740         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15741         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
15742         GCC, not GNU CC.
15744         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
15745         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
15747         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
15748         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
15749         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
15750         "GNU CC" with "GCC".
15752         * config/v850/lib1funcs.asm, config/v850/rtems.h,
15753         config/v850/v850-c.c, config/v850/v850-protos.h,
15754         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
15755         GCC, not GNU CC.
15757         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
15758         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
15759         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
15760         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
15761         GNU CC.
15763 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
15765         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
15767 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15769         * fixinc/fixinc.interix: Remove dead code (most of it).
15770         * fixinc/fixinc.dgux: Remove.
15772         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
15773         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
15775 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15777         * pa.c (pa_init_builtins): Fix warning.
15779 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
15781         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
15782         (ASM_OUTPUT_XDATA_SHORT): Remove.
15783         (ASM_OUTPUT_XDATA_INT): Remove.
15784         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
15785         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
15786         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
15787         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
15789 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
15791         PR c++/7050
15792         * expr.c (store_expr): Don't attempt to store void-typed trees,
15793         just evaluate them for side effects.
15795 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15797         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
15798         * cppinit.c (push_include): Move with changes to cppfiles.c.
15799         (cpp_read_main_file): Mark named operators here...
15800         (cpp_finish_options): ...not here.  Update.
15801         (_cpp_maybe_push_include_file): Update.
15802         * cpplib.h (cpp_push_include, cpp_rename_file): New.
15804 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15806         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
15807         _gcc_COMPUTE_GAS_VERSION.
15808         * configure.in: Use them.
15809         * configure: Regenerate.
15811 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
15813         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
15814         to detect carry.
15815         (subdi3): Reorder emitted instructions.
15817 2003-03-12  Andreas Jaeger  <aj@suse.de>
15819         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
15820         NETBSD_OS_CPP_BUILTINS_LP64.
15822 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
15824         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
15825         Rearrange.  Reorganize.
15826         * configure.in: Rearrange.
15827         * configure: Regenerate.
15829 2003-03-12  Andreas Jaeger  <aj@suse.de>
15831         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
15832         LP64 targets.
15834         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
15835         _LP64.
15837         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
15838         _LP64 macros here.
15839         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15841         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
15842         NETBSD_OS_CPP_BUILTINS_LP64.
15843         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
15844         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
15846         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
15848 2003-03-12  Jan Hubicka  <jh@suse.cz>
15850         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
15852 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
15854         Fix PR target/9797 and PR c/9853.
15855         * stmt.c (expand_decl_init): Call push_temp_slots () and
15856         pop_temp_slots ().
15858 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
15860         * sh.c: Include basic-block.h.
15861         (sh_output_mi_thunk, emit_load_ptr): New functions.
15862         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
15864 2003-03-12  Nick Clifton  <nickc@redhat.com>
15866         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
15867         (CALL_USED_REGISTERS): Likewise.
15868         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
15869         describing how this value is calculated.
15871 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
15873         * configure.in (rlim_t): Define to long if no valid definition
15874         found in sys/resource.h.
15875         * config.in, configure: Regenerate.
15877 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15879         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
15880         TARGET_OS_CPP_BUILTINS.
15881         * config/mcore/mcore-pe.h: Similarly.
15882         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
15883         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
15885 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15887         PR c/9928
15888         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
15889         only if it is a VAR_DECL.
15891 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15893         PR optimization/9888
15894         * config/i386/i386.md (jcc_1): Fix range.
15895         (jcc_2): Likewise.
15896         (jump): LIkewise.
15897         (doloop_end_internal): Likewise.
15899 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
15901         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
15902         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
15903         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
15904         DLL_IMPORT_EXPORT_PREFIX and "i."
15905         (i386_pe_dllexport_name_p): Here.
15906         (i386_pe_dllimport_name_p): Here.
15907         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
15908         not 9 chars when getting identifier name.
15909         (i386_pe_mark_dllimport): Here.
15910         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
15911         not 9 chars when getting identifier name. Correct comment.
15912         (i386_pe_strip_name_encoding): Here. Add comments for different
15913         cases.
15914         (gen_fastcall_suffix): Break down xmalloc() argument to
15915         components.
15916         (gen_stdcall_suffix): Likewise.
15917         Update copyright year.
15919 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
15921         PR optimization/9888
15922         * config/i386/i386.md (movsi_1): Remove special alternatives
15923         for %eax register.
15924         (movsi_1_nointernunit): Likewise.
15925         (movhi_1): Likewise.
15926         * config/i386/i386.c (memory_address_length): Do not use
15927         short displacement when there is no base.
15928         (ix86_attr_length_address_default): Handle LEA instructions.
15930 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
15932         * c-cppbuiltin.c (builtin_define_std): Make non-static.
15934 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
15936         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
15937         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
15938         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
15939         * config/freebsd.h (CPP_PREDEFINES): Remove.
15940         (TARGET_OS_CPP_BUILTINS): New.
15941         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
15942         instead of TARGET_OS_CPP_BUILTINS.
15943         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
15945 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
15947         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
15949 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15951         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
15952         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
15954         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
15956 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
15958         * toplev.c (independent_decode_option): Return success for --help,
15959         --target-help and --version.
15961 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
15963         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
15964         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
15965         specified.
15966         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
15967         DRIVER_SELF_SPECS.
15968         (LINK_SPEC): Let endian options affect the linker emulation name.
15970 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
15972         * sh.md (reload_inqi): Fix mode for source in second set.
15974 2003-03-11  Jan Hubicka  <jh@suse.cz>
15976         * cselib.c (cselib_invalidate_mem_1): Move too ...
15977         (cselib_invalidate_mem): ... here; use new list
15978         (dummy_val, first_containing_mem): New static variables.
15979         (clear_table): Initialize first_containing_mem.
15980         (discard_useless_values):  Compact the containing_mem list.
15981         (add_mem_for_addr): Add to the list.
15982         * cselib.h (cselib_val): Add next_containing_mem.
15984 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15986         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
15987         instructions for e500.
15989 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
15991         * Makefile.in: Update.
15992         * c-cppbuiltin.c: Include tm_p.h.
15994 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
15996         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
15998         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
15999         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
16000         (_Unwind_SetGR): Same.
16001         (_Unwind_GetGRPtr): New.
16002         (_Unwind_SetGRPtr): New.
16003         (uw_update_context_1): Use accesor functions instead of accessing
16004         context->reg[] directly.
16005         (uw_install_context_1): Same.
16006         (execute_cfa_program): Same.
16007         (__frame_state_for): Same.
16009         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
16010         the synthetic register offset.
16012         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
16014 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
16016         * config/cris/cris.md: Remove lingering EGCS reference.
16017         ("*extopqihi_side_biap"): For HI operation, match
16018         cris_additive_operand_extend_operator, not
16019         cris_operand_extend_operator.  Adjust condition.
16020         ("*extopqihi_side", "*extopqihi"): Ditto.
16021         ("*extopqisi_side_biap"): Correct operand numbers in condition.
16022         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
16023         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
16024         ("*extophisi_swap"): Ditto.
16025         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
16026         PLUS, not cris_operand_extend_operator.  Adjust condition and
16027         output template.
16028         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
16029         * config/cris/cris.h (PREDICATE_CODES): Add
16030         cris_additive_operand_extend_operator.
16031         * config/cris/cris.c (cris_additive_operand_extend_operator):
16032         New predicate.
16034 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
16036         * df.c (read_modify_subreg_p): Change from static to global.
16037         * df.h (read_modify_subreg_p): Add prototype.
16038         * sched-deps.c (sched_analyze_1): Generate true dependency for
16039         strict_low_part, certain subregs and zero/sign_extract.
16041 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
16043         * Makefile.in: Update.
16044         * c-common.c: Don't include real.h or except.h.
16045         (REGISTER_PREFIX): Remove.
16046         (builtin_define_std, builtin_define_with_value,
16047         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
16048         builtin_define_type_max, builtin_define_type_precision,
16049         builtin_define_float_constants): Move to c-cppbuiltin.c.
16050         (c_stddef_cpp_builtins): New.
16051         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
16052         * c-cppbuiltin.c: New, extracted from c-common.c.
16053         (define__GNUC__): New.
16054         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
16055         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
16056         (cpp_unique_options): Don't support no-gcc.
16057         (do_spec_1): Remove support of version specs.
16058         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
16059         * doc/passes.texi: Update.
16060         * doc/tm.texi: Update.
16062 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
16064         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
16066 2003-03-10  Andrew Pinski  <apinski@apple.com>
16068         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
16069         is on should not get here.
16070         (machopic_indirect_data_reference): If dynamic-no-pic is on just
16071         generate high/low parts of the address.
16072         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
16073         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
16074         symbol and labels with a new reg.  Dynamic-no-pic does not have a
16075         pic_offset_table_rtx.
16076         (machopic_select_section): Change references of flag_pic to
16077         MACHOPIC_INDIRECT.
16078         (machopic_asm_out_destructor): Likewise.
16079         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
16080         reference of flag_pic to MACHOPIC_INDIRECT.
16081         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
16082         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
16083         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
16084         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
16085         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
16086         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
16087         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
16088         (TARGET_DYNAMIC_NO_PIC): Define.
16089         (SUBTARGET_SWITCHES): Define, have sub-target switches for
16090         dynamic-no-pic.
16091         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
16092         rs6000_override_options to here. Dynamic-no-pic overrides
16093         pic.
16094         (CC1_SPEC): Change from not static then pic to not static and not
16095         dynamic-no-pic then pic.
16096         * config/rs6000/rs6000.c (rs6000_override_options): Move the
16097         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
16098         (rs6000_legitimize_reload_address): Add case for loading floating in
16099         dynamic-no-pic.
16100         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
16101         of flag_pic to MACHOPIC_INDIRECT.
16102         (secondary_reload_class): Conditional change the reference of
16103         flag_pic to MACHOPIC_INDIRECT.
16104         (rs6000_output_mi_thunk): Change reference of flag_pic to
16105         MACHOPIC_INDIRECT.
16106         (output_profile_hook): Likewise.
16107         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
16108         * config/rs6000/rs6000.md (movdf_low): Add the case for
16109         MACHO_DYNAMIC_NO_PIC_P.
16110         (call): Change references for flag_pic in TARGET_MACHO to
16111         MACHOPIC_INDIRECT.
16112         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
16113         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
16114         * doc/invoke.texi (-mdynamic-no-pic): Document.
16116 2003-03-10  Devang Patel  <dpatel@apple.com>
16118         PR c++/9394
16119         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
16120         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
16121         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
16122         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
16123         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
16124         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
16126 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16128         PR optimization/7189
16129         * toplev.c (rest_of_compilation):  Move
16130         check_function_return_warnings up to just after
16131         delete_unreachable_blocks.
16133 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
16135         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
16136         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
16137         Declare.
16138         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
16139         for reg rename optimization to avoid using Z and Y registers.
16141 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
16143         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
16144         when adding to X and Y since leax/leay are fast.
16145         ("*addhi3"): Accept 'I' constraint when adding to address register.
16146         ("rotlhi3"): Operand 1 must be a register_operand.
16147         (peephole2): New peephole to optimize some adds.
16148         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
16149         to represent -2 .. 2 small integer range.
16151 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
16153         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
16154         each 16-bit rotation.
16156 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
16158         * c-opts.c (add_prefixed_path): Don't use concat.  When
16159         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
16160         cpp_GCC_INCLUDE_DIR_len characters.
16162 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
16164         * testsuite/gcc.dg/altivec-9.c: New file.
16166         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
16167         (rs6000_emit_prologue): Use rs6000_frame_related instead.
16169 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
16171         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
16172         vectors.
16173         (__ev_convert_u64): Remove macro.  Define as inline.
16174         (__ev_convert_s64): Same.
16176 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
16178         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
16179         (rs6000_stack_t): Add spe_64bit_regs_used.
16181         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
16182         spe_64bit_regs_used, and use it to determine the size of the
16183         frame.
16184         (spe_func_has_64bit_regs_p): New.
16185         (spe_synthesize_frame_save): New.
16186         (rs6000_frame_related): Handle SPE synthetic registers.
16187         (rs6000_emit_prologue): Only save in 64-bits if the function used
16188         any registers in 64-bit mode.
16189         (rs6000_emit_epilogue): Same, but for restore.
16191 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
16193         * arm.h (enum floating_point_type): Delete.  Replace with...
16194         (enum fputype): ... new.
16195         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
16196         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
16197         * arm.md (attr fpu): Reworked for new underlying enum values.
16198         * arm.c (arm_fpu_arch): Now enum fputype.
16199         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
16200         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
16201         Update uses of arm_fpu_arch and arm_fpu_tune.
16203 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
16205         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
16206         (try_crossjump_to_edge): Replace refereces to one jump table by
16207         references to identical jump table.
16208         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
16209         (replace_label): Moved to rtlanal.c.
16210         (struct rtx_pair): Moved to rtl.h.
16211         * rtl.h (struct rtx_pair): Moved from loop.c.
16212         (replace_label): New extern function.
16213         (subrtx_p): New extern function.
16214         (tablejump_p): New extern function.
16215         * rtlanal.c (replace_label): Moved from loop.c.
16216         (subrtx_p_1): New static function.
16217         (subrtx_p): New function.
16218         (tablejump_p): New function.
16220 2003-03-10  Jan Hubicka  <jh@suse.cz>
16222         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
16224         * cfgcleanup.c (merge_blocks): Return where to iterate next.
16225         (try_optimize_cfg): Use return value of merge_blocks
16227 2003-03-10  Michael Matz  <matz@suse.de>
16229         * cfg.c (unchecked_make_edge): New.
16230         (cached_make_edge): Use it.
16231         * basic-block.h (unchecked_make_edge): Declare.
16232         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
16234 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
16236         * fpa.md: New file.  Move all patterns relating to FPA co-processor
16237         to here...
16238         * arm.md: ... from here.
16239         (cirrus.md, fpa.md): Include at end of description.
16240         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
16241         (pic_load_addr_based): Remove register constraint from expander.
16242         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
16243         (sordered, sungt, sunle, sunge, sunlt): Likewise.
16244         (eh_epilogue, tablejump): Likewise.
16246 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16248         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
16249         on operands if it has a PLACEHOLDER_EXPR.
16251 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
16252             Mostafa Hagog
16254         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
16255         condition.
16257 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
16259         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
16260         * config/ip2k/ip2k.h: Similarly.
16261         * config/m32r/m32r.h: Similarly.
16262         * config/m68hc11/m68hc11.h: Similarly.
16263         * config/mn10200/mn10200.h: Similarly.
16264         * config/mn10300/mn10300.h: Similarly.
16265         * config/pdp11/pdp11.h: Similarly.
16266         * config/v850/v850.h: Similarly.
16267         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
16268         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
16269         * config/mips/iris3.h: Remove #if 0 block.
16271 2003-03-09  Roger Sayle  <roger@eyesopen.com>
16272             Joern Rennecke <joern.rennecke@superh.com>
16274         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
16275         pending argument upon return from handle_braces here.
16276         (do_spec_2): Instead handle it upon return from do_spec_1 here.
16278 2003-03-09  Roger Sayle  <roger@eyesopen.com>
16279             Joern Rennecke <joern.rennecke@superh.com>
16281         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
16282         pending argument upon return from handle_braces here.
16283         (do_spec_2): Instead handle it upon return from do_spec_1 here.
16285 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16287         * varasm.c (make_decl_one_only): Use declare_weak().
16289 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16291         PR middle-end/9986
16292         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
16293         after the common builtins.
16294         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
16295         * pa.c (TARGET_INIT_BUILTINS): Define.
16296         (pa_init_builtins): New function.
16298         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
16299         space has been allocated for the outgoing arguments, set the arg
16300         pointer for a call emitted after virtuals have been instantiated
16301         using the stack pointer offset, otherwise abort.
16303 2003-03-09  DJ Delorie  <dj@redhat.com>
16305         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
16307 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
16309         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
16310         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
16311         conversion to integer.
16312         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
16314 2003-03-09  Roger Sayle  <roger@eyesopen.com>
16316         * builtins.def: Fix typo and improve grammar.
16317         * loop-unroll.c (decide_peel_completely): Tidy log message.
16319 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
16321         * config/h8300/h8300.md (*tstsi_upper_bit): New.
16322         (*iorsi3_e2f): Likewise.
16324 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16326         * config/h8300/h8300.c (h8300_and_costs): Return the number of
16327         assembly instructions needed.
16328         (h8300_shift_costs): Likewise.
16330 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
16332         * config/cris/aout.h (ENDFILE_SPEC): Undef.
16334         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
16335         moves from here ...
16336         * expr.c (emit_move_insn_1): ... to here.
16338         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
16339         (TARGET_OS_CPP_BUILTINS): New macro.
16340         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
16341         (TARGET_OS_CPP_BUILTINS): New macro.
16342         (CPP_PREDEFINES): Don't define.  Move old definitions and...
16343         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
16344         (TARGET_CPU_CPP_BUILTINS): New macro.
16345         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
16346         definitions and the optional __PIC__, __pic__ and
16347         __NO_UNDERSCORES__ definitions to...
16348         (TARGET_OS_CPP_BUILTINS): New macro.
16350         * flags.h (flag_leading_underscore): Declare.
16352         * c-opts.c (c_common_post_options): On fopen failure, return
16353         false, not NULL.
16355 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
16357         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
16358         config.h.
16359         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
16360         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
16362 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16364         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
16365         CPP_PREDEFINES.
16366         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
16367         CPP_PREDEFINES.
16369 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16371         * c-common.h (c_common_init, c_common_post_options): Update.
16372         * c-objc-common.c (c_objc_common_init): Update for new prototype.
16373         * c-opts.c (saved_lineno): New.
16374         (c_common_post_options, c_common_init): Update prototypes,
16375         move call to cpp_read_main_file from latter to former.
16376         * c-tree.h (c_ojbc_common_init): Update.
16377         * langhooks-def.h (lhd_post_options): New.
16378         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
16379         * langhooks.c (lhd_post_options): New.
16380         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
16381         * toplev.c (no_backend): New.
16382         (process_options): Call post_options hook and set main_input_filename
16383         and input_filename here.
16384         (lang_dependent_init, do_compile): post_options hook moved to
16385         process_options.
16386         * objc/objc-act.c (objc_init): Update prototype.
16387         * objc/objc-act.h (objc_init): Update prototype.
16389 2003-03-08  Roger Sayle  <roger@eyesopen.com>
16391         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
16392         a complex or vector type, using a load in the original mode.
16394 2003-03-08  Jan Hubicka  <jh@suse.cz>
16396         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
16397         * gt-cgraph.h: New GC file.
16398         * cgraph.c (known_fns): New static variable.
16399         (cgraph_node): Add the decl into varray.
16401 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
16403         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
16405 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
16407         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
16408         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
16409         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
16410         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
16411         All callers changed.
16412         * arm.md, arm.h, arm-protos.h: Updated.
16414         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
16415         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
16416         * arm.c (arm_regno_class, f_register_operand): Updated.
16418 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
16420         * config/cris/cris.h: Remove EGCS references.
16421         (CPP_SPEC): Remove "-$".
16422         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
16424 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16426         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
16427         preference to CPP_PREDEFINES.
16429 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
16431         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
16433 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16435         * config/h8300/h8300.md (*extzv_16_8): New.
16437 2003-03-08  Jan Hubicka  <jh@suse.cz>
16439         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
16440         * cgraph.h: (cgraph_local_info): Add can_inline_once
16441         (cgraph_global_info): Add inline_once.
16442         (cgraph_node): Add previous.
16443         (cgraph_remove_node): New.
16444         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
16445         function.
16446         (cgraph_optimize): Call it.
16447         (cgraph_finalize_function):  Set inlinable flags.
16448         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
16449         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
16450         (cgraph_expand_function): Likewise.
16451         * cgraph.c
16452         (cgraph_node): Put nodes into doubly linked chain.
16453         (cgraph_remove_node): New function.
16454         * flags.h (flag_inline_functions_called_once): Declare.
16455         * tree-inline.c: Include cgraph.h
16456         (inlinable_functions_p): Add extra argument to bypass limits.
16457         (expand_call_inline):  Obey cgraph flag.
16458         * tree-inline.h (tree_inlinable_function_p): Update prototype.
16460 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16462         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
16463         irreducible loops.
16465         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
16466         loops info correctly.
16468 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16470         PR middle-end/7796
16471         * unroll.c (calculate_giv_inc): Handle constants being
16472         loaded with LSHIFTRT.
16474 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
16476         * config/rs6000/rs6000.c (processor_target_table): Do not disable
16477         GP optional instructions on Power3, Power4, 620, and 630.
16479 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
16481         * calls.c: Fix comment formatting.
16482         * cfgloopanal.c: Likewise.
16483         * cfgloopmanip.c: Likewise.
16484         * combine.c: Likewise.
16485         * dwarf2out.c: Likewise.
16486         * ggc-common.c: Likewise.
16487         * langhooks.c: Likewise.
16488         * loop-unroll.c: Likewise.
16489         * loop.c: Likewise.
16490         * ra-build.c: Likewise.
16491         * sbitmap.c: Likewise.
16492         * toplev.c: Likewise.
16494 2003-03-07  James E Wilson  <wilson@tuliptree.org>
16496         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
16498 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
16500         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
16501         support -no-integrated-cpp.
16503         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
16504         than langhooks.name.
16506 2003-03-07  Michael Matz  <matz@suse.de>
16508         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
16509         (DF_FOR_REGALLOC): New.
16510         * df.c (df_ref_record): Set DF_REF_STRIPPED.
16511         (read_modify_subreg_p): Simplify.
16512         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
16513         Use DF_FOR_REGALLOC.
16514         * ra.h (struct web): New member subreg_stripped.
16515         (invalid_mode_change_regs): Declare.
16516         * ra.c (invalid_mode_change_regs): New.
16517         (init_ra): Initialize it.
16518         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
16519         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
16520         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
16521         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
16522         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
16524 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
16526         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
16527         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
16528         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
16529         machine description file from ...
16530         * cirrus.md: ... here.
16532 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16534         * config/h8300/h8300.md (a peephole2): Don't use
16535         reg_overlap_mentioned_p.
16537 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
16539         * c-pch.c: Include langhooks.h.
16540         (IDENT_LENGTH): New.
16541         (get_ident): New.
16542         (pch_ident): Delete.
16543         (pch_init): Use get_ident, IDENT_LENGTH.
16544         (c_common_valid_pch): Likewise.  Also, use actual language
16545         in warning message.
16546         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
16548         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
16549         c-parse.in.
16550         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
16551         gt-objc-objc-act.h.
16552         (gt-objc-objc-act.h): New rule.
16553         * objc/lang-specs.h: Support PCH.
16554         * objc/objc-act.c: Include gt-objc-objc-act.h.
16555         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
16556         (build_selector_reference_decl): Move idx out, mark for PCH.
16557         (build_class_reference_decl): Likewise.
16558         (build_objc_string_decl): Move *_idx out, mark for PCH.
16559         (build_tmp_function_decl): Move xxx out, mark for PCH.
16561 2003-03-06  Dale Johannesen  <dalej@apple.com>
16563         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
16564         global functions for inlining on Darwin.
16566 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
16568         * haifa-sched.c (schedule_block): Don't call reorder when sorting
16569         is prohibited.
16571 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
16573         * Makefile.in (c-ppoutput.o): Update.
16574         * c-common.h (init_pp_output): New.
16575         (preprocess_file): Update.
16576         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
16577         Register builtins.
16578         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
16579         Make call to cpp_read_main_file common to whether preprocessing
16580         or not.  Don't register builtins.
16581         * c-ppoutput.c: Include c-pragma.h.
16582         (setup_callbacks): Rename init_pp_output.
16583         (preprocess_file): No longer setup callbacks or call
16584         cpp_read_main_file.
16585         * cpphash.h (_cpp_init_mbchar): New.
16586         * cppinit.c (init_library): Call _cpp_init_mbchar.
16587         * cpplex.c (_cpp_init_mbchar): New.
16589 2003-03-06  Roger Sayle  <roger@eyesopen.com>
16591         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
16592         MEM, try loading the MEM into a register and taking the low-part
16593         of that, to help CSE see the use of the MEM in its true mode.
16595 2003-03-05  Tom Tromey  <tromey@redhat.com>
16597         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
16598         Define.
16600 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
16602         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
16603         operand 2.
16604         ("*ineqbranchsi"): Likewise.
16606 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
16608         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
16609         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
16610         register store followed by a stack increment.
16612 2003-03-05  Chris Moller  <cmoller@redhat.com>
16614         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
16615         to inhibit saving CARRY_REGS.
16617         * config/stormy16/stormy16.c (xs_hi_general_operand):
16618         added predicate to detect and error-out on out-of-range
16619         const_ints for movhi.
16620         * config/stormy16/stormy16.md (movhi): use
16621         xs_hi_general_operand.
16623         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
16624         added a check for local vbl size overflow.
16625         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
16626         added predicate to detect and error-out on out-of-range
16627         const_ints for addhi and subhi.
16628         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
16629         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
16631         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16632         add a term to accept PRE_MODIFY addresses.
16633         * config/stormy16/stormy16.c (xstormy16_expand_move):
16634         add code to expand PRE_MODIFY addresses to an add followed
16635         by a move.
16637 2003-03-06  Jason Merrill  <jason@redhat.com>
16639         * tree-inline.c (inlinable_function_p): Revert earlier change
16640         pending investigation.
16642 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16644         * config/h8300/h8300.md (a new peephole2): New.
16646 2003-03-06  Jan Hubicka  <jh@suse.cz>
16648         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
16650 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16652         * dwarf2out.c (size_of_die): Compute size of external reference to
16653         die correctly.
16655 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
16657         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
16658         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
16659         expanders.
16661 2003-03-05  Roger Sayle  <roger@eyesopen.com>
16663         * expr.h (lang_expand_expr): Delete obsolete prototype.
16665 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16667         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
16669 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16671         * config/h8300/h8300.md (a peephole2): Generalize to
16672         accept a memory operand.
16674 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
16676         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
16677         * config/alpha/alpha.c (print_operand, case '+'): New.
16678         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
16679         (call_value_osf_1_noreturn): Likewise.
16681 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16683         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
16684         (expand_end_bindings): Likewise.
16686 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16688         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
16689         (epilogue): Don't generate return_external_pic when emitting PA 2.0
16690         code.
16692 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
16694         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
16696         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
16698         * hooks.c (hook_rtx_rtx_null): New.
16700         * hooks.h (hook_rtx_rtx_null): Protoize.
16702         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
16703         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
16705         * target.h (struct gcc_target): Add dwarf_register_span.
16707         * dwarf2out.c (multiple_reg_loc_descriptor): New.
16708         (one_reg_loc_descriptor): New.
16709         (reg_loc_descriptor): Add support for values that span more than
16710         one register.
16712 2003-03-05  Jan Hubicka  <jh@suse.cz>
16714         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
16715         * alias.c:  Include cgraph.h
16716         (mark_constant_function): Use cgraph_rtl_info.
16717         * calls.c:  Include cgraph.h
16718         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
16719         calls.
16720         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
16721         * cgraph.c (cgraph_rtl_info): New function.
16722         * cgraph.h (cgraph_rtl_info): Declare
16723         (cgraph_rtl_info): Likewise.
16724         * function.h (struct function): Add recursive_call_emit.
16725         * toplev.c: Include cgraph.h.
16726         (rest_of_compilation): Set preferred_incoming_stack_boundary.
16728 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16730         * config/h8300/h8300.c (output_simode_bld): Clear the
16731         destination first if possible.
16732         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
16733         alternative.
16734         (extzv_1_r_inv_h8300hs): Likewise.
16736 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16738         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
16739         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
16740         * cfgloop.c (flow_loop_free): Made global.
16741         (establish_preds): New static function.
16742         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
16743         (get_loop_exit_edges): New.
16744         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
16745         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
16746         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
16747         loops.
16748         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
16749         removability of an edge.
16750         (fix_irreducible_loops): New static function.
16751         (find_path, remove_path): Add ability to remove enclosing loops.
16752         (unloop): New.
16753         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
16754         flags.
16755         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
16756         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
16757         not neccessary.
16758         (decide_peel_completely, peel_loops_completely): Allow complete peeling
16759         of non-duplicable once rolling loops.
16760         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
16762 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
16764         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
16765         for align_jumps is 4.
16767         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
16768         use GENERAL_REGS.
16770 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
16772         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
16773         according to va_arg type.
16774         (EXPAND_BUILTIN_VA_ARG): Remove.
16775         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
16776         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
16778 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
16780         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
16781         else clauses.
16783 2003-03-05  Michael Matz  <matz@suse.de>
16785         * i386/i386.c (ix86_save_reg): Also test
16786         current_function_uses_const_pool.
16788 2003-03-05  Michael Matz  <matz@suse.de>
16790         * unwind.h: Add the GPL exception.
16791         * Makefile.in (USER_H): Add unwind.h.
16793 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
16795         PR c/9799
16796         * c-typeck.c (push_init_level): Add sanity check.
16798 2003-03-05  Jan Hubicka  <jh@suse.cz>
16800         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
16801         RTL inlining is done.
16803         * cgraphunit.c (cgraph_mark_local_functions): New local function.
16804         (cgraph_optimize): Mark local functions.
16805         * i386-protos.h (init_cumulative_args): Update prototype.
16806         * i386.c (init_cumulative_args): Use register passing convention for
16807         local functions.
16809         * cgraph.c (cgraph_global_info_ready): New global variable
16810         (cgraph_local_info, cgraph_global_info): New functions.
16811         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
16812         structures.
16813         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
16814         Declare.
16815         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
16816         (cgraph_mark_functions_to_output): Use inline_many.
16817         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
16818         (cgraph_expand_functions): Expand inline functions last.
16819         (cgraph_optimize): Do not emit uneeded functions.
16821 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
16823         * expr.c (convert_modes): Check for legal hard register.
16825 2003-03-04  Tom Tromey  <tromey@redhat.com>
16827         * doc/sourcebuild.texi (Front End Directory): Document tags.
16828         * configure: Rebuilt.
16829         * configure.in (target_list): Added tags.
16830         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
16831         TAGS files by reference.
16832         * objc/Make-lang.in (objc.tags): New target.
16834 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16836         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
16837         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
16838         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
16839         gcov_read_string, gcov_write_length): Modified to enable reading/
16840         writing of whole .da file just once.
16841         (da_file_open, da_file_close, da_file_eof, da_file_error,
16842         da_file_position, da_file_seek, da_file_write, da_file_read): New
16843         functions.
16844         (actual_da_file, actual_da_file_position, actual_da_file_length,
16845         actual_da_file_buffer, actual_da_file_buffer_size): New static
16846         functions.
16847         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
16848         just once.
16851 2003-03-04  Andreas Schwab  <schwab@suse.de>
16853         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
16854         offset without frame pointer.
16856 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
16858         * expr.c (expand_expr): Call promote_mode to set unsignedp.
16860 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
16862         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
16863         * configure: Regenerated.
16864         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
16866 2003-03-04  Andreas Jaeger  <aj@suse.de>
16868         * configure.in: Check for <memcheck.h>.
16869         * configure: Regenerated.
16871         * config.in: Define HAVE_MEMCHECK_H.
16873         * ggc-common.c: Use <memcheck.h> if available instead of
16874         <valgrind.h>.
16875         * ggc-page.c: Likewise.
16876         * cppfiles.c: Likewise.
16878 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
16880         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
16882 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
16884         PR c/9262
16885         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
16886         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
16888 2003-03-04  Jan Hubicka  <jh@suse.cz>
16890         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
16891         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
16892         for -O3.
16894 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
16896         * configure.in: Delete three unused variables.  Move a variable
16897         definition closer to its use.  Simplify use_collect2 logic.  Start to
16898         organize.  Simplify tests for in-tree gas and ld.
16899         * configure: Regenerate.
16901 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
16903         * Makefile.in: Update.
16904         * c-common.c (flag_no_line_commands, flag_no_output,
16905         flag_dump_macros, flag_dump_includes): New.
16906         * c-common.h (flag_no_line_commands, flag_no_output,
16907         flag_dump_macros, flag_dump_includes, preprocess_file): New.
16908         (init_c_lex): Update prototype.
16909         * c-lex.c (init_c_lex): Update prototype; move some code to
16910         c_common_init.
16911         * c-opts.c (preprocess_file): Subsume into c_common_init.
16912         (c_common_decode_option): Update flags.
16913         (c_common_init): Move code from preprocess_file and init_c_lex.
16914         (sanitize_cpp_opts): Update.
16915         * c-ppoutput.c: New, cppmain.c almost verbatim.
16916         * cpphash.h (struct printer): Remove.
16917         (struct cpp_reader): Remove print.
16918         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
16919         cpp_preprocess_file): Remove.
16920         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
16921         and dump_includes.
16922         * cppmain.c: Remove.
16923         * doc/passes.texi: Update.
16925 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16927         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
16928         (assign_stack_local_1): Perform overall stack alignment only when
16929         STACK_ALIGNMENT_NEEDED is nonzero.
16930         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
16932         * pa.c (compute_frame_size): Rename fsize to size.  Account for
16933         alignment to a word boundary before general register save block.  Only
16934         account for double-word alignment before floating point register save
16935         block if one or more are saved.  Don't allocate space for %r3 when
16936         frame pointer is needed.
16937         (hppa_expand_prologue): Include alignment to word boundary in local
16938         frame size.
16939         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
16940         (STACK_ALIGNMENT_NEEDED): Define.
16942 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
16944         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
16945         global register variables.
16947 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
16949         * reload.c (reload_adjust_reg_for_mode): New function.
16950         (subst_reloads): Call it.
16951         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
16952         * reload.h (reload_adjust_reg_for_mode): Declare.
16953         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
16954         Call it.
16956 2003-03-03  James E Wilson  <wilson@tuliptree.org>
16958         * optabs.c (add_equal_note): Delete SUBREG_REG use.
16959         Fixes PR c/7872.
16961 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16963         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
16964         (*ixorsi3_lshiftrt_16): New.
16965         (*iorsi3_ashift_16): Remove.
16967 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16969         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
16970         pattern.
16972 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
16974         * doc/install.texi (Specific): Update entry for powerpc-darwin.
16976 2003-03-03  Richard Henderson  <rth@redhat.com>
16978         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
16980 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
16982         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
16983         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
16984         (rs6000_variable_issue): Do not return negative value.
16985         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
16986         scheduling pass.
16988 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16990         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
16991         prune_unused_types calls.
16993 2003-03-03  Jason Merrill  <jason@redhat.com>
16995         * tree-inline.c (find_builtin_longjmp_call): Save and restore
16996         lineno and input_filename.
16997         (find_alloca_call): Likewise.
16998         (inlinable_function_p): Run the langhook earlier.
17000         * calls.c (compute_argument_addresses): Give the new MEMs a
17001         minimum alignment of PARM_BOUNDARY.
17003 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
17005         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
17006         subtarget_asm_isa_spec.
17007         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
17008         (ASM_SPEC): Define as SH_ASM_SPEC.
17009         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
17010         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
17011         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
17012         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
17014         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
17015         and align_jumps if not set.
17016         Force align_jumps to be at least 2.
17017         When relaxing, force align_functions to be at least the maximum of
17018         align_loops, align_jumps and 4.
17019         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
17020         (sh_loop_align): Honour align_loops_log.
17022         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
17023         to check for indirect_jump_scratch.
17024         (indirect_jump_scratch): Add second set.
17025         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
17026         when looking for indirect_jump_scratch.
17027         Extract scratch register taking new structure of indirect_jump_scratch
17028         into account.
17029         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
17031 2003-03-03  Jan Hubicka  <jh@suse.cz>
17033         * calls.c (rtx_for_function_call): Take the address as an argument
17034         (expand_call): Do not modify the expression.
17036         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
17037         optimizing.
17039 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
17041         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
17042         TARGET_H8300H and TARGET_H8300S.
17044 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
17046         * config/h8300/h8300.md (a peephole2): New.
17048 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
17050         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
17051         operands[0] and operands[1] are different.
17053 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
17055         * reload1.c (reload_cse_move2add): Remove variable success.
17057 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17059         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
17060         warnings.
17062 2003-03-02  Richard Henderson  <rth@redhat.com>
17064         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
17065         * config.in, configure: Rebuild.
17066         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
17067         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
17068         paired ldtoffx and ldxmov annotations.
17069         (load_symptr_internal1): Remove.
17070         (load_symptr_high, load_symptr_low): New.
17072 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
17074         * c-incpath.c (add_path): Fix sysp assignment.
17076 2003-03-02  Kurt Garloff  <garloff@suse.de>
17078         * params.def: Introduce parameter max-inline-insns-rtl for
17079         a separate limit for the RTL inliner.
17080         * params.h: Likewise.
17081         * integrate.c (function_cannot_inline_p): Use it.
17082         * toplev.c (decode_f_option): Set multiple parameters
17083         controlling inlining with -finline-limit.
17084         * params.def: Fix orthographic and typographic errors.
17085         * doc/invoke.texi: Document parameters controlling inlining
17086         and the way -finline-limit sets multiple of them.
17088         * tree.h (struct tree_decl): Introduce inlined_function_flag,
17089         recording whether the function became eligible for inlining
17090         by a compiler flag rather than the declaration.
17091         Provide DID_INLINE_FUNC macro to access it.
17092         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
17093         * cp/decl.c (grokfndecl): Likewise.
17094         * toplev.c (rest_of_compilation): Likewise.
17095         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
17096         * print-tree.c (print_node): Report it.
17097         * params.def: Introduce new max-inline-insns-auto limit.
17098         * params.h: Likewise.
17099         * tree-inline.c (inlinable_function_p): Apply it to functions
17100         with DID_INLINE_FUNC set.
17101         * toplev.c (decode_f_option): Initialize it from -finline-limit
17102         value.
17103         * doc/invoke.texi: Document new parameter.
17105 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
17107         * fix-header.c (read_scan_file): Don't reference simplify_path.
17109 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
17111         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
17112         min/max instructions by default as may result in reload errors.
17114 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
17116         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
17117         avoid reload problems; define split for it.
17119 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
17121         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
17122         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
17123         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
17124         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
17125         rotatert and rotate.
17126         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
17127         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
17128         ("*rotrhi3_addr"): New split for shift insns on address register.
17129         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
17130         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
17131         (___rotrhi3): Likewise.
17132         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
17134 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
17136         * toplev.c (aux_base_name): Moved from toplev.h.
17137         (filename): Constify.
17138         (lang_dependent_init): Don't duplicate name.
17139         (process_options): Set aux_base_name here, not...
17140         (do_compile): ...here.  Change protoype.
17141         (toplev_main): Move some code from do_compile.
17142         * toplev.h: Remove aux_base_name.
17144 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
17146         * config/h8300/h8300-protos.h: Add a prototype for
17147         iorxor_operator.
17148         * config/h8300/h8300.c (print_operand): Handle 'c'.
17149         (iorxor_operator): New.
17150         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
17151         * config/h8300/h8300.md (*iorhi3_zext): Remove.
17152         (*iorsi3_zexthi): Likewise.
17153         (*iorsi3_zextsi): Likewise.
17154         (*xorhi3_zextqi): Likewise.
17155         (*xorsi3_zexthi): Likewise.
17156         (*xorsi3_zextsi): Likewise.
17157         (*ixorhi3_zext): New.
17158         (*ixorsi3_zext_qi): Likewise.
17159         (*ixorsi3_zext_hi): Likewise.
17161 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
17163         * c-incpath.c (remove_component_p, simplify_path): Move back to
17164         cppfiles.c.
17165         (remove_duplicates): Use cpp_simplify_path.
17166         * c-incpath.h (simplify_path): Remove.
17167         * c-lex.c: Don't include c-incpath.h.
17168         (init_c_lex): Remove simplify_path.
17169         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
17170         (find_or_create_entry, validate_pch): Revert.
17172 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
17174         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
17175           an external cpp during compilation.
17176         (option_map): Likewise.
17177         * objc/lang-specs.h (default_compilers): Similarly.
17178         * doc/invoke.texi: Document -no-integrated-cpp flag.
17180 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
17182         * config/h8300/h8300.md (zero_extendqisi2): Change to an
17183         expander.
17184         (*zero_extendqisi2_h8300): New.
17185         (*zero_extendqisi2_h8300hs): New.
17186         (two splitters): New.
17188 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17190         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
17192 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17194         * config/h8300/h8300.md (a peephole2): Remove dead code.
17196 2003-03-01  Roger Sayle  <roger@eyesopen.com>
17198         PR c++/9367
17199         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
17200         (BT_FN_INT_CONST_STRING_VALIST_ARG,
17201         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
17202         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
17203         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
17204         BT_FN_INT_STRING_CONST_STRING_VAR,
17205         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
17206         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
17207         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
17208         ATTR_NONNULL_3): Also include the nothrow attribute.
17209         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
17210         vsnprintf, vscanf, vsscanf): Don't define attributes here.
17211         * builtins.def (putchar, puts): Make full C89 built-ins.
17212         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
17213         vsscanf, vsnprintf, vsprintf): New built-ins.
17214         * c-common.c (c_common_nodes_and_builtins): Handle new macro
17215         DEF_FUNCTION_TYPE_VAR_3.
17217         * doc/extend.texi: Document these new built-in functions.
17219 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17221         * config/h8300/h8300.md (a peephole2): New.
17223 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
17225         * predict.c (estimate_bb_frequencies): Correctly set
17226         real_values_initialized after initialization.
17228 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
17230         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
17231         cppinit.o, cppdefault.o, fix-header): Update.
17232         * c-incpath.c: New file.
17233         * c-incpath.h: New file.
17234         * c-lex.c: Include c-incpath.h.
17235         (init_c_lex): Register path simplifier.
17236         * c-opts.c: Include cppdefault.h and c-incpath.h.
17237         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
17238         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
17239         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
17240         (missing_arg, c_common_decode_option): Handle them.
17241         (c_common_post_options): Register include chains.
17242         (print_help): Update.
17243         * cppdefault.h (struct default include): Update.
17244         Move some macros to ...
17245         * cppdefault.c: ... here.
17246         (cpp_include_defaults): Add extra field add_sysroot.
17247         * cppfiles.c (include_file, search_from, find_or_create_entry,
17248         cpp_included, find_include_file, remap_filename): Update for
17249         renaming of search_path to cpp_path, and of the chain headers.
17250         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
17251         * cpphash.h (struct search_path): Move to cpplib.h.
17252         (struct cpp_buffer, struct cpp_reader): Update.
17253         (_cpp_simplify_pathname): Remove.
17254         * cppinit.c: Don't include prefix.h and cppdefault.h.
17255         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
17256         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
17257         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
17258         no_pth, cpp_handle_options): Remove.
17259         (struct pending_option): Remove chain members.
17260         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
17261         cpp_handle_option): Update.
17262         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
17263         (struct cpp_options): Remove quote_include, bracket_include,
17264         include_prefix, include_prefix_len, verbose, ignore_srcdir,
17265         no_standard_includes, no_standard_cplusplus_includes.
17266         (struct cpp_callbacks): Add simplify_path.
17267         (cpp_handle_options): Remove.
17268         * fix-header.c: Include c-incpath.h.
17269         (read_scan_file): Update to use c-incpath functionality.
17270         * doc/passes.texi: Update.
17272 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17274         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
17275         satisfies EXTRA_CONSTRAINT 'U'.
17277 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
17279         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
17280         register.
17281         (*tst_extzv_memqi_1_n): Change to a splitter.
17282         (a peephole2): Update.
17284 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
17286         * predict.c (estimate_bb_frequencies): Initialize the sreal
17287         constants once per compilation.
17289 2003-02-28  Richard Henderson  <rth@redhat.com>
17291         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
17293 2003-02-28  scott snyder  <snyder@fnal.gov>
17295         * flags.h: Add flag_eliminate_unused_debug_types.
17296         * toplev.c: Add flag_eliminate_unused_debug_types.
17297         (f_options): Add -feliminate-unused-debug-types.
17298         * dwarf2out.c (struct file_table): Add emitted member.
17299         (splice_child_die): Fix the parent pointer for the child being
17300         spliced.
17301         (lookup_filename): Maintain file_table.emitted array.  Don't
17302         output .file directive here.
17303         (maybe_emit_file): (new)
17304         (init_file_table): Set up file_table.emitted.
17305         (dwarf2out_source_line): Use maybe_emit_file.
17306         (dwarf2out_start_source_file): Use maybe_emit_file.
17307         (dwarf2out_init): Use maybe_emit_file.
17308         (prune_unused_types_walk_attribs): (new)
17309         (prune_unused_types_mark): (new)
17310         (prune_unused_types_walk): (new)
17311         (prune_unused_types_prune): (new)
17312         (prune_unused_types): (new)
17313         (dwarf2out_finish): Call prune_unused_types if
17314         flag_eliminate_unused_debug_types is set.
17315         * doc/invoke.texi (Option Summary): Add
17316         -feliminate-unused-debug-types.
17317         (Debugging Options): Likewise.
17319 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
17321         * doc/invoke.texi: Change .pch to .gch.
17322         * cppfiles.c (open_file_pch): Likewise.
17323         * gcc.c (default_compilers): Likewise.
17325 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
17327         * floatlib.c: Remove.
17329 2003-02-28  Jason Merrill  <jason@redhat.com>
17331         * stor-layout.c (variable_size): Leave a "minus 1" outside the
17332         SAVE_EXPR.
17334 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
17336         * config/rs6000/power4.md: Add compare bypass.
17338 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
17340         * config/netbsd.h: Update copyright years.
17341         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
17342         -pthread is specified on the command line.
17344 2003-02-28  Dale Johannesen <dalej@apple.com>
17346         * loop.c (struct movable): Add insert_temp, shrink savemode.
17347         (scan_loop): Accept invariants that require copying; mark as
17348         insert_temp.
17349         (combine_movables): Don't combine insert_temp movables.
17350         (move_movables): Insert copies for insert_temp movables.
17351         Don't record the info based on regno for insert_temp's.
17353 2003-02-28  Joel Sherrill <joel@OARcorp.com>
17355         PR 9638/other
17356         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
17357         this constant defaults to 1.
17359 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
17361         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
17363 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
17365         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
17366         ARMv5e processor, not just for XScale.  Instructions are predicable.
17367         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
17369 2003-02-28  Nick Clifton  <nickc@redhat.com>
17371         * config/arm/arm.c (note_invalid_constants): Change parameter type
17372         from bool to int.
17374 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
17376         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
17377         test of bit 7.
17378         (*tst_extzv_memqi_1_n): Likewise.
17379         (a peephole2): New.
17381 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
17383         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
17384         #ifndef __mips16.
17386 2003-02-28  Jan Hubicka  <jh@suse.cz>
17388         * combine.c (gen_lowpart_for_combine): Update handling of
17389         subregs_of_mode
17390         * flow.c (life_analysis, mark_used_regs): Likewise.
17391         * regclass.c (subregs_of_mode): Turn into single bitmap.
17392         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
17393         dealing with subregs_of_mode
17394         * regs.h (subregs_of_mode): Update prototype.
17396 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
17398         * emit-rtl.c (set_reg_attrs_for_parm): New function.
17399         * rtl.h (set_reg_attrs_for_parm): New exported function.
17400         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
17401         set_reg_attrs_from_mem.
17403 2003-02-27  Roger Sayle  <roger@eyesopen.com>
17404             Zack Weinberg <zack@codesourcery.com>
17406         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
17408 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
17410         * reload1.c (sext_for_mode): Remove.
17411         (reload_cse_move2add): Use trunc_int_for_mode instead of
17412         sext_for_mode.
17413         (move2add_note_store): Likewise.
17414         Reset register information if we see a set in non-integer
17415         mode.
17417 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
17419         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
17420         option.
17421         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
17422         * config/rs6000/aix51.h: Same.
17423         * config/rs6000/aix52.h: Same.
17424         * config/rs6000/power4.md: Additional VMX bypasses.
17426 2003-02-27   Geert Bosch <bosch@gnat.com>
17428         * toplev.c (print_version): Add indentation for GGC heuristics and
17429         output after printing version information.
17431 2003-02-27  James E Wilson  <wilson@tuliptree.org>
17433         * combine.c (simplify_comparison): Require integral mode when
17434         permuting SUBREG with AND.
17436 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
17438         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
17440 2003-02-27  Nick Clifton  <nickc@redhat.com>
17442         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
17443         deleted when cirrus instructions were added.
17445 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
17447         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
17448         POSIX thread support by default.
17450 2003-02-27  Roger Sayle  <roger@eyesopen.com>
17452         * config/i386/cygwin.h: Don't include any other files directly.
17453         * config/i386/mingw32.h: Don't include cygwin.h directly.
17454         * config.gcc (cygwin, mingw32, uwin): Instead make these files
17455         explicit in the tm_files variable.
17457 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
17459         * config/rs6000/rs6000.md: Add TI constant splitter.
17461 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
17463         * builtins.c (purge_builtin_constant_p): Handle subreg of
17464         constant_p_rtx too.
17466         * function.c (assign_stack_local_1): Truncate constant added to
17467         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
17469 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
17471         * config.gcc: Add power4 to PowerPC with_cpu list.
17473 2003-02-26  Jan Hubicka  <jh@suse.cz>
17475         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
17477 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17479         * gcov-dump.c (print_prefix): Fix signedness warning.
17480         * gcov-io.h (struct counter_section, struct counter_section_data): New.
17481         (struct function_info): n_arc_counts field removed, n_counter_sections,
17482         counter_sections fields added.
17483         (struct gcov_info): arc_counts, n_arc_counts fields removed,
17484         n_counter_sections, counter_sections fields added.
17485         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
17486         profile sections.
17487         * profile.h (MAX_COUNTER_SECTIONS): New.
17488         (struct section_info): New.
17489         (struct profile_info): count_instrumented_edges,
17490         count_edges_instrumented_now fields removed, n_sections, section_info
17491         fields added.
17492         (find_counters_section): Declare.
17493         * profile.c (struct function_list): count_edges field removed,
17494         n_counter_sections, counter_sections fields added.
17495         (set_purpose, label_for_tag, build_counter_section_fields,
17496         build_counter_section_value, build_counter_section_data_fields,
17497         build_counter_section_data_value, build_function_info_fields,
17498         build_function_info_value, build_gcov_info_fields,
17499         build_gcov_info_value): New static functions.
17500         (find_counters_section): New function.
17501         (instrument_edges, get_exec_counts, compute_branch_probabilities,
17502         branch_prob, create_profiler): Modified to support multiple profile
17503         sections.
17505 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17507         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
17508         is 8 * STACK_BOUNDARY.
17509         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
17511 2003-02-26  Michael Matz  <matz@suse.de>
17513         * ra-colorize.c (merge_moves): Fix list handling.
17515 2003-02-26  Nick Clifton  <nickc@redhat.com>
17517         * config/arm/arm.c (is_load_address): Rename to...
17518         (arm_memory_load_p) ... this and make it check for SUBREGs and
17519         constant loads that will be converted into loads from the
17520         minipool.
17521         (is_cirrus_insn): Rename to ...
17522         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
17523         of CIRRUS_NO with CIRRUS_NOT.
17524         (cirrus_reorg): Use renamed functions.
17525         (note_invalid_constants): Change from a void function to bool.
17526         Add an extra parameter, saying whether the fixups should be
17527         pushed.  Return true if fixups are needed.
17528         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
17529         of CIRRUS_NO with CIRRUS_NOT.
17530         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
17531         other floating point co-processors can also affect this.
17532         * config/arm/arm.md ("type" attribute): Add mav_farith and
17533         mav_dmult.  Replace references to "cirrus_type" attribute with
17534         "type".
17535         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
17536         ("cirrus_type" attribute): Delete - use "type" instead.
17537         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
17538         'normal'.
17540 2003-02-25  Jan Hubicka  <jh@suse.cz>
17542         * objc-act.c: Include cgraph.h
17543         (mark_referenced_methods): New function.
17544         (objc_init): Call it.
17545         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
17547         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
17548         mode.
17550         * optabs.c (expand_fix): Do not widen the input operand.
17552         * expr.c (emit_group_store):  Fix crash when converting single
17553         register into complex register.
17555         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
17556         * alias.c: Include timevar.h
17557         (init_alias_analysis):  Set timevar
17558         * jump.c: Include timevar.h
17559         (rebuild_jump_labels):  Set timevar
17560         * regcalss.c: Include timevar.h
17561         (reg_scan):  Set timevar
17562         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
17564 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17566         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
17568         * Makefile.in (loop-unroll.o): New.
17569         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
17570         (unroll_and_peel_loops): Declare.
17571         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
17572         flag_old_unroll_loops.
17573         * loop.c (loop_invariant_p): Ditto.
17574         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
17575         flag_old_unroll_all_loops.
17576         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
17577         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
17578         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
17579         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
17580         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
17581         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
17582         PARAM_MAX_ONCE_PEELED_INSNS): New.
17583         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
17584         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
17585         instead of old one.
17586         (flag_peel_loops): New.
17587         (lang_independent_options): The new flags added.
17588         (rest_of_compilation): Call new unroller.
17589         (process_options): Setup flags for coexistence of old and new unroller.
17590         * doc/invoke.texi: Document new options.
17591         * doc/passes.texi: Document new unroller pass.
17593 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
17595         * fixinc/fixincl.x: Regenerate
17597 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
17599         * function.c (assign_parms): Set reg_attrs for parameters passed in
17600         registers.
17602 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
17604         PR target/9681
17605         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
17607 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
17609         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
17610         pseudo-op.
17612 2003-02-25  Roger Sayle  <roger@eyesopen.com>
17614         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
17615         * cse.c (invalidate_skipped_set):  Likewise.
17616         * integrate.c (subst_constants):  Likewise.
17617         * jump.c (reversed_comparison_code_parts):  Likewise.
17618         * loop.c (canonicalize_condition):  Likewise.
17619         * simplify-rtx.c (simplify_relational_operation):  Likewise.
17621 2003-02-25  Roger Sayle  <roger@eyesopen.com>
17623         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
17624         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
17625         the appropriate macro to define built-in function.
17626         (fmod,fmodf,fmodl): New built-in functions.
17628         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
17630 2003-02-25  Richard Henderson  <rth@redhat.com>
17632         * config/i386/i386.c (function_arg): Pass variable sized
17633         structures correctly on the stack.
17635 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
17637         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
17638         does not reduce the cost of SET.
17640 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17642         PR target/9732
17643         * config/rs6000/rs6000.c (first_reg_to_save): Handle
17644         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
17645         (rs6000_emit_prologue): Likewise.
17646         (rs6000_emit_epilogue): Likewise.
17647         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
17648         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
17650 2003-02-25  Richard Henderson  <rth@redhat.com>
17652         * real.c (real_to_integer2): Force overflow result only for
17653         unsigned overflow.
17655 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
17657         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
17659 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
17660             Richard Henderson  <rth@redhat.com>
17662         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
17663         there is no similar load.
17665 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
17666             Richard Henderson  <rth@redhat.com>
17668         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
17669         sched-rgn.c.
17670         (add_forward_dependence): New function prototype.
17672         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
17673         sched-init.h.
17674         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
17675         them to haifa-sched.c.
17677         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
17678         haifa_classify_insn): Move them from sched-rgn.c.
17680         * sched-deps.c (add_dependence): Return flag of creating a new
17681         entry.
17682         (add_forward_dependence): New function.
17683         (compute_forward_dependences): Use the function.
17685         * sched-ebb.c (earliest_block_with_similiar_load): New function.
17686         (add_deps_for_risky_insns): New function.
17687         (schedule_ebb): Call the function.
17689 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
17691         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
17692         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
17694         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
17695         opaque types fail.
17697         * c-typeck.c (comptypes): Change call to vector_types_compatible
17698         to vector_opaque_p.
17699         (convert_for_assignment): Call vector_opaque_p instead of
17700         vector_types_compatible.
17701         (really_start_incremental_init): Disallow initialization of opaque
17702         types.
17704         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
17705         Define TARGET_VECTOR_OPAQUE_P.
17706         (TARGET_INITIALIZER): Same.
17708         * target.h (struct gcc_target): Remove vector_types_compatible.
17709         Add vector_opaque_p.
17711         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
17712         Remove.
17713         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
17714         a vector type.  Change return type to bool.
17715         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
17716         (TARGET_VECTOR_OPAQUE_P): Define.
17718         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
17719         target hook.
17720         Include target.h.
17721         (cp_parser_init_declarator): Fix typo in function comments.
17723 2003-02-25  Jan Hubicka  <jh@suse.cz>
17725         * Makefile.in (lcm.o):  Add dependency on function.h
17726         * lcm.c (function.h): Include.
17727         * i386.c (machine_function, ix86_stack_locals,
17728         * ix86_save_varrargs_registers) : Move to
17729         ...
17730         * i386.h (machine_function, ix86_stack_locals,
17731         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
17732         (ix86_optimize_mode_switching): New.
17733         * i386.md (fix patterns): Set ix86_optimize_mode_switching
17735 2003-02-25  Nick Clifton  <nickc@redhat.com>
17737         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
17738         of fourth arg is 'fndecl' not 'indirect'.  Update comment
17739         describing the function's parameters.
17741 2003-02-24  Jan Hubicka  <jh@suse.cz>
17743         * combine.c (simplify_shift_const):  Fix previous patch.
17745 2003-02-24  Jeff Law  <law@redhat.com>
17747         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
17748         alternative.
17749         (testsi_1, testhi_1, testqi_1): Likewise.
17751 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17753         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
17754         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
17755         * doc/extend.texi (Tru64 Pragmas): Reflect this.
17757         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
17758         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
17759         * fixinc/fixincl.x: Regenerate.
17760         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
17761         testcase.
17762         Fixes PR c/5059, c/6126, other/9671.
17764 2003-02-24  Roger Sayle  <roger@eyesopen.com>
17766         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
17767         from handle_braces in "%{...}".
17769 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17771         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
17772         (prepare_move_operands): Handle TLS operands.
17773         (tls_symbolic_operand): New.
17774         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
17775         (legitimize_pic_address): Do nothing for the TLS symbol.
17776         (sh_encode_section_info): Handle TLS case.
17777         (sh_strip_name_encoding): Drop TLS encoding.
17778         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
17779         * config/sh/sh.h (SH_TLS_ENCODING): Define.
17780         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
17781         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
17782         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
17783         * config/sh/sh.md: Define TLS UNSPEC constants.
17784         (type): Add tls_load.
17785         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
17786         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
17787         ("tls_initial_exec"): New insn.
17788         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
17789         ("load_gbr"): New insn.
17791         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
17792         * configure: Regenerate.
17794 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
17796         PR 9297, PR 9722
17797         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
17798         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
17799         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
17800         (enum block_op_methods): Reorder for better store_expr optimization.
17801         * expr.c (store_expr): Test bit 1 of "want_value" for call param
17802         stores, test bit 0 for original want_value meaning.  Pass
17803         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
17804         recursive calls, and calls to expand_param.
17805         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
17806         expected, set target to 0 rather than to subtarget.  Formatting.
17808 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
17810         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
17812 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17814         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
17815         new default behavior.
17816         * ggc-common.c: Include sys/resource.h.
17817         (ggc_rlimit_bound): New function.
17818         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
17819         defaults to account for rlimits.
17821 2003-02-22  Richard Henderson  <rth@redhat.com>
17823         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
17825 2003-02-22  Kelley Cook <kelley@dwhoops.info>
17827         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
17828         (ix86_tune_string): Rename from ix86_cpu_string.
17830 2003-02-22  Kelley Cook <kelleycook@comcast.net>
17832         * config/i386/i386.c: Replace "mcpu" with "mtune".
17833         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
17834         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
17835         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
17836         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
17838 2003-02-23  Andreas Schwab  <schwab@suse.de>
17840         * config.gcc: Delete references to m68k/t-linux and
17841         m68k/t-linux-aout.
17842         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
17844 2003-02-22  Jan Hubicka  <jh@suse.cz>
17846         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
17847         of track scheduling patch.
17849 2003-02-22  Jan Hubicka  <jh@suse.cz>
17851         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
17852         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
17854 2003-02-22  Jan Hubicka  <jh@suse.cz>
17856         * c-decl.c (c_expand_body_1): Fix.
17858 2003-02-22  Jan Hubicka  <jh@suse.cz>
17860         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
17862         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
17863         when not optimizing.
17864         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
17865         when not expensive.
17866         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
17867         optimizing;  Delete trivially dead insns early; fix optimize check.
17869         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
17870         dependency on cgraph.h
17871         * c-decl.c: Include cgraph.h
17872         (finish_function): Update call of tree_inlinable_function_p.
17873         * c-objc-common.c: Include cgraph.h
17874         * cgraph.h: New file.
17875         * cgraphunit.c: New file.
17876         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
17877         (cgraph_nodes, cgraph_n_nodes): Globalize.
17878         (cgraph_finalize_function, cgraph_finalize_compilation_unit
17879         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
17880         Move into cgraphunit.c
17881         * tree-inline.c: Include cgraph.h
17882         * tree-inline.c: Include cgraph.h
17884 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
17886         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
17887         for copying a register.
17889 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
17891         PR other/3782
17892         * toplev.c (process_options): If flag_detailed_statistics is set,
17893         then set time_report as well.
17895         PR c/8828
17896         * jump.c (never_reached_warning): Don't fall through BARRRIER
17897         insns.  Update comments to reflect what the function really does.
17899 2003-02-21  Roger Sayle  <roger@eyesopen.com>
17901         * fold-const.c (omit_one_operand): No longer static.
17902         * tree.h (omit_one_operand): Prototype here.
17903         (div_and_round_double): Keep fold-const.c prototypes together.
17904         * builtins.c (builtin_mathfn_code): Handle binary built-in
17905         funtions, such as "pow" and "atan2".
17906         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
17907         Simplify optimizations using "type" the builtin's return type.
17909 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
17911         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
17912         Fix functionalization typo.
17914         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
17915         in an asm.
17917 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17919         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
17920         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
17921         documentation.
17922         * ggc-common.c: Include params.h
17923         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17924         init_ggc_heuristics): New functions.
17925         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
17926         init_ggc_heuristics): Prototype.
17927         * toplev.c (print_version):  Output GGC heuristics.
17928         (parse_options_and_default_flags): Call init_ggc_heuristics.
17930 2003-02-22  Jan Hubicka  <jh@suse.cz>
17932         * i386.c (def_builtin):  Special case 64bit builtins.
17933         (MASK_SSE164, MASK_SSE264): New constants.
17934         (builtin_description): Add 64bit builtins.
17935         (ix86_init_mmx_sse_builtins): Likewise.
17936         * i386.h (enum ix86_builtins): Likewise.
17937         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
17938         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
17939         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
17940         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
17941         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
17942         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
17943         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
17945 2003-02-22  Jan Hubicka  <jh@suse.cz>
17947         * i386.c (builtin_description): Add __builtin_ia32_paddq and
17948         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
17949          and __builtin_ia32_psubq128.
17950         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
17951         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
17952         (mmx_adddi3, mmx_subdi3): New.
17953         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
17954         * xmmintrin.h (_mm_movepi64_pi64): New.
17955         (_mm_add_epi64, _mm_sub_epi64): fix.
17956         (_mm_mul_pu16): Rename to...
17957         (_mm_mul_su32): ... this one.
17959         * builtins.c (expand_builtin_expect):  Do not predict
17960         flag_guess_branch_prob is not set.
17961         * c-semantics.c (expand_stmt): Likewise.
17962         * predict.c (predict_insn): Likewise.
17963         * stmt.c (expand_continue_loop): Likewise.
17964         * toplev.c (rest_of_compilation): Do not call
17965         note_prediction_to_br_prob and note_prediction_to_br_prob
17966         when not optimizing.
17968 2003-02-21  Jan Hubicka  <jh@suse.cz>
17970         * cfgrtl.c (commit_edge_insertions):  Call
17971         find_many_sub_basic_block only when some code has been emitted.
17972         (commit_edge_insertions_watch_calls): Bring into sync with
17973         commit_edge_insertions
17975 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
17977         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
17979         * sh.md (binary_sf_op): Use extra constant operand instead of
17980         negating constant operand 4.
17981         * sh.c (sh_expand_binop_v2sf): Supply it.
17983 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
17985         * cpphash.h (struct lexer_state): Add directive_wants_padding.
17986         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
17987         for directives of type INCL.
17988         (glue_header_name, parse_include): Use get_token_no_padding.
17989         * cppmacro.c (replace_args): If directive_wants_padding,
17990         provide padding tokens.
17992 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
17994         * config/h8300/h8300.md (a peephole2): New.
17996 2003-02-21  Jan Hubicka  <jh@suse.cz>
17998         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
17999         (commit_edge_insertions): Call find_many_sub_basic_blocks
18001         * reg-stack.c (convert_regs): Cleax aux for blocks.
18003 2003-02-21  Jan Hubicka  <jh@suse.cz>
18005         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
18007 2003-02-21  Glen Nakamura  <glen@imodulo.com>
18009         PR optimization/8613
18010         * builtins.c (expand_builtin): Emit postincrements before expanding
18011         builtin functions.
18013 2003-02-21  Ben Elliston  <bje@redhat.com>
18015         PR other/5634
18016         * doc/install.texi (Configuration): Explain using $HOME instead of
18017         the ~ metacharacter when referring to home directories.
18019 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
18021         * configure.in (TARGET_SYSTEM_ROOT): Set default to
18022         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
18023         '${exec_prefix}' (in addition to the expansion thereof) as
18024         relocatable.
18025         * configure: Rebuilt.
18027 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
18029         * config/h8300/h8300.md (addhi3_incdec): Change the name to
18030         *addhi3_incdec.
18031         (addsi3_incdec): Change the name to *addsi3_incdec.
18033 2003-02-20  Roger Sayle  <roger@eyesopen.com>
18035         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
18037 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
18039         PR fortran/9038
18040         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
18041         options to be ignored.
18042         (c_common_decode_option): Ignore them when preprocessing.
18044 2003-02-20  Jan Hubicka  <jh@suse.cz>
18046         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
18047         global variables.
18048         (lang_independent_options):  Add -fsched2-use-superblocks
18049         -fsced2-use-traces.
18050         (rest_of_compilation): Deal with it.
18051         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
18052         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
18053         Declare.
18054         * rtl.h (reg_to_stack):  Update prototype.
18055         * reg-stack.c (reg_to_stack): Return when something has changed;
18056         update liveness when executing after superblock scheduling.
18058         * combine.c (simplify_shift_const):  Simplify few special cases
18059         into constants.
18061 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
18063         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
18064         (add.,subf.,neg.): Change attribute to fast_compare.
18065         All DFA descriptions updated.
18067 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
18069         Change base class access representation.
18070         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
18071         TREE_VIA_PRIVATE): Remove.
18072         (BINFO_BASEACCESSES): New binfo elt.
18073         (BINFO_BASEACCESS): New accessor.
18074         (BINFO_ELTS): Increase.
18075         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
18076         (access_public_node, access_protected_node,
18077         access_private_node): New global nodes.
18078         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
18079         * dbxout.c (dbxout_type): Adjust.
18080         * dwarf2out.c (gen_inheritance_die): Add access parameter.
18081         (gen_member_die): Adjust.
18082         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
18083         (output_type): Adjust.
18084         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
18086         Change base class access representation. Share virtual base
18087         binfos.
18088         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
18089         call.
18090         * cp/class.c (build_base_path): Likewise.
18091         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
18092         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
18093         (make_new_vtable): Adjust.
18094         (force_canonical_binfo_r): Delete.
18095         (force_canonical_binfo): Delete.
18096         (mark_primary_virtual_base): Delete.
18097         (dfs_unshared_virtual_bases): Delete.
18098         (mark_primary_bases): Adjust.
18099         (maybe_warn_about_overly_private_class): Adjust.
18100         (dfs_base_derived_from): Delete.
18101         (base_derived_from): Follow the inheritance chain.
18102         (struct find_final_overrider_data): Add vpath member.
18103         (dfs_find_final_overrider): Adjust.
18104         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
18105         (find_final_overrider): Adjust.
18106         (update_vtable_entry_for_fn): Adjust.
18107         (modify_all_vtables): Adjust.
18108         (walk_subobject_offsets): Adjust.
18109         (layout_nonempty_base_or_field): Adjust.
18110         (layout_empty_base): Remove last parameter. Adjust.
18111         (build_base_field): Adjust.
18112         (build_base_fields): Adjust.
18113         (propagate_binfo_offsets): Remove last parameter. Adjust.
18114         (dfs_set_offset_for_unshared_vbases): Delete.
18115         (layout_virtual_bases): Adjust.
18116         (finish_struct_1): Adjust.
18117         (init_class_processing): Don't init access nodes.
18118         (dfs_get_primary_binfo): Delete.
18119         (get_primary_binfo): Adjust.
18120         (dump_class_hierarchy_r): Remove most derived arg, add IGO
18121         parameter. Adjust.
18122         (dump_class_hierarchy): Adjust.
18123         (finish_vtbls): Adjust.
18124         (get_original_base): Delete.
18125         (build_vtt_inits): Adjust.
18126         (dfs_build_secondary_vptr_vtt_inits): Adjust.
18127         (dfs_ctor_vtable_bases_queue_p): Adjust.
18128         (build_ctor_vtbl_group): Adjust.
18129         (dfs_accumulate_vtbl_inits): Adjust.
18130         (build_vtbl_initializer): Adjust.
18131         (build_vbase_offset_vtbl_entries): Adjust.
18132         (add_vcall_offset_vtbl_entries_1): Adjust.
18133         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
18134         (access_*_node): Remove.
18135         (CANONICAL_BINFO): Delete.
18136         (BINFO_UNSHARED_MARKED): Remove.
18137         (BINFO_MARKED): Set LANG_FLAG_0 directly.
18138         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
18139         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
18140         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
18141         Delete.
18142         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
18143         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
18144         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
18145         Delete.
18146         (BINFO_DEPENDENT_BASE_P): New.
18147         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
18148         index.
18149         (markedp, unmarkedp): Adjust.
18150         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
18151         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
18152         find_vbase_instance, binfo_for_vbase): Delete.
18153         (copied_binfo, original_binfo): Declare.
18154         (finish_base_specifier): Add virtual_p arg.
18155         (unshare_base_binfos): Delete.
18156         (copy_base_binfos): Declare.
18157         (reverse_path): Delete.
18158         * cp/decl.c (xref_basetypes): Access and virtuality passed
18159         differently. Don't copy direct base binfos here. Call
18160         copy_base_binfos.
18161         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
18162         (initialize_vtbl_ptrs): Adjust.
18163         (expand_member_init): Adjust.
18164         * cp/parser.c (cp_parser_base_specifier): Adjust.
18165         * cp/pt.c (instantiate_class_template): Adjust.
18166         (get_template_base_recursive): Adjust.
18167         * cp/rtti.c (get_pseudo_ti_init): Adjust.
18168         (get_pseudo_ti_desc): Adjust.
18169         * cp/tree.c (unshare_base_binfos): Rename to ...
18170         (copy_base_binfos): ... here, reimplement.
18171         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
18172         (reverse_path): Remove.
18173         * cp/typeck.c (get_delta_difference): Adjust error messages.
18174         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
18175         * cp/search.c (lookup_base_r): Adjust.
18176         (dynamic_cast_base_recurse): Adjust.
18177         (canonical_binfo): Remove.
18178         (dfs_canonical_queue): Remove.
18179         (dfs_assert_unmarked_p): Remove.
18180         (assert_canonical_unmarked): Remove.
18181         (shared_marked_p, shared_unmarked_p): Remove.
18182         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
18183         (dfs_access_in_type): Adjust.
18184         (access_in_type): Adjust.
18185         (dfs_accessible_queue_p): Adjust.
18186         (dfs_accessible_p): Adjust.
18187         (is_subobject_of_p_1, is_subobject_of_p): Remove.
18188         (struct lookup_field_info): Remove from_dep_base_p field.
18189         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
18190         (lookup_field_r): Remove dependent base code.
18191         (lookup_member): Likewise.
18192         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
18193         (dfs_unmarked_real_bases_queue_p): Remove.
18194         (dfs_marked_real_bases_queue_p): Remove.
18195         (dfs_skip_vbases): Remove.
18196         (dfs_get_pure_virtuals): Adjust.
18197         (markedp, unmarkedp): Adjust.
18198         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
18199         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
18200         (dfs_unmark): Adjust.
18201         (dfs_get_vbase_types):Remove.
18202         (dfs_build_inheritance_graph_order): Remove.
18203         (get_vbase_types): Remove
18204         (dfs_find_vbase_instance): Remove.
18205         (find_vbase_instance): Remove.
18206         (dfs_debug_unmarkedp): Adjust.
18207         (dependent_base_p): Remove.
18208         (dfs_push_type_decls): Adjust.
18209         (dfs_push_decls): Adjust.
18210         (dfs_no_overlap_yet): Adjust.
18211         (copied_binfo): New function.
18212         (original_binfo): New function.
18213         (binfo_for_vbase): Remove.
18215         Change base class access representation.
18216         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
18217         (add_interface_do): Likewise.
18219 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
18221         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18222         * config/rs6000/power4.md (power4-store,power4-vecstore): New
18223         insn reservations.
18224         (power4-fpstore): Compact.
18226 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
18228         * config/h8300/h8300.md (*iorsi3_w): New.
18230 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
18232         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
18233         * rtl.c (reg_note_name): Likewise.
18234         * rtl.h (enum reg_note): Likewise.
18235         * doc/invoke.texi: Likewise.
18236         * doc/rtl.texi: Likewise.
18238 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
18240         * bb-reorder.c (find_traces_1_round): Fix comment typo.
18242 2003-02-19  Roger Sayle  <roger@eyesopen.com>
18244         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
18245         addition in the presence of signaling NaNs.
18247 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
18249         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
18251 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18253         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
18254         ORing with 0xffff??00 with the highest bit of the ?? part set.
18255         (compute_logical_op_length): Update.
18256         (compute_logical_op_cc): Likewise.
18258 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
18260         * bb-reorder.c (find_traces_1_round): Fixed condition for small
18261         destination block with multiple predecessors.
18262         (connect_traces): Check whether the block is a start of trace.
18264 2003-02-19  Jan Hubicka  <jh@suse.cz>
18266         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
18267         * function.c (assign_params): Likewise.
18268         * arm-protos.h (arm_init_cumulative_args): Update prototype.
18269         * arm.c (arm_init_cumulative_args): Update function.
18270         * arm.h (INIT_CUMULATIVE_ARGS): Update.
18271         * avr-protos.h (init_cumulative_args): Update prototype.
18272         * avr.c (init_cumulative_args): Update function.
18273         * avr.h (INIT_CUMULATIVE_ARGS): Update.
18274         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
18275         * d30v.c (d30v_init_cumulative_args): Update function.
18276         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
18277         * frv-protos.h (frv_init_cumulative_args): Update prototype.
18278         * frv.c (frv_init_cumulative_args): Update function.
18279         * frv.h (INIT_CUMULATIVE_ARGS): Update.
18280         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
18281         * pa.h (INIT_CUMULATIVE_ARGS): Update.
18282         * sparc-protos.h (init_cumulative_args): Update prototype.
18283         * sparc.c (init_cumulative_args): Update function.
18284         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
18285         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
18287 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18289         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
18290         (*ashiftsi_sextqi_7): Likewise.
18292 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18294         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
18295         ISO C99 and C++.
18297         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
18298         for C++ on IRIX 6.5.1[89].
18299         * fixinc/tests/base/internal/sgimacros.h: New file.
18301         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
18302         * fixinc/tests/base/internal/wchar_core.h: New file.
18304         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
18305         socklen_t definition.
18306         * fixinc/fixincl.x: Regenerate.
18307         * fixinc/tests/base/sys/socket.h: New file.
18308         Fixes PR libgcj/9652.
18310 2003-02-19  Jan Hubicka  <jh@suse.cz>
18312         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
18314 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
18316         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
18317         align_jumps_max_skip and align_loops_max_skip.
18319 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
18321         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
18322         test size if named section.
18324 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
18326         * expr.c (expand_expr): Use gen_int_mode for the argument
18327         to gen_rtx_MULT.
18329 2003-02-19  Jan Hubicka  <jh@suse.cz>
18331         * i386.md (cosxf2):  Fix conditional.
18333 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18335         * config/h8300/h8300.md (extendqisi2): Change to an expander.
18336         (*extendqisi2_h8300): New.
18337         (*extendqisi2_h8300hs): Likewise.
18339 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
18341         * config/h8300/h8300-protos.h: Update the prototype for
18342         split_adds_subs.  Remove the prototypes for
18343         const_int_le_2_operand and const_int_le_6_operand.
18344         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
18345         (const_int_le_2_operand): Remove.
18346         (const_int_le_6_operand): Likewise.
18347         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
18348         for const_int_le_2_operand and const_int_le_6_operand.
18349         * config/h8300/h8300.md: Update all uses of split_adds_subs.
18350         (a peephole2): New.
18352 2003-02-18  Jan Hubicka  <jh@suse.cz>
18354         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
18355         (cgraph_expand_function): Rewrite.
18357 2003-02-18  Matt Austern <austern@apple.com>
18359         * toplev.c, langhooks.c, langhooks-def.h: Move
18360         write_global_declarations from toplev.c to langhooks.c.
18362 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
18364         * config/h8300/h8300.c (general_operand_src): Always check
18365         MODE.
18366         (general_operand_dst): Likewise.
18368 2003-02-18  Roger Sayle  <roger@eyesopen.com>
18370         * convert.c (convert_to_real): Also optimize (float)log(x) into
18371         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
18373 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18375         * config/sh/sh.c (unspec_caller_rtx_p): New.
18376         (sh_cannot_copy_insn_p): New.
18377         (TARGET_CANNOT_COPY_INSN_P): New.
18379 2003-02-18  Richard Henderson  <rth@redhat.com>
18381         * c-common.c (handle_used_attribute): Accept static data too.
18383 2003-02-18  Nick Clifton  <nickc@redhat.com>
18384             Aldy Hernandez  <aldyh@redhat.com>
18386         * testsuite/gcc.dg/20030218-1.c: New.
18388         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
18390         * target-def.h (TARGET_INITIALIZER): Add
18391         TARGET_VECTOR_TYPES_COMPATIBLE.
18392         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
18394         * target.h (struct gcc_target): Add field vector_types_compatible.
18396         * c-typeck.c (comptypes): Take into account
18397         TARGET_VECTOR_TYPES_COMPATIBLE.
18398         (convert_for_assignment): Same.
18400         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
18401         (rs6000_spe_vector_types_compatible): New.
18402         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
18404 2003-02-19  Andreas Schwab  <schwab@suse.de>
18406         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
18407         * toplev.c: Include langhooks-def.h.
18409 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
18411         * config/mips/mips.h (enum processor_type): Sort entries
18412         alphabetically.
18413         * config/mips/mips.md (define_attr cpu): Sync with processor_type
18414         enum values, including adding entries that were missing.
18416 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
18418         * sh.c (calc_live_regs): Also check GET_CODE when checking if
18419         initial value for PR_REG is still the PR_REG register.
18421 2003-02-18  Jim Wilson  <wilson@redhat.com>
18423         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
18424         instruction in output template.
18425         (bsp_value): Change output template from string to C code, add %,
18426         before actual instruction.
18427         (flushrs): Mark as not predicable.
18429 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
18431         * inclhack.def (netbsd_bogus_semicolon): New fix.
18432         * fixincl.x: Rebuilt.
18433         * tests/base/ctype.h: Update.
18435 2003-02-18  Roger Sayle  <roger@eyesopen.com>
18437         * fold-const.c (negate_expr_p): New function to determine whether
18438         an expression can be negated cheaply.
18439         (fold) [MINUS_EXPR]: Use it to determine whether to transform
18440         -A - B into -B - A for floating point types.
18442 2003-02-18  Roger Sayle  <roger@eyesopen.com>
18444         * sbitmap.c (sbitmap_resize): New function.
18445         * sbitmap.h (sbitmap_resize): Prototype here.
18446         * recog.c (split_all_insns): Use sbitmap_resize.
18448 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
18450         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
18451         insn length.
18452         (extendqisi2): Likewise.
18453         (*extendhisi2_h8300): Likewise.
18455 2003-02-18  Matt Austern <austern@apple.com>
18457         * langhooks.h, langhooks-def.h: introduce new langhook,
18458         final_write_globals, with write_global_declarations as default.
18459         * toplev.c: Move invocation of wrapup_global_declarations from
18460         compile_file to new function, write_global_declarations.  Change
18461         compile_file to use final_write_globals hook.  Change
18462         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
18463         conditional.
18465 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18467         * pa.md: Correct and enhance comment.
18469 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
18471         * gcc.c (validate_switches): Don't scan past closing '}'.
18473 2003-02-18  Ben Elliston  <bje@redhat.com>
18475         PR c++/1607
18476         * doc/extend.texi (Function Attributes): Document the effect of
18477         the C++ "this" parameter on the counting of arguments for the
18478         "format" and "format_arg" attributes.
18480 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
18482         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
18483         (__ev_stdw): Same.
18484         (__ev_stdh): Same.
18486 2003-02-17  Jan Hubicka  <jh@suse.cz>
18488         * recog.c (split_all_insns):  Fix memory overflow.
18490 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
18492         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
18493         (cmphi): Likewise.
18494         (*cmphi_h8300): Likewise.
18495         (*cmphi_h8300hs): Likewise.
18496         (cmpsi): Likewise.
18497         (7 peephole2): Likewise.
18499 2003-02-16  Jan Hubicka  <jh@suse.cz>
18501         * c-typeck.c (build_c_cast):  Fold constant variables into
18502         initial values.
18504 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18506         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
18507         (Binaries): Ditto for Sinix/Reliant Unix.
18509 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
18511         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
18512         not overlap the final result register.
18514 2003-02-16 Arend Bayer <arend.bayer@web.de>
18515            Richard Henderson  <rth@redhat.com>
18517         PR c/8068
18518         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
18519         rearrange mult arguments for less recursion.
18520         (extract_muldiv): New.  Prevent runaway recursion.
18522 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
18524         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
18525         MASK_ALIGN_DOUBLE.
18527 2003-02-15  Roger Sayle  <roger@eyesopen.com>
18529         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
18530         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
18531         (ext_80387_constants_table): Global table of 80387 special constants
18532         guarded by ext_80387_constants_init flag when not initialized.
18533         (init_ext_80387_constants): New function to initialize this table.
18534         (standard_80387_constant_p): Extend to recognize extra 80387
18535         constants, in XFmode, on processors where this is a win.
18536         (standard_80387_constant_opcode): New function to return the
18537         opcode associated with standard_80387_constant_p.
18538         (standard_80387_constant_rtx): New function to return the XFmode
18539         CONST_DOUBLE associated with standard_80387_constant_p.
18540         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
18542         * config/i386/i386-protos.h (standard_80387_constant_opcode):
18543         Prototype here.
18544         (standard_80387_constant_rtx): Likewise.
18546         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
18547         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
18548         *movtf_integer): Simplify using new standard_80387_constant_opcode.
18550 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
18552         * doc/invoke.texi (Optimize Options): Correct @option syntax.
18554 2003-02-15  Richard Henderson  <rth@redhat.com>
18556         * Makefile.in (cfglayout.o): Depend on TARGET_H.
18557         * cfglayout.c: Include target.h.
18558         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
18559         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
18560         * target.h (struct gcc_target): Add cannot_copy_insn_p.
18562         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
18563         (TARGET_CANNOT_COPY_INSN_P): New.
18564         (override_options): Revert 2003-02-08 hack.
18566 2003-02-15  Richard Henderson  <rth@redhat.com>
18568         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
18569         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
18571 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
18573         * config/rs6000/rs6000.h (processor_type): Add PPC440.
18574         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
18575         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
18576         TARGET_SCHED_VARIABLE_ISSUE): Define.
18577         (rs6000_use_dfa_pipeline_interface): New function.
18578         (rs6000_multipass_dfa_lookahead): New Function.
18579         (rs6000_variable_issue): New function.
18580         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
18581         (rs6000_issue_rate): Add PPC440.
18582         * config/rs6000/rs6000.md (unspec list): Correct typo.
18583         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
18584         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
18585         cmp, delayed_cr, mfcr, mtcr.
18586         (automata_option): Set "ndfa".
18587         (extendMMNN2): Update attributes.
18588         (movcc_internal1): Discourage move to non-cr0.  Update
18589         attributes.
18590         (movMM_update): Update attributes.
18591         (cmpMM_internal): Update attributes.
18592         (sCC CR materialization): Update attributes.
18593         (branch patterns): Do not discourage non-cr0.
18594         (cr logical patterns): Prefer destructive register allocation.
18595         Update attributes.
18596         (movesi_from_cr): Update attribute.
18597         (mtcrf_operation): Update attribute.
18598         (mtcrfsi): Update attribute.
18599         * config/rs6000/40x.md: New file.
18600         * config/rs6000/603.md: New file.
18601         * config/rs6000/6xx.md: New file.
18602         * config/rs6000/7450.md: New file.
18603         * config/rs6000/7xx.md: New file.
18604         * config/rs6000/mpc.md: New file.
18605         * config/rs6000/power4.md: New file.
18606         * config/rs6000/rios1.md: New file.
18607         * config/rs6000/rios2.md: New file.
18608         * config/rs6000/rs64.md: New file.
18609         [Some DFA descriptions based on work by Michael Hayes]
18611 2003-02-15  Richard Henderson  <rth@redhat.com>
18613         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
18614         successors with multiple predecessors.
18615         (connect_traces): Try harder to copy traces of length 1.
18617         * function.h (struct function): Add computed_goto_common_label,
18618         computed_goto_common_reg.
18619         * function.c (free_after_compilation): Zap them.
18620         * stmt.c (expand_computed_goto): Use them to produce one
18621         indirect branch per function.
18623 2003-02-15  Richard Henderson  <rth@redhat.com>
18625         * cfgcleanup.c: Include params.h.
18626         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
18627         too many outgoing edges from a block.
18628         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
18629         * params.def (max-crossjump-edges): New.
18630         * doc/invoke.texi: Document it.
18632 2003-02-15  Richard Henderson  <rth@redhat.com>
18634         * recog.c (split_all_insns): Include new blocks in life update;
18635         do a global life update.
18637 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
18639         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
18640         Update copyright.
18641         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
18642         -mno-cygwin case.
18644 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18646         PR optimization/7702
18647         * reload1.c (reload_cse_simplify_set): Honor
18648         CANNOT_CHANGE_MODE_CLASS.
18650 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
18652         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
18653         function.
18654         * config/mn10300/mn10300-protos.h: Declare it.
18655         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
18656         attribute cc of instructions that may use clr.
18658 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18660         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
18661         (x - (x & y)) is found.
18663 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18665         * configure.in: Fix typo.
18666         * configure: Regenerate.
18668 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18670         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
18672 2003-02-13  Adam Nemet  <anemet@lnxw.com>
18674         PR opt/2391
18675         * combine.c: Fix spelling in comment.
18676         (cached_nonzero_bits): New function.
18677         (cached_num_sign_bit_copies): New function.
18678         (nonzero_bits_with_known): New macro.
18679         (num_sign_bit_copies_with_known): New macro.
18680         (nonzero_bits1): Rename from nonzero_bits.  Add three new
18681         arguments.  Change calls from nonzero_bits to
18682         nonzero_bits_with_known.
18683         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
18684         three new arguments.  Change calls from num_sign_bit_copies to
18685         num_sign_bit_copies_with_known.
18686         (nonzero_bits): New macro.
18687         (num_sign_bit_copies): New macro.
18688         (update_table_tick): Don't traverse identical subexpression more
18689         than once.
18690         (get_last_value_validate): Likewise.
18692 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
18694         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
18695         * function.h (struct emit_status): Length of regno_pointer_align
18696         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
18697         not regno_pointer_align_length (i.e. length actually used, not
18698         length as allocated)
18700         * config/i386/i386.c (struct stack_local_entry): New.
18701         (struct machine_function): Replace huge array with alist.
18702         (assign_386_stack_local): Change to match.
18704 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
18706         * inclhack.def (hpux_long_double): Tighten select and add bypass
18707         regexp.
18708         * fixincl.x: Rebuilt.
18710 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
18712         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
18713         edge and block ends with a jump insn it must be simple jump.
18715 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
18717         * Makefile.in (PREPROCESSOR_DEFINES): Add
18718         @TARGET_SYSTEM_ROOT_DEFINE@.
18719         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
18720         is specified or if building a cross compiler.
18721         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
18722         if the sysroot is under $exec_prefix.
18723         * configure: Regenerated.
18724         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
18725         defined.
18726         (struct default_include): Add add_sysroot field.
18727         (cpp_SYSROOT): Declare.
18728         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
18729         field.
18730         (cpp_SYSROOT): New variable.
18731         * cppinit.c (cpp_create_reader): Initialize
18732         CPP_OPTION (pfile, sysroot).
18733         (init_standard_includes): Handle add_sysroot.  Do not
18734         add unrelocated copies of relocated directories.
18735         (COMMAND_LINE_OPTIONS): Add -isysroot.
18736         (cpp_handle_option): Handle -isysroot.
18737         * cpplib.h (struct cpp_options): Add sysroot member.
18738         * gcc.c (The Specs Language): Update description of %I.
18739         (target_system_root_changed): New variable.
18740         (process_command): Conditionalize make_relative_prefix call
18741         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
18742         target_system_root_changed.
18743         (do_spec_1): Add -isysroot to %I.
18744         * doc/invoke.texi (Spec Files): Update description of %I.
18745         * doc/install.texi (--with-sysroot): Update comment about
18746         relocation.
18748 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
18750         * config/h8300/h8300.md (a peephole2): New.
18752 2003-02-13  Robert Lipe <robertlipe@usa.net>
18753             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18755         * doc/install.texi (Specific): Update three SCO-related URLs.
18757 2003-02-13  Andreas Schwab  <schwab@suse.de>
18759         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
18760         Parenthesize properly.
18761         (NPREDECESORS): Parenthesize properly.
18763 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18765         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
18767 2003-02-12  Roger Sayle  <roger@eyesopen.com>
18769         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
18770         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
18772         * reg-stack.c (subst_stack_regs_pat): Add support for binary
18773         UNSPEC instructions (e.g. "fpatan").
18775 2003-02-12  Mike Stump  <mrs@apple.com>
18777         * varray.c (element_size): Remove.
18778         (uses_ggc): Remove.
18779         (element): Add.
18780         (varray_init): Use new interface.
18781         (varray_grow): Use new interface.
18782         (varray_clear): Use new interface.
18784 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
18786         * config/rs6000/spe.h: Add casts to the arguments of the following
18787         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
18788         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
18789         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
18790         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
18791         __ev_get_u16, __ev_get_s16.
18793 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18795         * config/h8300/h8300.md (a peephole2): New.
18797 2003-02-12  Jan Hubicka  <jh@suse.cz>
18799         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
18800         (OBJS): Add callgraph.o
18801         (callgraph.o): New.
18802         * c-decl.c (expand_body_1): Break out from ...
18803         (expand_body): This one;  change calling convention
18804         (finish_function): Move some of expand_body logic here.
18805         (c_expand_deferred_function): Update call of expand_body
18806         (c_expand_stmt): Use c_expand_body_1.
18807         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
18808         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
18809         * c-tree.h (c_expand_body): Declare.
18810         * callgraph.c: New file.
18811         * flags.h (flag_unit_at_a_time): Declare.
18812         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
18813         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
18814         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
18815         * langhooks.h (struct lang_hooks_for_callgraph): New.
18816         (struct lang_hooks): Add callgraph field.
18817         * toplev.c (flag_unit_at_a_time): New.
18818         (lang_independent_options): Add flag_unit_at_a_time.
18819         (process_options): Disable unit-at-a-time mode for frontends not
18820         supporting callgraph.
18821         * tree-inline.c (typedef struct inline_data): Add "decl"
18822         (expand_call_inline): Update callgraph.
18823         (optimize_inline_calls): Set id.decl.
18824         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
18825         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
18826         cgraph_calls_p): Declare.
18827         * invoke.texi (-funit-at-a-time): Document
18829 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
18831         * config/rs6000/spe.h: Fix misc formatting.
18832         (__ev_create_ufix32_fs): Cast ev argument.
18833         (__ev_create_sfix32_fs): Same.
18834         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
18835         (__ev_get_ufix32_fs_internal): Same.
18837 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
18839         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
18840         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
18842 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
18844         * cpplib.c (do_include_common): Move warnings for
18845         #include_next and #import out to callers.  Use early-return
18846         instead of nested ifs.  Don't do check_eol here.
18847         (parse_include): Do check_eol here with the rest of the
18848         parsing stuff.
18849         (do_include_next, do_import): Now handle warnings.
18851 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18853         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
18855 2003-02-12  Jan Hubicka  <jh@suse.cz>
18857         * predict.c (estimate_probability):  Fix roundoff error.
18859 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18861         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
18862         (two peephole2): New.
18864 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18866         * config/h8300/h8300.md (several peephole2): Replace
18867         find_regno_note with peep2_reg_dead_p.
18869 2003-02-11  Richard Henderson  <rth@redhat.com>
18871         * gcse.c (lookup_set): Remove unused argument PAT.  Update
18872         both callers.
18874 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
18876         * diagnostic.c (real_abort): New.
18877         (diagnostic_report_diagnostic): Call real_abort on error.
18878         * diagnostic.h (diagnostic_abort_on_error): New.
18879         (struct diagnostic_context): Add abort_on_error field.
18880         * toplev.c (setup_core_dumping): New.
18881         (decode_d_option): Handle 'H' case.
18882         * doc/invoke.texi (Debugging Options): Document -dH.
18884 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
18886         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
18887         which refers to obsolete directories.
18889 2003-02-11  Richard Henderson  <rth@redhat.com>
18891         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
18893 2002-10-21  Jan Hubicka  <jh@suse.cz>
18895         * i386.c (contains_128bit_aligned_vector_p): New function.
18896         (ix86_function_arg_boundary): Properly align vector modes.
18898 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
18900         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
18901         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
18902         as a SET pattern.
18904 2003-02-11  Roger Sayle  <roger@eyesopen.com>
18906         * builtins.c:  Fix failure caused by commiting wrong patch.
18908 2003-02-11  Dale Johannesen  <dalej@apple.com>
18909         * ra-build.c (compare_and_free_webs):  Relax checking.
18910         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
18911         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
18913 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
18915         PR optimization/9651
18916         * rtlanal.c (may_trap_p): Handle FIX.
18918 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
18920         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
18921         * doc/invoke.texi: Extra alias.
18923 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
18925         * config/rs6000/host-darwin.c: Fix comment.
18927 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
18929         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
18930         predicate for mod result.
18932 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18934         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
18935         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
18936         * fixincl.x: Rebuilt.
18937         * tests/base/stdlib.h: Update.
18938         * tests/base/ctype.h: New file.
18940 2003-02-11  Jan Hubicka  <jh@suse.cz>
18942         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
18944 2003-02-11  Richard Henderson  <rth@redhat.com>
18946         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
18947         appropriated as globals.
18948         (ix86_expand_clrstr): Similarly.
18949         * config/i386/i386.md (cmpstrsi): Similarly.
18951 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18953         * config/h8300/h8300.md (a peephole2): Add a case of 255.
18955 2003-02-11  Roger Sayle  <roger@eyesopen.com>
18957         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
18958         (pow_optab, atan2_optab): Define corresponding macros.
18959         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
18960         * genopinit.c (optabs): Implement pow_optab and atan2_optab
18961         using pow?f3 and atan2?f3 patterns.
18962         * builtins.c (expand_errno_check): New function to update errno
18963         if necessary, split out from expand_builtin_mathfn.
18964         (expand_builtin_mathfn): Use expand_errno_check.
18965         (expand_builtin_mathfn_2): New function to handle expanding binary
18966         math functions, reusing the code in expand_errno_check.
18967         (expand_builtin): Handle the pow and atan2 math built-ins,
18968         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
18969         expand_builtin_mathfn_2.
18971         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
18973 2003-02-11  Jan Hubicka  <jh@suse.cz>
18975         * combine.c (combine_simplify_rtx): Fix folding of
18976         nested float_truncates.
18978 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18980         * config/h8300/h8300.md (a peephole2): Fix a typo.
18982 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
18984         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
18985         register number.
18987 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
18989         * config/h8300/h8300-protos.h: Add a prototype for
18990         gtuleu_operator.
18991         * config/h8300/h8300.c (gtuleu_operator): New.
18992         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
18993         * config/h8300/h8300.md (a peephole2): New.
18995 2003-02-11  Jan Hubicka  <jh@suse.cz>
18997         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
18999 2003-02-11  Jan Hubicka  <jh@suse.cz>
19001         * predict.c (choose_function_section): Choose sections correctly.
19003 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19005         * reload1.c (first_label_num): New.
19006         (reload): Index offsets_known_at and offsets_at using difference of
19007         label number and first label number.  Don't use offset pointers.
19008         (set_label_offsets, set_initial_label_offsets): Likewise.
19010 2003-02-10  Roger Sayle  <roger@eyesopen.com>
19012         * mips-tfile.c (init_file): Add missing initializers in the
19013         "#ifdef __alpha" case.
19014         (file_offset, max_file_offset): Declare as unsigned long.
19015         (write_varray): Cast to "unsigned long" in comparisons against
19016         either file_offset or max_file_offset.
19017         (write_object): Likewise.
19018         (read_seek): Likewise.
19019         (copy_object): Likewise. Declare "ifd" as int to match its use
19020         in add_ext_symbol, and avoid signed/unsigned conditional warning.
19022 2003-02-10  Nick Clifton  <nickc@redhat.com>
19023             Aldy Hernandez  <aldyh@redhat.com>
19025         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
19026         override options which have been specified on the command line.
19028 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
19030         * config/h8300/h8300.md (abssf2): New.
19031         (*abssf2_h8300): Likewise.
19032         (*abssf2_h8300hs): Likewise.
19034 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
19036         * tree.c (build_tree_list):  Fix parameter names in comment.
19038 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
19040         * config/rs6000/ppc64-fp.c: New file.
19041         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
19043 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
19045         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
19046         * bb-reorder.c (make_reorder_chain): Deleted.
19047         (make_reorder_chain_1): Deleted.
19048         (find_traces): New function.
19049         (rotate_loop): New function.
19050         (mark_bb_visited): New function.
19051         (find_traces_1_round): New function.
19052         (copy_bb): New function.
19053         (bb_to_key): New function.
19054         (better_edge_p): New function.
19055         (connect_traces): New function.
19056         (copy_bb_p): New function.
19057         (get_uncond_jump_length): New function.
19058         (reorder_basic_blocks): Use new functions (Software Trace Cache).
19059         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
19060         boundaries.
19062 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
19064         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
19066 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
19068         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
19069         (DECL_LIVE_RANGE_RTL): Remove.
19071 2003-02-10  Nick Clifton  <nickc@redhat.com>
19073         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
19074         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
19075         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
19076         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
19077         config/arm/freebsd.h, config/arm/linux-elf.h,
19078         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
19079         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
19080         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
19081         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
19082         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
19083         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
19084         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
19085         and reformat as appropriate.
19087 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
19089         * config/h8300/clzsi2.c: Remove.
19090         * config/h8300/ctzsi2.c: Likewise.
19091         * config/h8300/paritysi2.c: Likewise.
19092         * config/h8300/popcountsi2.c: Likewise.
19093         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
19094         ctzsi2, paritysi2, and popcountsi2.
19096 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
19097             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
19099         PR c/7741
19100         * c-decl.c (duplicate_decls): Discard the initializer of the
19101         new decl when the types are conflicting.
19103 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
19105         * Makefile.in (sreal.o): Added.
19106         (predict.o): Depends on sreal.h instead of real.h.
19107         * sreal.c: New file.
19108         * sreal.h: New file.
19109         * predict.c: Use sreal.c instead of real.c.
19111 2003-02-10  Nick Clifton  <nickc@redhat.com>
19113         * Contributed support for the Cirrus EP9312 "Maverick"
19114         floating point co-processor.  Written by Aldy Hernandez
19115         <aldyh@redhat.com>.
19116         (config/arm/arm.c): Add Cirrus support.
19117         (config/arm/arm.h): Likewise.
19118         (config/arm/aout.h): Likewise.
19119         (config/arm/arm.md): Likewise.
19120         (config/arm/arm-protos.h): Likewise.
19121         (config.gcc): Likewise.
19122         (doc/invoke.texi): Describe new -mcpu value and new
19123         -mcirrus-fix-invalid-insns switch,
19124         (cirrus.md): New file.
19126 2003-02-10  Jan Hubicka  <jh@suse.cz>
19128         * combine.c (combine_simplify_rtx): Simplify using
19129         (float_truncate (float x)) is (float x)
19130         (float_extend (float_extend x)) is (float_extend x).
19132 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
19134         * calls.c (try_to_integrate): Tidy stack_usage_map access.
19135         (emit_library_call_value_1): Likewise.  Formatting.
19136         (store_one_arg): Likewise.
19138 2003-02-09  Nick Clifton  <nickc@redhat.com>
19139             Aldy Hernandez  <aldyh@redhat.com>
19141         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
19142         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
19143         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
19144         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
19145         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
19146         docs.  Add range test for immediate value.
19148 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
19150         Rename spe_evxor to xorv2si3.
19151         (xorv4hi3): New.
19152         (xorv1di3): New.
19154 2003-02-10  Glen Nakamura  <glen@imodulo.com>
19156         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
19157         tag.
19159 2003-02-10  Jan Hubicka  <jh@suse.cz>
19161         * i386.c (vector_move_operand): New predicate.
19162         (ix86_expand_vector_move): Be happy about 0.
19163         * i386.h (PREDICATE_CODES): Add sse-move_operand.
19164         * i386.md (mov*_internal): Add 'C' alternative.
19166 2003-02-09  Jan Hubicka  <jh@suse.cz>
19168         * i386.md (floathi*): Deal with SSE.
19170 2003-02-09  Jan Hubicka  <jh@suse.cz>
19172         * simplify-rtx.c (simplify_unary_operation,
19173         simplify_binary_operation):  Deal with vector modes
19174         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
19176 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
19178         * toplev.c (rest_of_compilation): Recompute register usage after
19179         split_all_insns.
19181 2003-02-09  Richard Henderson  <rth@redhat.com>
19183         * libgcc-std.ver (__clztf2): New.
19184         (__ctztf2, __popcounttf2, __paritytf2): New.
19185         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
19186         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
19187         adjust code to match the different type sizes.
19188         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
19189         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
19191         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
19192         TImode; select word_mode and twice that.
19193         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
19194         select the modes from float, double, and long double.
19195         (init_optabs): Remove duplicate initializations.
19197 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
19199         * doc/install.texi: Squeeze and streamline section on
19200         testing and regression checking.
19202 2003-02-09  Jan Hubicka  <jh@suse.cz>
19204         * i386.md (ahi?v*3): Set third operand type to TImode.
19205         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
19207         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
19208         integer mode.
19210         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
19211         Change code so they are arithmetic expressions now.
19212         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
19213         simplify_ternary_operation): Deal with VEC_* expressions.
19215         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
19217 2003-02-08  Jan Hubicka  <jh@suse.cz>
19219         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
19220         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
19221         possibly got duplicated.
19223 2003-02-08  Richard Henderson  <rth@redhat.com>
19225         * config/alpha/alpha.c (override_options): Turn off explicit
19226         relocs until post-peep2 code duplication resolved.
19228 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
19230         * optabs.c (expand_unop): Widen clz properly when clz is done
19231         via libcall.
19233 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
19235         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
19236         * config/h8300/crti.asm: Likewise.
19237         * config/h8300/crtn.asm: Likewise.
19238         * config/h8300/ctzsi2.c: Likewise.
19239         * config/h8300/fixunssfsi.c: Likewise.
19240         * config/h8300/h8300-protos.h: Likewise.
19241         * config/h8300/h8300.c: Likewise.
19242         * config/h8300/h8300.h: Likewise.
19243         * config/h8300/h8300.md: Likewise.
19244         * config/h8300/paritysi2.c: Likewise.
19245         * config/h8300/popcountsi2.c: Likewise.
19246         * config/h8300/rtems.h: Likewise.
19248 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19250         * doc/invoke.texi: Documentation for my previous commit.
19251         * doc/passes.texi: Ditto.
19253 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19255         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
19256         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
19257         Declare.
19258         (DLTHE_FLAG_UPDATE_FREQ): New.
19259         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
19260         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
19261         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
19262         fix_bb_placement, fix_bb_placements, place_new_loop,
19263         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
19264         New static functions.
19265         (fix_loop_placement, can_duplicate_loop_p,
19266         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
19267         New functions.
19269         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
19270         unswitch_loops): Declare.
19271         * loop-init.c: New file.
19272         * loop-unswitch.c: New file.
19273         * Makefile.in (loop-init.o, loop-unswitch.o): New.
19274         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
19275         * toplev.c (DFI_loop2): New dump.
19276         (flag_unswitch_loops): New.
19277         (lang_independent_options): Add it.
19278         (rest_of_compilation): Call new loop optimizer.
19279         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
19281 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
19283         * config/h8300/clzsi2.c: New.
19284         * config/h8300/ctzsi2.c: Likewise.
19285         * config/h8300/paritysi2.c: Likewise.
19286         * config/h8300/popcountsi2.c: Likewise.
19287         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
19289 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
19291         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
19292         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
19293         (ctzsi2): New pattern.
19294         (ffssi2): Use clz instead of unspec.
19295         (clzdi2): Rename from cntlzd2.
19296         (ctzdi2): New pattern.
19297         (ffsdi2): Use clz instead of unspec.
19299 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
19301         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
19302         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
19303         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19304         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
19306 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
19308         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
19310 2003-02-07  Richard Henderson  <rth@redhat.com>
19312         PR 9226
19313         * gcse.c (local_cprop_find_used_regs): New.
19314         (local_cprop_pass): Use it.
19316 2003-02-07  Fred Fish  <fnf@intrinsity.com>
19318         * mips-tfile.c (parse_def): Parenthesize assignments to fix
19319         precedence bugs.
19321 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
19323         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
19325 2003-02-07  Roger Sayle  <roger@eyesopen.com>
19327         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
19328         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
19329         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
19330         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
19331         builtin functions (and their __builtin_* variants).
19332         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
19333         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
19334         when not optimizing.
19336         * doc/extend.texi: Document new pow and atan2 builtins, and
19337         their float and long double variants.  Realphabetize builtins.
19339 2003-02-07  Jan Hubicka  <jh@suse.cz>
19341         * i386.md (sse2_nandv2di3): Fix.
19343 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
19345         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
19346         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
19347         definition.
19348         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
19349         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
19351 2003-02-07  Jan Hubicka  <jh@suse.cz>
19353         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
19355 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
19357         * cfg.c (dump_flow_info): Add back accidently deleted line.
19359 2003-02-07  Andrey Petrov <petrov@netbsd.org>
19361         * optabs.c (expand_float): Search wider integer modes first.
19363 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
19365         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
19366         based on preprocessor flag.
19368 2003-02-07  Roger Sayle  <roger@eyesopen.com>
19369             Richard Henderson  <rth@redhat.com>
19371         * gcse.c (implicit_sets): New.
19372         (compute_hash_table_work): Include them in hash table.
19373         (find_implicit_sets, fis_get_condition): New.
19374         (one_cprop_pass): Allocate and free implicit_sets; call
19375         find_implicit_sets before building hash table.
19377 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
19379         * config/t-netbsd (USER_H): Revert previous change.
19381 2003-02-07  Gabor Greif  <ggreif@lucent.com>
19383         * doc/c-tree.texi (Namespaces): Fix typo.
19385 2003-02-07  Jan Hubicka  <jh@suse.cz>
19387         * regrename.c (do_replace, find_oldest_value_reg,
19388         copyprop_hardreg_forward_1): Update register attributes.
19390 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
19392         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
19393         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
19394         variables starting with underscore.
19395         (struct unit_usage): New structure.
19396         (unit_usages, cycle_alt_unit_usages): New global variables.
19397         (check_unit_distribution_in_reserv): Remove it.
19398         (store_alt_unit_usage): New function.
19399         (check_regexp_units_distribution): Rewrite it.
19401 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19403         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
19404         target_cpu_default.
19405         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
19406         if not MASK_NO_SPACE_REGS.
19407         (output_call): Adjust return pointer, don't load new space register
19408         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
19409         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
19410         TARGET_NO_SPACE_REGS is true.
19411         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
19412         conditions.
19413         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
19414         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
19415         true.  Use bve when TARGET_64BIT is true.
19417 2003-02-06  Richard Henderson  <rth@redhat.com>
19419         * combine.c (nonzero_bits): Fix double break.
19421 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
19422             Richard Henderson <rth@redhat.com>
19424         PR c/9530
19425         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
19426         from functions that return a float to functions that don't.
19428 2003-02-06  Jan Hubicka  <jh@suse.cz>
19430         * i386.c (x86_inter_unit_moves): New variable.
19431         (ix86_secondary_memory_needed): Fix 64bit case, honor
19432         TARGET_INTER_UNIT_MOVES
19433         * i386.h (x86_inter_unit_moves): Declare.
19434         (TARGET_INTER_UNIT_MOVES): New macro.
19435         * i386.md (movsi_1): Cleanup constraints; disable
19436         when not doing inter-unit moves.
19437         (movsi_1_nointernunit): New.
19438         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
19439         (movdi_1_rex64_nointerunit): New.
19440         (mivsf_1): disable when not doing inter-unit moves.
19441         (movsf_1_nointerunit): New.
19443         * basic-block.h (inside_basic_block_p):  Declare.
19444         * cfgbuild.c (inside_basic_block_p): Make global.
19445         * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
19446         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
19447         update CFG.
19448         (fix_basic_block_boundaries, add_missing_bbs): New.
19449         (rank): Use profile.
19450         (scheudle_ebbs): Rely on CFG; update coments.
19452 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
19454         * Makefile.in (host_hook_obj): New.
19455         (OBJS): Add $(host_hook_obj).
19456         (host_default.o): New rule.
19457         * config.gcc (host_hook_obj): New, default to host-default.o.
19458         (powerpc-*-darwin*): Use host-darwin.o.
19459         (out_host_hook_obj): New.
19460         * configure: Regenerate.
19461         * configure.in: Print information about out_host_hook_obj, substitute
19462         into output files.
19463         * host-default.c: New file.
19464         * hosthooks.h: New file.
19465         * toplev.c (general_init): Call host_hooks.extra_signals.
19466         * config/rs6000/host-darwin.c: New file.
19467         * config/rs6000/x-darwin: New file.
19468         * doc/hostconfig.texi: Add documentation for new host hook.
19469         Rearrange existing documentation.
19471 2003-02-05  Roger Sayle  <roger@eyesopen.com>
19473         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
19474         with *targetm.delegitimize_address.
19475         (rtl_for_decl_location): Likewise.
19476         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
19477         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
19479         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
19480         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
19481         prototype.
19482         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
19483         i386_simplify_dwarf_addr.  Made static.  Prototyped.
19484         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
19485         i386_simplify_dwarf_addr to ix86_delegitimize_address.
19486         (ix86_find_base_term): Likewise.
19487         (maybe_get_pool_constant): Likewise.
19489         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
19490         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
19491         prototype.
19492         * config/s390/s390.c (s390_delegitimize_address): Renamed from
19493         s390_simplify_dwarf_addr.  Made static.  Prototyped.
19494         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
19496 2003-02-05  Richard Henderson  <rth@redhat.com>
19498         PR c/8602
19499         * integrate.c (output_inline_function): Reset input_filename
19500         and lineno from the decl before rest_of_compilation.
19502 2003-02-05  Richard Henderson  <rth@redhat.com>
19504         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
19505         (CTZ_DEFINED_VALUE_AT_ZERO): New.
19506         * doc/rtl.texi, doc/tm.texi: Document them.
19508         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
19509         of the value at zero properly.
19510         * fold-const.c (tree_expr_nonnegative_p): Likewise.
19511         * simplify-rtx.c (simplify_unary_operation): Likewise.
19513         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
19514         (CTZ_DEFINED_VALUE_AT_ZERO): New.
19516         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
19517         (TARGET_EXPAND_BUILTIN): Remove.
19518         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
19519         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
19520         (enum arm_builtins): Remove.
19521         * config/arm/arm.md (UNSPEC_CLZ): Remove.
19522         (clzsi2): Rename from clz; use clz instead of unspec.
19523         (ctzsi2): New.
19524         * config/arm/arm-protos.h: Update.
19526 2003-02-05  Jan Hubicka  <jh@suse.cz>
19528         * i386-protos.h (x86_emit_floatuns):  Declare.
19529         * i386.c (x86_emit_floatuns): New global function.
19530         * i386.md (floatunssisf2, floatunsdisf2,
19531         floatunsdidf2):  New patterns.
19533 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19535         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
19537 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
19539         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
19540           config/ia64/linux.h
19542 2003-02-05  Roger Sayle  <roger@eyesopen.com>
19544         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
19546 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
19548         PR optimization/8555
19549         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
19550         instead of aborting.
19552 2003-02-04  Richard Henderson  <rth@redhat.com>
19554         * config/i386/i386.md (UNSPEC_BSF): Remove.
19555         (ffssi2): Split into cmove and no_cmove insns and splitters;
19556         lose pentium float trick for now.
19557         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
19558         (ctzsi2, clzsi2, bsr): New.
19560 2003-02-04  Richard Henderson  <rth@redhat.com>
19562         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
19563         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
19564         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
19565         (ffsdi2): Use popcount instead of unspec.
19566         (popcountdi2): Rename from *popcnt.
19567         (ctzdi2, clzdi2, getf_exp_tf): New.
19569 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
19571         * genconfig.c (main): Generate CC0_P.
19572         * rtl.h (CC0_P): Remove.
19574 2003-02-04  Richard Henderson  <rth@redhat.com>
19576         * libgcc2.h, libgcc2.c (__ffsSI2): New.
19577         (__ffsDI2): Rename from __ffsdi2.
19578         * mklibgcc.in (lib2funcs): Add _ffssi2.
19580 2003-02-04  Richard Henderson  <rth@redhat.com>
19582         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
19583         rounds with a "bit table" lookup.
19585 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
19587         * reload.c (find_reloads): Do not use the mode specified in the insn
19588         pattern as reload mode for address operands.  Do not generate optional
19589         reloads for operands where a mandatory reload was already pushed.
19591 2003-02-04  Richard Henderson  <rth@redhat.com>
19593         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
19594         builtins instead of inline assembly.
19596 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
19598         PR c/9376
19599         * libgcc2.c (__subvdi3): Fix typo.
19601 2003-02-04  Jan Hubicka  <jh@suse.cz>
19603         * i386.md (movti_rex64):  Fix constraint.
19605 2003-02-04  Jan Hubicka  <jh@suse.cz>
19607         * i386.md (vector push splitters):  Fix typo in resolving conflict.
19609 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
19611         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
19613 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
19615         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
19616         for recent libstdc++.  Remove formatting cruft.
19618 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
19620         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
19621         attribute even if input file name is absolute, but one of the
19622         includes is relative.
19624 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
19626         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
19627         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
19628         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
19630 2003-02-03  Richard Henderson  <rth@redhat.com>
19632         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19633         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
19634         return type to "int".  Shuffle declarations and undef int trap.
19635         * libgcc2.h: Remove their declarations.
19636         * optabs.c (expand_unop): Force outmode to int for bitops.
19638 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
19640         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
19641         coprocessor registers before floating-point registers.
19642         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
19643         to account for a previously removed register.
19644         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
19645         Delete unused macros.
19647 2003-02-03  Jan Hubicka  <jh@suse.cz>
19649         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
19650         (mov*_internal): Fix predicates; require one of operands to not be
19651         memory.
19652         (SSE?MMX move expanders):  Fix predicates; force one of operands to
19653         register.
19654         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
19655         (movups/movupd/movdqu patterns): Force one of operands to not be
19656         memory.
19658 2003-02-03  Roger Sayle  <roger@eyesopen.com>
19660         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
19661         takes a single rtx and returns it unmodified.
19662         * hooks.h (hook_rtx_rtx_identity): Prototype here.
19663         * target.h (struct gcc_target): Add "delegitimize_address"
19664         field to target structure.
19665         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
19666         for delegitimize_address target using hook_rtx_rtx_identity.
19667         (TARGET_INITIALIZER): Initialize delegitimize_address field
19668         using TARGET_DELEGITIMIZE_ADDRESS macro.
19669         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
19670         extensions of constant pool references.  Use delegitimize_address
19671         to undo the obfuscation of "-fpic".
19672         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
19674         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
19675         i386_simplify_dwarf_addr.
19676         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
19677         (maybe_get_pool_constant): Likewise.
19679 2003-02-03  Jan Hubicka  <jh@suse.cz>
19681         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
19683 2003-02-03  Jan Hubicka  <jh@suse.cz>
19685         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
19687 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19689         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
19690         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
19692 2003-02-02  Andreas Schwab  <schwab@suse.de>
19694         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
19696 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
19698         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
19699         (epilogue_insns): Likewise.
19701 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19703         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
19705 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19707         * pa-protos.h (attr_length_millicode_call): Remove second argument.
19708         (attr_length_indirect_call, attr_length_indirect_call,
19709         attr_length_save_restore_dltp): New prototypes.
19710         * pa.c (attr_length_millicode_call): Remove second argument.  Check
19711         INSN_ADDRESSES_SET_P in distance calculation.
19712         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
19713         INSN_ADDRESSES.
19714         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
19715         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
19716         Call attr_length_call directly.
19717         (attr_length_indirect_call, output_indirect_call,
19718         attr_length_save_restore_dltp): New functions.
19719         * pa.md (attr_length_millicode_call): Drop second argument from all
19720         patterns.
19721         (return_internal_pic): Delete.
19722         (return_external_pic): Remove use of PIC register and pic operand and
19723         flag checks.
19724         (epilogue): Use return_internal for both normal and pic code.
19725         (call, call_value): Emit new 32-bit pic patterns for symref and
19726         indirect calls.  Remove uses for arg pointer and pic register.
19727         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
19728         call_reg_pic_post_reload, call_val_symref_pic,
19729         call_val_symref_pic_post_reload, call_val_reg_pic,
19730         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
19731         Implement define_split and define_peephole2 patterns for pre reload
19732         patterns.
19733         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
19734         call_value_internal_reg_64bit): Shorten names.
19735         (all call patterns): Explicitly indicate registers used and clobbered.
19736         Use attr_length_indirect_call and attr_length_save_restore_dltp for
19737         attribute length calculation.  Move code generation for indirect calls
19738         to output_indirect_call.
19739         (sibcall, sibcall_value): Don't restore PIC register.
19740         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
19741         register retore.
19743 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19745         * doc/install.texi (Testing): Simplify and compress instructions
19746         concerning Dejagnu.
19748 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19750         * collect2.c (pexecute_pid): Rename to pid.
19751         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
19752         pid.
19754 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
19756         * doc/extend.texi (Function Attributes): Remove documentation
19757         for PowerPC Windows NT function attributes..
19759 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
19761         * dwarf2out.c (gen_type_die): Check for typedefs before calling
19762         for TYPE_MAIN_VARIANT.
19764 2003-02-01  Richard Henderson  <rth@redhat.com>
19766         * libgcc2.c: Include auto-host.h.
19767         (ATTRIBUTE_HIDDEN): New.
19768         (__clz_tab): Don't declare here for clz and ctz.
19769         (__clzsi2, __clzdi2): Use count_leading_zeros.
19770         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
19771         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
19772         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
19773         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
19775 2003-02-01  Richard Henderson  <rth@redhat.com>
19777         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
19778         to the conditional.
19779         (ashlsi3_1_zext splitter): Likewise.
19781 2003-02-01  Richard Henderson  <rth@redhat.com>
19783         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
19784         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19785         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
19786         return type to Wtype.
19788         * libgcc-std.ver (GCC_3.4): Fix inheritance.
19790         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
19791         expander input constraint.
19793 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
19795         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
19796         OTI_parity.
19797         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
19798         * optabs.c (widen_clz, expand_parity): New.
19799         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
19800         for libcalls to clz, ctz, popcount, and parity.
19801         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
19802         parity_optab, and set up libfunc handlers.
19803         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
19804         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
19805         __popcount_tab): New.
19806         * libgcc2.h: Declare them.
19807         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
19808         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
19809         and parity_optab.
19810         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
19811         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
19812         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
19813         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
19814         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
19815         BUILT_IN_PARITYLL): New.
19816         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
19817         and add optab argument.
19818         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
19819         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
19820         * expr.c (expand_expr): Handle them.
19821         * fold-const.c (tree_expr_nonnegative_p): Likewise.
19822         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
19823         * reload1.c (eliminate_regs): Handle them.
19824         (elimination_effects): Likewise.
19825         * function.c (instantiate_virtual_regs_1): Likewise
19826         * genattrtab.c (check_attr_value): Likewise.
19827         * simplify-rtx.c (simplify_unary_operation): Likewise.
19828         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
19829         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
19830         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
19831         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
19832         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
19833         __builtin_arm_clz.
19834         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
19835         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
19836         * doc/extend.texi (Other Builtins): Add new builtins.
19837         * doc/md.texi (Standard Names): Add new patterns.
19839 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
19841         * reload.c: Revert 2003-01-31 change.
19843 2003-02-01  Jan Hubicka  <jh@suse.cz>
19845         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
19847 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
19849         * flags.h (flag_volatile): Remove declaration.
19850         (flag_volatile_global, flag_volatile_static): Likewise.
19851         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
19852         * toplev.c (flag_volatile): Remove definition.
19853         (flag_volatile_global, flag_volatile_static): Likewise.
19854         (f_options): Remove corresponding entries here.
19855         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
19856         or flag_volatile_static.
19857         * doc/invoke.texi: Remove documentation of -fvolatile,
19858         -fvolatile-global and -fvolatile-static.
19860 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19862         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
19863         updating of total_code_bytes from prologue to epilogue.
19865 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
19867         * reload.c (find_reloads): Do not use the mode specified in the insn
19868         pattern as reload mode for address operands.  Do not generate optional
19869         reloads for operands where a mandatory reload was already pushed.
19870         Generate optional reloads only in the final pass though find_reloads.
19871         (have_replacement_p): New function.
19873 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19875         * doc/install.texi (Testing): Remove a reference to our obsolete
19876         /testresults web pages and strip redundant information concerning
19877         test results.
19878         (Binaries): Refer to Microsoft Windows instead of listing all
19879         possible variants.
19881 2003-02-01  Jan Hubicka  <jh@suse.cz>
19883         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
19884         RTL chain.
19886         * combine.c (simplify_set): Reverse order of ragumetns to
19887         REG_CANNOT_CHANGE_MODE_P
19888         * df.c (df_def_record_1): Likewise.
19889         * recog.c (register_operand): Likewise.
19890         * simplify-rtx.c (simplify_subreg): Likewise.
19891         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
19892         CANNOT_CHANGE_MODE_CLASS.
19893         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
19894         Likewise.
19895         * reload.c (push_reload): Likewise.
19896         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19897         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19898         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19899         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
19900         * mips.c (mips_cannot_change_mode_class): Update.
19901         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19902         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19903         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19904         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
19905         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
19906         * sh.c (sh_cannot_change_mode_class): Update.
19907         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
19908         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
19910 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
19912         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
19913         change to LINK_COMMAND_SPEC in gcc.c.
19915 2003-01-31  Jan Hubicka  <jh@suse.cz>
19917         PR c/9506
19918         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
19920 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19922         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
19923         duplicated code.
19925 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
19927         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
19928         (BINFO_ELTS): New #define.
19929         * stor-layout.c (finalize_record_size): Don't set them.
19930         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
19931         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
19932         (BINFO_LANG_ELTS): New #define.
19933         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
19934         * java/class.c (make_class): Use BINFO_ELTS.
19935         (set_super_info): Likewse.
19936         (add_interface_do): Likewise.
19937         * objc/objc-act.c (start_class): Use BINFO_ELTS.
19939 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
19941         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
19942         (times): Don't ever declare if not HAVE_TIMES.
19943         (clock): Don't ever declare if not HAVE_CLOCK.
19945 2003-01-30  Richard Henderson  <rth@redhat.com>
19947         * flow.c (update_life_info): Zap life info after cleanup_cfg.
19948         (regno_uninitialized): Use correct live at function entry set.
19949         (regno_clobbered_at_setjmp): Likewise.
19951         * expr.c (store_expr): Promote all MEM intermediates to regs.
19953 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19955         * config/arm/arm.c: Fix comment typos.
19956         * config/arm/arm.h: Likewise.
19957         * config/arm/netbsd-elf.h: Likewise.
19958         * config/arm/netbsd.h: Likewise.
19960 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
19962         * gengtype.c (struct walk_type_data): Add needs_cast_p.
19963         (walk_type): Set needs_cast_p in walk_type_data.
19964         (write_types_process_field): Supply casts when required to suppress
19965         warnings.
19966         (write_root): Cast gt_pch_n_S to suppress warning.
19967         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
19968         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
19969         when they might exist.
19970         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
19971         insn-conditions.o, and rs6000.o.
19973 2003-01-30  Richard Henderson  <rth@redhat.com>
19975         * ggc-page.c (G.context_depth_allocations): New.
19976         (G.context_depth_collections): New.
19977         (alloc_page): Set G.context_depth_allocations.
19978         (ggc_collect): Set G.context_depth_collections.
19979         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
19980         (ggc_pop_context): Early exit for no allocations or collections.
19982 2003-01-30  Richard Henderson  <rth@redhat.com>
19984         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
19986 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
19988         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
19989         size, the link register is always saved if any other register is
19990         saved.
19992 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19994         * config/h8300/h8300-protos.h: Update the prototype for
19995         compute_plussi_cc.
19996         (cpp_reader): Declare before it is used.
19997         * config/h8300/h8300.c (compute_plussi_cc): Change the return
19998         type to int.
19999         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
20000         see an unknown H8 variant.
20002 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
20004         PR target/9316
20005         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
20006         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
20007         * config/rs6000/t-rtems: New file. multilib variants to match OS.
20008         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
20009         rs6000/t-ppcgas so we get the desired multilibs.
20011 2003-01-30  Nick Clifton  <nickc@redhat.com>
20013         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
20014         when popping saved IP register off the stack.
20016 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
20018         * config/rs6000/aix43.h: Fix comment typos.
20019         * config/rs6000/aix51.h: Likewise.
20020         * config/rs6000/aix52.h: Likewise.
20021         * config/rs6000/altivec.h: Likewise.
20022         * config/rs6000/rs6000.c: Likewise.
20023         * config/rs6000/rs6000.h: Likewise.
20024         * config/rs6000/rs6000.md: Likewise.
20025         * config/rs6000/spe.md: Likewise.
20027 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
20029         * c-common.c (builtin_define_float_constants): Define
20030         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
20032 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
20034         * config/sh/lib1funcs.asm: Fix comment typos.
20035         * config/sh/linux.h: Likewise.
20036         * config/sh/sh.c: Likewise.
20037         * config/sh/sh.md: Likewise.
20039 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
20041         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
20043 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
20045         * config/fp-bit.h (__make_dp): Declare if TMODES.
20047 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
20049         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
20050         general_operand_src and general_operand_dst.
20052 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
20054         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
20055         Return true for variable sized types.
20056         (rs6000_va_arg): Handle variable sized types passed by reference
20057         on non-SVR4 ABI.
20059 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
20061         * arm.c (arm_legtimize_address): New function.
20062         * arm-protos.h (arm_legtimize_address): Add prototype.
20063         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
20064         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
20065         do ... while (0)
20067 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20069         PR bootstrap/9296
20070         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
20071         depended on it being defined until now.
20073 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20075         PR target/9295
20076         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
20077         RTEMS code knows which C++ initialization style the toolset
20078         configuration is using.
20080 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20082         PR bootstrap/9293
20083         * config/m68k/t-crtstuff: Replace spaces with tabs, add
20084          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
20086 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
20088         PR bootstrap/9292
20089         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
20090         RTEMS threads.
20091         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
20093 2003-01-29  Nick Clifton  <nickc@redhat.com>
20095         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
20096         not $(srcdir).
20098 2003-01-29  Andrew Haley  <aph@redhat.com>
20100         * tree-inline.c (walk_tree): Add CHAR_TYPE.
20102 2003-01-29  Jan Hubicka  <jh@suse.cz>
20104         * i386.md (subdi3_carry_rex64): Fix typo.
20106 2003-01-28  Stan Shebs  <shebs@apple.com>
20108         * coretypes.h (cpp_reader): Forward declare struct.
20109         * c-pragma.h (cpp_reader): Remove forward declaration.
20110         * hashtable.h (cpp_reader): Likewise.
20111         * scan.h (cpp_reader): Likewise.
20112         * tree.h (cpp_reader): Likewise.
20113         * config/darwin-protos.h (cpp_reader): Likewise.
20114         * config/arm/arm-protos.h (cpp_reader): Likewise.
20115         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
20116         struct cpp_reader in prototypes.
20118 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
20120         * doc/install.texi: Add documentation for installation into
20121         tooldirs and with DESTDIR.
20123 2003-01-28  Richard Henderson  <rth@redhat.com>
20125         * config.gcc (ia64*-*-aix*): Remove.
20126         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
20127         * config/ia64/unwind-aix.c: Remove file.
20129 2003-01-28  Andreas Schwab  <schwab@suse.de>
20131         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
20132         register.
20133         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
20134         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
20135         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
20136         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
20137         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
20138         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
20139         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
20141 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
20143         * combine.c (nonzero_bits): Fix check for negative divide operands.
20145 2003-01-28  Richard Henderson  <rth@redhat.com>
20147         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
20148         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
20150 2003-01-28  Richard Henderson  <rth@redhat.com>
20152         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
20154         * config/cris/cris.c (cris_address_cost): Make static.
20155         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
20156         * config/cris/cris.h (ADDRESS_COST): Remove.
20157         * config/cris/cris-protos.h: Update.
20159 2003-01-23  Mike Stump  <mrs@apple.com>
20161         * regclass.c (init_reg_autoinc): New function.
20162         (regclass): Move initialization of forbidden_inc_dec_class from
20163         here...
20164         (init_regs): to here.  Avoids reinitialization for each function,
20165         saving compilation time.
20167 2003-01-28  Jason Merrill  <jason@redhat.com>
20169         * cpplib.h (struct cpp_options): Add warn_deprecated field.
20170         * cppinit.c (cpp_create_reader): Turn it on by default.
20171         * c-opts.c (c_common_decode_option): Set it.
20172         * cpplib.c (do_pragma_once): Only complain about #pragma once
20173         if warn_deprecated is set.
20175 2003-01-28  Dale Johannesen  <dalej@apple.com>
20177         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
20178         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
20179         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
20181 2003-01-28  Richard Henderson  <rth@redhat.com>
20183         * target.h (targetm.address_cost): New.
20184         * target-def.h (TARGET_ADDRESS_COST): New.
20185         (TARGET_RTX_COSTS): Uncomment.  Oops.
20186         * cse.c (address_cost): Use new target hook.
20187         (default_address_cost): New.
20188         * output.h (default_address_cost): Declare.
20189         * hooks.c (hook_int_rtx_0): New.
20190         * hooks.h (hook_int_rtx_0): Declare.
20191         * loop.c (combine_givs_p): Remove if 0 code.
20192         * system.h (ADDRESS_COST): Poison.
20194         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
20195         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
20196         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
20197         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
20198         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
20199         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
20200         config/xtensa/xtensa.c, config/xtensa/xtensa.h
20201         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
20202         (ADDRESS_COST): Remove.
20204         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
20205         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
20206         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
20207         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
20208         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
20209         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
20210         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
20211         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
20212         config/mips/mips.c, config/mips/mips.h,
20213         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
20214         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
20215         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
20216         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
20217         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
20218         config/vax/vax.c, config/vax/vax.h
20219         (foo_address_cost): Make static.
20220         (TARGET_ADDRESS_COST): New.
20221         (ADDRESS_COST): Remove.
20223         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
20224         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
20225         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
20226         config/stormy16/stormy16.h
20227         (ADDRESS_COST): Move code ...
20228         (foo_address_cost): ... here.
20229         (TARGET_ADDRESS_COST): New.
20231         * config/m32r/m32r.c (m32r_address_cost): Remove.
20232         * config/m32r/m32r-protos.h: Update.
20234         * config/mmix/mmix.c (mmix_address_cost): Remove.
20235         * config/mmix/mmix-protos.h: Update.
20237         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
20238         mn10300_address_cost; move unsig allocation ...
20239         (mn10300_address_cost): ... here.
20240         (TARGET_ADDRESS_COST): New.
20241         * config/mn10300/mn10300-protos.h: Update.
20242         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
20244         * doc/tm.texi: Update.
20246 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
20248         * haifa-sched.c (schedule_insn): Return necessary cycle advance
20249         after issuing the insn.
20250         (rank_for_schedule): Make a insn with /S the highest priority
20251         insn.
20252         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
20253         (choose_ready): Check SCHED_GROUP_P.
20254         (schedule_block): Advance cycle after issuing insn if it is
20255         necessary.  Don't reorder insns if there is an insn with /S.
20256         (set_priorities): Ignore schedule groups.
20258         * sched-deps.c (remove_dependence, group_leader): Remove the
20259         functions.
20260         (add_dependence): Ignore schedule groups.
20261         (set_sched_group_p): Don't make copy of dependencies from previous
20262         insn of the schedule group.  Add anti-dependency to the previous
20263         insn of the schedule group.
20264         (compute_forward_dependences): Ignore schedule groups.
20266         * sched-ebb.c (init_ready_list): Ignore schedule groups.
20268         * sched-rgn.c (init_ready_list): Ditto.
20269         (can_schedule_ready_p): Ditto.
20271 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
20273         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
20274         register to another one.
20276 2003-01-28  Richard Henderson  <rth@redhat.com>
20278         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
20280 2003-01-28  Roger Sayle  <roger@eyesopen.com>
20282         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
20284 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
20286         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
20287         class contains a floating-point register, return the size of the
20288         mode in half words.
20290 2003-01-28  Jan Hubicka  <jh@suse.cz>
20292         * i386.c (ix86_carry_flag_operator):  New predicate.
20293         (fcmov_operator): Fix whitespace.
20294         (ix86_expand_carry_flag_compare):  Deal with floating point.
20295         (ix86_expand_int_movcc): Deal with fp; update insn expansion
20296         (ix86_expand_int_addcc): Likewise.
20297         (ix86_expand_strlensi_unroll_1): likewsie.
20298         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
20299         * i386.md (add?i_carry_rex64): Use new predicate.
20300         (sub?i3_carry_rex64): Likewise.
20301         (x86_mov?icc_0_m1*): Likewise.
20303 2003-01-28  Andreas Schwab  <schwab@suse.de>
20305         * cfgloopmanip.c (create_preheader): Initialize src to avoid
20306         warning.
20308         * expmed.c (emit_store_flag): Fix cast to avoid sign
20309         comparison warning.
20311         * combine.c (force_to_mode): Add cast to fix warning when
20312         STORE_FLAG_VALUE is negative.
20314 2003-01-27  Richard Henderson  <rth@redhat.com>
20316         * Makefile.in (cse.o): Depend on TARGET_H.
20317         * cse.c (rtx_cost): Use targetm.rtx_costs.
20318         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
20319         * doc/tm.texi: Update.
20321         * target.h (targetm.rtx_costs): New.
20322         * target-def.h (TARGET_RTX_COSTS): New.
20323         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
20324         * hooks.h: Update.
20326         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
20327         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
20328         * config/alpha/alpha.h (PROCESSOR_MAX): New.
20329         (CONST_COSTS, RTX_COSTS): Remove.
20331         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
20332         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
20333         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
20334         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
20335         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
20336         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
20337         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
20338         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
20339         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
20340         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
20341         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
20342         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
20343         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
20344         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
20345         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
20346         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
20347         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
20348         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
20349         config/v850/v850.c, config/v850/v850.h,
20350         config/xtensa/xtensa.c, config/xtensa/xtensa.h
20351         (CONST_COSTS, RTX_COSTS): Move code ...
20352         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
20354         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
20355         (arm_rtx_costs, TARGET_RTX_COSTS): New.
20356         * config/arm/arm-protos.h: Update.
20357         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
20359         * config/avr/avr.h (CONST_COSTS): Move code ...
20360         * config/avr/avr.c (avr_rtx_costs): ... here.
20361         (default_rtx_costs): Make static.
20362         * config/avr/avr-protos.h: Update.
20364         * config/h8300/h8300.c (const_costs): Make static.
20365         (h8300_and_costs, h8300_shift_costs): Likewise.
20366         * config/h8300/h8300-protos.h: Update.
20368         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
20369         (CONST_COSTS): Move code ...
20370         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
20371         default_rtx_costs; update for signature change.
20372         * config/ip2k/ip2k-protos.h: Update.
20374         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
20375         (CONST_COSTS): Move code ...
20376         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
20377         (TARGET_RTX_COSTS): New.
20378         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
20379         * config/m68hc11/m68hc11-protos.h: Update.
20381         * config/m68k/m68k.c (const_int_cost): Make static.
20382         * config/m68k/m68k-protos.h: Update.
20384         * config/mcore/mcore.c (mcore_const_costs): Make static.
20385         (mcore_and_cost, mcore_ior_cost): Likewise.
20386         * config/mcore/mcore-protos.h: Update.
20388         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
20389         (mmix_rtx_cost_recalculated): Remove.
20390         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
20391         * config/mmix/mmix-protos.h: Update.
20393         * config/sh/sh.c (shiftcosts): Make static.
20394         (addsubcosts, andcosts, multcosts): Likewise.
20395         * config/sh/sh-protos.h: Update.
20397         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
20398         (sparc_rtx_costs): Make static; update for change in signature.
20399         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
20400         * config/sparc/sparc-protos.h: Update.
20402         * config/v850/v850.c (const_costs): Make static.
20403         * config/v850/v850-protos.h: Update.
20405         * config/vax/vax.h (RTX_COSTS): Remove.
20406         (CONST_COSTS): Move code ...
20407         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
20408         from vax_rtx_cost.
20409         (vax_rtx_costs, TARGET_RTX_COSTS): New.
20411 2003-01-27  Richard Henderson  <rth@redhat.com>
20413         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
20414         * config/vax/vax-protos.h: Update.  Really.
20416 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
20418         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
20419         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
20420         zero if no hardware floating point.
20421         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
20422         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
20423         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
20424         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
20425         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
20426         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
20427         even FP registers on N32 and N64.
20428         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
20429         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
20430         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
20431         even-register-like alignment to 128-bit arguments.
20432         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
20433         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
20434         on N32 or N64.
20435         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
20436         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
20437         (TPBIT): Set to tp-bit.c.
20438         (tp-bit.c): Create out of fp-bit.c.
20440 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20442         * c-parse.in: Remove '%expect 32' directive in objc mode.
20444 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
20446         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
20447         (LIBGCOV): New variable.
20448         (libgcc.mk): Add LIBGCOV.
20449         (LIBGCC_DEPS): Add libgcov.c.
20450         (libgcov.a): New target.
20451         (clean): Remove libgcov.a.
20452         (install-libgcc): Do libgcov too.
20453         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
20454         with libgcov.a.
20455         * libgcc2.c (L_gcov): Move into ...
20456         * libgcov.c: ... here. New file.
20457         * mklibgcc.in: Add libgcov rules.
20458         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
20460         * doc/invoke.texi (profile-arcs, test-coverage): Update and
20461         clarify.
20463         * profile.c (index_counts_file): Remove duplicate check for open file.
20465 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
20467         * gcc/doc/invoke.texi (Optimization Options): Group together
20468         optional and experimental flags.  Move trapv and bounds-check
20469         out of this section.  Group floating point flags together.
20470         (Code Gen Options): Move trapv and bounds-check to here.
20472 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
20474         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
20476 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
20478         PR optimization/9090
20479         * function.c (purge_addressof_1): After pushing an addressed register
20480         onto the stack, simplify the result.
20482 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20484         * doc/extend.texi: Fix typo.
20486 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20488         * doc/cppopts.texi: Fix typo.
20489         * doc/objc.texi: Likewise.
20490         * doc/passes.texi: Likewise.
20492 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
20494         * real.c (ibm_extended_format): Add 53 to minimum exponent.
20495         (encode_ibm_extended): Adjust.
20497 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
20499         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
20500         timevar_id enumerations.
20502 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20504         * combine.c: Fix formatting.
20506 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20508         * doc/gccint.texi: Update the copyright.
20510 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20512         * doc/cpp.texi: Fix typos.
20513         * doc/extend.texi: Likewise.
20514         * doc/gty.texi: Likewise.
20515         * doc/install.texi: Likewise.
20516         * doc/passes.texi: Likewise.
20517         * doc/rtl.texi: Likewise.
20518         * doc/tm.texi: Likewise.
20520 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20522         * config/ia64/fde-glibc.c: Fix comment typos.
20523         * config/ia64/hpux.h: Likewise.
20524         * config/ia64/ia64.c: Likewise.
20525         * config/ia64/ia64.h: Likewise.
20526         * config/ia64/unwind-ia64.c: Likewise.
20528 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20530         * config/i386/i386-modes.def: Fix comment typos.
20531         * config/i386/i386.c: Likewise.
20532         * config/i386/i386.md: Likewise.
20534 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
20536         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
20537         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
20538         ASM_FINISH_DECLARE_OBJECT before defining it.
20539         * toplev.c (rest_of_decl_compilation):  Don't define
20540         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
20541         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
20542         parameters for DWARF2 targets because they _are_ used.
20544 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
20546         * fp-bit.h: Define macros for TFmode floating-point constants
20547         in IBM-extended TFmode types.
20548         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
20549         widths.
20550         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
20551         TFmode type.
20553         * config/fp-bit.h: Define macros for TFmode floating-point
20554         constants in IEEE quad TFmode type.  Declare functions according
20555         to L_ macros.
20556         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
20557         (TFtype, TItype, UTItype): Define if TMODES is defined.
20558         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
20559         (F_T_BITOFF, D_T_BITOFF): Define.
20560         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
20561         guaranteed to be wide enough.
20562         * config/fp-bit.c: Check for L_ macros for tf functions.
20563         (__thenan_tf): New.
20564         (nan): Adjust.
20565         (pack_d, unpack_d): Support IEEE 854 quad type.
20566         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
20567         from FRAC_NBITS, FRAC_BITS and NGARDS.
20568         (usi_to_float): Cast constants to be shifted to fractype
20569         instead of assuming long long is wide enough.
20570         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
20572 2003-01-26  Andreas Jaeger  <aj@suse.de>
20574         * df.c: Remove prototype of unused function df_regno_rtl_debug.
20576 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
20578         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
20579         (DBBIT_FUNCS): Added _df_to_tf.
20580         (TPBIT_FUNCS): New.
20581         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
20582         (LIBGCC_DEPS): Added TPBIT.
20583         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
20585         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
20586         been able to move the result to target.
20588         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
20589         for the appropriate mode.
20591         * calls.c (emit_library_call_value_1): Handle return values
20592         in a PARALLEL.
20594         * rtl.c (get_mode_alignment): Moved to...
20595         * stor-layout.c: ... here.
20597         * print-rtl.c (print_rtx): Don't print MEM details in
20598         GENERATOR_FILEs.
20600 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
20602         * df.h: Update comments, tidy formatting.
20603         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
20604         REVERSE, UNION, INTERSECTION.  All uses updated.
20605         (OLD_DF_INTERFACE): Remove.
20606         (struct insn_info): Remove commented out insn field.
20607         * df.c: Update comments, tidy formatting.
20608         (df_def_table_realloc): Remove.
20611 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
20613         * calls.c (save_fixed_argument_area): Tidy.
20614         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
20615         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
20616         call chain loop at 1 if !try_tail_call.  Formatting.
20617         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
20618         Use save_fixed_argument_area and restore_fixed_argument_area.
20620 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20622         * df.c (df_uses_record): Handle CC0.
20624 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
20626         * reload.c (maybe_memory_address_p): New function.
20627         (find_reloads_address): Use it instead of memory_address_p.
20629 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
20631         * final.c (shorten_branches): Align the address of code label
20632         when computing initial lengths and addresses.
20634 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20636         * config/m68hc11/m68hc11.md: Fix a comment typo.
20638 2003-01-25  Andreas Jaeger  <aj@suse.de>
20640         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
20641         TARGET_MACHO.
20643 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20645         * gcse.c (bypass_last_basic_block): New global variable.
20646         (bypass_block):  Use redirect_edge_and_branch_force to redirect
20647         fall-through edges.  Use bypass_last_basic_block to determine
20648         which blocks have valid PRE information.
20649         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
20651 2003-01-25  Jan Hubicka  <jh@suse.cz>
20653         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
20655 2003-01-25  Jan Hubicka  <jh@suse.cz>
20656                               Eric Botcazou <ebotcazou@libertysurf.fr>
20657         PR opt/8492
20658         * gcse.c (one_cprop_pass): Delete unreachable blocks.
20660 2003-01-25  Richard Henderson  <rth@redhat.com>
20662         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
20663         from ia64_aix_select_rtx_section.
20664         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
20665         instead of saving and restoring flag_pic.
20666         (ia64_rwreloc_unique_section): Similarly.
20667         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
20668         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
20669         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
20670         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
20672 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20674         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
20675         comment.
20677 2003-01-25  Richard Henderson  <rth@redhat.com>
20679         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
20681 2003-01-25  Kelley Cook <kelleycook@comcast.net>
20683         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
20685 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
20687         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
20688         type for bitmaps.  Use unsigned long.
20689         (nBITMAP_WORD_BITS): New macro.
20690         (BITMAP_WORD_BITS): New macro.
20691         (rest of file): Use it.
20692         * bitmap.c: Use it.
20694 2003-01-25  Richard Henderson  <rth@redhat.com>
20696         2002-02-19  Robert Lipe  <robertlipe@usa.net>
20697         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
20699 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20701         * builtins.c (purge_builtin_constant_p): Scan insn stream
20702         sequentially rather than by basic block.
20703         * function.c (purge_addressof): Simplify test with INSN_P.
20705 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
20707         * combine.c (simplify_comparison, case AND): Remove a redundant test.
20709 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20711         * function.h (struct function): New field calls_constant_p.
20712         (current_function_calls_constant_p): New macro for above.
20713         * function.c (prepare_function_start): Initialize calls_eh_return
20714         and calls_constant_p.
20715         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
20716         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
20717         when the current_function_calls_constant_p.
20718         * integrate.c (expand_inline_function): Set calls_constant_p if
20719         the function being inlined has calls_constant_p set.
20721 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20723         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
20724         optimizing, even if flag_gcse is true.
20725         * toplev.c (rest_of_compilation): purge_builtin_constant_p
20726         only needs to be called when "optimize > 0 && flag_gcse".
20728 2003-01-25  Roger Sayle  <roger@eyesopen.com>
20730         * stmt.c (emit_case_bit_tests): New routine to implement suitable
20731         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
20732         (case_bit_test_cmp): New comparison function for "qsort" to order
20733         case_bit_tests by decreasing number of destination nodes.
20734         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
20735         (expand_end_case_type): Use emit_case_bit_tests to implement
20736         suitable switch statments.
20737         (CASE_USE_BIT_TESTS): New target macro to disable the above.
20738         * Makefile.in (stmt.o): Add dependency on optab.h.
20739         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
20741 2003-01-23  Andreas Schwab  <schwab@suse.de>
20743         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
20744         __do_global_ctors_aux hidden global and don't put it in
20745         .init_array.
20746         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
20747         instead so that it comes first.
20749 2003-01-25  Jan Hubicka  <jh@suse.cz>
20751         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
20752         subreg is read/modify.
20754 2003-01-25  Jan Hubicka  <jh@suse.cz>
20756         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
20757         do libcall for large blocks.
20758         * i386.md (comi patterns): Set type to ssecomi.
20759         (sse2_unpck?pd): Fix mode of vec_select.
20761         * cse.c: Include except.h
20762         (cse_set_around_loop):  Do not create new basic blocks.
20763         * Makefile.in (cse.o): Add dependnecy on except.h
20765 2003-01-25  Jan Hubicka  <jh@suse.cz>
20767         * builtins.c (fold_trunc_transparent_mathfn): New function.
20768         (fold_builtin): Use it.
20769         * convert.c (convert_to_real): Re-enable code to convert
20770         math functions; add support for floor familly functions.
20772 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20774         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
20775         dependencies on coretypes.h and $(TM_H).
20777 2003-01-25  Jan Hubicka  <jh@suse.cz>
20779         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
20781 2003-01-24  Stuart Hastings  <stuart@apple.com>
20783         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
20785 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20787         * config/c4x/c4x.md (UNSPEC_BU): New constants.
20788         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
20789         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
20790         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
20791         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
20792         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
20793         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
20794         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
20796 2003-01-24  Jan Hubicka  <jh@suse.cz>
20798         * emit-rtl.c (reg_attrs_htab): New static variable.
20799         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
20800         functions.
20801         (reg_rtx): Do not maintain regno_decl.
20802         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
20803         set_mem_attrs_from_reg): New global function.
20804         (init_emit): Do not initialize regno_decl.
20805         (init_emit_once): initialize reg_attrs_htab.
20806         * final.c (alter_subreg): Do not replace REG by SUBREG.
20807         (gen_mem_expr_from_op): Improve output.
20808         (output_asm_operands): Likewise.
20809         * function.c (assign_params): Do not set REGNO_DECL.
20810         * function.h (struct function): Kill regno_decl.
20811         (REGNO_DECL): Kill.
20812         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
20813         * print_rtl.c (print_rtx): Output REG information.
20814         * regclass.c (reg_scan_mark_refs): Update attrs.
20815         * reload1.c (alter_reg): Likewise.
20816         * simplify_rtx.c (simplify_subreg): Likewise.
20817         * stmt.c (expand_decl): Likewise.
20818         * rtl.def (REG): Add new field.
20819         * rtl.h (struct reg_attrs): New.
20820         (rtunion_def): At rtreg.
20821         (X0MEMATTR): Add checking.
20822         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
20823         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
20824         Declare.
20825         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
20827 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
20829         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
20830         (xtensa_emit_call, print_operand): Fix printf format strings
20831         to avoid compile warnings.
20832         (xtensa_function_prologue, xtensa_function_epilogue): Change type
20833         of "size" argument to HOST_WIDE_INT to fix compile warnings.
20834         * config/xtensa/xtensa-protos.h
20835         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
20837 2003-01-24  Jan Hubicka  <jh@suse.cz>
20839         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
20840         (implicit_built_in_decls): New global array.
20841         (mathfn_built_in): New global function.
20842         (fold_trunc_transparent_mathfn): New static function
20843         (expand_builtin_strstr, expand_bultin_strchr,
20844         expand_builtin_strpbrk, expand_builtin_strcpy,
20845         expand_builtin_strncpy, expand_bultin_strcmp,
20846         expand_bultin_strncat, expand_builtin_fputs): Use
20847         implicint_built_in_decls.
20848         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
20849         * builtins.def: Fix comments.
20850         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
20851         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
20852         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
20853         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
20854         (DEF_C99_C90RES_BULTIN): New.
20855         (*f, *l builtins): Update.
20856         * c-common.c (DEF_BUILTIN): Initialize implicit array.
20857         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
20858         * convert.c (strip_float_extensions): New global function.
20859         * tree.h (DEF_BUILTIN): Accept 10 arguments.
20860         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
20861         Declare.
20862         * java/builtins.c (define_builtin): Handle implicit.
20863         (DEF_BUILTIN): Update.
20864         * tm.texi (TARGET_C99_FUNCTIONS): Document.
20865         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
20866         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
20867         when using glibc2.
20869 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
20871         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
20872         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
20873         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
20874         * config/xtensa/crti.asm: New file.
20875         * config/xtensa/crtn.asm: New file.
20876         * config/xtensa/t-elf: New file.
20877         * config/xtensa/t-linux: New file.
20878         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
20879         Move various CFLAGS settings to new t-elf file.
20881 2003-01-24  Richard Henderson  <rth@redhat.com>
20883         PR optimization/4382
20884         * tree-inline.c (find_builtin_longjmp_call_1): New.
20885         (find_builtin_longjmp_call): New.
20886         (inlinable_function_p): Use it.
20888 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20890         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
20891         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
20892         * config/i386/i386.c (function_arg_pass_by_reference): New.
20893         (ix86_va_arg): Support arguments passed by reference.
20895 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20897         * cfgloopanal.c: New file.
20898         * cfgloopmanip.c: New file.
20899         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
20900         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
20901         cfglayout.o): Add dependency on cfgloop.h.
20902         (cfgloop.o): Add flags.h dependency.
20903         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
20904         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
20905         (struct loop, struct loops, flow_loops_find, flow_loops_update,
20906         flow_loops_free, flow_loops_dump, flow_loop_dump,
20907         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
20908         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
20909         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
20910         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
20911         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
20912         find_common_loop, verify_loop_structure): Declarations moved to ...
20913         * cfgloop.h: New file.
20914         * bb-reorder.c (reorder_basic_blocks): Modified.
20915         * cfglayout.c: Include cfgloop.h.
20916         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
20917         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
20918         (break_superblocks): New static function.
20919         (cfg_layout_finalize): Use it.
20920         (cfg_layout_split_block): New function.
20921         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
20922         fields.
20923         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
20924         changed.
20925         (cfg_layout_split_block): Declare.
20926         * cfgloop.c: Include cfgloop.h and flags.h.
20927         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
20928         get_loop_body): Avoid signed versus unsigned comparison warnings.
20929         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
20930         loop_latch_edge): Modified.
20931         (verify_loop_structure): Modified to use flags stored in loop structure;
20932         check irreducible loops.
20933         (cancel_loop, cancel_loop_tree): New functions.
20934         (estimate_probability): Use loop analysis code for predictions.
20935         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
20936         warnings.
20937         * doloop.c: Include cfgloop.h.
20938         * loop.c: Include cfgloop.h.
20939         * predict.c: Include cfgloop.h.
20940         * toplev.c: Include cfgloop.h.
20941         * unroll.c: Include cfgloop.h.
20942         * tracer.c (tracer): Modified.
20944 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20946         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
20948 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
20950         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
20951         * configure: Regenerate.
20953         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
20954         (tls_symbolic_reference_mentioned_p): Add prototype.
20955         (s390_tls_get_offset): Add prototype.
20956         (emit_pic_move): Remove prototype, replace by ...
20957         (emit_symbolic_move): .. this new prototype.
20959         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
20960         (tls_model_chars): New global variable.
20961         (s390_encode_section_info): Encode TLS model.
20962         Use targetm.binds_local_p to check for local symbols.
20963         (s390_strip_name_encoding): New function.
20964         (TARGET_STRIP_NAME_ENCODING): Define.
20966         (get_thread_pointer): New function.
20967         (legitimize_tls_address): New function.
20968         (legitimize_address): Call it.
20969         (emit_pic_move): Remove, replace by ...
20970         (emit_symbolic_move): ... this new function.
20972         (larl_operand): Handle TLS operands.
20973         (legitimate_constant_p): Likewise.
20974         (s390_decompose_address): Likewise.
20975         (s390_cannot_force_const_mem): New function.
20976         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20978         (s390_output_symbolic_const): Handle TLS unspecs.
20979         (print_operand): New code 'J'.
20980         (machine_function): Add struct member 'some_ld_name'.
20981         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
20983         (enum s390_builtin): New type.
20984         (code_for_builtin_64, code_for_builtin_31): New global variables.
20985         (s390_init_builtins, s390_expand_builtin): New functions.
20986         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
20988         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
20989         (ASM_OUTPUT_LABELREF): Define.
20990         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
20992         * config/s390/s390.md: Define TLS UNSPEC constants.
20993         ("movdi", "movsi"): Handle TLS operands.
20994         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
20995         ("*tls_load_64", "*tls_load_31"): New insns.
20996         ("call_value_tls", "call_value_tls_exp"): New expanders.
20997         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
20998         "bas_tls_64", "bas_tls_31"): New insns.
21000 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
21002         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
21003         spe ABI is configured, if requested.
21005 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
21007         * doc/passes.texi: Fix typo.
21009 2003-01-24  Andreas Schwab  <schwab@suse.de>
21011         * stor-layout.c (excess_unit_span): Only define if used.
21013 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
21015         * gcc/doc/invoke.texi (Optimization Options): List -O levels
21016         for each optimization flag.
21018 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
21020         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
21022 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
21024         * doc/bugreport.texi: Use @command instead of @code for commands.
21025         * doc/collect2.texi: Likewise.
21026         * doc/headerdirs.texi: Likewise.
21027         * doc/invoke.texi: Likewise.
21028         * doc/standards.texi: Likewise.
21029         * doc/tm.texi: Likewise.
21030         * doc/trouble.texi: Likewise.
21032 2003-01-24  Nick Clifton  <nickc@redhat.com>
21034         * config/arm/arm.c (use_return_insn): Do not use a single return
21035         instruction for interrupt handelrs which have to create a stack
21036         frame.
21037         (arm_expand_prologue): Do not pre-bias the return address of
21038         interrupt handlers which create a stack frame.
21040 2003-01-24  Nick Clifton  <nickc@redhat.com>
21042         * Add sh2e support:
21044         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
21046                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
21047                 med_cbranches.  Fix logic in short_cbranches.
21049         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
21051                 * config/sh/sh.md (delay for cbranch): Don't annul delay
21052                 slots on SH2e.
21053                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
21054                 cbranch with unfilled delay slot on SH2e.
21055                 (output_branch): Fill with a nop the delay slot of a
21056                 branch that required a delay slot but didn't get one.
21058         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
21060                 * doc/invoke.texi (SH options): Document -m2e.
21061                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
21062                 * config/sh/lib1funcs.asm: Likewise.
21063                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
21064                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
21065                 not __sh1__.
21066                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
21067                 SH2E up.
21068                 (SH3E_BIT): Renamed to...
21069                 (SH_E_BIT): ... this.  Replace all uses.
21070                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
21071                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
21072                 (TARGET_SWITCHES): Added 2e.
21073                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
21074                 (processor_type): Added PROCESSOR_SH2E.
21075                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
21076                 TARGET_SH2E, except in sqrtsf2_i.
21077                 (attribute cpu): Added sh2e.
21078                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
21079                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
21080                 * config.gcc: Add sh2e target support.
21082 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
21084         Rename -W to -Wextra.
21085         * c-decl.c:  Update comments.
21086         * c-typeck.c:  Likewise.
21087         * flags.h:  Likewise.
21088         * function.c:  Likewise.
21089         * stmt.c:  Likewise.
21090         * toplev.c:  Update comments.
21091         (W_options):  Add 'extra'.
21092         (display_help):  Remove '-W'.
21093         (decode_W_option):  Special warn_uninitialized treatment in the case
21094         of -Wextra.
21095         * doc/invoke.texi:  Update with new entries.
21097 2003-01-23  Richard Henderson  <rth@redhat.com>
21099         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
21100         in no-else-block case.  Add commentary.
21102 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21104         * configure.in: Revert last change.
21106 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21108         * configure.in: Don't include ansidecl.h in tconfig.h.
21109         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
21110         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
21111         ATTRIBUTE_UNUSED.
21113         * configure: Regenerate.
21115 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21117         PR java/6748
21118         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
21119         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
21120         kernels.
21122 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21124         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
21126 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
21128         * genattrtab.c (write_attr_get): Mark 'insn' paramter
21129         as ATTRIBUTE_UNUSED.
21131 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
21133         * arm.c (thumb_base_register_rtx_p): New function.
21134         (thumb_index_register_rtx_p): New function.
21135         (thumb_legitimate_address_p): New function.
21136         (thumb_legitimate_offset_p): New function.
21137         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
21138         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
21139         definitions.
21140         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
21141         (THUMB_LEGITIMATE_OFFSET): Delte.
21142         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
21143         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
21144         (thumb_legitimate_offset_p): Likewise.
21146 2003-01-23  Andreas Schwab  <schwab@suse.de>
21148         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
21150 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21152         * fixinc/Makefile.in (FL_LIST): Revert last change.
21154 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
21156         PR other/7341
21157         * invoke.texi (ftest-coverage): Fix broken cross-reference.
21158         Change @code to @command for gcov command.
21160         * gcc.texi: Adjust title of gcov section.
21161         Adjust copyright.
21162         * gcov.texi: Likewise.
21164 2003-01-22  Roger Sayle  <roger@eyesopen.com>
21166         PR optimization/8423
21167         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
21168         its argument is constant, or 0 if !flag_gcse.
21169         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
21170         if it's argument is constant.
21171         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
21172         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
21173         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
21174         * builtins.c (purge_builtin_constant_p): New function to force
21175         instantiation of any remaining CONSTANT_P_RTX nodes.
21176         * rtl.h (purge_builtin_constant_p): Prototype here.
21177         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
21178         pass after GCSE and before loop.
21179         (flag_gcse): No longer static.
21180         * flags.h (flag_gcse): Prototype here.
21182 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
21184         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
21185         introduced by last change.
21187 2003-01-22  Andreas Schwab  <schwab@suse.de>
21189         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
21191 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
21193         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
21194         request a scratch reg on H8S when the shift count is 8.
21196 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
21198         * config/s390/s390-protos.h (preferred_la_operand_p):
21199         Remove second parameter.
21200         * config/s390/s390.c (preferred_la_operand_p): Likewise.
21201         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
21202         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
21203         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
21204         Add peepholes to transform ADD to LOAD ADDRESS.
21206 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
21208         * arm.c (arm_address_register_rtx_p): New function.
21209         (arm_legitimate_address_p): New function.
21210         (arm_legitimate_index_p): New function.
21211         (legitimize_pic_address): Use arm_legitimate_index_p.
21212         * arm-protos.h (arm_legtimate_address_p): Add prototype.
21213         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
21214         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
21216 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
21218         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
21219         * config/s390/2064.md (define_bypass): Correct 'Load' and
21220         'Load-address' bypass values.
21222 2003-01-22  Andreas Schwab  <schwab@suse.de>
21224         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
21226 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
21228         * genautomata.c (output_internal_insn_latency_func,
21229         output_print_reservation_func): Short circuit when there is no
21230         automaton to generate code for.
21232 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21234         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
21235         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
21237 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
21239         * config/rs6000/rs6000.md: Remove warning.
21240         (builtin_setjmp_receiver): Likewise.
21241         * config/darwin.c (update_stubs): Slightly improve terrible hack
21242         with identifiers.  Add comment pointing out problems with it.
21243         (update_non_lazy_ptrs): Likewise.
21245 2003-01-21  Richard Henderson  <rth@redhat.com>
21247         * dwarf2out.c (lookup_filename): Fix printf format warning.
21248         * system.h (fread_unlocked, fwrite_unlocked): Undef.
21250         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
21251         (fixincl.o-warn, gnu-regex.o-warn): New.
21252         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
21253         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
21254         * fixinc/fixincl.c (process): Fix printf format warning.
21256 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
21258         * dwarf2out (output_file_names): Don't crash if called
21259         with empty file_table.
21261 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
21263         * genautomata.c (output_internal_insn_latency_func): Add
21264         missing break statement to generated code.
21266 2003-01-21  Roger Sayle  <roger@eyesopen.com>
21268         * stmt.c (same_case_target_p): New function to determine whether
21269         two case labels branch to the same target.  Split out from...
21270         (group_case_nodes): ... here.  Use same_case_target_p instead.
21271         (strip_default_case_nodes): Remove explicit case nodes
21272         that branch to the default destination.
21273         (expand_end_case_type): Call strip_default_case_nodes after
21274         group_case_nodes, to simplify the case-list before we count it.
21275         Only generate table_label RTX when actually needed.  Try to share
21276         thiscase->exit_label and thiscase->data.case_stmt.default_label
21277         when a switch has no explicit default case.  Simplify test for
21278         constant index.
21280 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
21282         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
21283         \t.
21284         (*negsf2_h8300hs): Likewise.
21285         (*addsi3_lshiftrt_16_zexthi): Likewise.
21286         (*iorhi3_lshiftrt_8): Likewise.
21288 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
21290         * dwarf2out.c (fde_table_in_use): Mark GTY.
21291         (dwarf2out_cfi_label_num): New variable, marked GTY.
21292         (dwarf2out_cfi_label): Use it instead of static label_num.
21293         * emit-rtl.c (label_num): Mark GTY.
21295 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
21297         * config/h8300/h8300.c (output_plussi): Support H8/300.
21298         (compute_plussi_length): Likewise.
21299         (compute_plussi_cc): Likewise.
21300         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
21301         output assembly instructions.
21303 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21305         * calls.c (fix_unsafe_tree): Prototype.
21307         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
21308         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
21309         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
21310         c-parse.o-warn): Add -Wno-error.
21311         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
21313         * configure.in (--enable-werror): Add new flag.
21314         * doc/install.texi (--enable-werror): Document.
21315         * configure: Regenerate.
21317         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
21319 2003-01-21  Andreas Schwab  <schwab@suse.de>
21321         * genautomata.c (output_internal_insn_latency_func): Fix missing
21322         close paren in output.
21324 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
21326         * genautomata.c: Space savings in generated code:
21327         (output_dfa_insn_code_func): Split out the table-enlargement
21328         path to an out-of-line static function, dfa_insn_code_enlarge.
21329         (output_internal_insn_latency_func): Use a lookup table for the
21330         default latencies.
21331         (output_print_reservation_func): Use a lookup table for the
21332         strings.
21334 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
21336         PR opt/7507
21337         * calls.c (fix_unsafe_tree): Split out from ...
21338         (expand_call): ... here.  Use it on the function address too.
21340 2003-01-20  Richard Henderson  <rth@redhat.com>
21342         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
21344 2003-01-20  Richard Henderson  <rth@redhat.com>
21346         PR opt/7154
21347         * stmt.c (expand_asm_operands): Validize memory operands.
21349 2003-01-20  Richard Henderson  <rth@redhat.com>
21351         PR opt/8848
21352         * ifcvt.c (noce_process_if_block): Correct arguments to
21353         modified_between_p for no-else-block case.
21355 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21357         * config/h8300/h8300.c (const_costs): Remove a warning.
21358         (output_plussi): Likewise.
21359         (compute_plussi_length): Likewise.
21360         (compute_plussi_cc): Likewise.
21362 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21364         * config/h8300/h8300.md (addsi_h8300): Remove the last
21365         alternative.
21367 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21369         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
21371 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21373         * system.h (__NO_STRING_INLINES): Define.
21375 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21377         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
21378         is not a scalar int mode.
21380 2003-01-20  Roger Sayle  <roger@eyesopen.com>
21382         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
21383         insn's notes following a substitution inside a libcall.
21385 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
21387         * configure.in: Check for system-provided 'uchar' type.
21388         * configure, config.in: Regenerate.
21389         * cpphash.h: Only typedef 'uchar' if the system doesn't.
21391 2003-01-20  Richard Henderson  <rth@redhat.com>
21393         * expr.h (MUST_PASS_IN_STACK): Move implementation...
21394         * calls.c (default_must_pass_in_stack): ... here.
21396 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
21398         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
21400         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
21402         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
21403         Wrap up definition of `insn_alts'.
21405         * genattrtab.c (main): Wrap up `insn_alts'.
21407 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21409         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
21410         prototyping.
21411         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
21413         * config.in, configure: Regenerate.
21415 2003-01-20  Nick Clifton  <nickc@redhat.com>
21417         * config/arm/arm.md (sibcall_epilogue): Add an
21418         UNSPEC_PROLOGUE_USE to prevent the link register from being
21419         considered dead.
21421 2003-01-20  Jan Hubicka  <jh@suse.cz>
21423         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
21425 2003-01-20  Andreas Schwab  <schwab@suse.de>
21427         * system.h: Don't declare strsignal if the decl test hasn't been
21428         run yet.
21430 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21432         * config/h8300/h8300.c (notice_update_cc): Don't assume that
21433         recog_data.operands[0] is always associated with cc0.
21435 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
21437         * collect2.c (ldgetname): Expand declaration to prototype.
21438         * read-rtl.c (atoll): Add prototype.
21439         * system.h (strsignal): Also declare if no declaration found.
21441 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
21443         * config.gcc (mips64*-*-linux*): Added.
21444         * config/mips/linux64.h, config/mips/t-linux64: New file.
21445         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
21446         * config/mips/mips.c (override_options): Use it.
21447         * config/mips/mips.h (TARGET_SWITCHES): Added...
21448         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
21449         * Makefile.in (SPECS): New.
21450         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
21451         * gcc.c (process_command): Move self-spec processing past spec
21452         file loading.
21453         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
21454         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
21455         CRTSTUFF_T_CFLAGS.
21456         (SPECS): Document.
21457         * doc/invoke.texi (-mabi-fake-default): Document.
21459 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
21461         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
21462         z_reg, z_reg_qi): Declare static and GTY().
21463         (da_reg): Remove.
21464         (create_regs_rtx): Don't create da_reg.
21465         ("gt-m68hc11.h"): Include for GTY roots.
21466         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
21467         and GTY() here.
21468         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
21469         (m68hc11_soft_tmp_reg): Likewise.
21470         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
21472 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
21474         * basic-block.h: Fix comment formatting.
21475         * calls.c: Likewise.
21476         * combine.c: Likewise.
21477         * convert.c: Likewise.
21478         * gcov.c: Likewise.
21479         * haifa-sched.c: Likewise.
21480         * libgcc2.c: Likewise.
21481         * loop.c: Likewise.
21482         * profile.c: Likewise.
21483         * system.h: Likewise.
21485 2003-01-18  Roger Sayle  <roger@eyesopen.com>
21487         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
21489 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21491         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
21493 2003-01-17  Dale Johannesen  <dalej@apple.com>
21495         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
21496           (*floatunssidf2_internal):  Ditto.
21498 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21500         * alias.c: Fix comment typos.
21501         * basic-block.h: Likewise.
21502         * c-common.c: Likewise.
21503         * c-common.h: Likewise.
21504         * c-decl.c: Likewise.
21505         * c-opts.c: Likewise.
21506         * c-pragma.c: Likewise.
21507         * c-pretty-print.h: Likewise.
21508         * cfg.c: Likewise.
21509         * cfganal.c: Likewise.
21510         * cfgbuild.c: Likewise.
21511         * cfgcleanup.c: Likewise.
21512         * cfglayout.c: Likewise.
21513         * cfgrtl.c: Likewise.
21514         * convert.c: Likewise.
21515         * cpphash.h: Likewise.
21516         * cpplex.c: Likewise.
21517         * cpplib.h: Likewise.
21518         * df.h: Likewise.
21519         * diagnostic.c: Likewise.
21520         * diagnostic.h: Likewise.
21521         * dwarf2.h: Likewise.
21523 2003-01-17  Stan Shebs  <shebs@apple.com>
21525         * config/darwin-protos.h: Forward-declare struct cpp_reader.
21527 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
21529         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
21530         mistake in last checkin.
21532 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21534         * et-forest.c: Fix comment typos.
21535         * et-forest.h: Likewise.
21536         * except.c: Likewise.
21537         * expr.c: Likewise.
21538         * flags.h: Likewise.
21539         * flow.c: Likewise.
21540         * gcc.c: Likewise.
21541         * gcse.c: Likewise.
21542         * genattrtab.c: Likewise.
21543         * genautomata.c: Likewise.
21544         * gengtype.c: Likewise.
21545         * genrecog.c: Likewise.
21546         * global.c: Likewise.
21547         * gthr-rtems.h: Likewise.
21549 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21551         * i386.c (x86_function_profiler): Fix format specifier.
21553 2003-01-17  Richard Henderson  <rth@redhat.com>
21555         * gengtype.c (walk_type): Allow paramN_is.
21557 2003-01-17  Nick Clifton  <nickc@redhat.com>
21559         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
21561 2003-01-16  Richard Henderson  <rth@redhat.com>
21563         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
21565 2003-01-16  Richard Henderson  <rth@redhat.com>
21567         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
21568         (alpha_next_sequence_number): Likewise.
21569         (alpha_this_literal_sequence_number): Likewise.
21570         (alpha_this_gpdisp_sequence_number): Likewise.
21571         (struct alpha_funcs, alpha_funcs_num): Likewise.
21572         (struct alpha_links): Fix branch merge error.
21573         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
21575 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
21577         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
21578         R. Ghazi.
21580 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
21582         * ifcvt.c: Fix comment typos.
21583         * lcm.c: Likewise.
21584         * libgcc2.c: Likewise.
21585         * local-alloc.c: Likewise.
21586         * loop.c: Likewise.
21587         * predict.c: Likewise.
21588         * ra-build.c: Likewise.
21589         * ra.c: Likewise.
21590         * ra-colorize.c: Likewise.
21591         * ra.h: Likewise.
21592         * ra-rewrite.c: Likewise.
21593         * regmove.c: Likewise.
21594         * reload.h: Likewise.
21595         * rtlanal.c: Likewise.
21596         * toplev.c: Likewise.
21597         * tree.h: Likewise.
21598         * unwind-dw2-fde-glibc.c: Likewise.
21599         * vmsdbgout.c: Likewise.
21601 2003-01-16  Richard Henderson  <rth@redhat.com>
21603         * dwarf2out.c (struct file_table): Remove.
21604         (FILE_TABLE_INCREMENT): Remove.
21605         (file_table): Make a varray; mark for GC.  Update all users.
21606         (file_table_last_lookup_index): Extract from struct file_table.
21607         (output_file_names): Fix unsigned compare warnings.
21608         (add_name_attribute): Remove inline marker.
21609         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
21610         (lookup_filename): Don't manage size of file_table.
21611         (init_file_table): Allocate file_table with GC.
21612         (dwarf2out_init): Don't record main_input_filename here.
21613         (dwarf2out_finish): Do it here instead.
21615 2003-01-16  Bruce Korb  <bkorb@gnu.org>
21617         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
21619 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21621         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
21622         instead of rotldi3_mextr.
21624 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
21626         * haifa-sched.c (move_insn): Restore moving all schedule group.
21627         (set_priorities): Restore taking SCHED_GROUP_P into account.
21629         * sched-deps.c (add_dependence): Restore processing the last group
21630         insn.
21631         (remove_dependence, group_leader): Restore the functions.
21632         (set_sched_group_p): Restore adding dependencies from previous insn
21633         in the group.
21634         (compute_forward_dependences): Restore usage of group_leader.
21636         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
21637         account.
21639         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
21640         account.
21641         (can_schedule_ready_p): Ditto.
21642         (add_branch_dependences): Restore skipping over the group insns.
21644 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21646         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
21647         68HC12 pre/post inc/dec side effects.
21649 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21651         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
21653 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
21655         * sh.md (mshflo_w_x): Fix description of operation.
21657 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
21659         * config/rs6000/rs6000.h: Mention Altivec registers in
21660         commentary.  Fix typo.
21662 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
21664         * config/rs6000/rs6000.md (movti_string): Remove clobber.
21665         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
21666         generate PARALLEL with clobber for TARGET_POWER.
21668 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21670         * ra-colorize.c (colorize_one_web): Initialize variable.
21671         * regmove.c (fixup_match_1): Likewise.
21672         * reload1.c (reload_as_needed): Likewise.
21673         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
21675 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
21677         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
21679 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21681         * dbxout.c (lastfile, cwd): Fix `unused' warning.
21682         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
21683         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
21684         is_main_source, file_table, decl_die_table_in_use,
21685         abbrev_die_table_in_use, line_info_table_in_use,
21686         separate_line_info_table_in_use, pubname_table_in_use,
21687         arange_table_in_use, ranges_table_in_use,
21688         current_function_has_inlines): Likewise.
21689         * flow.c (life_analysis): Likewise.
21690         * genemit.c (gen_insn): Likewise.
21691         * protoize.c (cplus_suffix): Likewise.
21693         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
21694         * arm.h (ROUND_UP_WORD): Likewise.
21696         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
21697         warning.
21698         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
21699         init_emit_once): Likewise.
21700         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
21701         Likewise.
21702         * function.c (assign_stack_temp_for_type): Likewise.
21703         * loop.c (loop_invariant_p): Likewise.
21704         * recog.c (push_operand): Likewise.
21705         * regclass.c (init_reg_sets_1): Likewise.
21706         * reload.c (update_auto_inc_notes): Likewise.
21707         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
21708         * stmt.c (expand_asm_operands): Likewise.
21709         * stor-layout.c (start_record_layout): Likewise.
21711 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
21713         * config/c4x/c4x.md (epilogue): Correct last patch.
21715 2003-01-15  Richard Henderson  <rth@redhat.com>
21717         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
21718         also check that GP is being used.
21719         (alpha_find_lo_sum_using_gp): New.
21720         (alpha_does_function_need_gp): Use get_attr_usegp.
21721         * config/alpha/alpha-protos.h: Update.
21722         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
21723         as needed.
21725 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21727         * gcse.c (one_cprop_pass): Change function arguments to take both
21728         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
21729         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
21730         (bypass_jumps): New function to perform separate jump bypassing pass.
21731         * rtl.h (bypass_jumps): Add function prototype.
21732         * timevar.def (TV_BYPASS): New timing variable.
21733         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
21734         (dump_file): New entry for the bypass RTL dump file.
21735         (rest_of_compilation): Insert new jump bypassing optimization
21736         pass after loop.
21737         * doc/passes.texi: Document new pass.
21739 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21741         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
21742         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
21743         * pa.h (TARGET_SOM_SDEF): Define.
21744         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
21746 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
21748         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
21749         allocate 4-bytes of locals on 68HC11.
21750         (expand_epilogue): Likewise.
21751         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
21753 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
21755         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
21756         and -mshort-double to the assembler to specify the ABI.
21757         (LINK_SPEC): Likewise.
21758         (CPP_SPEC): Pass HCS12 specific define.
21759         (MASK_M68S12): New define.
21760         (TARGET_M68S12): Likewise.
21761         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
21762         (TARGET_VERSION): Update.
21763         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
21764         (LINK_SPEC): Update.
21765         (ASM_SPEC): Update.
21766         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
21767         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
21769 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
21771         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
21772         the return code.
21774 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
21776         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
21777         flag before setting it.
21779 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21781         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
21782         when loop condition is known true, i.e.  "while (1) { ... }".
21783         (genrtl_for_stmt): Similarly for "for" statements.
21785 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21787         * real.c (real_sqrt): Return a bool result indicating whether
21788         a floating point exception or trap should be raised.
21789         * real.h (real_sqrt): Update function prototype.
21790         * builtins.c (fold_builtin): Only fold non-trapping square
21791         roots unless we're ignoring errno and trapping math.
21793 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
21795         * expr.h (emit_conditional_add): Add PARAMS to declaration.
21796         * gengtype-lex.l (malloc, realloc): Move defines after include of
21797         system.h.  Remove duplicate include of system.h.
21799 2003-01-15  Roger Sayle  <roger@eyesopen.com>
21801         PR middle-end/9009
21802         * optabs.c (expand_unop):  When manipulating the FP sign bit
21803         using integer operations, account for targets with different
21804         integer and FP word orders.
21805         (expand_abs): Likewise.
21807 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
21809         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
21810         file extension in section name.
21812 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
21814         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
21815         constant offset.
21817 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
21819         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
21820         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
21821         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
21822         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
21824 2003-01-15  Jan Hubicka  <jh@suse.cz>
21826         PR f/9258
21827         * global.c (struct allocno): Add no_stack_reg.
21828         (global_conflicts): Set no_stack_reg.
21829         (find_reg): Use it.
21831         * convert.c (convert_to_real): Fold - and abs only when profitable.
21832         * fold-const.c (fold): Fold truncates in - and abs.
21834 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
21836         Segher Boessenkool  <segher@koffie.nl>
21838         * predict.c (real_inv_br_prob_base): New variable.
21839         (propagate_freq): Use multiply by reciprocal instead of
21840         division.  Don't divide by 1.0 at all.
21841         (estimate_bb_frequencies): Similar.
21843 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
21845         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
21846         * configure: Rebuilt.
21848 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
21850         * config/s390/s390.c (s390_safe_attr_type): New function.
21851         (s390_use_dfa_pipeline_interface): New function, return true for z900.
21852         (s390_issue_rate): New function.
21853         (s390_agen_dep_p): New function.
21854         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
21855         (s390_adjust_cost): Return 'cost' if new DFA is used.
21856         (s390_adjust_priority): Delete function.
21857         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
21858         * config/s390/s390.md (atype attribute): Attribute 'atype' default
21859         determined by 'op_type'.
21860         (type attribute): Added more type attributes.
21861         * config/s390/2064.md: New DFA description for z900 pipeline.
21863 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
21865         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
21866         forced to memory.  Fixes PR bootstrap/9036.
21868         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
21869         to set $gp before the call.
21871 2003-01-14  Richard Henderson  <rth@redhat.com>
21873         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
21874         for force_const_mem.
21876 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21878         * genattr.c (main): Rearrange output to avoid prototype warning.
21879         * genautomata.c (transform_3): Fix ambiguous-else warning.
21880         * local-alloc.c (requires_inout): Add parentheses around
21881         assignment used as truth-value.
21882         * timevar.c: Move system includes above local includes.  Include
21883         toplev.h
21884         * Makefile.in (timevar.o): Depend on toplev.h.
21886 2003-01-14  Denis Chertykov  <denisc@overta.ru>
21888         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
21889         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
21891         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
21892         attributes.
21893         (TARGET_ATTRIBUTE_TABLE): New macro.
21894         (valid_machine_type_attribute): Remove.
21895         (valid_machine_decl_attribute): Remove.
21896         (ip2k_handle_progmem_attribute): New function.
21897         (ip2k_handle_fndecl_attribute): New function.
21899 2003-01-10  Andrew Haley  <aph@redhat.com>
21901         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
21902         registers to be in correct order.  Add rip.
21904 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
21906         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
21907         (*iorsi3_and_lshiftrt_9_sb): Likewise.
21909 2003-01-14  Jan Hubicka  <jh@suse.cz>
21911         * convert.c (strip_float_extensions):  Look for narrowest type handling
21912         FP constants.
21914         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
21915         float1 CMP float2.
21916         * convert.c (strip_float_extensions): Make global.
21917         * tree.h (strip_float_extensions): Declare.
21919 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
21921         * timevar.def: define TV_NAME_LOOKUP.
21922         * timevar.c (timevar_pop): Be verbose when aborting.
21924 2003-01-13  Andreas Schwab  <schwab@suse.de>
21926         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
21927         $(parsedir), just move the temporary file at the end.
21928         ($(parsedir)/gengtype-yacc.c): Likewise.
21930 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
21932         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
21933         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
21934         splitting.
21935         * configure: Rebuilt.
21937 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21939         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
21940         internal_mcount): Don't use PARAMS.
21941         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
21942         ISO C style.
21943         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
21945 2003-01-13  Andreas Schwab  <schwab@suse.de>
21947         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
21948         directive.
21950 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
21952         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
21953         (*iorsi3_and_lshiftrt_n_sb): Likewise.
21955 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
21957         PR c++/9264
21958         * c-lex.c (c_lex): Set the token value to error_mark_node for
21959         invalid numeric constants.
21961 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21963         * c-pch.c (asm_file_startpos): Change to `long'.
21964         (pch_init): Use ftell, not ftello.
21965         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
21966         Use `long' instead of `off_t'.
21967         (c_common_read_pch): Likewise.
21968         * ggc-common.c (gt_pch_save): Use long/ftell instead of
21969         off_t/ftello.
21971 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
21973         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
21975 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
21977         * arm-protos.h (struct cpp_reader): Add declaration.
21979 2003-01-11  Jan Hubicka  <jh@suse.cz>
21981         PR target/9068
21982         * i386.c (output_fp_compare): Fix typo.
21984 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
21986         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
21988 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
21990         * Makefile.in (parsedir): New variable.
21991         (docobjdir): New variable.
21992         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
21993         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
21994         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
21995         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
21996         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
21997         Use docobjdir.
21998         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
21999         objc.maintainer-clean): Use parsedir.
22001         * varasm.c (struct constant_descriptor_rtx): Remove unused
22002         `label' field.
22004         * toplev.c (documented_lang_options): Document -Winvalid-pch.
22006 2003-01-10  Richard Henderson  <rth@redhat.com>
22008         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
22009         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
22011 2003-01-10  Richard Henderson  <rth@redhat.com>
22013         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
22014         not INTEGRAL_MODE_P when widening extensions.
22016 2003-01-10  Richard Henderson  <rth@redhat.com>
22018         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
22020 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
22022         * ggc-page.c (ggc_collect): Avoid overflow computing
22023         min_expand.
22025         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
22026         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
22027         Remove calls.
22028         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
22030 2003-01-10  Jan Hubicka  <jh@suse.cz>
22032         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
22033         with weird operands.
22035 2003-01-10  Dale Johannesen <dalej@apple.com>
22037         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
22038         parameters.  Call check_sibcall_argument_overlap if indicated.
22039         (check_sibcall_argument_overlap):  Add mark_stored_args_map
22040         parameter.  Don't mark parameter area as clobbered if not set.
22041         (expand_call):  Adjust calls to above.
22043 2003-01-10 Kelley Cook <kelleycook@comcast.net>
22045         * configure.in (linker read-only and read-write section mixing):
22046         Squelch some assembler warnings.
22047         * configure: Likewise.
22049 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
22051         * doc/invoke.texi: Document -mtune, delete -mcpu
22052         option for S/390 and zSeries.
22053         * config/s390/s390.c (s390_tune_string) New variable.
22054         (s390_cpu_string) Delete variable.
22055         (override_options): Use s390_tune_string instead of
22056         s390_cpu_string.
22057         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
22059 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
22061         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
22063 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
22065         * jump.c (next_nonnote_insn_in_loop): New function.
22066         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
22067         next_nonnote_insn.
22068         (duplicate_loop_exit_test). Likewise.
22070 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
22072         Merge from pch-branch:
22074         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
22076         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
22077         load.
22079         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
22081         * cpplib.c (count_registered_pragmas): New function.
22082         (save_registered_pragmas): New function.
22083         (_cpp_save_pragma_names): New function.
22084         (restore_registered_pragmas): New function.
22085         (_cpp_restore_pragma_names): New function.
22086         * cpphash.h (_cpp_save_pragma_names): Prototype.
22087         (_cpp_restore_pragma_names): Likewise.
22088         * cpppch.c (struct save_macro_item): Split from save_macro_data.
22089         (struct save_macro_data): New field 'saved_pragmas'.
22090         (save_macros): Update for changes to struct save_macro_data.
22091         (cpp_prepare_state): Call _cpp_save_pragma_names, update
22092         for changes to struct save_macro_data.
22093         (cpp_read_state): Call _cpp_restore_pragma_names, update
22094         for changes to struct save_macro_data.
22096         * cpppch.c (cpp_read_state): Restore the hashtable references
22097         in the cpp_reader.
22099         * tree.h (built_in_decls): Mark for PCH.
22101         * dbxout.c (lastfile): Don't mark for PCH.
22103         * ggc.h: Document PCH calls into memory managers.
22105         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
22107         * doc/invoke.texi (Precompiled Headers): Document the
22108         directory form of PCH.
22109         * cppfiles.c (validate_pch): New function.
22110         (open_file_pch): Search suitably-named directories for PCH files.
22112         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
22114         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
22115         reorder options.
22116         (Type Information): Mention that the information is also
22117         used to implement PCH.
22118         * doc/passes.texi (Passes): Improve documentation of
22119         language-specific files.
22121         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
22123         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
22124         (struct walk_type_data): Add reorder_fn field.
22125         (walk_type): Process 'reorder' option.
22126         (write_types_process_field): Reorder parameters to gt_pch_note_object,
22127         call reorder_note_routine.
22128         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
22129         (ggc_wtd): Update for change to struct write_types_data.
22130         (pch_wtd): Likewise.
22131         * ggc.h (gt_pch_note_object): Reorder parameters.
22132         (gt_handle_reorder): New definition.
22133         (gt_pch_note_reorder): New prototype.
22134         * ggc-common.c (struct ptr_data): Add reorder_fn.
22135         (gt_pch_note_object): Reorder parameters.
22136         (gt_pch_note_reorder): New.
22137         (gt_pch_save): Call reorder_fn.
22138         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
22140         * dbxout.c (cwd): Don't mark for PCH.
22142         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
22144         * gengtype.c (finish_root_table): Fix some warnings.
22145         (write_root): Handle TYPE_STRING.
22146         * ggc.h (gt_ggc_m_S): Add prototype.
22147         * stringpool.c (gt_ggc_m_S): New function.
22149         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
22151         * dwarf2out.c (dw2_string_counter): New.
22152         (AT_string_form): Use it.
22153         (same_dw_val_p): Update for removal of hashtable.h hash tables.
22155         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
22157         * dbxout.c: Include gt-dbxout.h.
22158         (lastfile): Mark for PCH/GGC.
22159         (cwd): Likewise.
22160         (struct typeinfo): Likewise.
22161         (typevec): Likewise.
22162         (typevec_len): Likewise.
22163         (next_type_number): Likewise.
22164         (struct dbx_file): Likewise.
22165         (current_file): Likewise.
22166         (next_file_number): Likewise.
22167         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
22168         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
22169         (dbxout_end_source_file): Don't free struct dbx_file.
22170         (dbxout_type): Use GGC to allocate typevec.
22171         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
22172         (GTFILES): Add dbxout.c.
22173         (gt-dbxout.h): New rule.
22175         * Makefile.in (c-pch.o): Add debug.h as dependency.
22176         * c-pch.c: Include debug.h.
22177         (pch_init): Call start_source_file to keep nesting right.
22178         (c_common_read_pch): Add orig_name parameter.  Call
22179         start_source_file debug hook.  Call end_source_file debug hook.
22180         * c-common.h (c_common_read_pch): Update prototype.
22181         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
22182         callback.
22183         * cppfiles.c (struct include_file): Add new field `header_name'.
22184         (find_or_create_entry): Default it to `name'.
22185         (open_file_pch): Set it to the original header file searched for.
22186         (stack_include_file): Don't stack an empty buffer, just handle
22187         PCH files immediately.  Pass header_name field to read_pch callback.
22189         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
22191         * function.c (funcdef_no): Mark to be saved in a PCH.
22193         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
22195         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
22197         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
22199         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
22201         * optabs.h (code_to_optab): Add GTY marker.
22203         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
22205         * Makefile.in (GTFILES): Add cpplib.h.
22206         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
22207         * c-decl.c (build_compound_literal): Don't use var_labelno.
22208         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
22209         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
22210         * varasm.c (const_labelno): Use gengtype to mark.
22211         (var_labelno): Likewise.
22212         (in_section): Likewise.
22213         (in_named_name): Likewise.
22214         (struct in_named_entry): Likewise.
22215         (in_named_htab): Likewise.
22216         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
22217         (init_varasm_once): Use GGC to allocate in_named_htab.
22218         * config/darwin.c (current_pic_label_num): Mark for PCH.
22220         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
22222         * ggc-simple.c (init_ggc_pch): New stub procedure.
22223         (ggc_pch_count_object): Likewise.
22224         (ggc_pch_total_size): Likewise.
22225         (ggc_pch_this_base): Likewise.
22226         (ggc_pch_alloc_object): Likewise.
22227         (ggc_pch_prepare_write): Likewise.
22228         (ggc_pch_write_object): Likewise
22229         (ggc_pch_finish): Likewise.
22230         (ggc_pch_read): Likewise.
22232         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
22234         * c-pch.c (c_common_write_pch): Write the macro definitions after
22235         the GCed data.
22236         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
22237         definitions after the GCed data.
22238         * cpplib.c (save_macros): New.
22239         (reset_ht): New.
22240         (cpp_write_pch_deps): Split out of cpp_write_pch.
22241         (cpp_write_pch_state): Split out of cpp_write_pch.
22242         (cpp_write_pch): Delete.
22243         (struct save_macro_data): Delete.
22244         (cpp_prepare_state): New.
22245         (cpp_read_state): Erase and restore initial macro definitions.
22246         * cpplib.h (struct save_macro_data): Forward-declare.
22247         (cpp_write_pch_deps): Prototype.
22248         (cpp_write_pch_state): Prototype.
22249         (cpp_write_pch): Delete prototype.
22250         (cpp_prepare_state): Prototype.
22251         (cpp_read_state): Add fourth argument.
22253         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
22255         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
22256         (write_array): Remove warning.
22258         * gengtype.c (contains_scalar_p): New.
22259         (finish_root_table): Add the table to all languages, even if it's
22260         empty.
22261         (write_roots): Output gt_pch_scalar_rtab.
22262         * ggc-common.c (gt_pch_save): Write out scalars.
22263         (gt_pch_restore): Read scalars back.
22265         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
22266         (struct page_entry): Delete pch_page field.
22267         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
22268         (clear_marks): Likewise.
22269         (sweep_pages): Likewise.
22270         (poison_pages): Likewise.
22271         (ggc_print_statistics): Likewise.
22272         (ggc_pch_read): Don't free objects read from a PCH.
22273         Properly set up in_use_p and page_tails.
22275         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
22277         * gengtype.c (struct write_types_data): New.
22278         (struct walk_type_data): Make `cookie' const; add extra
22279         prev_val item; add `orig_s' field.
22280         (walk_type): Update prev_val[3].
22281         (write_types_process_field): New.
22282         (write_func_for_structure): Take write_types_data structure.
22283         (write_types): New.
22284         (ggc_wtd): New.
22285         (pch_wtd): New.
22286         (write_types_local_process_field): New.
22287         (gc_mark_process_field): Delete.
22288         (write_local_func_for_structure): New.
22289         (gc_mark_func_name): Delete.
22290         (write_gc_types): Delete.
22291         (write_local): New.
22292         (finish_root_table): Don't include 'ggc_' in PFX.
22293         (write_root): Rename from write_root.  Fill pchw field of structures.
22294         (write_array): New.
22295         (write_roots): Rename from write_gc_roots.  Split out to write_array.
22296         Update to changes to other routines.  Write gt_pch_cache_rtab table.
22297         (main): Write PCH walking routines.
22298         * ggc-common.c: Include toplev.h, sys/mman.h.
22299         (ggc_mark_roots): For cache hashtables, also mark the hash table
22300         and the array of entries.
22301         (saving_htab): New.
22302         (struct ptr_data): New.
22303         (POINTER_HASH): New.
22304         (gt_pch_note_object): New.
22305         (saving_htab_hash): New.
22306         (saving_htab_eq): New.
22307         (struct traversal_state): New.
22308         (call_count): New.
22309         (call_alloc): New.
22310         (compare_ptr_data): New.
22311         (relocate_ptrs): New.
22312         (write_pch_globals): New.
22313         (struct mmap_info): New.
22314         (gt_pch_save): New.
22315         (gt_pch_restore): New.
22316         * ggc-page.c (ROUND_UP_VALUE): New.
22317         (ROUND_UP): New.
22318         (struct page_entry): Add field `pch_page'.
22319         (init_ggc): Use ROUND_UP.
22320         (struct ggc_pch_data): Declare.
22321         (init_ggc_pch): New.
22322         (ggc_pch_count_object): New.
22323         (ggc_pch_total_size): New.
22324         (ggc_pch_this_base): New.
22325         (ggc_pch_alloc_object): New.
22326         (ggc_pch_prepare_write): New.
22327         (ggc_pch_write_object): New.
22328         (ggc_pch_finish): New.
22329         (ggc_pch_read): New.
22330         * ggc.h (gt_pointer_operator): New.
22331         (gt_note_pointers): New.
22332         (gt_pch_note_object): New prototype.
22333         (gt_pointer_walker): New.
22334         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
22335         (LAST_GGC_ROOT_TAB): Update.
22336         (gt_pch_cache_rtab): Declare.
22337         (gt_pch_scalar_rtab): Declare.
22338         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
22339         (LAST_GGC_CACHE_TAB): Update.
22340         (gt_pch_save_stringpool): Declare.
22341         (gt_pch_restore_stringpool): Declare.
22342         (gt_pch_p_S): Declare.
22343         (gt_pch_n_S): Declare.
22344         (struct ggc_pch_data): Forward-declare.
22345         (init_ggc_pch): Declare.
22346         (ggc_pch_count_object): Declare.
22347         (ggc_pch_total_size): Declare.
22348         (ggc_pch_this_base): Declare.
22349         (ggc_pch_alloc_object): Declare.
22350         (ggc_pch_prepare_write): Declare.
22351         (ggc_pch_write_object): Declare.
22352         (ggc_pch_finish): Declare.
22353         (ggc_pch_read): Declare.
22354         (gt_pch_save): Declare.
22355         (gt_pch_restore): Declare.
22356         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
22357         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
22358         const_double_htab, mem_attrs_htab using GGC.
22359         * c-pch.c: Include ggc.h.
22360         (pch_init): Allow reading PCH file back.
22361         (c_common_write_pch): Call gt_pch_save.
22362         (c_common_read_pch): Call gt_pch_restore.
22363         * c-parse.in (init_reswords): Delete now-untrue comment.
22364         Allocate ridpointers using GGC.
22365         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
22366         calling expand_deferred_fns.
22367         * c-common.h (ridpointers): Mark for GTY machinery.
22368         * Makefile.in (stringpool.o): Update dependencies.
22369         (c-pch.o): Update dependencies.
22370         (ggc-common.o): Update dependencies.
22371         * stringpool.c: Include gt-stringpool.h.
22372         (gt_pch_p_S): New.
22373         (gt_pch_n_S): New.
22374         (struct string_pool_data): New.
22375         (spd): New.
22376         (gt_pch_save_stringpool): New.
22377         (gt_pch_restore_stringpool): New.
22378         * tree.c (init_ttree): Make type_hash_table allocated using GC.
22380         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
22382         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
22383         (output_mangled_typename): Don't pass size_t to printf.
22385         * tree.h (union tree_type_symtab): Add tag to `address' field.
22386         (union tree_decl_u2): Add tag to 'i' field.
22387         * varasm.c (union rtx_const_un): Add tags to all fields.
22388         * gengtype.c (struct walk_type_data): New.
22389         (output_escaped_param): Take struct walk_type_data parameter.
22390         (write_gc_structure_fields): Delete.
22391         (walk_type): New.
22392         (write_gc_marker_routine_for_structure): Delete.
22393         (write_func_for_structure): New.
22394         (gc_mark_process_field): New.
22395         (gc_mark_func_name): New.
22396         (gc_counter): Delete.
22397         (write_gc_types): Use write_func_for_structure.
22398         (write_gc_roots): Use walk_type.
22400         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
22402         * ggc-common.c (ggc_mark_roots): Delete 'x'.
22403         (ggc_splay_dont_free): Fix warning about unused 'x'.
22404         (ggc_print_common_statistics): Remove warnings.
22406         2002-10-01  Mike Stump  <mrs@apple.com>
22408         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
22409         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
22411         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
22412             Catherine Moore  <clm@redhat.com>
22414         * Makefile (c-pch.o): Update dependencies.
22415         (LIBCPP_OBJS): Add cpppch.o.
22416         (cpppch.o): New.
22417         * c-common.c (c_common_init): Don't call pch_init here.
22418         * c-common.h (c_common_read_pch): Update prototype.
22419         * c-lex.c (c_common_parse_file): Call pch_init here.
22420         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
22421         (c_common_decode_option): Handle them.
22422         * c-pch.c: Include c-pragma.h.
22423         (save_asm_offset): Delete.
22424         (pch_init): Move contents of save_asm_offset into here, call
22425         cpp_save_state.
22426         (c_common_write_pch): Call cpp_write_pch.
22427         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
22428         cpp_valid_state.
22429         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
22430         * cppfiles.c (stack_include_file): Update for change to
22431         parameters of cb.read_pch.
22432         * cpphash.h (struct cpp_reader): Add `savedstate' field.
22433         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
22434         `restore_pch_deps' fields.
22435         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
22436         (cpp_save_state): Prototype.
22437         (cpp_write_pch): Prototype.
22438         (cpp_valid_state): Prototype.
22439         (cpp_read_state): Prototype.
22440         * cpppch.c: New file.
22441         * flags.h (version_flag): Remove prototype.
22442         * mkdeps.c (deps_save): New.
22443         (deps_restore): New.
22444         * mkdeps.h (deps_save): Prototype.
22445         (deps_restore): Prototype.
22446         * toplev.c (late_init_hook): Delete.
22447         (version_flag): Make static again.
22448         (compile_file): Don't call late_init_hook.
22449         * toplev.h (late_init_hook): Delete.
22450         * doc/cppopts.texi: Document -fpch-deps.
22451         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
22453         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
22455         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
22456         callers.
22457         (c_common_valid_pch): Rename from c_valid_pch, change callers.
22458         (c_common_read_pch): Rename from c_read_pch, change callers.
22460         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
22461         a space between it and its argument.
22463         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
22465         * c-pch.c: New file.
22466         * toplev.h (late_init_hook): Declare.
22467         * toplev.c (late_init_hook): Define.
22468         (version_flag): Make globally visible.
22469         (compile_file): Call late_init_hook.
22470         (init_asm_output): Make output file seekable.
22471         * gcc.c (default_compilers): Update c-header rule.
22472         * flags.h (version_flag): Declare.
22473         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
22474         fields.
22475         * cppfiles.c (struct include_file): Add 'pch' field.
22476         (INCLUDE_PCH_P): New.
22477         (open_file_pch): New.
22478         (stack_include_file): Handle PCH files specially.
22479         (find_include_file): Call open_file_pch instead of open_file.
22480         (_cpp_read_file): Explain why open_file is used instead of
22481         open_file_pch.
22482         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
22483         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
22484         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
22485         in cpplib callbacks.
22486         * c-common.c (pch_file): Correct comment.
22487         (allow_pch): Define.
22488         (c_common_init): Call pch_init.
22489         * c-common.h (allow_pch): Declare.
22490         (pch_init): Declare.
22491         (c_valid_pch): Declare.
22492         (c_read_pch): Declare.
22493         (c_write_pch): Declare.
22494         * Makefile.in (c-pch.o): New.
22495         (C_AND_OBJC_OBJS): Add c-pch.o.
22496         * doc/invoke.texi (Precompiled Headers): Add index entries,
22497         complete truncated paragraph.
22499         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
22501         * c-common.c: (pch_file): Define.
22502         * c-common.h (pch_file): Declare.
22503         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
22504         (missing_arg): Require --output-pch= to have an argument.
22505         (c_common_decode_option): Handle --output-pch=.
22506         * gcc.c: Document new %V.
22507         (default_compilers): Handle compiling C header files.
22508         (do_spec_1): Implement %V.
22509         (main): Handle "gcc foo.h" without trying to run linker.
22510         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
22511         (Overall Options): Document what the driver does with header files,
22512         document new -x option possibilities.
22513         (Invoking G++): More documentation for PCH.
22514         (Precompiled Headers): New.
22516         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
22518         * ggc.h: Don't include varray.h.  Rearrange functions to be more
22519         organized.
22520         (ggc_add_root): Delete.
22521         (ggc_mark_rtx): Delete.
22522         (ggc_mark_tree): Delete.
22523         (struct ggc_statistics): Remove contents.
22524         * ggc-common.c: Remove unneeded includes.
22525         (struct ggc_root): Delete.
22526         (roots): Delete.
22527         (ggc_add_root): Delete.
22528         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
22529         (ggc_print_common_statistics): Remove most of the contents.
22530         * Makefile.in (GGC_H): No longer uses varray.h.
22531         (ggc-common.o): Update dependencies.
22532         (c-parse.o): Add varray.h to dependencies.
22533         (c-common.o): Add varray.h.
22534         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
22535         (mark_ident_hash): Rename to ggc_mark_stringpool.
22536         (init_stringpool): Don't use ggc_add_root.
22537         * c-parse.in: Include varray.h.
22538         * c-common.c: Include varray.h.
22539         * objc/Make-lang.in (objc-act.o): Add varray.h.
22540         * objc/objc-act.c: Include varray.h.
22542         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
22544         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
22545         (dw_cfi_oprnd1_desc): Likewise.
22547         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
22549         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
22550         move out of ifdef.
22551         (alpha_links): Use gengtype to mark; move out of ifdef.
22552         (mark_alpha_links_node): Delete.
22553         (mark_alpha_links): Delete.
22554         (alpha_need_linkage): Use GGC to allocate splay tree, struct
22555         alpha_links, strings.  Don't use ggc_add_root.
22556         * ggc-common.c (ggc_splay_alloc): New.
22557         (ggc_splay_dont_free): New.
22558         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
22559         (ggc_mark_tree): Likewise.
22560         (splay_tree_new_ggc): New.
22561         (ggc_splay_alloc): Declare.
22562         (ggc_splay_dont_free): Declare.
22563         * dwarf2asm.c: Include gt-dwarf2asm.h.
22564         (mark_indirect_pool_entry): Delete.
22565         (mark_indirect_pool): Delete.
22566         (indirect_pool): Use gengtype to mark.
22567         (dw2_force_const_mem): Don't use ggc_add_root.
22568         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
22569         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
22570         (gt-dwarf2asm.h): Depend on s-gtype.
22572         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
22574         * tree.h (union tree_type_symtab): Mark `die' field.
22575         * Makefile.in (dwarf2out.o): Update dependencies.
22576         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
22577         hash tables.
22578         (dw_cfi_oprnd1_desc): New function.
22579         (dw_cfi_oprnd2_desc): New function.
22580         (indirect_string_alloc): Delete.
22581         (debug_str_do_hash): New function.
22582         (debug_str_eq): New function.
22583         (mark_limbo_die_list): Delete.
22584         (dwarf2out_init): Don't call ggc_add_root.
22586 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
22588         The following changes are merged from itanium-sched-branch:
22590         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
22592         * doc/md.texi: Clarify assignment of units to automata description.
22594         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
22596         * genautomata.c (unit_decl): Remove members
22597         `the_same_automaton_unit' and
22598         `the_same_automaton_message_reported_p'.
22599         (process_unit_to_form_the_same_automaton_unit_lists,
22600         form_the_same_automaton_unit_lists_from_regexp,
22601         form_the_same_automaton_unit_lists, the_same_automaton_lists):
22602         Remove them.
22603         (annotation_message_reported_p): New global variable.
22604         (check_unit_distribution_in_reserv,
22605         check_regexp_units_distribution): New functions.
22606         (check_unit_distributions_to_automata): Rewrite it.
22608         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
22610         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
22611         Use continue instead of break if cycle is too big.
22613         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
22615         * genautomata.c (check_unit_distributions_to_automata): Output at
22616         most one message for a unit.
22617         (process_unit_to_form_the_same_automaton_unit_lists): Check
22618         automaton of units instead of units themself.
22620         * doc/md.texi: Describe the constraint about assigning unit to
22621         automata.
22623         2002-12-20  Jan Hubicka  <jH@suse.cz>
22624                     Vladimir Makarov  <vmakarov@redhat.com>
22626         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
22627         and `in_set_p'.
22628         (gen_cpu_unit): Initialize the new members.
22629         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
22630         up `min_occ_cycle_num'.
22631         (evaluate_max_reserv_cycles): Change the function call.
22632         (CLEAR_BIT): New macro.
22633         (states_union, state_shift): Use the mask.
22634         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
22635         (form_reservs_matter): New function.
22636         (make_automaton): Call the function and use the mask.
22637         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
22638         account.
22640         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22642         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
22644         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22646         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
22647         for Itanium.
22649         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22651         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
22652         default cpu.
22654         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
22655                 2002-10-31  Dale Johannesen <dalej@apple.com>
22657         * haifa-sched.c (find_set_reg_weight): New function.
22658         (find_insn_reg_weight): Use the new function.
22659         (schedule_block): Do sorting ready queue always
22660         after insn issue.
22662         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
22664         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
22666         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
22668         * haifa-sched.c (choice_entry): New structure.
22669         (choice_stack, cycle_issued_insns): New variables.
22670         (max_issue): Rewrite it.
22671         (choose_ready): Set up ready_try for unknown insns too.
22672         (schedule_block): Allocate and free choice_stack.  Set up
22673         and modify cycle_issued_insns.
22675         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
22676         with and without filling the bundle.
22677         (bundling): Combine calls of issue_nops_and_insn.
22679         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
22681         * config/ia64/itanium1.md: New file.
22683         * config/ia64/itanium2.md: New file.
22685         * config/ia64/ia64.md: Move DFA descriptions into the new files.
22686         Remove the old pipeline description.
22688         * config/ia64/ia64.c (ia64_override_options): Add aliases of
22689         itanium processor names.
22691         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
22693         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
22694         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
22696         * config/ia64/ia64.md: Add descriptions for Itanium2.
22698         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
22700         * config/ia64/ia64.h (processor_type): New enumeration.
22701         (ia64_tune, ia64_tune_string): New external declarations.
22702         (TARGET_OPTIONS): Add option `tune='.
22704         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
22705         variables.
22706         (ia64_override_options): Set up `ia64_tune'.
22707         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
22708         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
22709         (bundling): Add nops for MM-insns only for Itanium.
22710         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
22711         Itanium.
22713         * config/ia64/ia64.md (cpu): New attribute.
22714         (DFA description): Enable it only for Itanium.
22716         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
22717                     Richard Henderson  <rth@redhat.com>
22719         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
22720         MASK_EARLY_STOP_BITS.
22721         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
22722         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
22723         `early-stop-bits'.
22725         * config/ia64/ia64.c (ia64_dfa_new_cycle,
22726         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
22727         instead of TARGET_TUNE_STOP_BITS.
22729         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
22730         `-mearly-stop-bits'.
22732         * config/ia64/ia64.c (automata_option "v"): Comment it.
22734         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
22736         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
22737         New macros.
22738         (TARGET_SWITCHES): Add entries for the new option.
22740         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
22741         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
22742         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
22743         global variables.
22744         (ia64_sched_reorder2): Set up `clocks'.
22745         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
22746         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
22747         queue when TARGET_TUNE_STOP_BITS.
22748         (bundling): Insert additional nops for MM-insns.
22749         (final_emit_insn_group_barriers): Add insertion of stop bits
22750         according `stops_p'.
22751         (ia64_reorg): Initiate the new varibales.
22753         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
22755         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
22757         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
22758         insns at the end of block insn scheduling.
22760         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
22762         * sched-deps.c (remove_dependence, group_leader): Remove it.
22763         (add_dependence): Add dependence to group leader to.
22764         (set_sched_group_p): Add dependence to the first insn of the
22765         schedule group too.
22766         (sched_analyze_insn): Make dependence to jump as anti-dependence.
22767         Change true dependence by anti-dependence when
22768         `reg_pending_barrier'.
22770         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
22771         add_branch_dependences): Ignore schedule groups.
22773         * sched-ebb.c (init_ready_list): Ditto.
22775         * (move_insn, set_priorities): Ditto.
22777         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
22778         flag is clear after reload.
22779         (adjust_cost): Change cost only for output dependencies.
22781         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
22783         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
22785         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
22787         * target.h (gcc_target): Add member
22788         `dependencies_evaluation_hook'.
22790         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
22791         macro.
22792         (TARGET_SCHED): Add initiatialization of the new member.
22794         * sched-ebb.c: Include `target.h'.
22795         (schedule_ebb): Call `dependencies_evaluation_hook'.
22797         * sched-rgn.c (schedule_region): Call
22798         `dependencies_evaluation_hook'.
22800         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
22801         New macro.
22802         (ia64_dependencies_evaluation_hook): New function.
22804         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
22805         Describe the new hook.
22807         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
22809         * target.h (gcc_target): Add members
22810         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
22812         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
22813         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
22814         macros.
22815         (TARGET_SCHED): Add initiatialization of the new members.
22817         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
22818         insn scheduling too.
22819         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
22820         initialize `ready_try'.
22821         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
22822         `dfa_new_cycle' says not to do it.
22824         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
22825         bundling.
22827         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
22829         * config/ia64/ia64.c: Include `hashtab.h'.
22830         (ia64_first_cycle_multipass_dfa_lookahead_guard,
22831         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
22832         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
22833         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
22834         bundle_state_eq_p, insert_bundle_state,
22835         initiate_bundle_state_table, finish_bundle_state_table,
22836         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
22837         get_template, get_next_important_insn, bundling): New functions.
22838         (ia64_internal_sched_reorder): Remove it.
22839         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
22840         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
22841         (ia64_safe_itanium_requires_unit0): Remove it.
22842         (group_barrier_needed_p): Place group barrier right before a real
22843         insn.
22844         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
22845         Remove them.
22846         (bundle_name): New variable.
22847         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
22848         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
22849         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
22850         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
22851         temp_dfa_state, prev_cycle_state): New global variables.
22852         (insn_matches_slot, maybe_rotate, finish_last_head,
22853         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
22854         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
22855         find_best_packet, itanium_reorder, dump_current_packet,
22856         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
22857         (sched_data, sched_ready, sched_types): Remove them.
22858         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
22859         `init_insn_group_barriers'.
22860         (ia64_sched_reorder, ia64_sched_reorder2): Call
22861         ia64_dfa_sched_reorder.
22862         (ia64_variable_issue): Rewrite it.
22863         (bundle_state): New structure.
22864         (index_to_bundle_states, bundle_states_num,
22865         allocated_bundle_states_chain, free_bundle_state_chain): New
22866         global variables.
22867         (ia64_sched_finish): Add stop bits and call `bundling' after the
22868         2nd insn scheduling.
22869         (ia64_use_dfa_pipeline_interface): Return zero always.
22870         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
22871         insn scheduling.
22872         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
22873         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
22874         (ia64_reorg): Add bundling insns.
22876         * doc/tm.texi
22877         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
22878         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
22880         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
22882         * config/ia64/ia64.md: Add Itanium1 DFA description.
22883         (itanium_class): Add `nop' and `pre_cycle'.  Add
22884         define_function_unit for `nop'.
22885         (nop): Change attribute `itanium_class'.
22886         (pre_cycle): New define_insn.
22888         * config/ia64/ia64-protos.h (bundling_p): New external variable.
22889         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
22890         ia64_produce_address_p): New function prototypes.
22892         * config/ia64/ia64.c (bundling_p): New global variable.
22893         (ia64_use_dfa_pipeline_interface,
22894         ia64_first_cycle_multipass_dfa_lookahead,
22895         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
22896         functions.
22897         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
22898         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
22899         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
22900         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
22901         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
22902         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
22903         (dfa_pre_cycle_insn): New variable.
22905         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22907         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
22908         constructions.
22910         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
22911         New function prototypes.
22913         * genattrtab.c (main): Process the new constructions.
22915         * genautomata.c (gen_presence_absence_set,
22916         process_presence_absence_names, process_presence_absence_patterns,
22917         add_presence_absence, check_absence_pattern_sets): Add parameter
22918         `final_p'.
22919         (unit_decl): Add new members `final_presence_list' and
22920         `final_absence_list'.
22921         (unit_pattern_rel_decl): Add new member `final_p'.
22922         (gen_final_presence_set, gen_final_absence_set): New functions.
22923         (process_decls): Use member `final_p'.
22924         (temp_reserv): New global variable.
22925         (reserv_sets_are_intersected): Add processing `final_presence_set'
22926         and `final_absence_set'.
22927         (initiate_states): Allocate `temp_reserv'.
22928         (unit_final_presence_set_table, unit_final_absence_set_table): New
22929         gloabal variables.
22930         (initiate_presence_absence_pattern_sets): Initiate them.
22931         (NDFA_to_DFA): Fix typo.
22932         (output_description): Output `final_presence_set' and
22933         `final_absence_set'.
22935         * doc/md.texi (final_presence_set, final_absence_set): Describe
22936         them.
22938         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22940         * genautomata.c (transform_3): Process a missing case (nothing on
22941         unit place).
22943         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
22945         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
22946         comments about queried units and the minimization.
22948         * doc/md.texi: Ditto.
22950         * genautomata.c (create_composed_state): Return nonzero if the new
22951         state has been created.
22952         (first_cycle_unit_presence): New function.
22953         (state_is_differed): Add new parameter.  Use the new function.
22954         Take queried units into account.
22955         (partition_equiv_class): Pass additional parameter to
22956         `state_is_differed'.
22957         (merge_states): Process composed states too.
22958         (build_automaton, create_automata, output_min_issue_delay_table,
22959         output_tables, output_statistics): Output more information.
22960         (output_reserved_units_table): Use function
22961         `first_cycle_unit_presence'.
22962         (output_tables): Output table of queried units even if the
22963         minimization is switched on.
22964         (write_automata): Output code for querying units even if the
22965         minimization is switched on.
22967         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
22969         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
22970         syntax of the constructions.
22972         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
22973         extended syntax of the constructions.
22975         * genautomata.c (unit_rel_decl): Rename it to
22976         `unit_pattern_rel_decl'.
22977         (pattern_set_el, pattern_reserv): New structures.
22978         (pattern_set_el_t, pattern_reserv_t): New types.
22979         (gen_presence_absence_set): New function.
22980         (process_presence_absence): Remove it.
22981         (process_presence_absence_names,
22982         process_presence_absence_patterns): New functions.
22983         (get_presence_absence_set): Remove it.
22984         (initiate_presence_absence_sets): Rename it on
22985         `initiate_presence_absence_pattern_sets'.  Use new function
22986         `form_reserv_sets_list'.
22987         (form_reserv_sets_list, check_presence_pattern_sets,
22988         check_absence_pattern_sets, output_pattern_set_el_list): New
22989         functions.
22990         (unit_decl): Change types of members `presence_list' and
22991         `absence_list'.
22992         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
22993         (decl): Change types of members `excl', `presence', and `absence'.
22994         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
22995         at the end of the vector.
22996         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
22997         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
22998         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
22999         (gen_presence_set, gen_absence_set): Use new function
23000         `gen_presence_absence_set'.
23001         (add_presence_absence): Process `pattern_list' instead of
23002         `source_list'.
23003         (process_decls): USe new functions
23004         `process_presence_absence_names' and
23005         `process_presence_absence_patterns'.
23006         (reserv_sets_are_intersected): Use new function
23007         `check_presence_pattern_sets'.
23008         (presence_set, absence_set): Remove them.
23009         (unit_presence_set_table, unit_absence_set_table): New global
23010         variables.
23011         (output_description): Use new function
23012         `output_pattern_set_el_list'.
23013         (generate): Use `initiate_presence_absence_pattern_sets'.
23015         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
23017         * genattr.c (main): Add output of prototype of new interface
23018         function `dfa_clean_insn_cache'.
23020         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
23021         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
23022         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
23023         the generated code.
23024         (write_automata): Call the new function.
23026 2003-01-09  Jan Hubicka  <jh@suse.cz>
23028         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
23029         correctly.
23031 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
23033         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
23035 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
23037         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
23038         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
23039         (CONSTRAINT_LEN): Provide default definition.
23040         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
23041         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
23042         (EXTRA_CONSTRAINT_STR): Likewise.
23043         (REG_CLASS_FROM_CONSTRAINT): Define.
23044         * genoutput.c (check_constraint_len, constraint_len): New functions.
23045         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
23046         constraint / modifier.
23047         (gen_insn): Call check_constraint_len.
23048         * local-alloc.c (block_alloc): Update to use new macros / pass
23049         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
23050         * ra-build.c (handle_asm_insn): Likewise.
23051         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
23052         (constrain_operands, peep2_find_free_register): Likewise.
23053         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
23054         * regmove.c (find_matches): Likewise.
23055         * reload.c (push_secondary_reload, find_reloads): Likewise.
23056         (alternative_allows_memconst): Likewise.
23057         * reload1.c (maybe_fix_stack_asms): Likewise.
23058         (reload_cse_simplify_operands): Likewise.
23059         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
23060         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
23061         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
23062         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
23063         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
23064         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
23066         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
23068 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
23070         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
23071         length.
23072         (*extzv_1_r_h8300hs): Likewise.
23073         (*extzv_1_r_inv_h8300): Likewise.
23074         (*extzv_1_r_inv_h8300hs): Likewise.
23076 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
23078         * config/h8300/h8300.h (PREDICATE_CODES): New.
23080 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
23082         * config/h8300/h8300.md (*addsi3_upper): New.
23083         (*iorsi3_shift): Likewise.
23084         (two splitters): Likewise.
23085         (*addsi3_shift): Likewise.
23086         (two splitters): Likewise.
23088 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
23090         * Makefile.in (optabs.o): Add dependency on basic-block.h.
23091         * basic-block.h (control_flow_insn_p): Fuction was exported.
23092         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
23093         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
23094         notes only when the region is contained in a single basic block.
23096 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
23098         PR inline-asm/8832
23099         * tree.h (expand_asm): New prototype.
23100         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
23101         to do so.
23102         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
23103         down to expand_asm.
23104         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
23105         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
23106         (volatile_refs_p) [ASM_INPUT]: Likewise.
23107         (side_effects_p) [ASM_INPUT]: Likewise.
23109 2003-01-09  Jan Hubicka  <jh@suse.cz>
23111         * i386.md (*mul*): FIx constraints; remove confused comment; fix
23112         athlon_decode attributes
23113         (imul/k8 optimization peep2s): New.
23115         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
23116         * i386.md (type attribute): Add ssecomi.
23117         (unit, memory, prefix attributes): Handle ssecomi.
23118         (cvt?2? patterns): Fix athlon_decode attribute
23119         (comi patterns): Set attribute to ssecomi.
23121         PR target/8343
23122         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
23124 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
23126         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
23127         that match register_operands.
23128         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
23129         register_operand the default case.
23131 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
23133         PR c/8032
23134         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
23135         an empty element, do not advance the pointer to unfilled
23136         fields if there are pending initializers.
23138 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
23140         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
23141         (install-gcc-tooldir, install-cpp, installdirs,
23142         install-common, install-driver, install-info, install-man,
23143         install-headers, install-include-dir, install-headers-tar,
23144         install-headers-cpio, install-headers-cp, install-mkheaders,
23145         install-collect2, uninstall): Prepend $(DESTDIR) to
23146         destination paths in all (un)installation commands.
23147         (install-driver): Rewrite $(LN) commands to support DESTDIR
23148         with "ln" as well as with "ln -s".
23149         (installdirs): Simply use mkinstalldirs.
23150         (install-libgcc, install-multilib): Also pass DESTDIR.
23151         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
23152         installation destination variable ldir.
23153         * config/alpha/t-osf4, config/arm/t-netbsd,
23154         config/ia64/t-hpux, config/mips/t-iris5-6,
23155         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
23156         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
23157         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
23158         in the definition of SHLIB_INSTALL.
23159         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
23160         $(libsubdir) in the installation commands.
23162 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23164         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
23165         non-optimizing compile.
23166         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
23167         compile.
23169 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
23171         * config/i386/i386.c (ix86_attribute_table): Add new attributes
23172         ms_struct and gcc_struct.
23173         (ix86_handle_struct_attribute): New function.
23174         (ix86_ms_bitfield_layout_p): Update to take new attributes
23175         into account.
23176         * doc/extend.texi: Document new attributes.
23177         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
23179 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
23181         PR optimization/8750
23182         * config/i386/i386.c (ix86_expand_prologue): Don't allow
23183         scheduling pass to move insns across __alloca call.
23185 2003-01-08  Dale Johannesen  <dalej@apple.com>
23187         * config/rs6000/rs6000.md:  Replace *store_multiple_string
23188         with *stmsi[3-8].
23190 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
23192         PR target/9210
23193         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
23194         Set SYMBOL_REF_FLAG on local data sym_ref.
23196 2003-01-08  Dale Johannesen  <dalej@apple.com>
23198         * function.c (assign_parms):  Don't set pretend_args_size if
23199           REG_PARM_STACK_SPACE.
23200           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
23201           pretend_args_size.
23203 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
23205         * gcc.hlp: Delete.
23207 2003-01-09  Jan Hubicka  <jh@suse.cz>
23209         * i386.c  (ix86_expand_int_addcc): Fix thinko.
23211 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
23213         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
23214         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
23215         as hook_bool_tree_hwi_hwi_tree_true.
23216         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
23217         (rs6000_emit_epilogue): Same.
23218         (rs6000_output_mi_thunk): Re-implement as RTL.
23219         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
23220         xcoffout_declare_function if any debugging enabled.
23222 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
23224         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
23225         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
23226         * config/mips/mips.h (enum processor_type): Rename
23227         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
23228         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
23229         Add PROCESSOR_M4K.
23230         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
23231         (ISA_MIPS32R2): New define.
23232         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
23233         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
23234         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
23235         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
23236         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
23237         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
23238         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
23239         compiling MIPS16 code.
23240         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
23241         comment.
23242         (ISA_HAS_SEB_SEH): New define.
23243         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
23244         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
23245         processor_type value renaming.  Add support for MIPS32R2.
23246         Clean up comments, and move "sb1" entry with other MIPS64 CPU
23247         entries.
23248         (override_options): Reimplement -mipsN option handling so that
23249         it will work correctly for -mips32r2.  Avoid branch-likely
23250         instructions on MIPS32R2.
23251         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
23252         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
23253         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
23254         (extendhisi2_hw, extendqisi2_hw): New.
23255         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
23256         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
23257         MIPS32R2, and MIPS64.
23258         (LINK_SPEC): Pass -mips32r2 to linker.
23259         * config/mips/t-isa3264: Built -mips32r2 multilibs.
23260         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
23261         for mips32r2 in the -march description.  Alphabetically sort
23262         CPU names in the -march description.  Add long-missed -mips32
23263         and -mips64 to MIPS option summary.
23265         * config.gcc: Update copyright years to include 2003.
23266         * config/mips/mips.c: Likewise.
23267         * config/mips/mips.h: Likewise.
23268         * config/mips/mips.md: Likewise.
23269         * config/mips/netbsd.h: Likewise.
23270         * doc/invoke.texi: Likewise.
23272 2003-01-08  Andreas Schwab  <schwab@suse.de>
23274         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
23275         variable.
23276         * configure: Regenerated.
23278 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
23280         * config/h8300/h8300.c (output_logical_op): Replace byte/word
23281         extraction of det with b0, b1, w0, w2, etc.
23282         (compute_logical_op_length): Likewise.
23283         (compute_logical_op_cc): Likewise.
23285 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
23287         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
23288         HIGH on all variants.
23290 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
23292         * Makefile.in (PARTITION_H): New.
23293         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
23294         * basic-block.h: Include hard-reg-set.h.
23296 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
23298         * arm.h (ENABLE_XF_PATTERNS): Delete.
23299         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
23300         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
23301         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
23302         (cmpxf_trap): Delete.
23303         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
23305 2003-01-08  Jan Hubicka  <jh@suse.cz>
23307         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
23308         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
23309         (add??cc): New expanders.
23310         * i386.c (expand_int_addcc): New function.
23311         * i386-protos.h (expand_int_addcc): Declare.
23313         * alias.c (memory_modified_1): New static function.
23314         (memory_modified): New static varaible.
23315         (memory_modified_in_insn_p): New global function.
23316         * rtl.h (memory_modified_in_insn_p): Declare.
23317         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
23318         references.
23320         * expr.h (emit_conditional_add): Declare.
23322 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
23324         PR other/8947
23325         * doc/invoke.texi (-malign-double): Explain that the option breaks
23326         binary compatibility.
23328 2003-01-08  Andreas Schwab  <schwab@suse.de>
23330         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
23331         should come from the generic *-*-linux* entry.
23333 2003-01-07  Jan Hubicka  <jh@suse.cz>
23335         * cselib.c (cselib_current_insn_in_libcall): New static variable.
23336         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
23337         we are inside libcall.
23338         * cselib.h (elt_loc_list): Add in_libcall.
23339         * gcse.c (do_local_cprop): Do not copy propagate using insns
23340         in libcalls.
23342 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
23344         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
23345         not normally affect to issue rate.
23347 2003-01-07  Jan Hubicka  <jh@suse.cz>
23349         * genopinit.c (optabs): Add addc_optab.
23350         * ifcvt.c (noce_try_store_flag): Rename to ...
23351         (noce_try_addcc): ... this one; handle generic conditional increment.
23352         (noce_process_if_block): Update noce_try_addcc call.
23353         * optabs.c (emit_conditional_add): New.
23354         (init_obtabs): Initialize addc_optab.
23355         * optabs.h (optab_index): Add OTI_addcc.
23356         (addcc_optab): New macro.
23357         * md.texi: Document addMcc
23359         PR target/8322
23360         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
23361         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
23362         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
23364         * reload1.c (delete_output_reload): Avoid repeated attempts
23365         to delete insn.
23367 2003-01-07  Andreas Schwab  <schwab@suse.de>
23369         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
23370         Move --enable-initfini-array check ...
23371         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
23372         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
23373         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
23374         * configure: Rebuild.
23376 2003-01-07  Richard Henderson  <rth@redhat.com>
23378         * alias.c (find_base_value): Only use new_reg_base_value shortcut
23379         if the register is set once.
23381 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
23383         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
23384         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
23385         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
23387 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
23388             Sunil Davasam  <sunil.k.davasam@intel.com>
23390         PR libstdc++/9076
23391         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
23392         DW_CFA_same_value, read next and ignore.
23394 2003-01-07  Richard Henderson  <rth@redhat.com>
23396         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
23398 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
23400         * cfg.c: Include alloc-pool.h
23401         (edge_pool): New pool.
23402         (bb_pool): New pool.
23403         (first_deleted_edge): Remove.
23404         (first_deleted_block): Remove.
23405         (init_flow): Alloc/free the pools.
23406         (free_edge): Use pools.
23407         (alloc_block): Ditto.
23408         (expunge_block): Ditto.
23409         (cached_make_edge): Ditto.
23411         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
23413 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
23415         * et-forest.c: Include alloc-pool.h.
23416         (struct et_forest): Add node_pool and occur_pool.
23417         (et_forest_create): Create the new pools.
23418         (et_forest_delete): Delete them.
23419         (et_forest_add_node): Allocate and free using pools.
23420         (et_forest_add_edge): Ditto.
23421         (et_forest_remove_node): Ditto.
23422         (et_forest_remove_edge): Ditto.
23424         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
23426 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
23428         * config/h8300/h8300.c (output_logical_op): Simplify and
23429         optimize the handling of SImode.
23430         * config/h8300/h8300.c (compute_logical_op_length): Update
23431         accordingly.
23432         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
23434 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
23436         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
23437         big-endian correction to indirect arguments too.
23439 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
23441         Segher Boessenkool  <segher@koffie.nl>
23443         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
23444         (alt_reg_names): Ditto, fix formatting.
23445         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
23447 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
23449         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
23450         (output_logical_op): Constify intval and det.
23451         (compute_logical_length): Likewise.
23452         (compute_logical_cc): Likewise.
23453         (output_a_shift): Constify mask.
23454         (h8300_encode_label): Constify len.
23456 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
23458         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
23459         (h8300_expand_epilogue): Likewise.
23461 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
23463         Segher Boessenkool  <segher@koffie.nl>
23465         * config/rs6000/altivec.md: Remove spaces from assembler
23466         instruction argument lists.
23468 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
23470         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
23471         c4x_assembler_function_p.
23472         (c4x_null_epilogue_p): Complement return value, all uses updated.
23473         (c4x_insert_attributes): Add naked.
23474         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
23475         * doc/extend.texi: Update C4x function attributes.
23477 2003-01-06  Richard Henderson  <rth@redhat.com>
23479         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
23480         properly when changing "local-ness".
23481         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
23483 2003-01-06  Dale Johannesen  <dalej@apple.com>
23485         * config/darwin-protos.h:  Add prototypes for new section functions.
23487 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
23489         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
23490         to EABI.
23492 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
23494         * hwint.h: If the current compiler has no 64-bit type at all,
23495         make HOST_WIDEST_INT 32 bits.
23497 2003-01-06  Eric Christopher  <echristo@redhat.com>
23499         * config/mips/mips.md (movdf_internal2): Fix constraints.
23501 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
23503         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
23505 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
23507         * config/mips/mips.md (leadi): Use dla rather than la.
23509 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
23511         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
23512         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
23514 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
23516         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
23517         redefinition.
23519 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
23521         * config/h8300/h8300.md (*extzv_8_23): New.
23523 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23525         * pa64-hpux.h (JCR_SECTION_NAME): Define.
23526         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
23527         USE_EH_FRAME_REGISTRY when defining.
23529 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
23531         * config/h8300/h8300.c (output_a_shift): Do not output a
23532         variable shift.
23533         * config/h8300/h8300.md (two splitters): New.
23535 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
23537         * config/mips/mips.md: Disable the movstrsi define_split.
23539 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23541         * alloc-pool.c: Don't include "libiberty.h".
23542         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
23543         * convert.c (convert_to_real): Hide unused variable.
23545 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23547         * Makefile.in (gtyp-gen.h): Const-ify.
23548         * gcov-dump.c (tag_table): Likewise.
23550 2003-01-04  Bruce Korb  <bkorb@gnu.org>
23552         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
23553         of *both* the file name and the fix name.
23555 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
23557         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
23558         collect2.
23559         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
23560         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
23561         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
23562         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
23563         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
23564         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
23565         elfos.h.
23566         (EH_FRAME_IN_DATA_SECTION): Delete define.
23567         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
23568         (STARTFILE_SPEC): Use crtbegin.o.
23569         (ENDFILE_SPEC): Use crtend.o.
23570         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
23571         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
23572         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
23573         DTOR_LIST_BEGIN): Define.
23574         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
23575         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
23576         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
23578 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
23580         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
23581         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
23582         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
23583         Cleanup handling of replacement text.
23584         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
23586 2003-01-04  Bruce Korb  <bkorb@gnu.org>
23588         * fixinc/tests/base/math.h: removed obsolete results
23589         * fixinc/tests/base/stdlib.h: ditto
23590         * fixinc/tests/base/sys/param.h: ditto
23591         * fixinc/tests/base/sys/stat.h: ditto
23592         * fixinc/tests/base/time.h: ditto
23593         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
23594         * fixinc/tests/base/sys/byteorder.h: ditto
23595         * fixinc/inclhack.def: Remove superfluous backslashes
23597 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
23599         * config/h8300/h8300-protos.h: Add prototypes for
23600         the new functions defined below.
23601         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
23602         define.
23603         (dosize): Emit RTL instead of assembly code.
23604         (push): Likewise.
23605         (pop): Likewise.
23606         (h8300_output_function_prologue): Remove.
23607         (h8300_expand_prologue): New.
23608         (h8300_expand_epilogue): New.
23609         (h8300_output_function_epilogue): Do only the reset of
23610         pragma_saveall.
23611         * config/h8300/h8300.md (push_h8300): New.
23612         (push_h8300hs): Likewise.
23613         (pop_h8300): Likewise.
23614         (pop_h8300hs): Likewise.
23615         (*stm_h8300s_2): Change the name to stm_h8300s_2.
23616         (*stm_h8300s_3): Change the name to stm_h8300s_3.
23617         (*stm_h8300s_4): Change the name to stm_h8300s_4.
23618         (*ldm_h8300s_2): New.
23619         (*ldm_h8300s_3): Likewise.
23620         (*ldm_h8300s_4): Likewise.
23621         (return): Likewise.
23622         (*return_1): Likewise.
23623         (prologue): Likewise.
23624         (epilogue): Likewise.
23625         (monitor_prologue): Likewise.
23627 2003-01-03  Dale Johannesen  <dalej@apple.com>
23629         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
23630           machopic_picsymbol_stub1.
23631           (EXTRA_SECTION_FUNCTIONS):  Ditto.
23632         * rs6000/rs6000.c:  Update copyright.
23633           (machopic_output_stub):  Use them.  Remove an insn from stub code.
23635 2003-01-02  Jason Merrill  <jason@redhat.com>
23637         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
23639         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
23640         static/external decls.
23642         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
23643         outermost scope.
23644         * c-decl.c (c_make_fname_decl): Push the decls there, too.
23646 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
23648         * config/h8300/h8300-protos.h: Add a prototype for
23649         h8300_current_function_interrupt_function_p.
23650         * config/h8300/h8300.c (interrupt_handler): Remove.
23651         (os_task): Likewise.
23652         (monitor): Likewise.
23653         (pragma_interrupt): New.
23654         (WORD_REG_USED): Use
23655         h8300_current_function_interrupt_function_p.
23656         (dosize): Likewise.
23657         (h8300_output_function_prologue): Likewise.
23658         Do not set interrupt_handler, os_task, monitor.
23659         (h8300_output_function_prologue): Use
23660         h8300_current_function_interrupt_function_p.
23661         Do not set interrupt_handler, os_task, monitor.
23662         (h8300_current_function_interrupt_function_p): New.
23663         (h8300_pr_interrupt): Set pragma_interrupt.
23664         (h8300_insert_attributes): Reset pragma_interrupt.
23666 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
23668         * doc/install.texi (Configuration): Fix markup for reference to
23669         gcc/config.gcc.
23671 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
23673         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
23674         (*iorhi3_two_qi): Likewise.
23675         (*iorsi3_zexthi): Likewise.
23676         (*xorhi3_zextqi): Likewise.
23677         (*xorsi3_zexthi): Likewise.
23678         (*xorsi3_zextqi): Likewise.
23680 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
23682         * config/h8300/h8300.c (stack_pointer_operand): New.
23683         (const_int_gt_2_operand): Likewise.
23684         (const_int_ge_8_operand): Likewise.
23685         * config/h8300/h8300.md (a splitter): Likewise.
23686         (a peephole2): Likewise.
23687         * config/h8300/h8300-protos.h: Add prototypes for the new
23688         functions above.
23690 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
23692         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
23693         objc/objc-act.h: Fix copyright years.
23695 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
23697         * doc/passes.texi: Fix documentation for -fssa-ccp
23699 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
23701         * gccbug.in: Update for new categories.
23703 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23705         * config/h8300/h8300.md: Reorder some patterns.
23707 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23709         * config/h8300/h8300.c (output_logical_op): Fix a warning.
23711 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23713         * config/darwin-protos.h, config/c4x/c4x-protos.h,
23714         config/cris/cris-protos.h, config/i370/i370-protos.h,
23715         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
23716         config/v850/v850-protos.h: Use struct, and don't conditionally
23717         compile on GCC_C_PRAGMA_H.
23719 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23721         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
23722         * config/h8300/h8300-protos.h: Likewise.
23723         * config/sh/sh-protos.h: Likewise.
23725 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23727         * config/arm/arm-protos.h: Use struct cpp_reader instead of
23728         cpp_reader.
23729         * config/h8300/h8300-protos.h: Likewise.
23730         * config/sh/sh-protos.h: Likewise.
23732 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23734         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
23735         arm_pr_long_calls_off): Use struct.
23736         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
23737         : Similarly.
23738         Don't include cpplib.h.
23739         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
23740         sh_pr_nosave_low_regs): Similarly.
23742 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
23744         * config/h8300/h8300.c: Include cpplib.h.
23746 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
23748         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
23749           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
23750           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
23751           "GCC" in the copyright header.
23753 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
23755         * c-pragma.c (c_register_pragma): New.
23756         (init_pragma): Use it.
23757         * c-pragma.h (cpp_register_pragma): Don't declare.
23758         (c_register_pragma): New.
23759         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
23760         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
23761         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
23762         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
23763         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
23764         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
23765         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
23766         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
23767         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
23768         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
23769         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
23770         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
23772 See ChangeLog.8 for earlier changes.