OSDN Git Service

407250f70fdc2e7309bc93d5f70705ad23a207e4
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2
3         * pretty-print.c (pp_base_indent): Rename from pp_indent.
4         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
5         (struct c_pretty_print_info): Add more fields.
6         (pp_c_left_paren): Move to c-pretty-print.c.
7         (pp_c_right_paren): Likewise.
8         (pp_c_left_brace): Likewise.
9         (pp_c_right_brace): Likewise.
10         (pp_c_left_bracket): Likewise.
11         (pp_c_right_bracket): Likewise.
12         (pp_c_declarator): Declare.
13         (pp_c_direct_declarator): Likewise.
14         (pp_c_specifier_qualifier_list): Likewise.
15         (pp_c_type_id): Likewise.
16         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
17         (pp_c_type_qualifier_list): New.
18         (pp_c_pointer): Likewise.
19         (pp_c_parameter_type_list): Likewise.
20         (pp_c_function_definition): Likewise.
21         (pp_c_id_expression): Likewise.
22         (pp_c_simple_type_specifier): Tidy.
23         (pp_c_unary_expression): Likewise.
24         (pp_c_expression): Likewise.
25         (pp_c_pretty_printer_init): Likewise.
26         (pp_c_specifier_qualifier_list): Rework..
27         (pp_c_abstract_declarator): Likewise.
28         (pp_c_postfix_expression): Likewise.
29         (pp_c_primary_expression): Likewise.
30         (pp_c_cast_expression): Likewise.
31         (pp_c_direct_abstract_declarator): Likewise.
32         (pp_c_storage_class_specifier): Likewise.
33         (pp_c_function_specifier): Likewise.
34         (pp_c_declaration_specifiers): Likewise.
35         (pp_c_direct_declarator): Likewise.
36         (pp_c_declarator): Likewise.
37         (pp_c_declaration): Likewise.
38         (pp_c_statement): Likewise.
39         (pp_c_integer_constant): Rename from pp_c_integer_literal.
40         (pp_c_character_constant): Rename from pp_c_character_literal.
41         (pp_c_bool_constant): Rename from pp_c_bool_literal.
42         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
43         (pp_c_floating_constant): Rename from pp_c_real_literal.
44         (pp_c_constant): Rename from pp_c_literal.
45         * c-lang.c: Include diagnostic.h and c-pretty-print.h
46         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
47         (c_initialize_diagnostics): New.
48         * Makefile.in (c-lang.o): Update dependency.
49
50 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
51
52         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
53
54 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
55
56         * config/mips/mips.c (mips_no_mips16_string): Remove.
57         (override_options): Don't handle -mips16 as part of -mipsN.
58         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
59         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
60         (TARGET_OPTIONS): Remove -mno-mips16.
61
62 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
63
64         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
65         (coprocessor2_operand): Likewise.
66         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
67         (lookup_name): Remove declaration.
68         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
69         (mips16, mips_abicalls): Remove.
70         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
71         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
72         (coprocessor_operand, coprocessor2_operand): Remove.
73         (override_options): Don't set mips16 or mips_abicalls.
74         (print_operand): Don't expect SIGN_EXTEND operands.
75         (mips_secondary_reload_class): Likewise.
76         (mips_output_conditional_branch): Remove disabled long-branch code.
77         * config/mips/mips.h (call_used_regs): Remove declaration.
78         (may_call_alloca): Likewise.
79         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
80         (mips_abicalls, mips16): Remove declarations.
81         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
82         (CC1_SPEC): Remove outdated comment.
83         (MIPS_VERSION, MACHINE_TYPE): Remove.
84         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
85         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
86         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
87         (PUSH_ROUNDING): Likewise.
88         (ASSEMBLER_SCRATCH_REGNUM): Remove.
89         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
90         and mips16 with TARGET_MIPS16.
91
92 2003-08-09  Per Bothner  <pbothner@apple.com>
93
94         * cppinit.c (cpp_read_main_file):  Split out source-independent
95         initialization to separate function ...
96         (cpp_post_options):  New function.
97         * cppfiles.c (cpp_stack_file):  Rename public name to ...
98         (_cpp_stack_file):  New internal function name.
99         * cpplib.h:  Update accordingly.
100         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
101         (cpp_read_main_file):  Don't initialize line here.
102         * c-opts.c (c_common_post_options):  Call cpp_post_options.
103         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
104         * fix-header.c (read_scan_file):  Call cpp_post_options.
105         
106 2003-08-09  Per Bothner  <per@bothner.com>
107
108         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
109
110 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
111
112         * pa.c (pa_asm_output_mi_thunk): Fix typo.
113
114 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
115
116         PR preprocessor/11839
117         * cppfiles.c (open_file): Handle ENOTDIR.
118
119 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
120
121         PR target/11699
122         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
123
124 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
125
126         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
127         source/destination is not a register operand.
128
129 2003-08-08  Richard Henderson  <rth@redhat.com>
130
131         PR target/11535
132         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove 
133         RETURN_ADDRESS_POINTER_REGNUM.
134         (ia64_expand_prologue): Don't frob it.
135         (ia64_output_function_epilogue): Likewise.
136         (ia64_return_addr_rtx): New.
137         (ia64_split_return_addr_rtx): New.
138         * config/ia64/ia64-protos.h: Update.
139         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
140         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
141         (GENERAL_REGNO_P): Don't check it.
142         (AR_*_REGNUM): Renumber.
143         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
144         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
145         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
146         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
147         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
148         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
149         (movdi_ret_addr): New.
150
151 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
152
153         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
154
155 2003-08-08  Roger Sayle  <roger@eyesopen.com>
156
157         * tree.h (get_identifier) Define a macro form of get_identifier
158         that calls get_identifier_with_length when the string is constant.
159         (get_identifier_with_length): Change type of second argument to
160         size_t in prototype.
161         * stringpool.c (get_identifier): Undefine the macro before giving
162         the function definition.
163         (get_identifier_with_length): Change  type of second argument to
164         size_t in function definition.
165         * hashtable.c (calc_hash): Change type of second argument to size_t.
166         (ht_lookup): Change type of third argument to size_t.  Reorganize
167         to speed-up the cases where the hash table slot is empty, or the
168         first probe matches (i.e. there isn't a collision).
169         * hashtable.h (ht_lookup): Adjust function prototype.
170
171 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
172
173         PR target/9697
174         PR target/11777
175         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
176
177 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
178
179         * common.opt: Add debug switches.
180         * flags.h (use_gnu_debug_info_extensions): Boolify.
181         * opts.c (write_symbols, debug_info_level,
182         use_gnu_debug_info_extensions): Move from toplev.c.
183         (set_debug_level): New.
184         (common_handle_options): Handle debug switches.
185         (print_help): Display target options directly.
186         * toplev.c (debug_hooks): Don't initialize.
187         (write_symbols, debug_info_level,
188         use_gnu_debug_info_extensions): Move to opts.c.
189         (debug_args, display_help, decode_g_option): Remove.
190         (process_options): Set no debug if level zero here,
191         and no-debug-hooks.  Error here if impossible debug format selected.
192         * toplev.h (display_help, decode_g_option): Remove.
193
194 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
195
196         * tree.c (get_file_function_name_long): Fix size of alloca() area.
197
198 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
199
200         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
201         and gcc_cv_prog_cmp_skip. 
202         * configure: Regenerate.
203
204 2003-08-08  Stan Cox  <scox@redhat.com>
205
206         * config/iq2000: New port.
207         * config.gcc (iq2000-*-elf): Added.
208         * doc/install.texi (Specific):  Add iq2000 description.
209
210 2003-08-08  Andreas Schwab  <schwab@suse.de>
211
212         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
213         and insert missing empty argument.
214         * configure: Regenerate.
215
216 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
217
218         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
219         (attr_length_millicode_call): Likewise.
220         (attr_length_call): Likewise.  Revise some maximum insn lengths.
221         (attr_length_indirect_call): Likewise.
222         (output_call): Fix thinko that added extra nop.
223         * pa.h (IN_NAMED_SECTION_P): Define.
224
225         PR c++/11712
226         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
227         __STDC_EXT__ when using C++ dialect.
228
229 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
230
231         * sh.c (calc_live_regs): If the return address pointer is live,
232         force pr live.
233         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
234         for saves / restores.
235         (sh_expand_epilogue): If sh_media_register_for_return returns a
236         register number, flag the instructions that restores PR_MEDIA_REG
237         as possibly dead.
238         Remove dead update of offset.
239         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
240         we can use the result of get_hard_reg_initial_val.
241         * sh.md (UNSPEC_RA): New constant.
242         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
243         (load_ra).  Handle UNSPEC_RA.
244         (sibcall_media): Use PR_MEDIA_REG.
245
246         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
247         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
248         needs saving on SHmedia.
249
250 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
251
252         * config/s390/s390.md: Replace all occurrences of \\t with \t.
253
254 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
255
256         * local-alloc.c (combine_regs): Fix comment typo.
257
258 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
259
260         * c-decl.c (builtin_decls): Replace with first_builtin_decl
261         and last_builtin_decl.
262         (c_init_decl_processing): Initialize both.
263         (c_reset_state): Iterate from first_builtin_decl to
264         last_builtin_decl inclusive to reintroduce builtins.
265
266 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
267
268         * doc/extend.texi (Function Attributes): Document the IA-64 version
269         of the "model" attribute.
270
271         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
272         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
273         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
274
275         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
276         (ia64_encode_section_info): Likewise.
277         (ia64_attribute_table): Add "model" attribute.
278         (TARGET_ENCODE_SECTION_INFO): Define.
279         (small_addr_symbolic_operand): New function.
280         (got_symbolic_operand): Return 0 for a symbolref to an object
281         in the small address area.
282         (enum ia64_addr_area): New type.
283         (small_ident1): New variable.
284         (small_ident2): Likewise.
285         (init_idents): New function.
286         (ia64_get_addr_area): Likewise.
287         (ia64_encode_addr_area): Likewise.
288         (ia64_encode_section_info): Likewise.
289         (ia64_expand_load_address): For symbolic references to objects in
290         the small-address-area, load the address via gen_rtx_SET() (which,
291         eventually, will expand into "addl").
292
293 2003-08-06  Per Bothner  <pbothner@apple.com>
294
295         * line-map.h (fileline):  New typedef.
296         (struct line_map, linemap_add, linemap_lookup):  Use it.
297         * input.h (struct location_s):  Comment notes that long-term we want
298         to replace it by fileline.
299
300 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
301
302         Fix SHcompact exception handling:
303         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
304         by the prologue, return a MEM with return_address_pointer_rtx
305         as address.
306         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
307         (RETURN_ADDR_OFFSET): Don't define.
308         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
309         registers that are visible in compact mode.  Show that SHmedia
310         registers still exist in compact mode, even if there are not
311         readily accessible.
312         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
313         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
314         and DW_EH_PE_pcrel for pic data.
315         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
316         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
317         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
318         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
319         * sh.md (movsi_media-1): New splitter.
320
321 2003-08-06  Graeme Peterson <gp@qnx.com>
322
323         * config/i386/nto.h: New.
324         * config/i386/t-nto: New.
325         * config.gcc (i[34567]86-*-nto-qnx*): New.
326
327 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
328
329         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
330
331 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
332
333         * calls.c (load_register_parameters): Arrange for call_fusage to
334         report the whole register as used when shifting to the msb.
335
336 2003-08-05  Roger Sayle  <roger@eyesopen.com>
337
338         * builtins.c (expand_builtin): When not optimizing, call the library
339         function for all builtins that have library functions (except alloca).
340
341 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
342
343         * c.opt: Introduce -fworking-directory.
344         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
345         * c-common.h (flag_working_directory): Declare.
346         * c-common.c (flag_working_directory): Define.
347         * c-opts.c (c_common_handle_options): Set it.
348         (sanitize_cpp_opts): Set...
349         * cpplib.h (struct cpp_options): ... working_directory option.
350         (struct cpp_callbacks): Add dir_change.
351         * cppinit.c (read_original_filename): Call...
352         (read_original_directory): New.  Look for # 1 "directory//"
353         and process it.
354         (cpp_read_main_file): Call dir_change callback if working_directory
355         option is set.
356         * gcc.c (cpp_unique_options): Pass -g*.
357         * c-lex.c (cb_dir_change): New.
358         (init_c_lex): Set dir_change callback.
359         * toplev.c (src_pwd): New static variable.
360         (set_src_pwd, get_src_pwd): New functions.
361         * toplev.h (get_src_pwd, set_src_pwd): Declare.
362         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
363         * dwarf2out.c (gen_compile_unit_die): Likewise.
364         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
365
366 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
367
368         * pretty-print.h (pp_set_line_maximum_length): Make macro.
369         (pp_set_prefix): Likewise.
370         (pp_destroy_prefix): Likewise.
371         (pp_remaining_character_count_for_line): Likewise.
372         (pp_clear_output_area): Likewise.
373         (pp_formatted_text): Likewise.
374         (pp_last_position_in_text): Likewise.
375         (pp_emit_prefix): Likewise.
376         (pp_append_text): Likewise.
377         (pp_flush): Likewise.
378         (pp_format_text): Likewise.
379         (pp_format_verbatim): Likewise.
380         (pp_tree_identifier): Tidy.
381         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
382         (pp_base_format_verbatim): Rename from pp_format_verbatim.
383         (pp_base_flush): Rename from pp_flush.
384         (pp_base_set_line_maximum_length): Rename from
385         pp_set_line_maximum_length.
386         (pp_base_clear_output_area): Rename from pp_clear_output_area.
387         (pp_base_set_prefix): Rename from pp_set_prefix.
388         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
389         (pp_base_emit_prefix): Rename from pp_emit_prefix.
390         (pp_base_append_text): Rename from pp_append_text.
391         (pp_base_formatted_text): Rename from pp_formatted_text.
392         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
393         (pp_base_remaining_character_count_for_line): Rename from
394         pp_remaining_character_count_for_line.
395         * diagnostic.h (diagnostic_format_decoder): Tidy.
396         (diagnostic_flush_buffer): Likewise.
397         * c-pretty-print.h: (pp_c_string_literal): Declare.
398         (pp_c_real_literal): Likewise.
399         (pp_c_integer_literal): Likewise.
400         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
401         pp_identifier.
402         (pp_c_character_literal): Tidy.
403         (pp_c_string_literal): Make public.
404         (pp_c_bool_literal): Likewise.
405         (pp_c_integer_literal): Likewise.
406         (pp_c_real_literal): Likewise.
407
408         * Makefile.in (C_PRETTY_PRINT_H): New variable.
409         (c-pretty-print.o): Update dependence.
410
411 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
412
413         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
414         ".set nomacro" state.
415         (fix_truncsfsi2_macro): Likewise.
416
417 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
418
419         * tree.h (DID_INLINE_FUNC): Remove macro.
420         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
421         add tree check for FUNCTION_DECL.
422         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
423         (struct tree_decl): Rename inlined_function_flag to
424         declared_inline_flag.
425         * c-common.h (c_lang_decl): Remove.
426         (DECL_ESTIMATED_INSNS): Remove.
427         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
428         (DECL_DECLARED_INLINE_P): Remove.
429         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
430         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
431         (finish_function): Make uninlinable a bool.  Fixup call to
432         tree_inlinable_function_p() and fix some code style issues.
433         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
434         * cgraph.c (dump_cgraph): Likewise.
435         * cgraphunit.c (cgraph_decide_inlining): Likewise
436         (cgraph_finalize_compilation_unit): Likewise.
437         Also update call to tree_inlinable_function_p().
438         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
439         look at DECL_DECLARED_INLINE and reverse logic.
440         * print-tree.c (print_node): Likewise.
441         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
442         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
443         prototype.
444         * tree-inline.c (inlinable_function_p): Split up in this function to
445         check for basic inlining inhibiting conditions, and new
446         limits_allow_inlining() function.  Warn if inlining is impossible
447         because the inline candidate calls alloca or uses sjlj exceptions.
448         (limits_allow_inlining): this new function to check if the inlining
449         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
450         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
451         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
452         Update prototypes.
453         (tree_inlinable_function_p): Make a bool.  Update call to
454         inlinable_function_p
455         (expand_call_inline): Use limits_allow_inlining() when not in
456         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
457         instead see if the function was declared `inline'.
458
459 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
460
461         * gcse.c (try_replace_reg): Fix updating of note.
462
463 2003-08-04  Roger Sayle  <roger@eyesopen.com>
464
465         PR middle-end/11771
466         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
467         logic in negate_expr, i.e. we don't invert (A-B) for floating
468         point types unless flag_unsafe_math_optimizations.
469
470 2003-08-04  Roger Sayle  <roger@eyesopen.com>
471
472         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
473         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
474         for floating point expressions with -ffast-math.
475         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
476         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
477
478 2003-08-04  Roger Sayle  <roger@eyesopen.com>
479
480         * c-common.c (flag_noniso_default_format_attributes): Delete.
481         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
482         (c_attrs_initialized): Delete.
483         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
484         always call c_init_attributes.
485         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
486         set c_attrs_initialized when done.
487         (c_common_insert_default_attributes): Delete.
488         * c-common.h (flag_noniso_default_format_attributes): Delete.
489         (c_coomon_insert_default_attributes): Delete prototype.
490         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
491         flag_noniso_default_format_attributes.
492
493         * c-decl.c (c_insert_default_attributes): Delete.
494         * c-tree.h (c_insert_default_attributes): Delete prototype.
495
496         * attribs.c (decl_attributes): Don't call insert_default_attributes
497         langhook.  Update function description comment.
498         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
499         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
500         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
501         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
502
503         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
504         define.
505
506 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
507
508         * config/mips/mips.c (override_options): Disable -G on targets that
509         have no .section support.
510         (mips_select_section): Use default_select_section for such targets.
511
512 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
513
514         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
515         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
516         * fixinc/fixincl.x: Rebuild.
517         * fixinc/tests/base/regexp.h: New test.
518
519 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
520
521         * c-ppoutput.c (cb_line_change): Don't skip line changing while
522         parsing macro arguments in the top-level context.
523
524 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
525
526         * config.in: Remove HAVE_LSTAT.
527         * configure, configure.in: Don't test for lstat.
528
529 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
530
531         * opts.c (decode_options): Do language-specific initialization for
532         the global diagnostic context.
533         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
534         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
535         (LANG_HOOKS_INITIALIZER): Adjust.
536         * langhooks.h (struct lang_hooks): Add new field
537         initialize_diagnostics.
538         * langhooks.c (lhd_initialize_diagnostics): Define.
539
540 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
541
542         * pretty-print.h:   Adjust macro definitions.
543         * pretty-print.c (pp_newline): Rename to pp_base_newline.
544         (pp_character): Rename to pp_base_character.
545         (pp_string): Rename to pp_base_string.
546         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
547         (pp_newline):  Likewise.  Adjust.
548         (pp_c_char): Adjust.
549
550 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
551
552         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
553         BUILT_IN_LLABS): Move to miscellaneous section.
554
555 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
556
557         PR preprocessor/11534
558         * cppexp.c (parse_defined): Warn only if -pedantic.
559
560 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
561
562         * cppfiles.c (stack_file): Use file path.
563
564 2003-08-02  Roger Sayle  <roger@eyesopen.com>
565
566         * builtin-types.def (BT_SSIZE): New primitive type.
567         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
568         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
569         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
570         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
571         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
572         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
573         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
574         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
575         few functions that define default attributes using it.
576         * c-common.c (c_common_insert_default_attributes): Do nothing.
577
578         * doc/extend.texi: Document these "new" builtins.
579
580 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
581
582         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
583         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
584         when -mieee-fp set and -shared not set.
585         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
586
587 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
588
589         * cppfiles.c (struct _cpp_file): Rename once_only_next to
590         next_file.  Remove import and pragma_once, add once_only.
591         (find_file): Add new file structures to the all_files list.
592         (should_stack_file): Mark #import-ed files once-only, and
593         don't stack them if the file has already been stacked.
594         (_cp_mark_file_once_only): Simplify.
595         * cpphash.h (struct cpp_reader): Rename once_only_files
596         to all_files.  Rename saw_pragma_once to seen_once_only.
597         (_cpp_mark_file_once_only): Update prototype.
598         * cpplib.c (do_pragma_once): Update.
599
600 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
601
602         * cppfiles.c (ENOTDIR): Remove.
603         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
604         other than ENOENT here.
605         (once_only_file_p): Rename should_stack_file.
606         (find_file, open_file_failed, read_file_guts): Report errors
607         with full path name.
608         (read_file): Move pch handling to should_stack_file.
609         (should_stack_file): Handle PCH and once-only issues, and
610         reading the file.
611         (stack_file): Don't do file reads.
612
613 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
614
615         * libgcov.c (gcov_exit): Cleanup and fix.
616         * profile.c (compute_value_histograms): Don't try to read profiles
617         that are not present.
618
619 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
620
621         * builtins.def: Categorize.
622
623         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
624         Mind fp rounding.
625         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
626
627 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
628
629         * config.gcc: Enable posix threads by default on darwin.
630
631 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
632
633         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
634         even if nehedges1 is 0.
635
636 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
637
638         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
639         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
640         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
641         and defintions.
642
643         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
644         * fixinc/fixincl.x: Regenerate.
645         * fixinc/tests/base/math.h: Regenerate to match test_text change.
646
647 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
648
649         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
650
651 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
652
653         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
654         for accesses to exc_ptr.
655
656 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
657
658         * doc/sourcebuild.texi (Front End Directory): Don't make references
659         to libsubdir, it's not part of the interface to frontends.
660         * doc/install.texi (Configuration): Help users read faster by saying
661         that GCC's configure options are the standard autoconf ones.
662         Mention --libdir.  Update the default rules for finding the
663         assembler.  Don't use libsubdir since we haven't said what it means.
664         (Specific): In the Solaris 7 notes, update the place to put the
665         assembler.
666         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
667         * doc/cpp.texi (Search Path): Actually, the search path
668         depends on libdir, which can relocate with cpp.
669         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
670         now a private interface between the Makefile and the driver.
671
672 2003-08-01  Richard Henderson  <rth@redhat.com>
673
674         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
675
676         * varasm.c (lookup_constant_def): New function.
677         * rtl.h (lookup_constant_def): Declare it.
678         * dwarf2out.c (loc_descriptor_from_tree): Use it.
679         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
680
681 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
682
683         * c-decl.c (gettags, pushdecl_function_level): Delete.
684         (last_function_parm_vars): Rename last_function_parm_others.
685         (current_function_parm_vars): Rename current_function_parm_others.
686         (struct c_scope): Rewrite comment explaining this data structure.
687         Add names_last, blocks_last, parms_last fields.  Rename
688         incomplete_list to incomplete.
689         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
690         (poplevel): Ignore second argument.  No need to nreverse
691         anything.  Restructure such that each list is processed
692         exactly once.  Use 'const location_t *locus' syntactic sugar
693         variable where useful.  Issue unused variable warnings
694         ourselves, do not rely on function.c.
695         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
696         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
697         (implicitly_declare): decl cannot be error_mark_node.
698         (undeclared_variable): Manipulate scope structure directly.
699         (c_make_fname_decl): Likewise.
700         (getdecls, c_init_decl_processing): Fix comment.
701         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
702         for 'last' variable.
703         (grokparms): No need to nreverse parms list.
704         (store_parm_decls_newstyle): Set up the parms_last and
705         names_last fields of the new scope too.
706         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
707         on parms to begin with; check this under ENABLE_CHECKING.  Set
708         up parms_last.
709         (check_for_loop_decls): Refer directly to current_scope->tags.
710         Use consistent quote style in diagnostics.
711         (c_write_global_declarations): The names list is not backward.
712
713         * c-common.h: Don't prototype gettags.
714         * c-parse.in: Call poplevel with second argument 0 always.
715
716 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
717
718         * builtins.def: Resort builtins.
719
720 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
721
722         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
723         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
724         Prepend "__builtin_" onto NAME with string concatenation.  Remove
725         explicit "__builtin_" from each macro call.
726
727         Reformat entire file.
728
729 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
730
731         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
732         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
733
734 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
735
736         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
737         CCL1, or CCL2 modes with floating point operations.
738
739         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
740         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
741         "*subdf3_cconly"): New insns.
742         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
743
744 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
745
746         * Makefile.in: Refine dependencies.
747         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
748         * c.opt: Update help for -Wimport.
749         * cppfiles.c: Include hashtab.h.  Update comments.
750         (stack_file): Read the file before updating dependencies.
751         (once_only_file_p): Be smarter about marking once-only files.
752         (_cpp_mark_file_once_only): Correct the check for existence on
753         the list.
754         (open_file_failed): Use name not path, which is NULL.
755         * cpphash.h: Don't include hashtab.h.
756         (struct _cpp_file): Remove.
757         (struct cpp_reader): Update.
758         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
759         * cpplib.h (struct cpp_options): Remove warn_import.
760         (cpp_simplify_path): Remove.
761
762 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
763
764         PR c++/11295
765         * doc/extend.texi (Statement Expressions): Document C++ semantics.
766
767 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
768
769         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
770
771 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
772
773         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
774         throughout.
775         * builtins.def: Likewise.
776
777 2003-07-31  Jason Merrill  <jason@redhat.com>
778
779         * Makefile.in (bubblestrap): Don't require a previous full
780         bootstrap.
781
782         * expr.c (mostly_zeros_p): No longer static.
783         * tree.h: Declare it.
784         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
785         unless we need to do substitutions.
786
787 2003-07-31  Roger Sayle  <roger@eyesopen.com>
788
789         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
790         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
791         as pow(x,2.0) when the latter will be expanded back into x*x.
792         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
793         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
794         pow can never set errno when used with an integer exponent.
795         Always use expand_powi when exponent is -1, 0, 1 or 2.
796         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
797         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
798         the pow forms of these expressions.
799
800 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
801
802         * Makefile.in (libexecdir): New.
803         (libsubdir): Use gcc instead of gcc-lib.
804         (libexecsubdir): New.
805         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
806         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
807         gcc-lib.
808         (installdirs): Make libexecsubdir.
809         (install-common): Put executables in libexecsubdir.
810         (itoolsdir): Use libexecsubdir.
811         (itoolsdatadir): New.
812         (install-mkheaders): Separate data files and executables.
813         (install-collect2): Put executables in libexecsubdir.
814         (uninstall): Remove libexecsubdir.
815         * mkheaders.in: Update for new arrangement of files.
816         (libexecdir): New.
817         (libexecsubdir): New.
818         (itoolsdir): Use libexecsubdir.
819         (itoolsdatadir): New.
820         * gcc.c (gcc_libexec_prefix): New.
821         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
822         (standard_exec_prefix_1): Use libexec.
823         (standard_exec_prefix_2): New.
824         (standard_libexec_prefix): New.
825         (process_command): Update for new arrangement of files.  Compute
826         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
827
828 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
829
830         * inclhack.def (stdio_va_list): Avoid bogus replacement which
831         triggers on Interix.
832         * fixincl.x: Regenerate.
833
834 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
835
836         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
837         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
838
839 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
840
841         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
842
843 2003-07-31  Per Bothner  <pbothner@apple.com>
844
845         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
846         (add_input_filename):  New function.
847         (handle_options):  Call add_input_filename directly instead of
848         with a lang hook.
849         * opts.h (in_fnames, num_in_fnames):  Moved here.
850         (add_input_filename):  Declare.
851         * c-decl.c:  Need to #include opts.h.
852         * Makefile.in (c-decl.o):  Also depends on opts.h.
853         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
854         (c_common_handle_filename):  Replaced by add_input_filename.
855         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
856         Remove.
857         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
858         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
859         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
860         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
861
862 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
863
864         * combine.c (try_combine): Set JUMP_LABEL for newly created
865         unconditional jump.
866
867 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
868
869         * fold-const.c (fold): Fold some comparisons of bit operations.
870
871 Thu Jul 31 19:49:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
872
873         * cgraph.c (create_edge): Fix typo.
874         * i386.c (pic_symbolic_operand): Reorder tests.
875
876 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
877
878         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
879         more fully.
880         (Gcov Data Files): Update.
881
882 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
883
884         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
885         default.
886
887         * gthr-posix.c: New file.
888         * gthr-posix.h: Define _REENTRANT if missing.
889         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
890
891         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
892         by gthr-posix.o.
893         * config/alpha/t-osf-pthread: New file.
894
895         * fixinc/inclhack.def (alpha_pthread): New fix.
896         * fixinc/fixincl.x: Regenerate.
897         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
898
899         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
900         warning.
901         Fixes PR bootstrap/9330.
902
903 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
904
905         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
906         without GNU ld.
907         Update comment.
908         * configure: Regenerate.
909
910 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
911
912         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
913         setter.
914
915 2003-07-30  Roger Sayle  <roger@eyesopen.com>
916
917         * builtins.def: Alphabetize.
918
919 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
920
921         * doc/c-tree.texi: Normalize spellings of "lowercase" and
922         "uppercase".
923         * doc/cpp.texi: Likewise.
924         * doc/md.texi: Likewise.
925         * doc/rtl.texi: Likewise.
926         * doc/tm.texi: Likewise.
927
928 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
929
930         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
931         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
932         of cc1obj.
933
934 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
935
936         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
937         macros before defining them.
938
939 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
940
941         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
942         UNSPECV_BLOCKAGE): New constants.
943         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
944         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
945         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
946         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
947
948         (all insns and expanders): Write output control string as brace block
949         where appropriate.  Remove \-escapes for doublequote characters.
950
951 Thu Jul 31 01:04:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
952
953         * gcse.c (insert_store): Fix typo in previous patch.
954
955 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
956
957         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
958
959 2003-07-30  Andi Kleen  <ak@muc.de>
960
961         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
962
963 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
964
965         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
966         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
967         GCOV_N_VALUE_COUNTERS): New.
968         * profile.c (compute_value_histograms): New static function.
969         (branch_prob): Read back the value histograms.
970         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
971         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
972         * value-prof.c: Add comment on reading the profile.
973         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
974         * doc/invoke.texi (-fprofile-values): Document behavior with
975         -fbranch-probabilities.
976
977 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
978
979         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
980
981 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
982
983         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
984         symbolically.
985
986 Wed Jul 30 19:12:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
987
988         * gcse.c (insert_store): Ignore fake edges.
989
990         * c-common.c (flag_vtable_gc): Kill.
991         * c-common.g (flag_vtable_gc): Kill.
992         * c-opts (c_common_handle_option): Kill.
993         * c.opt (fvtable-gc): Kill.
994         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
995         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
996         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
997
998         * invoke.texi (-ftable-gc): Kill documentation.
999
1000         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1001         just because function body is missing.
1002
1003         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1004
1005 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
1006
1007         * unwind-sjlj.c: Fix typo in file description.
1008
1009 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
1010
1011         * calls.c (load_register_parameters): When shifting reg sized values
1012         to the msb, move the value to a reg first.
1013
1014 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
1015
1016         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1017         * line-map.h (linemap_add): Update comments.
1018         * line-map.c (linemap_add): Update comments, interpret zero-length
1019         filename as "<stdin>".
1020
1021 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1022
1023         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1024
1025 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
1026
1027         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1028         New static variables.
1029         (struct c_scope): Add parms and warned_forward_parm_decls
1030         fields; remove parm_order.
1031         (storedecls, storetags): Delete.
1032         (poplevel): Also clear bindings on the parms chain.
1033         (pushdecl): Handle forward declarations of parameters, and
1034         chain PARM_DECLs on the parms list, not the names list.
1035         (lookup_name_current_level): Check for PARM_DECLs on the parms
1036         list too.
1037         (push_parm_decl): Don't update parm_order.
1038         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
1039         warning, only once per parameter list, and set TREE_ASM_WRITTEN
1040         on the decls here.  Then move the forward decls to the names list.
1041         (grokparms): Set last_function_parm_vars.
1042         (get_parm_info): Don't use gettags or getdecls.  No need to
1043         extract non-parms from the parms list, or reorganize the parms
1044         list.  Feed nonparms back in the TREE_TYPE of the list node
1045         returned.  Issue only one error per parameter list for "void"
1046         appearing more than once in said parameter list.  Collapse
1047         parmlist_tags_warning into this function to avoid double scan
1048         of tags list.
1049         (start_function): Set current_function_parm_vars.
1050         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1051         directly.  Get non-parms from current_function_parm_vars; no
1052         need to extract them from the parms chain.  Properly bind tags
1053         in the new scope.
1054         (store_parm_decls_oldstyle): No need to extract non-parameters
1055         from the parms chain, nor to store them back afterward.  Move
1056         declaration to top of function, restructure code reordering
1057         DECL_ARGUMENTS.
1058         (store_parm_decls): No need to save and restore warn_shadow.
1059         * c-parse.in: Don't call parmlist_tags_warning nor
1060         clear_parm_order.  Call mark_forward_parm_decls when forward
1061         parm decls are encountered.
1062         * c-tree.h: Prototype mark_forward_parm_decls; not
1063         clear_parm_order or parmlist_tags_warning.
1064
1065 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
1066
1067         * c-common.c (allow_pch): Remove.
1068         * c-common.h (allow_pch): Remove.
1069         (c_common_no_more_pch): Declare.
1070         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1071         * c-pch.c: Include hosthooks.h.
1072         (c_common_valid_pch): Don't check allow_pch.
1073         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1074         (c_common_no_more_pch): New.
1075         * ggc-common.c: Include hosthooks.h.
1076         (gt_pch_save): Call gt_pch_get_address.
1077         (gt_pch_restore): Call gt_pch_use_address.
1078         * hooks.c (hook_voidp_size_t_null): New.
1079         (hook_bool_voidp_size_t_false): New.
1080         * hooks.h (hook_voidp_size_t_null): New.
1081         (hook_bool_voidp_size_t_false): New.
1082         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1083         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1084         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1085         HOST_HOOKS_GT_PCH_USE_ADDRESS.
1086         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1087         gt_pch_use_address.
1088         * doc/hostconfig.texi (Host Common): Document
1089         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1090         * Makefile.in (c-pch.o): Depend on hosthooks.h.
1091         (ggc-common.o): Likewise.
1092
1093         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1094         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1095         (pch_address_space): New.
1096         (darwin_rs6000_gt_pch_get_address): New.
1097         (darwin_rs6000_gt_pch_use_address): New.
1098
1099 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
1100
1101         PR preprocessor/11569
1102         PR preprocessor/11649
1103         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1104         * cppfiles.c: Completely rewritten.
1105         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1106         struct cpp_path is now struct cpp_dir.
1107         (remove_duplicates): Don't simplify path names.
1108         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1109         cpp_stack_file.
1110         * cpphash.h: Include hashtab.h.
1111         (_cpp_file): Declare.
1112         (struct cpp_buffer): struct include_file is now struct _cpp_file,
1113         and struct cpp_path is now struct cpp_dir.  Rename members.
1114         (struct cpp_reader): Similarly.  New members once_only_files,
1115         file_hash, file_hash_entries, quote_ignores_source_dir,
1116         no_search_path, saw_pragma_once.  Remove all_include_files and
1117         max_include_len.  Make some members bool.
1118         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1119         (_cpp_stack_file): Renamed from _cpp_read_file.
1120         (_cpp_stack_include): Renamed from _cpp_execute_include.
1121         (_cpp_init_files): Renamed from _cpp_init_includes.
1122         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1123         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
1124         (cpp_read_next_file): Rename and move to cppfiles.c.
1125         (cpp_read_main_file): Update.
1126         * cpplib.c (run_directive): Update for renamed members.
1127         (do_include_common, _cpp_pop_buffer): Update.
1128         (do_import): Undeprecate #import.
1129         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
1130         * cpplib.h: Remove file_name_map_list.
1131         (cpp_options): Remove map_list.
1132         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
1133         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1134
1135 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
1136
1137         * Makefile.in:  Make stamp-objdir safe for parallel builds.
1138
1139 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
1140
1141         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
1142         (info):  Depend on stmp-docobjdir.
1143
1144 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1145
1146         * configure: Regenerate.
1147
1148 Tue Jul 29 19:24:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
1149
1150         PR C++/11131
1151         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1152         in !unit-at-a-time mode.
1153
1154 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
1155
1156         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1157         main function.
1158
1159 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
1160
1161         PR c++/11667
1162         * c-common.c (shorten_compare): Take into account differences
1163         between C and C++ representation for enumeration types.
1164         * tree.h (set_min_and_max_values_for_integral_type): Declare.
1165         * stor-layout.c (set_min_and_max_values_for_integral_type): New
1166         function, broken out from ...
1167         (fixup_signed_type): ... here and ...
1168         (fixup_unsigned_type): ... here.
1169
1170 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
1171
1172         * c-decl.c: Update commentary, adjust blank lines throughout.
1173         (struct c_scope): Fix indentation.  Reorder members so
1174         outer-context pointers come first, booleans last.
1175         (duplicate_decls, define_label): Use a 'locus' variable for
1176         diagnostic locations in a few more places.
1177         (warn_if_shadowing): Un-split a conditional that fits on one line.
1178         (c_init_decl_processing): No need to clear current_scope and
1179         current_function_scope.
1180         (start_decl): Merge if/else if statements with same action.
1181         (push_parm_decl): Rename old_immediate_size_expand to use
1182         save_foo convention; save/restore around entire function.
1183         (grokdeclarator): Remove unnecessary braces.
1184
1185 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
1186             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
1187
1188         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1189         when warn_declaration_after_statement.  Call pedwarn_c90, not
1190         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
1191         * c-common.c (warn_declaration_after_statement): Define.
1192         * c-common.h (warn_declaration_after_statement): Declare.
1193         * c.opt (Wdeclaration-after-statement): New.
1194         * c-errors.c (pedwarn_c90): New function.
1195         * c-opts.c (c_common_handle_option) <case
1196         OPT_Wdeclaration_after_statement>: New.
1197         * c-tree.h (pedwarn_c90): Declare.
1198         * doc/invoke.texi (Option Summary): Document
1199         -Wdeclaration-after-statement.
1200         (Warning Options): Ditto.
1201
1202 Mon Jul 28 20:13:06 CEST 2003  Jan Hubicka  <jh@suse.cz>
1203
1204         * i386.md (memory attribute) Avoid accessing uninitialized memory
1205         for ishift1 type instructions.
1206
1207 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
1208
1209         * configure.in (--enable-checking): Add fold category.
1210         (ENABLE_FOLD_CHECKING): Define if requested.
1211         * configure: Rebuilt.
1212         * config.in: Rebuilt.
1213         * doc/install.texi: Document it.
1214         * fold-const.c: Include md5.h.
1215         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1216         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1217         print_fold_checksum): New functions.
1218
1219         * fold-const.c (fold): Never modify argument passed to fold, instead
1220         change a copy and return it.
1221         * convert.c (convert_to_integer): Likewise.
1222
1223 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
1224
1225         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
1226         cleanup of junk after #else and #endif directives.  Collapse repeated
1227         clauses into for statment.
1228
1229         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
1230
1231 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
1232
1233         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1234         (keep_next_if_subblocks): Rename next_is_function_body.
1235         (pushlevel): Adjust commentary.  Always set ->keep on the
1236         outermost level of a function.  Don't set ->keep_if_subblocks.
1237         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
1238         (store_parm_decls): Adjust to match.
1239         (finish_function): Adjust to match.
1240         Call poplevel with all three arguments zero.
1241
1242         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1243         New functions split out of store_parm_decls.
1244         Avoid unnecessary work. Use local variables consistently.
1245         (store_parm_decls): Likewise.
1246
1247         (finish_function): No need to set functionbody flag on call to
1248         poplevel.
1249         (struct language_function): Remove scope field.
1250         (c_push_function_context, c_pop_function_context): No need to
1251         save and restore current_scope.
1252
1253 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
1254
1255         * doc/extend.texi (Deprecated Features): Implicit typename is
1256         gone. Default args on types is going.
1257
1258 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
1259
1260         * Makefile.in (ifcvt.o): Depend on target.h
1261         * ifcvt.c (target.h): Include.
1262         (if_convert): Don't call mark_loop_exit_edges if we can't
1263         modify jumps.
1264
1265 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1266
1267         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1268
1269 2003-07-26  Richard Henderson  <rth@redhat.com>
1270
1271         PR inline-asm/11676
1272         * cse.c (count_reg_usage): Handle asm_operands properly.
1273
1274 2003-07-26  Roger Sayle  <roger@eyesopen.com>
1275
1276         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1277         (DEF_EXT_FALLBACK_BUILTIN): Delete.
1278         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1279         the regular DEF_EXT_LIB_BUILTIN macro.
1280         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1281         the regular DEF_LIB_BUILTIN macro.
1282         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1283         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1284         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1285         DEF_EXT_LIB_BUILTIN macro.
1286
1287         * c-decl.c (duplicate_decls): Remove code to handle builtin
1288         functions prototyped without an argument list.
1289
1290 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
1291
1292         * config/i386/winnt.c: Revert 2003-07-08 change.
1293         (i386_pe_section_type_flags): Remove error_with_decl here too.
1294
1295 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1296
1297         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1298         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1299         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1300         (v850_handle_data_area_attribute): Likewise.
1301
1302 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
1303
1304         * varasm.c (output_constant_def_contents): Use
1305         ASM_DECLARE_CONSTANT_NAME if defined.
1306         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1307         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1308         objects get at least one byte to prevent assembler problems.
1309         (ASM_DECLARE_CONSTANT_NAME): New.
1310
1311         * Makefile.in (libbackend.o): Remove options_.h.
1312         (mostlyclean): Likewise.
1313
1314         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1315         insert a label at the end of an function under Mach-O.
1316
1317         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1318
1319 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
1320
1321         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1322         equality.
1323         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1324
1325         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1326
1327 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1328
1329         * doc/passes.texi (Passes): Mention pretty-printing and
1330         diagnostic files.
1331
1332 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
1333
1334         * doc/extend.texi (Function Attributes): GNU C++ does now allow
1335         unused parameter decls.
1336         (Attribute Syntax): GNU C++ does not allow label attributes to be
1337         after the ':'.
1338
1339 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1340
1341         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1342         (objc_declare_class): Likewise.
1343         (error_with_ivar): Likewise.
1344         (start_class): Likewise.
1345         (warn_with_method): Likewise.
1346
1347 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1348
1349         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1350         from GCC.
1351         * calls.c (try_to_integrate): Don't use xxx_with_decl.
1352         (expand_call): Likewise.
1353         * dwarfout.c (output_reg_number): Likewise.
1354         * expr.c (expand_expr): Likewise.
1355         * function.c (assign_temp): Likewise.
1356         (uninitialized_vars_warning): Likewise.
1357         (setjmp_args_warning): Likewise.
1358         (expand_function_end): Likewise.
1359         * stmt.c (fixup_gotos): Likewise.
1360         (warn_about_unused_variables): Likewise.
1361         (expand_end_bindings): Likewise.
1362         * stor-layout.c (layout_decl): Likewise.
1363         (place_field): Likewise.
1364         * toplev.c (check_global_declarations): Likewise.
1365         (rest_of_handle_inlining): Likewise.
1366         (default_tree_printer): New function.
1367         (general_init): Initialize diagnostic machinery before routing
1368         signals to the ICE machinery.  Set default tree printer.
1369         * toplev.h (pedwarn_with_decl): Remove declaration.
1370         (warning_with_decl): Likewise.
1371         (error_with_decl): Likewise.
1372         (pedwarn): Remove attribute for the time being.
1373         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1374         * varasm.c (named_section): Likewise.
1375         (make_decl_rtl): Likewise.
1376         (assemble_variable): Likewise.
1377         (merge_weak): Likewise.
1378         (declare_weak): Likewise.
1379
1380         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1381         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1382         (format_with_decl): Remove.
1383         (diagnostic_for_decl): Likewise.
1384         (pedwarn_with_decl): Likewise.
1385         (warning_with_decl): Likewise.
1386         (error_with_decl): Likewise.
1387         (diagnostic_initialize): Adjust.
1388         (diagnostic_count_diagnostic): Likewise.
1389         (announce_function): Likewise.
1390         (lhd_print_error_function): Likewise.
1391         (diagnostic_report_current_module): Likewise.
1392         (default_diagnostic_starter): Likewise.
1393         (diagnostic_report_diagnostic): Likewise.
1394         (default_diagnostic_finalizer): Likewise.
1395         (verbatim): Likewise.
1396         (error): Likewise.
1397         (warning): Likewise.
1398         * opts.c (common_handle_option): Likewise.
1399         * pretty-print.c: New file.
1400         * c-pretty-print.h (pp_base): Override.
1401         * c-pretty-print.c: Adjust use of macros throughout.
1402         (pp_buffer): New macro.
1403         (pp_newline): Likewise.
1404         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1405         * Makefile.in (DIAGNOSTIC_H): New variable.
1406         (c-errors.o): Use it.
1407         (c-objc-common.o): Likewise.
1408         (c-common.o): Likewise.
1409         (c-opts.o): Likewise.
1410         (c-format.o): Likewise.
1411         (diagnostic.o): Likewise.
1412         (opts.o): Likewise.
1413         (toplev.o): Likewise.
1414         (rtl-error.o): Likewise.
1415         (dwarf2out.o): Likewise.
1416         (jump.o): Likewise.
1417         (pretty-print.o): New rule.
1418
1419 2003-07-24  Roger Sayle  <roger@eyesopen.com>
1420
1421         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1422         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1423         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1424         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1425         (DEF_FRONT_END_LIB_BUILTIN): Delete.
1426         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1427         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1428
1429         * builtins.c (build_string_literal): New function to construct
1430         a char* pointer to a string literal.
1431         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1432         "rtx target" to be consistent with other expand_builtin_* functions.
1433         Change 3rd argument from "int unlocked" to "bool unlocked".
1434         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1435         c-common.c to avoid front-end dependencies.  Optimize printf("")
1436         as a no-op when the result isn't required.  Handle embedded NULs
1437         in format string.
1438         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1439         from c-common.c to avoid front-end dependencies.  Likewise, optimize
1440         fprintf(fp,"") as a no-op when the result isn't required, evaluating
1441         fp for side-effects.  Handle embedded NULs in format string.
1442         (expand_builtin_sprintf): Fix typo.
1443         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1444         optimizing.  Adjust calls of expand_builtin_fputs to match the API
1445         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1446         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1447         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1448
1449         * c-common.c (is_valid_printf_arglist): Delete.
1450         (c_expand_builtin): Delete.
1451         (c_expand_builtin_printf): Moved to builtins.c. Delete.
1452         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
1453         (c_expand_expr): No longer treat CALL_EXPRs specially.
1454         (CALLED_AS_BUILT_IN): Delete.
1455
1456 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1457
1458         PR optimization/11631
1459         * gcse.c (store_motion): Connect infinite loops to exit.
1460
1461 2003-07-24  Jason Merrill  <jason@redhat.com>
1462
1463         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1464         (boolean_true_node, boolean_false_node): Likewise.
1465         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1466         * tree.c (build_common_tree_nodes): Init boolean_type_node.
1467         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1468         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1469         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1470         (truthvalue_true_node): Renamed from boolean_true_node.
1471         (truthvalue_false_node): Renamed from boolean_false_node.
1472         * c-decl.c: Just set truthvalue_* to integer_*.
1473         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
1474
1475 2003-07-24  Roger Sayle  <roger@eyesopen.com>
1476
1477         * c-decl.c (match_builtin_function_types): New subroutine of
1478         duplicate_decls to test whether a redeclaration of a builtin
1479         function is suitably close, i.e. the return type and all of
1480         the argument types have the same modes as the builtin expects.
1481         (duplicate_decls): Fuzzy type matching for builtin functions
1482         moved to match_builtin_function_types.
1483
1484 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1485
1486         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1487         flag correctly.
1488
1489 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
1490
1491         * c-decl.c: Search-and-replace change 'binding level' to
1492         'scope' in commentary.
1493         (struct binding_level): Now struct c_scope.
1494         (current_binding_level): Now current_scope.
1495         (free_binding_level): Now scope_freelist.
1496         (current_function_level): Now current_function_scope.
1497         (global_binding_level): Now global_scope.
1498         (make_binding_level): Now make_scope.
1499         (pop_binding_level): Now pop_scope.
1500
1501 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1502
1503         * configure.in (libgcc_visibility): Add missing whitespace.
1504
1505 2003-07-24  Richard Henderson  <rth@redhat.com>
1506
1507         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1508         __gcc_personality_v0.
1509
1510 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1511
1512         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1513
1514 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1515
1516         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1517         documentation missed from my 2003-07-09 patch.
1518
1519 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1520
1521         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1522         it's not provided.
1523         * configure: Rebuild.
1524
1525 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1526
1527         PR c/10602
1528         * c-typeck.c (type_lists_compatible_p): Do not compare
1529         arguments if one of them is an error_mark_node
1530
1531 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
1532
1533         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1534         if current_function_calls_eh_return.
1535
1536 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
1537
1538         * doc/c-tree.texi (OFFSET_TYPE): Update description.
1539
1540 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
1541
1542         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1543         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1544         __umodsi3, __modsi3): Increase frame size to 32.
1545
1546 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
1547
1548         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1549         prototype.
1550
1551 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
1552
1553         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1554
1555         PR optimization/10679
1556         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1557
1558 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1559
1560         PR target/11607 and PR target/11516
1561         * pa.md (extzv, extv, insv): Revert latter half of last patch.
1562
1563 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
1564
1565         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1566         * varasam.c (output_constant): Likewise.
1567
1568 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
1569
1570         * alias.c: Fix comment formatting.
1571         * c-common.c: Likewise.
1572         * c-decl.c: Likewise.
1573         * c-opts.c: Likewise.
1574         * combine.c: Likewise.
1575         * cpplib.c: Likewise.
1576         * diagnostic.c: Likewise.
1577         * dojump.c: Likewise.
1578         * final.c: Likewise.
1579         * fold-const.c: Likewise.
1580         * gcc.c: Likewise.
1581         * gcse.c: Likewise.
1582         * ggc-page.c: Likewise.
1583         * jump.c: Likewise.
1584         * loop.c: Likewise.
1585         * mips-tfile.c: Likewise.
1586         * recog.c: Likewise.
1587         * regclass.c: Likewise.
1588         * regmove.c: Likewise.
1589         * tree.c: Likewise.
1590         * tree.h: Likewise.
1591
1592 2003-07-22  Per Bothner  <pbothner@apple.com>
1593
1594         * line-map.c (add_line_map):  Handle invalid LEAVE request.
1595         Fixes PR preprocessor/11361.
1596
1597 2003-07-22  Per Bothner  <pbothner@apple.com>
1598
1599         * diagnostic.c.(diagnostic_report_current_module):  Update to match
1600         2003-06-05 changes to push_srcloc and pop_srcloc.
1601
1602 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
1603
1604         * doc/trouble.texi: Better document two-stage name lookup.
1605
1606 2003-07-22  Eric Christopher <echristo@redhat.com>
1607
1608         * config/s390.c (s390_valid_pointer_mode): New.
1609         (TARGET_VALID_POINTER_MODE): Use.
1610         (s390_emit_prologue): Add tpf profiling hooks.
1611         (s390_emit_epilogue): Ditto.
1612         * config/s390.h (MASK_TPF): New.
1613         (TARGET_TPF): Use.
1614         (POINTERS_EXTEND_UNSIGNED): Define.
1615         * config/s390.md (ptr_extend): New pattern.
1616
1617 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
1618
1619         * hashtable.c (approx_sqrt): Make static.
1620         * hashtable.h: Don't prototype approx_sqrt.
1621         * line-map.c (init_line_maps): Rename linemap_init.
1622         (free_line_maps): Rename linemap_free.
1623         (add_line_map): Rename linemap_add.
1624         (lookup_line): Rename linemap_lookup.
1625         (print_containing_files): Rename linemap_print_containing_files.
1626         * linemap.h: Update to match.
1627
1628         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1629         linemap routines to use new names.
1630
1631 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
1632
1633         * c-common.c (handle_packed_attribute): Don't pack a struct via a
1634         typedef. Propagate packedness from a main variant.
1635
1636 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
1637
1638         * Makefile.in (install-common): Add dependency on installdirs.
1639
1640 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
1641
1642         * c-common.c (c_common_type_for_mode): Return integer types for
1643         pointer modes.
1644
1645 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
1646
1647         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1648         (finish_decl): Call maybe_apply_pragma_weak here.
1649         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1650         TREE_PUBLIC and TREE_STATIC are decided.
1651         (start_function): Move call to maybe_apply_pragma_weak.  Check that
1652         DECL_ASSEMBLER_NAME isn't set too early.
1653
1654         * cpplex.c (_cpp_process_line_notes): Mention option name in
1655         trigraphs warning.
1656
1657 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
1658
1659         * combine.c (if_then_else_cond): Simplify the comparison of
1660         rtx against -1, 0, and 1.
1661         * loop.c (check_dbra_loop): Likewise.
1662         * optabs.c (emit_conditional_move): Likewise.
1663         (emit_conditional_add): Likewise.
1664         * config/i386/i386.md (*movsi_or): Likewise.
1665         (*movdi_or_rex6): Likewise.
1666
1667 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
1668
1669         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1670
1671 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
1672
1673         * cppfiles.c (open_file_pch): Don't put unused entries in the
1674         splay tree.  Remove dead code.
1675
1676 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
1677
1678         * c-common.h (num_in_fnames): Declare.
1679         (c_static_assembler_name): Move from here...
1680         * c-tree.h (c_static_assembler_name): ... to here.
1681         * c-opts.c: Don't include langhooks-def.h.
1682         (c_static_assembler_name): Move to c-decl.c.
1683         (num_in_fnames): Make externally visible.
1684         * c-decl.c: Include langhooks-def.h.
1685         (c_static_assembler_name): Move from c-opts.c.
1686         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1687         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1688
1689         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1690         when it's not needed.
1691
1692 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
1693
1694         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1695         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1696         (rs6000_emit_prologue): Save FPRs inline if set.
1697
1698 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
1699
1700         * config/ia64/ia64.md (prefetch): Support predicate.
1701
1702 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
1703
1704         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1705         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1706         table.
1707
1708 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1709
1710         PR optimization/11536
1711         * unroll.c (loop_iterations): Do not replace a register holding
1712         the final value by its equivalent before the loop if it is not
1713         invariant.
1714
1715 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
1716
1717         * doc/extend.texi: Fixes to spelling, grammar, and diction.
1718
1719 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
1720
1721         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
1722         (V850 Options): Spelling fixes.
1723
1724 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
1725
1726         * doc/invoke.texi: Fixes to style, grammar and diction.
1727
1728 2003-07-20  Roger Sayle  <roger@eyesopen.com>
1729
1730         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
1731         * system.h (SMALL_STACK): Poison obsolete target macro.
1732         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
1733
1734 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
1735
1736         * configure.in:  Cache the results of testing for cmp's capabilities.
1737         * configure:  Regenerate.
1738
1739 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
1740
1741         PR debug/11279
1742         * dwarf2out.c (gen_enumeration_type_die): Remember that
1743         enumerators can be unsigned.
1744
1745 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
1746
1747         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
1748         (push_label_level, pop_label_level): Kill.
1749         (struct binding_level): Rename level_chain to outer.
1750         Add outer_function field.  Change parm_flag, function_body,
1751         keep, keep_if_subblocks to 1-bit bitfields of type bool.
1752         (current_function_level): New variable.
1753         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
1754         (keep_next_level, declare_parm_level, warn_if_shadowing):
1755         Update to match.
1756         (struct language_function): Kill named_labels, shadowed_labels fields.
1757         (c_init_decl_processing, start_function, c_push__function_context)
1758         (c_pop_function_context): No need to muck with named_labels nor
1759         shadowed_labels.
1760
1761         (make_binding_level): No need to clear the structure here.
1762         (pop_binding_level): Always operate on current_binding_level.
1763         Update current_function_level if necessary.
1764         (pushlevel): Don't clear named_labels.  Update current_function_level
1765         if necessary.  Use "true" and "false" where appropriate.
1766         (poplevel): Diagnose labels defined but not used, or vice
1767         versa, and clear out label-meanings leaving scope, while
1768         walking down the decls list, for all binding levels.
1769         Handle LABEL_DECLs appearing in the shadowed list.
1770         pop_binding_level takes no arguments.
1771         (pushdecl_function_level): Use current_function_level.
1772
1773         (make_label, bind_label): New static functions.
1774         (declare_label): New exported function.
1775         (lookup_label, define_label): Rewritten for new data structure.
1776         (shadow_label): Kill.
1777
1778         * c-tree.h: Prototype declare_label; don't prototype
1779         push_label_level, pop_label_level, nor shadow_label.
1780         * c-parse.in: Remove all calls to push_label_level and
1781         pop_label_level.  Use declare_label for __label__ decls.
1782
1783         * doc/extend.texi: Clarify that __label__ can be used to
1784         declare labels with local scope in any nested block, not
1785         just statement expressions.  Cross-reference nested functions
1786         section from local labels section.
1787
1788 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1789
1790         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
1791
1792 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
1793
1794         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
1795
1796 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1797
1798         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
1799         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
1800
1801 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
1802
1803         * config/s390/s390.c (legitimize_pic_address): Access local symbols
1804         relative to the GOT instead of relative to the literal pool base.
1805         (s390_output_symbolic_const): Handle new GOT-relative accesses.
1806         * config/s390/s390.md ("call"): Access local functions and PLT stubs
1807         relative to the GOT instead of relative to the literal pool base.
1808         ("call_value"): Likewise.
1809         ("call_value_tls"): Likewise.
1810
1811         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
1812         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
1813         (s390_chunkify_finish): Likewise.
1814         (s390_chunkify_cancel): Likewise.
1815         (s390_reorg): Adapt caller.
1816         (find_base_register_in_addr,
1817         find_base_register_ref, replace_base_register_ref): Delete.
1818         (find_ltrel_base, replace_ltrel_base): New functions.
1819         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
1820         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
1821         base vs. index register usage.
1822         (struct constant_pool): Remove 'anchor'.
1823         (s390_add_anchor): Delete.
1824         (s390_dump_pool): Remove anchor handling.
1825         * config/s390/s390.md ("reload_anchor"): Remove.
1826
1827         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
1828         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
1829         (s390_emit_prologue): Use it.
1830         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
1831         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
1832         hard-code register 14.
1833         * config/s390/s390-protos.h (s390_load_got): Declare.
1834
1835         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
1836         Support TImode constants.
1837         * config/s390/s390.md ("consttable_ti"): New.
1838         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
1839
1840         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
1841         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
1842         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
1843         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
1844         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
1845         New symbolic constants.
1846         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1847         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
1848         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
1849         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
1850         symbolic UNSPEC values.
1851         * config/s390/s390.c (larl_operand, s390_short_displacement,
1852         bras_sym_operand, s390_cannot_force_const_mem,
1853         s390_delegitimize_address, s390_decompose_address,
1854         legitimize_pic_address, s390_output_symbolic_const,
1855         s390_function_profiler): Use symbolic UNSPEC values.
1856
1857 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1858
1859         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
1860         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
1861         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
1862         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
1863         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
1864         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
1865         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
1866         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
1867         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
1868         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
1869         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
1870         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
1871         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
1872         postreload.c prefix.c print-tree.c protoize.c ra-build.c
1873         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
1874         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
1875         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
1876         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
1877         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
1878         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
1879         casts.
1880
1881 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1882
1883         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
1884         * toplev.h (warning): Remove attribute.
1885
1886 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1887
1888         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
1889         (pop_label_level): Likewise.
1890         (duplicate_decls): Likewise.
1891         (implicitly_declare): Likewise.
1892         (shadow_label): Likewise.
1893         (start_decl): Likewise.
1894         (finish_decl): Likewise.
1895         (grokdeclarator): Likewise.
1896         (get_parm_info): Likewise.
1897         (detect_field_duplicates): Likewise.
1898         (finish_struct): Likewise.
1899         (start_function): Likewise.
1900         (store_parm_decls): Likewise.
1901         (finish_function): Likewise.
1902         (c_expand_body_1): Likewise.
1903         (check_for_loop_decls): Likewise.
1904         (merge_translation_unit_decls): Likewise.
1905
1906 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
1907
1908         * common.opt:  Document --param.
1909         * opts.c (columns, undocumented_msg): New.
1910         (print_help): Get number of columns from environment.  Print
1911         --param help.  Tweak newline handling.
1912         (print_param_help): New.
1913         (print_filtered_help): Better handling of duplicates.  Complain
1914         about undocumented switches.
1915         (print_switch): New.
1916         (wrap_help): Improve wrapping, use COLUMNS.
1917         * opts.sh: Ignore comments in records.
1918         * params.def: Fix typos and remove trailing periods.
1919         * toplev.c (display_help): Don't dump --param help.
1920         * doc/sourcebuild.texi: Update.
1921
1922 2003-07-18  Richard Henderson  <rth@redhat.com>
1923
1924         PR target/11556
1925         * optabs.c (prepare_operand): Fail gracefully instead of abort
1926         if the predicate doesn't satisfy.
1927         (gen_cond_trap): Allow prepare_operand to fail.
1928
1929 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1930
1931         * c-common.c: Don't undefine GCC_DIAG_STYLE.
1932         (fname_decl): Don't use xxx_with_decl.
1933         (c_add_case_label): Likewise.
1934         (handle_section_attribute): Likewise.
1935         (handle_alias_attribute): Likewise.
1936         (handle_no_instrument_function_attribute): Likewise.
1937         (handle_no_limit_stack_attribute): Likewise.
1938         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
1939         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
1940
1941 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1942
1943         * Makefile.in (ifcvt.o): Add cfgloop.h.
1944         * basic-block.h (EDGE_LOOP_EXIT): New flag.
1945         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
1946         * ifcvt.c: Include cfgloop.h.
1947         (mark_loop_exit_edges): New static function.
1948         (if_convert): Call it.
1949         (find_if_header): Ignore branches out of loops.
1950
1951 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
1952
1953         * combine.c (simplify_comparison): Don't share rtx when converting
1954         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
1955
1956 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
1957
1958         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
1959         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1960         (MUST_PASS_IN_STACK): Define.
1961         (BLOCK_REG_PADDING): Define.
1962
1963 2003-07-18  Richard Henderson  <rth@redhat.com>
1964
1965         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
1966         to skip the addr_vec.
1967
1968 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
1969
1970         * combine.c (combinable_i3pat): Don't forbid occurrences of
1971         i2dest or i1dest in inner_dest if inner_dest is a mem.
1972
1973 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
1974
1975         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
1976
1977 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
1978
1979         PR target/11087
1980         * loop.c (basic_induction_var): Check if convert_modes emitted any
1981         instructions. Remove them and return 0 if so.
1982
1983 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
1984
1985         PR optimization/11083
1986         * toplev.c (rest_of_handle_addresof): Rename into
1987         rest_of_handle_addressof.  Delete unreachable blocks
1988         if dead edges were purged after the addressof pass.
1989
1990 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
1991
1992         * Makefile.in, configure, configure.in: Remove handling of
1993         lang-options.h and options_.h.
1994         * toplev.c (struct lang_opt, documented_lang_options): Remove.
1995         (display_help): Don't use documented_lang_options.
1996
1997 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
1998
1999         * c-decl.c (pushdecl_function_level): Make static, return nothing.
2000         (kept_level_p): Fold into poplevel.
2001         (undeclared_variable): Moved here from c-typeck.c.  Export.
2002         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2003         (undeclared_variable): Prototype here.  Don't prototype
2004         kept_level_p nor pushdecl_function_level.
2005         * c-parse.in: Change first argument to poplevel from
2006         "kept_level_p()" to "KEEP_MAYBE".
2007         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2008
2009 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2010
2011         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2012         commutative operands instead of modifying the RTL in-place.
2013
2014 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
2015
2016         PR optimization/11557
2017         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2018         unless we know which function is being called.
2019
2020 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2021
2022         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2023         whether to reorder the operands of a commutative binary operator.
2024
2025 2003-07-17  Roger Sayle  <roger@eyesopen.com>
2026
2027         * fold-const.c (const_binop): Avoid performing the FP operation at
2028         compile-time, if either operand is NaN and we honor signaling NaNs,
2029         or if we're dividing by zero and either flag_trapping_math is set
2030         or the desired mode doesn't support infinities.
2031         (fold_initializer): New function to fold an expression ignoring any
2032         potential run-time exceptions or traps.
2033         * tree.h (fold_initializer): Prototype here.
2034         * c-typeck.c (build_binary_op): Move to the end of the file so
2035         that intializer_stack is in scope.  If constructing an initializer,
2036         i.e. when initializer_stack is not NULL, use fold_initializer to
2037         fold expressions.
2038         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2039         performing FP operations at compile-time, if they would raise an
2040         exception at run-time.
2041
2042 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
2043
2044         PR 11498
2045         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2046         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2047         (GTFILES): Add langhooks.c.
2048         (gt-langhooks.h): New.
2049         * c-common.h (c_static_assembler_name): Prototype.
2050         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2051         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2052         * c-opts.c: Include langhooks-def.h.
2053         (c_static_assembler_name): New.
2054         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
2055         (var_labelno): New.
2056         (lhd_set_decl_assembler_name): Give static objects with context
2057         unique names.
2058         * varasm.c (var_labelno): Delete.
2059         (make_decl_rtl): Don't change the assembler name once it's set.
2060
2061         * c-opts.c (this_input_filename): New.
2062         (finish_options): Take new parameter, name of file being compiled.
2063         Update callers.  Set this_input_filename.
2064         (push_command_line_include): Use this_input_filename not
2065         main_input_filename.
2066
2067 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
2068
2069         * Makefile.in: Depend .pot generation on options.c.
2070         * po/exgettext: Add an extra_files variable containing additional
2071         files to scan.
2072
2073 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
2074
2075         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2076         c_write_global_declarations.
2077
2078         * c-decl.c: Fix typos in several comments.  Remove all
2079         #if 0 blocks; reindent as needed.  Remove unused argument
2080         to declare_parm_level; all callers changed.
2081         * c-parse.in: Update calls to declare_parm_level.  Avoid
2082         issuing a double warning in some circumstances.
2083         * c-typeck.c: Update calls to declare_parm_level.
2084         * c-tree.h: Update prototype of declare_parm_level.
2085
2086         * c-pragma.c (apply_pragma_weak): Don't complain about a
2087         redundant #pragma weak.
2088
2089         * objc/objc-act.c (forward_declare_categories,
2090         build_selector_reference_decl, build_class_reference_decl,
2091         build_objc_string_decl, synth_forward_declarations,
2092         build_protocol_reference): Set TREE_PUBLIC on synthetic
2093         forward decl to 0, consistent with eventual definition.
2094         Correct comments to match.
2095
2096         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2097         in regexp that don't form a range expression.
2098         * fixinc/fixincl.def: Regenerate.
2099
2100 2003-07-17  Richard Henderson  <rth@redhat.com>
2101
2102         PR target/10907
2103         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2104         even with !TARGET_CONST_GP.
2105         (ia64_function_ok_for_sibcall): Reject non-local functions.
2106
2107 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
2108
2109         * c-common.c (c_estimate_num_insns_1): Don't handle
2110         METHOD_CALL_EXPR.
2111         * expr.c (safe_from_p): Likewise.
2112         * gengtype.c (adjust_field_tree_exp): Likewise.
2113         * stmt.c (warn_if_unused_value): Likewise
2114         * tree.c (first_rtl_op): Likewise.
2115         * tree.def: Don't define METHOD_CALL_EXPR.
2116         * java/lang.c (java_estimate_num_insns_1): Don't handle
2117         METHOD_CALL_EXPR.
2118
2119 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2120
2121         PR other/11466
2122         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2123         and its restrictions for the SPARC64 port.
2124         Move the entry of "-mimpure-text" before that of "-mv8".
2125
2126 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
2127             Phil Edwards <phil@jaj.com>
2128
2129         * doc/install.texi (*-*-solaris2*): Document the step-by-step
2130         procedure to bootstrap and install.
2131         Document the preference for the legacy Sun tools in /usr/bin
2132         over the POSIX tools in /usr/xpg4/bin for the build process.
2133
2134 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
2135
2136         * c.opt: Document Uncodumented; use it.  Document ObjC options.
2137         * opts.c (print_filtered_help): Skip undocumented switches.
2138         * opts.h (CL_UNDOCUMENTED): New.
2139         * opts.sh: Handle Undocumented.
2140         * toplev.c (documented_lang_options): Prevent its becoming empty.
2141 objc:
2142         * lang-options.h: Remove.
2143
2144 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
2145
2146         * loop.c (check_ext_dependent_givs): Pass const struct loop *
2147         instead of struct loop_info * as argument.  Accept BIVs with
2148         increment +/- 1 provided there is a friendly exit test against
2149         a loop-invariant value.
2150         (strength_reduce): Adapt call to check_ext_dependent_givs.
2151
2152 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
2153             Con Bradley <con.bradley@superh.com>
2154
2155         * sh-protos.h (sh_get_pr_initial_val): Declare.
2156         * sh.c (regno_reg_class): Make its elements type enum reg_class.
2157         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
2158         and live_regs_mask arguments.  Changed all callers.
2159         (save_schedule_s): New structure.
2160         (save_schedule): New typedef.
2161         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2162         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2163         In interrupts handlers, also save registers that are usually
2164         partially saved, and make sure there is at least one general purpose
2165         register saved if a target register needs saving.
2166         Add casts in comparisons to avoid warnings.
2167         (sh_media_register_for_return): return -1 for interrupt handlers.
2168         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2169         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
2170         registers used are available.
2171         Set RTX_FRAME_RELATED_P where appropriate.
2172         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2173         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2174         (initial_elimination_offset): Likewise.
2175         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2176         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2177         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2178         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2179         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2180         and for target registers.
2181         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2182         (regno_reg_class): Make its elements type enum reg_class.
2183         (CONSTRAINT_LEN): Don't use isdigit.
2184         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2185         (FUNCTION_ARG): Add parentheses to avoid warnings.
2186         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2187         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2188         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2189         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2190         * sh.md (xordi3+1): Remove unused variable regno.
2191         (return_media): Check that tr0 is available before using it.
2192
2193 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
2194
2195         * c.opt: Document more options.
2196
2197 2003-07-16  Roger Sayle  <roger@eyesopen.com>
2198
2199         * combine.c (subst): Also handle (subreg (const_double ...)) case
2200         if created by a substitution, by using the original inner mode.
2201
2202 2003-07-16  Roger Sayle  <roger@eyesopen.com>
2203
2204         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2205         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2206         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
2207
2208 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
2209
2210         * doc/install.texi (--without-headers): New.
2211
2212         Partial Fix PR/10129
2213         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2214         (machopic_output_function_base_name): New; print the true pic label.
2215         (machopic_classify_ident): Pic Base is always a defined data.
2216         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2217         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2218
2219         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2220         if they are not floating point registers.
2221
2222         PR c/10962
2223         * ggc.h: Add header guards.
2224         * c-decl.c (finish_struct): Sort fields if
2225         number greater than 15 and there are no
2226         anonymous structs/unions.
2227         * c-common.h: Include ggc.h.
2228         (sorted_fields_type): New struct.
2229         (field_decl_cmp): New prototype.
2230         (resort_sorted_fields): New prototype.
2231         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2232         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2233         as s, removing other fields.
2234         * c-typeck.c (lookup_field): Use s in lang_type.
2235         These were mostly moved from cp/class.c:
2236         * c-common.c (field_decl_cmp): New static function.
2237         (field_decl_cmp): New function.
2238         (resort_sorted_fields): New function.
2239
2240 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
2241
2242         * config/darwin.c (machopic_select_section): Use decl_readonly_section
2243         to do most of the work.
2244
2245 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
2246
2247         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2248         * config/mmix/mmix.c: Convert functions to ISO C90.
2249         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2250         formatting.
2251         (mmix_get_hard_reg_initial_val): Tweak section head comment.
2252
2253 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
2254
2255         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2256
2257 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
2258
2259         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2260         (uw_update_context_1): Use it.
2261         * config/rs6000/rs6000.c (insn_after_throw): Remove.
2262         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2263         in parent frame if _Unwind_* called directly instead of through
2264         .plt.
2265         (rs6000_emit_eh_toc_restore): Remove.
2266         (rs6000_emit_prologue): Update stack pointer before doing any saving
2267         if current_function_calls_eh_return.  Generate unwind info for $r2.
2268         (rs6000_emit_epilogue): Restore stack pointer after doing all
2269         restoring if current_function_calls_eh_return.  Restore $r2.
2270         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2271         * config/rs6000/rs6000.md (eh_return): Remove call to
2272         rs6000_emit_eh_toc_restore.
2273         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2274         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2275
2276 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
2277
2278         * expr.c (emit_block_move): Don't move anything if size is const 0.
2279         (clear_storage): Test against const0_rtx instead of comparing INTVAL
2280         against 0.
2281
2282 2003-07-15  David S. Miller  <davem@redhat.com>
2283
2284         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2285         emit nop if the last real insn is CALL_INSN.
2286
2287 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
2288
2289         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2290         as "nul".
2291         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2292
2293 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
2294
2295         * config/i386/winnt.c (associated_type): Artificial methods are not
2296         affected by the import/export status of their class unless they are
2297         COMDAT.
2298         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2299
2300         * config/i386/winnt.c: Fix GCC copyright comment.
2301
2302 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
2303
2304         PR c++/11531
2305         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2306         not recursing on hard error.
2307         (diagnostic_for_decl): Likewise.
2308         * diagnostic.def: Rearrange.
2309
2310 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
2311
2312         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2313         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2314
2315 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
2316             Richard Henderson  <rth@redhat.com>
2317
2318         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2319         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2320         (_Unwind_SetGR): Likewise.
2321         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2322         (Unwind_SpTmp): New typedef.
2323         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2324         (uw_update_context): Use _Unwind_GetPtr.
2325         (init_dwarf_reg_size_table): Move above uw_init_context_1.
2326         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2327         Use _Unwind_SetSpColumn.
2328         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2329         Use _Unwind_GetPtr.
2330
2331 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
2332
2333         * c.opt: Document more options.
2334         * toplev.c (documented_lang_options): Remove all local help strings.
2335
2336 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
2337
2338         PR debug/11473
2339         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2340         base classes.
2341
2342 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
2343
2344         PR target/10795
2345         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2346         swap comparison operands if doing so would generate an
2347         unrecognizable insn.
2348
2349 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
2350
2351         PR optimization/11320
2352         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2353         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2354         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2355         current_sched_info->compute_jump_reg_dependencies. Record which
2356         registers are used and which registers are set by the jump.
2357         Clear deps->reg_conditional_sets after a barrier.
2358         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2359         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2360         (init_deps): Initialize reg_conditional_sets.
2361         (free_deps): Clear reg_conditional_sets.
2362         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2363         Mark registers live on entry of the fallthrough block and conditionally
2364         set as set by the jump. Mark registers live on entry of non-fallthrough
2365         blocks as used by the jump.
2366         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2367         Mark new parameters as unused.
2368
2369 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2370
2371         * doc/invoke.texi: Resync MIPS -march documentation.
2372
2373 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2374
2375         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2376         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2377         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2378         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2379         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2380         (mips_issue_rate): Handle PROCESSOR_R9000.
2381         (mips_use_dfa_pipeline_interface): Likewise.
2382         * config/mips/9000.md: New file.
2383         * config/mips/mips.md: Include it.
2384         (define_attr cpu): Add r9000.
2385         (mulsi3_mult3): Use "mul" for rm9000 code.
2386
2387 2003-07-15  Stan Cox  <scox@redhat.com>
2388
2389         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2390         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2391         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2392         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2393         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2394         (mips_issue_rate): Handle PROCESSOR_R7000.
2395         (mips_use_dfa_pipeline_interface): Likewise.
2396         * config/mips/7000.md: New file.
2397         * config/mips/mips.md: Include it.
2398         (define_attr cpu): Add r7000.
2399         (mulsi3_mult3): Use "mul" for rm7000 code.
2400
2401 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
2402
2403         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
2404         the conditional move patterns.
2405         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2406         Check for condmove type.
2407         (ir_vr54_arith): Add move type.
2408         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2409         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2410
2411 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
2412
2413         * c-opts.c (print_help): Remove.
2414         (c_common_handle_option): Don't handle --help.
2415         * c.opt: Document some options.
2416         (--help): Remove.
2417         * opts.c (print_filtered_help): New.
2418         (print_help): Use it.
2419
2420 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
2421
2422         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2423         * tree.c: (build_common_tree_nodes_2): Likewise.
2424         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2425         (V4DF_type_node): New.
2426
2427         * c-opts.c (push_command_line_include): Don't free deferred_opts,
2428         we'll need it.
2429         (finish_options): Reset init_cursor.
2430
2431 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
2432
2433         * expr.c (expand_assignment): Remove an unused argument
2434         SUGGEST_REG.
2435         * expr.h: Update the prototype.
2436         * function.c: Update the callers.
2437         * stmt.c: Likewise.
2438
2439 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
2440
2441         PR debug/11098
2442         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2443         as DECL_ABSTRACT.
2444
2445 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2446
2447         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2448         with __cplusplus, not "we must use the C++ compiler's type"
2449         * fixinc/inclhack.def (void_null): Note that Interix needs this.
2450         * fixinc/fixincl.x: Regenerate.
2451
2452 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
2453
2454         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2455         and unseen_objects from the global data before calling
2456         __deregister_frame_info_bases.
2457         (examine_objects): Insert objects into the seen_objects list,
2458         not unseen_objects.
2459         (_Unwind_Find_FDE): Always unlock the global object lists, even if
2460         we couldn't allocate a data structure to put in it.
2461
2462         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2463         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2464         (SET_TYPE_PROTOCOL_LIST): New.
2465         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2466         (get_object_reference): Likewise.
2467
2468 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
2469
2470         * cfglayout.c (locator_file): Break out from ....
2471         (insn_file): ... here.
2472         (locator_line): Break out from ....
2473         (insn_line): ... here.
2474         * rtl.h (locator_file, locator_line): Declare.
2475         (final_start_function): Set proper line/file info.
2476
2477 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2478
2479         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2480         handled by pp_c_cast_expression.
2481
2482 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2483
2484         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2485         allocate 32768 bytes of stack.  Use addition rather than subtraction
2486         when a single insn is enough.
2487         * config/mips/mips.md: Remove insns and splitters for subtracting
2488         constants.
2489         (subsi3): Only accept register operands.
2490         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
2491         (subdi3_internal_3, subsi3_internal_2): Likewise.
2492         (casesi): Use expand_binop to subtract the lower bound.
2493
2494 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2495
2496         * config/mips/mips.c (mips_in_small_data_p): Don't handle
2497         TARGET_MIPS16 specially.
2498
2499 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
2500
2501         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2502         mips_output_aligned_bss.
2503         * config/mips/linux.h: Likewise.
2504         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2505         * config/mips/mips.c (mips_output_aligned_bss): New function.
2506
2507         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2508         * config/mips/elf64.h: Likewise.
2509
2510         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2511         mips_declare_object_name.
2512         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2513         * config/mips/elf64.h: As for elf.h.
2514         * config/mips/iris6.h: Likewise.
2515         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2516         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2517         do...while (0) block.
2518         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2519         (mips_finish_declare_object): Declare.
2520         * config/mips/mips.c (mips_declare_object_name): New function.
2521         (mips_finish_declare_object): New function.
2522
2523         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2524         * config/mips/linux.h: Likewise.
2525
2526         * config/mips/mips.c (inside_function): Delete.
2527         (file_in_function_warning, ignore_line_number): Delete.
2528         (mips_output_filename): Don't warn about changing filenames within
2529         a function.
2530         (mips_output_lineno): Update accordingly.
2531         (mips_output_function_prologue): Don't reset the deleted variables.
2532         * config/mips/mips.h (inside_function): Delete.
2533         (file_in_function_warning, ignore_line_number): Delete.
2534
2535         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2536         * config/mips/elf64.h: Likewise.
2537         * config/mips/openbsd.h: Likewise.
2538         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2539         * config/mips/linux.h: Likewise.
2540         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2541         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2542
2543         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2544         to the list of include files when using gas.
2545         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2546         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2547         * config/mips/elf64.h: Likewise.
2548         * config/mips/iris5.h: Likewise.
2549         * config/mips/linux.h: Likewise.
2550         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2551         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2552         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2553         * config/mips/sdb.h: ...this new file.
2554
2555 2003-07-14  Douglas Rupp  <rupp@gnat.com>
2556
2557         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2558         argument to getcwd; use fixed buffer instead.
2559
2560 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
2561
2562         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2563         * fixinc/fixinc.wrap: Delete.
2564
2565 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
2566
2567         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2568         don't have 2.
2569
2570 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
2571
2572         * ggc-page.c (struct globals): Add new fields to keep track of the
2573         total allocated memory and overhead.
2574         (ggc_print_statistics): Print them.
2575         (ggc_alloc): Keep track of the total allocated memory and the
2576         overhead.
2577
2578         * tree.c (dump_tree_statistics): Increase spacing.
2579         (enum tree_node_kind): Move to ...
2580         * tree.h (enum tree_node_kind): ... here.
2581         (tree_node_counts, tree_node_sizes): Declare.
2582
2583 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
2584
2585         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2586
2587 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2588
2589         PR optimization/11440
2590         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2591         SIGN_EXTRACT SETs.
2592
2593 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
2594
2595         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2596         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2597         (emit_group_load, emit_group_store): Adjust declarations.
2598         Remove most occurrences of #ifdef TREE_CODE.
2599         * expr.c (emit_group_load): Add "type" param, and use
2600         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
2601         aligned accesses if !SLOW_UNALIGNED_ACCESS.
2602         (emit_group_store): Likewise.
2603         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2604         emit_group_load and emit_group_store calls.
2605         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
2606         BLOCK_REG_PADDING to determine whether we need endian_correction.
2607         (load_register_parameters): Localize vars.  Handle shifting of
2608         small values to the correct end of regs.  Adjust emit_group_load
2609         call.
2610         (expand_call, emit_library_call_value_1): Adjust emit_group_load
2611         and emit_group_store calls.
2612         * function.c (assign_parms): Set mem alignment for stack slots.
2613         Adjust emit_group_store call.  Store values at the "wrong" end
2614         of regs to the stack.  Use BLOCK_REG_PADDING.
2615         (locate_and_pad_parm): Save where_pad.
2616         (expand_function_end): Adjust emit_group_load call.
2617         * stmt.c (expand_value_return): Adjust emit_group_load call.
2618         * Makefile.in (calls.o): Depend on $(OPTABS_H).
2619         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2620         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2621         (MUST_PASS_IN_STACK): Define.
2622         (BLOCK_REG_PADDING): Define.
2623         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2624         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2625         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2626         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2627         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2628
2629 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
2630
2631         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2632
2633 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2634
2635         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2636         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2637
2638 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2639
2640         PR other/11123
2641         * toplev.c: Don't cut off option names.
2642
2643 2003-07-13  Andreas Jaeger  <aj@suse.de>
2644
2645         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2646         to integer of different size.
2647
2648 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
2649
2650         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2651         to (eq (and X 1) 0).
2652
2653 2003-07-13  Andreas Jaeger  <aj@suse.de>
2654
2655         * config.gcc: Add pmmintrin.h for x86_64-*-*.
2656
2657 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
2658
2659         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2660         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2661         list.  Move these all together down by cpplib.
2662
2663         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2664         definition of CPPCHAR_SIGNED_T.
2665
2666         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2667         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2668         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2669
2670         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2671         * cppinit.c (cpp_create_reader): Likewise.
2672
2673         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2674         * cpptrad.c: Likewise.  All callers changed.
2675         * cpplib.c: All callers changed.
2676         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2677         * hashtable.h: Define GTY(x) to nothing here too.
2678
2679 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2680
2681         * stor-layout.c (compute_record_mode): Remove very obsolete test
2682         that forces BLKmode for records with fields crossing word boundary.
2683
2684 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
2685
2686         * Makefile.in: Remove orphan reference to acconfig.h.
2687
2688 2003-07-13  Andreas Jaeger  <aj@suse.de>
2689
2690         * cgraphunit.c: Convert prototypes to ISO C90.
2691
2692 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
2693
2694         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2695         (for OpenBSD).
2696         * fixinc/fixincl.x: Rebuild.
2697
2698 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
2699
2700         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2701         i?86-*-*.  Use correct name of cache variable.
2702         * configure: Regenerate.
2703
2704 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
2705
2706         * config/alpha/alpha.c: Fix comment typos.
2707         * config/alpha/alpha.md: Likewise.
2708         * config/arm/arm.c: Likewise.
2709         * config/arm/arm.md: Likewise.
2710         * config/arm/lib1funcs.asm: Likewise.
2711         * config/avr/avr.md: Likewise.
2712         * config/arm/README-interworking: Fix typos.
2713
2714 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
2715
2716         * c-format.c: Fix comment formatting.
2717         * c-typeck.c: Likewise.
2718         * coverage.c: Likewise.
2719         * cppcharset.c: Likewise.
2720         * cpplib.c: Likewise.
2721         * dbxout.c: Likewise.
2722         * gcov-io.h: Likewise.
2723         * toplev.c: Likewise.
2724
2725 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2726
2727         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
2728         fix.
2729
2730 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
2731
2732         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
2733         uses three-argument AC_DEFINE so no acconfig.h entries are
2734         needed.
2735         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
2736         which contains the GAS version number as a scaled integer.
2737         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
2738         ability to check for ELF assembler.
2739         (gcc_GAS_CHECK_FEATURE): New macro.
2740         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
2741         assembler feature checks using gcc_GAS_CHECK_FEATURE.
2742         Use three-argument AC_DEFINE everywhere.
2743         * acconfig.h: Deleted.
2744         * config.in, configure: Regenerate.
2745
2746 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2747
2748         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
2749         (on OpenBSD).
2750         * fixinc/fixincl.x: Regenerate.
2751
2752         * fixinc/inclhack.def (gnu_types): Improve comment.
2753
2754 2003-07-12  Andreas Jaeger  <aj@suse.de>
2755
2756         * fp-test.c (main): Use ISO C90 prototype.
2757
2758         * version.c: Remove unneded include of ansidecl.h.
2759
2760         * cgraph.h: Convert prototypes to ISO C90.
2761         * cgraph.c: Likewise.
2762         * fix-header.c: Likewise.
2763         * ra.h: Likewise.
2764         * protoize.c: Likewise.
2765
2766 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
2767
2768         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
2769         warning.
2770
2771 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
2772                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2773
2774         * cgraph.c (cgraph_max_uid): New global variable.
2775         (cgraph_node): Set uid field.
2776         (create_edge): Keep inline flags consistent.
2777         (dump_cgraph): Dump more info.
2778         * cgraph.h (struct cgraph_local_info): Remove inline_many and
2779         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
2780         (struct cgraph_global_info): Add insns, calls, cloned_times,
2781         will_be_output.
2782         (struct cgraph_node): Add uid.
2783         (struct cgraph_edge): Add inline_call.
2784         (cgraph_max_uid, cgraph_inline_p): Declare.
2785         * cgraph.c: Include params.h and fibheap.h
2786         (cgraph_mark_functions_to_inline_once): Kill.
2787         (INSNS_PER_CALL): New constant.
2788         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
2789         static variables.
2790         (cgraph_finalize_function): Do not analyze inlining.
2791         (cgraph_finalize_compilation_unit): Set inlining attributes.
2792         (cgraph_mark_functions_to_output): More consistency checks.
2793         (cgraph_optimize_function): Set current_function_decl to NULL.
2794         (cgraph_expand_function): Use new inline flags.
2795         (cgraph_postorder): Expand from cgraph_expand_functions.
2796         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
2797         (cgraph_inlined_into, cgraph_inlined_callees,
2798         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
2799         cgraph_mark_inline, cgraph_check_inline_limits,
2800         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
2801         cgraph_decide_inlining, cgraph_inline_p): New functions.
2802         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
2803         PARAM_INLINE_UNIT_GROWTH): New parameters.
2804         * tree-inline.c (struct inline_data): New field current_decl.
2805         (expand_call_inline): Avoid forward declarations; use
2806         inlinable_function_p.
2807         (optimize_inline_calls): Set id.current_decl.
2808
2809 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
2810
2811         * configure.in: Remove wrongly added definition of
2812         local_prefix.
2813         * configure: Regenerate.
2814
2815 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
2816
2817         * rtl.def (NOTE): Do not use padding.
2818
2819 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
2820
2821         * doc/install.tex: Update required binutils for i?86-*-linux*
2822
2823 2003-07-11  Richard Henderson  <rth@redhat.com>
2824
2825         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
2826
2827 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
2828
2829         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
2830         TRANSLATION_UNIT_DECL as top_level.
2831
2832 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
2833
2834         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
2835         then fall back to cmpstrM.
2836         * builtins.c (expand_builtin_memcmp): Likewise.
2837         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
2838         (s390_expand_cmpmem): ... this.
2839         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
2840         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
2841         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
2842         to s390_expand_cmpmem.
2843         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
2844         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
2845         to cmpmem*.
2846         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
2847         cmpstr* patterns.
2848         * doc/md.texi (cmpstrM): Describe as String compare insn, not
2849         Block compare insn.
2850         (cmpmemM): Add.
2851
2852 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
2853
2854         * config/i386/freebsd.h (SET_ASM_OP): Remove.
2855         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
2856         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
2857          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
2858
2859 2003-07-11  Richard Henderson  <rth@redhat.com>
2860
2861         * function.c (assign_parms): Don't recombine complex args if
2862         fnargs is unchanged from orig_fnargs.
2863         (split_complex_args): Return args without complex before copying.
2864         Re-layout the modified parameters.
2865
2866 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
2867
2868         * regclass.c (choose_hard_reg_mode): Add third argument.
2869         Changed all callers.
2870         * rtl.h (choose_hard_reg_mode): Update declaration.
2871         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2872         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
2873
2874 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
2875
2876         * c-decl.c (finish_decl): Handle 'used' here...
2877         * cgraphunit.c (cgraph_finalize_function): ... and here ...
2878         * c-common.c: (handle_used_attribute): ... not here.
2879
2880         * configure.in (onstep): Support --enable-intermodule.
2881         * Makefile.in (OBJS-common): New.
2882         (OBJS-md): New.
2883         (OBJS-archive): New.
2884         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
2885         (OBJS-onestep): New.
2886         (libbackend.a): Support @onestep@.
2887         (libbackend.o): New.
2888         * configure: Regenerate.
2889
2890         * c-common.h (c_reset_state): New prototype.
2891         (c_parse_file): New prototype.
2892         (finish_file): Move prototype from c-tree.h.
2893         * c-decl.c: Include <hashtab.h>.
2894         (builtin_decls): New.
2895         (current_file_decl): New.
2896         (duplicate_decls): Add extra parameter. Change all callers.  Don't
2897         output duplicate common symbols.
2898         (link_hash_hash): New.
2899         (link_hash_eq): New.
2900         (poplevel): Handle popping of the top level.
2901         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
2902         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
2903         (pushdecl_top_level): Likewise.
2904         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
2905         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
2906         (finish_decl): Handle TRANSLATION_UNIT_DECL.
2907         (merge_translation_unit_decls): New.
2908         (c_write_global_declarations): New.
2909         (c_reset_state): New.
2910         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
2911         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
2912         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
2913         TRANSLATION_UNIT_DECL.
2914         (c_objc_common_finish_file): Call merge_translation_unit_decls.
2915         * c-opts.c (in_fnames): Rename from in_fname.
2916         (c_common_decode_option): Handle multiple input filenames.
2917         (c_common_post_options): Likewise.
2918         (c_common_parse_file): Likewise; also, call c_parse_file rather than
2919         yyparse.
2920         * c-parse.in: Move cleanup code to c_parse_file.
2921         (free_parser_stacks): Move contents to c_parse_file.
2922         (c_parse_file): New.
2923         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
2924         for integer types.
2925         (C_DECL_FILE_SCOPE): New.
2926         (finish_file): Move prototype to c-common.h.
2927         (merge_translation_unit_decls): New prototype.
2928         (comptypes): Add extra parameter to prototype.
2929         (c_write_global_declarations): New prototype.
2930         * c-typeck.c (tagged_types_tu_compatible_p): New.
2931         (function_types_compatible_p): Add extra parameter, change all callers.
2932         (type_lists_compatible_p): Likewise.
2933         (comptypes): Likewise.
2934         (struct tagged_tu_seen): New.
2935         (tagged_tu_seen_base): New.
2936         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
2937         (c_mark_addressable): Remove #if 0 code.
2938         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
2939         comment explaining why it shouldn't have to.
2940         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
2941         options.
2942         * cppinit.c (cpp_read_next_file): New.
2943         (cpp_read_main_file): Use it.
2944         * cpplib.c (undefine_macros): New.
2945         (cpp_undef_all): New.
2946         * cpplib.h (cpp_read_next_file): Prototype.
2947         (cpp_undef_all): Prototype.
2948         * langhooks-def.h (write_global_declarations): Remove prototype.
2949         * toplev.h (write_global_declarations): Add prototype.
2950         * tree.c (decl_type_context): Use switch statement, handle
2951         TRANSLATION_UNIT_DECL.
2952         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
2953         (TRANSLATION_UNIT_DECL): New kind of tree.
2954         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
2955         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
2956         * doc/invoke.texi: Make attempt to document new functionality.
2957
2958         2003-05-19  Per Bothner <bothner@apple.com>
2959
2960         * gcc.c (combine_inputs): New.
2961         (process_command): Set combine_inputs.
2962         (do_spec_1): Handle combine_inputs.
2963         (main): Likewise.
2964
2965 2003-07-10  James E Wilson  <wilson@tuliptree.org>
2966
2967         PR optimization/9745
2968         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
2969         loop_insn_emit_before.
2970         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2971
2972 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
2973
2974         * cppcharset.c: Fix comment.
2975         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
2976         (EILSEQ): #define to EINVAL if not already defined.
2977         (convert_using_iconv): #if out when !HAVE_ICONV.
2978         (init_iconv_desc): Handle !HAVE_ICONV here...
2979         (cpp_init_iconv): ...not here.
2980
2981 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
2982
2983         * common.opt: More --help messages.
2984         * opts.c (print_help): Use puts().
2985         * toplev.c (f_options): Remove help text.
2986         (display_help): Don't dump f_options.
2987
2988 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
2989
2990         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2991         Move i?86-*-interix* to the don't-fix list.
2992         * fixinc/fixinc.interix: Delete with extreme prejudice.
2993
2994 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
2995
2996         PR bootstrap/10758
2997         * doc/install.texi: Document requirements for ia64-*-hpux* target.
2998
2999 2003-07-10  Roger Sayle  <roger@eyesopen.com>
3000
3001         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3002
3003 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
3004
3005         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3006         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3007         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3008         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3009         convert_no_conversion, convert_using_iconv): New functions.
3010         (APPLY_CONVERSION): New macro.
3011         (struct conversion, conversion_tab): New data structure.
3012         (init_iconv_desc): Check conversion_tab for a custom conversion
3013         primitive before trying to use iconv.
3014         (convert_cset): Deleted.
3015         (cpp_init_iconv): Use UTF- terminology, not UCS-.
3016         (_cpp_destroy_iconv): Update to match.
3017         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3018         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3019         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3020         (_cpp_interpret_string_notranslate): New function, moved here
3021         from cpplib.c.
3022
3023         * cpphash.h (convert_f, struct cset_converter): New types.
3024         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3025         are now struct cset_converter, not bare iconv_t.
3026         Update prototypes.
3027         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3028         all callers changed.
3029
3030 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
3031
3032         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
3033         to opts.sh command line.
3034         * opts.sh: Write to temporary files with a move-if-change at the end.
3035
3036 2003-07-10  Denis Chertykov  <denisc@overta.ru>
3037             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3038
3039         * combine.c (gen_binary): Handle the CLOBBER rtx and
3040         don't build a binary operation with it.
3041
3042 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3043
3044         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3045         store_killed_after, store_killed_before): Keep track of the correct
3046         dependency function to use.
3047
3048 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
3049         * toplev.c (do_compile): Don't try to open dump files before
3050         lang_dependent_init initializes dump_base_name.
3051
3052 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3053
3054         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3055         Use ARRAY_SIZE.
3056         * config/frv/frv.c (frv_expand_builtin): Likewise.
3057         * config/sh/sh.c (sh_media_init_builtins): Likewise.
3058
3059 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
3060
3061         PR c++/10032
3062         * doc/invoke.texi (C++ Dialect Options): Change documentation of
3063         -fpermissive.
3064
3065 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
3066
3067         * tm.texi (RETURN_ADDR_OFFSET): Document.
3068
3069 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
3070
3071         * gcov-io.h: Update documentation.
3072         (GCOV_UNSIGNED2STRING): New.
3073         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3074         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3075         GCOV_TAG_SUMMARY_LENGTH): Adjust.
3076         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3077         GCOV_TAG_COUNTER_NUM): New.
3078         (GCOV_BLOCK_SIZE): Number of words.
3079         (gcov_var): Adjust buffer type.
3080         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3081         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3082         count, not byte count.
3083         (gcov_open): Adjust overread init.
3084         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3085         gcov_write_string, gcov_write_tag, gcov_write_length,
3086         gcov_write_tag_length): Adjust.
3087         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3088         (gcov_sync, gcov_seek): Adjust.
3089         * gcov-dump.c (print_usage): Show gcc version only.
3090         (dump_file): Use GCOV_UNSIGNED2STRING.
3091         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3092         * gcov.c (print_version): Show gcc version only.
3093         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3094         GCOV_TAG_*_NUM macros.
3095         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3096         GCOV_TAG_COUNTER_LENGTH.
3097         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3098         Use GCOV_TAG_COUNTER_NUM.
3099         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3100         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3101
3102 2003-07-10  Andreas Schwab  <schwab@suse.de>
3103
3104         * gcov-dump.c (dump_file): Fix missing address operator.
3105
3106 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
3107
3108         PR c/11449
3109         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3110         of HOST_WIDE_INT.
3111         (fold_single_bit_test): If sign_bit_p() fails, assume that the
3112         bit being tested is not a sign bit.
3113
3114 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
3115
3116         * config/h8300/h8300.md (a peephole2): New.
3117
3118 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
3119
3120         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
3121         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3122         from ld-linux.so.2 to ld.so.1.
3123         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
3124         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3125         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3126         nor -Wl,-rpath-link.
3127         (LIB_SPEC): Add -rpath-link if !static.
3128         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
3129         * config/mn10300/mn10300.c (mn10300_protect_label): New
3130         variable.
3131         * config/mn10300/linux.h (PRINT_OPERAND,
3132         PRINT_OPERAND_ADDRESS): Set it during their execution.
3133         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3134         mn10300_protect_label is set.
3135         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3136         -Wl,-rpath-link.
3137         (LIB_SPEC, STARTFILE_SPEC): Define.
3138         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
3139         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3140         FLOAT_BIT_ORDER_MISMATCH.
3141         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
3142         * config.gcc (am33_2.0-*-linux*): Added.
3143         * config/mn10300/linux.h: New.
3144         * config/mn10300/t-linux: New.
3145
3146 2003-07-10  Andreas Jaeger  <aj@suse.de>
3147
3148         * fold-const.c: Properly wrap prototypes.
3149
3150 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3151
3152         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
3153         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3154         Moved from...
3155         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3156         * config/mn10300/mn10300.h: GTY-declare it.
3157         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
3158         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3159         prototype.  Use incoming RTL argument.
3160         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
3161         * config/mn10300/mn10300.md (int_label): Move C statements...
3162         (GOTaddr2picreg): ... here.
3163         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
3164         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3165         * config/mn10300/mn10300.c (mn10300_encode_section_info):
3166         ... here.  New function.
3167         (TARGET_ENCODE_SECTION_INFO): Define to it.
3168         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
3169         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3170         pattern name.
3171         (mn10300_loadPC): Define as insn splittable after reload.
3172         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
3173         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3174         be defined in .rodata even in PIC, now that the assembler
3175         supports that.
3176         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
3177         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3178         symbol take an underscore prefix.
3179         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3180         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3181         legitimize_pic_address): Declare.
3182         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3183         the PIC register as fixed.
3184         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3185         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3186         PIC.
3187         (LEGITIMATE_PIC_OPERAND_P): Define.
3188         (PIC_OFFSET_TABLE_REGNUM): Define.
3189         (GOT_SYMBOL_NAME): Define.
3190         (SYMBOLIC_CONST_P): Define.
3191         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3192         symbols.
3193         (MN10300_GLOBAL_P): Test it.
3194         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3195         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3196         * config/mn10300/mn10300.c (print_operand): Handle unspec.
3197         (expand_prologue): Set PIC register.
3198         (call_address_operand): Don't match SYMBOL_REFs in PIC.
3199         (legitimize_address): Call legitimize_pic_address.
3200         (legitimize_pic_address): New fn.
3201         (legitimate_pic_operand_p): New fn.
3202         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3203         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3204         UNSPEC_PLT): New constants.
3205         (pop_pic_reg): New insn.
3206         (movsi): Adjust non-PIC addresses.
3207         (builtin_setjmp_receiver): Restore the PIC register.
3208         (casesi): New insn.
3209         (call): Adjust non-PIC addresses.
3210         (int_label, GOTaddr2picreg): New expands.
3211         (am33_loadPC): New insn.
3212         (mn10300_loadPC): New expand.
3213         (call_next_insn): New insn.
3214         (add_GOT_to_pic_reg): New expand.
3215         (symGOT2reg, symGOT2reg_i): New expands.
3216         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3217         (sym2PIC, sym2PLT): New expands.
3218
3219 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
3220
3221         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3222         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
3223         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3224         to flag_unsafe_math_optimizations.
3225         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3226         * config/mn10300/mn10300.c (expand_prologue): Mark
3227         FP-register-saving insns as frame-related.
3228         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
3229         * config/mn10300/mn10300.c
3230         (mn10300_get_live_callee_saved_regs): Don't search past
3231         LAST_EXTENDED_REGNUM.
3232         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3233         * config/mn10300/mn10300.md: Remove excessive line breaks from
3234         `@' output patterns that were accounted as additional
3235         alternatives.
3236         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3237         Re-introduce changes accidentally removed in Richard Sandiford's
3238         2000-12-05's patch.
3239         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3240         Re-instate am33-2 lost in merge from net GCC.
3241         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
3242         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3243         floating-point registers.
3244         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
3245         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3246         pessimizations that had gone in on 2000-05-08.
3247         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
3248         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3249         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
3250         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3251         operand 0.
3252         * (movhi): Likewise.
3253         * (movsi): Likewise.
3254         * (movsf): Likewise.
3255         * (movdi): Likewise.
3256         * (movdf): Likewise.
3257         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
3258         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3259         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3260         (expand_prologue, expand_epilogue): Save and restore FP regs.
3261         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
3262         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3263         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
3264         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3265         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3266         Do not clobber cc0.
3267         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
3268         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3269         Discourage the two-argument, longer opcodes.
3270         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3271         ones.
3272         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3273         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3274         * config/mn10300/mn10300.md (cmpsf): New pattern.
3275         (branch): Test mdep.fpCC and output fbCC.
3276         * config/mn10300/mn10300.c (print_operand): Output conditions.
3277         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3278         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
3279         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3280         mulsf3, divsf3): Use the `F' constraint for FP values.
3281         * config/mn10300/mn10300.c (const_1f_operand): New function.
3282         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3283         * config/mn10300/mn10300.md (sqrtsf2): New expand.
3284         (rsqrtsf2): New insn.
3285         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
3286         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3287         previous check-in.
3288         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
3289         * config/mn10300/mn10300.md (abssf2, negdf2): On
3290         TARGET_AM33_2, expand to...
3291         (abssf2_am33_2, negdf2_am33_2): New insns.
3292         (addsf3, subsf3, mulsf3, divsf3): Likewise.
3293         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3294         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3295         movdi, movdf): Added FP regs.
3296         * invoke.texi (-mam33-2, -mno-am33-2): Document.
3297         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
3298         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3299         New macros.
3300         (REGNO_AM33_2_FP_P): Renamed to...
3301         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3302         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3303         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3304         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3305         regs from GENERAL_REGS.
3306         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
3307         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3308         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3309         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3310         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
3311         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3312         as FP_REGS.
3313         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
3314         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3315         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3316         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3317         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3318         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3319         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3320         AM33/2.0 floating-point registers.
3321         (CONDITIONAL_REGISTER_USAGE): Adjust.
3322         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3323         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3324         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3325         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3326         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3327         (MULTILIB_DIRNAMES): Likewise.
3328         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3329         `__AM33_2__' when `-mam33-2' is given.
3330         (TARGET_AM33_2): Define.
3331         (TARGET_SWITCHES): Adjust.
3332         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3333         when appropriate.
3334
3335 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
3336
3337         * doc/install.texi: Add missing @.
3338
3339 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
3340
3341         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3342
3343 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
3344
3345         PR/11144
3346         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3347
3348 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
3349
3350         PR bootstrap/11043
3351         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3352         "x-crtfini.o" with "crtinit.o", "crtfini.o".
3353
3354         * fixinc/inclhack.def (limits_ifndefs): Add select test.
3355         * fixinc/fixincl.x: Rebuild.
3356
3357         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
3358         * fixinc/fixincl.x: Rebuild.
3359
3360 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
3361
3362         * doc/install.texi (Configuration): Document the valgrind option
3363         to --enable-checking.
3364
3365 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
3366
3367         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3368
3369 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3370
3371         * c-lex.c (cb_ident): Cast cstr.text to const char *.
3372
3373 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3374
3375         * gcov-io.h: Update documentation.
3376         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3377         GCOV_NOTE_MAGIC.
3378         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3379         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3380         (struct gcov_var): Change buffer's type. Add endian flag.
3381         (gcov_open): Remove mode in libgcov.
3382         (gcov_magic): Prototype.
3383         * gcov-io.c (from_file): New.
3384         (gcov_open): Clear endian flag.
3385         (gcov_magic): New.
3386         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3387         pointers.
3388         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3389         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3390         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3391         * gcov-iov.c (main): Correct cast.
3392         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3393         conversion.
3394         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3395         (coverage_init): Use GCOV_NOTE_SUFFIX.
3396         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3397         Rename to gcov_version, and return flag.
3398         (gcov_exit): Use gcov_version.
3399         (__gcov_init): Use gcov_version.
3400         * Makefile.in (coverageexts): Update.
3401         * gcov.c (print_version): Remove endianness conversion.
3402         (create_file_names): Use GCOV_NOTE_SUFFIX.
3403         (read_graph_file): Use gcov_magic.
3404         (read_count_file): Likewise.
3405         * gcov-dump.c (dump_file): Remove endianness conversion, use
3406         gcov_magic.
3407
3408 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3409
3410         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3411         coverage is on.
3412         * configure: Regenerated.
3413         * Makefile.in (ALL_CFLAGS): Correct its comment.
3414
3415 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
3416
3417         * fold-const.c (make_range): Do not access operand 1 for a
3418         zero-operand operator.
3419
3420 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
3421
3422         * toplev.c (warn_dummy, W_options): Die.
3423         (display_help): Don't print W_options.
3424         * common.opt: Add W_options help from toplev.c.
3425
3426 2003-07-09  Andreas Jaeger  <aj@suse.de>
3427
3428         * opts.c (wrap_help): Only pass int arguments as arguments to
3429         printf's '*' modifier.  Change argument of function.
3430
3431 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
3432
3433         * doc/invoke.texi: Fix misspelling of "@item".
3434
3435 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
3436
3437         * config/i386/i386.md: Remove an old comment about
3438         NOTICE_UPDATE_CC.
3439
3440 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
3441
3442         * cgraph.c (cgraph_node_name): New function.
3443         (dump_cgraph): Use it.
3444         * cgraph.h (cgraph_dump_file): Declare.
3445         (cgraph_node_name): Declare.
3446         * cgraphunit.c: Include timevar.h
3447         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3448         (cgraph_optimize_function): Use TV_INTEGRATION.
3449         (cgraph_mark_local_functions): reorganize dumps.
3450         (cgraph_mark_functions_to_inline_once): Likewise.
3451         (cgraph_optimize): Likewise; use timevar.
3452         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3453         * toplev.c (dump_file_index): Add DFI_cgraph.
3454         (dump_file_info): Likewise.
3455         (cgraph_dump_file): New global variable.
3456         (do_compile): Open and close cgraph dump.
3457         * invoke.texi (-d): Document new flag; renumber.
3458
3459 2003-07-08  Roger Sayle  <roger@eyesopen.com>
3460
3461         PR c/11370
3462         * calls.c (emit_call_1): Don't bother popping the arguments off of
3463         the stack after a noreturn function call;  The adjustment is dead.
3464         (expand_call): Likewise.
3465
3466 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
3467
3468         * expr.c (MOVE_MAX_PIECES): Move from here...
3469         * defaults.h (MOVE_MAX_PIECES): ... to here.
3470
3471 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
3472
3473         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3474
3475 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3476
3477         * genattr.c (internal_dfa_insn_code): Don't prototype.
3478         * genattrtab.c (attr_desc): Add `static_p' field.
3479         (expand_units): Make blockage range and ready cost functions
3480         static.
3481         (write_attr_get): Don't add extern prototypes in C file.  Mark
3482         static functions as appropriate.
3483         (find_attr, make_internal_attr): Initialize static_p.
3484         * genattrtab.h (ATTR_STATIC): New macro.
3485         * genautomata.c (output_internal_reset_func): Mark output function
3486         as inline.
3487         (make_internal_dfa_insn_code_attr): Mark output function as static.
3488
3489 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3490
3491         * genattrtab.h: Add new macros for attr `special' flags.
3492         * genattrtab.c (attr_desc): Reorder/resize fields better.
3493         Use attr `special' macros in all calls to make_internal_attr.
3494         * genautomata.c: Likewise.
3495
3496 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
3497
3498         * c-common.c (c_estimate_num_insns_1): New static function.
3499         (c_estimate_num_insns): New global function.
3500         * c-common.h (DECL_NUM_STMTS): Rename to...
3501         (DECL_ESTIMATED_INSNS): ... this.
3502         (c_estimate_num_insns): Declare.
3503         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3504         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3505         * c-semantics.c (add_stmt): Do not account statements.
3506         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3507         New.
3508         * langhooks.h (lang_hooks_for_tree_inlining): Add
3509         estimate_num_insns
3510         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3511         to 100.
3512         (max-inline-insns): set to 300.
3513         (min-inline-insns): set to 10.
3514         * tree-inline.c (struct inline_data): Rename inlined_stmts to
3515         inlined-insns.
3516         (INSNS_PER_STMT): Kill.
3517         (inlinable_function_p): Compute and store body size.
3518         (expand_call_inline): Likewise.
3519         (optimize_inline_calls): Likewise.
3520
3521 2003-07-08  James E Wilson  <wilson@tuliptree.org>
3522
3523         PR target/10021
3524         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3525         loop over new variable t2 instead of t.
3526
3527 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
3528
3529         PR bootstrap/11455
3530         * config/i386/winnt.c: Replace use of error(), warning() with
3531         error_with_decl(), warning_with_decl(),  throughout.
3532
3533 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
3534
3535         * opts.c (wrap_help): Use unsigned int, not size_t.
3536
3537 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
3538
3539         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3540         as .file/.loc directives are incompatible with linker relaxation.
3541
3542 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
3543
3544         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3545         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3546         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3547         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3548         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3549         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3550         Escape { and } characters which are not part of range expressions.
3551         * fixinc/fixincl.x: Regenerate.
3552         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
3553
3554 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
3555
3556         PR c/1687
3557         * tree-inline.c (find_alloca_call): Use
3558         walk_tree_without_duplicates, instead of walk_tree.
3559         (find_builtin_longjmp_call): Likewise.
3560         * c-objc-common.c (c_cannot_inline_fn): Likewise.
3561         * c-semantics.c (find_reachable_label): Likewise.
3562
3563 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3564
3565         PR c/11420
3566         * config/i386/i386.c (ix86_check_movabs): New function.
3567         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3568         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3569         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3570
3571 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
3572
3573         * Makefile.in (install-po): Cope with empty CATALOGS.
3574
3575 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
3576
3577         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3578         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3579         (SECTION_FUNCTION_TEMPLATE): Delete.
3580         * config/mips/elf.h: As for elf64.h.
3581         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3582         * config/mips/linux.h: As for elf.h
3583         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3584         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3585         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
3586         of in_sdata from current_section_name and current_section_flags.
3587         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3588         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3589         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3590         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3591         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3592         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3593         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3594         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3595         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3596         (override_options): Remove setting of MASK_GPOPT.
3597         (mips_output_external): Use mips_in_small_data_p to check whether a
3598         symbol needs an .extern directive.  Don't emit such directives for
3599         TARGET_EXPLICIT_RELOCS.
3600         (mips_declare_object): Update accordingly.
3601         (mips_select_rtx_section): Call named_section rather than
3602         SMALL_DATA_SECTION.
3603         (mips_select_section): Use default_elf_section_section for everything
3604         except .text string constants.
3605         (mips_in_small_data_p): New function.
3606         (mips_encode_section_info): Remove small data handling.
3607         (mips_unique_section): Delete.
3608         (iris6_section_type_flags): New function.
3609         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3610
3611 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3612
3613         PR Target/11453
3614         * pa.md: Disparage all mtsar constraints.
3615         (extzv, extv, insv): Don't fail on length of {32|64}.
3616
3617 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
3618
3619         * system.h: Poison MAP_CHARACTER.
3620         * config/i370/i370-protos.h (mvs_map_char): Delete.
3621         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3622         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3623         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3624
3625 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
3626
3627         * toplev.c (randomize): Correct call to time().
3628
3629 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
3630
3631         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3632         REG_EQUIV notes as well.
3633
3634 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
3635
3636         * doc/md.texi: Fix the description of addmodecc.
3637
3638 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
3639
3640         * Makefile.in (top_builddir): Set to "..", not ".".
3641         (INTLLIBS, INTLDEPS): Delete.
3642         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3643         (LIBDEPS): Add $(LIBICONV_DEP).
3644         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3645         (INCLUDES): Replace -I../intl with @INCINTL@.
3646         ($(top_builddir)/intl/libintl.a): Delete rule.
3647         (stage2-start, stage3-start, stage4-start, stageprofile-start,
3648         stagefeedback-start): Use $$ for variable to be evaluated by
3649         shell, not make.
3650         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3651         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3652         * aclocal.m4: sinclude ../config/progtest.m4.  Add
3653         contents of lcmessage.m4 from gettext distro.
3654         * configure.in: Check for wchar.h and setlocale.  Set
3655         LIBICONV_DEP to the empty string and substitute it.
3656         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
3657         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
3658         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
3659         in $LIBINTL, to avoid linking it twice.
3660         * configure, config.in: Regenerate.
3661
3662 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
3663
3664         * fixinc/mkfixinc.sh: Remove winnt support.
3665         * fixinc/fixinc.winnt: Delete with extreme prejudice.
3666
3667 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
3668
3669         * Makefile.in: Update.
3670         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3671         * c.opt: Update documentation.
3672         * common.opt: Add some help text.
3673         * opts.c: Include intl.h.
3674         (wrap_help, print_help): New.
3675         (find_opt, handle_option, common_handle_option): opt_text now
3676         contains the '-'.  Use print_help to output help.
3677         * opts.h (struct cl_option): New member "help".
3678         * opts.sh: Update to handle help text output and to prepend
3679         options with '-'.
3680         * toplev.c (display_help): Remove some help text.
3681
3682 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
3683             Fariborz Jahanian  <fjahanian@apple.com>
3684
3685         * configure.in: Test for PowerPC mfcr field support in assembler.
3686         * config.in, configure: Regenderated.
3687
3688         * config/rs6000/power4.md: Add mfcrf reservation.
3689         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3690         * config/rs6000/rs6000.c (mfcr_operation): Define.
3691         (print_operand): Add 'Q' case for mfcrf.
3692         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3693         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3694         (movcc_internal1): Emit optional field operand for mfcr and set
3695         "type" attribute appropriately.
3696         (mfcr SCC): Likewise.
3697         (movesi_from_cr_one): New.
3698
3699 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3700
3701         * config/i386/i386.md: Correct check-in of incorrect version.
3702
3703 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3704
3705         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3706         adjacent stdio calls.
3707         * c-decl.c (c_print_identifier): Likewise.
3708         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3709         * print-rtl.c (print_rtx): Likewise.
3710         * print-tree.c (print_node_brief, print_node): Likewise.
3711         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
3712
3713         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3714         * config.in, configure: Regenerated.
3715
3716 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3717
3718         PR target/10979
3719         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3720         Changed to define_expand patterns that copy operand[1] to prevent
3721         it from being clobbered before emitting an atan2?f3_1 insn.
3722         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
3723         patterns that actually specify the behaviour of x87's FPATAN.
3724
3725 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
3726
3727         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
3728         clearing of SYMBOL_FLAG_LOCAL bit.
3729         If vcall_offset fits into signed 16-bit immediate, use
3730         one instruction for both addition and load.
3731
3732 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
3733
3734         * opts.c (common_handle_option): Correct handling of the
3735         -falign- switches that do and don't take an argument.
3736
3737 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
3738
3739         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
3740         today.
3741         (pushhi1_h8300hs): Likewise.
3742
3743 2003-07-07  Andreas Jaeger  <aj@suse.de>
3744
3745         * genextract.c: Convert remaining prototypes to ISO C90.
3746
3747         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
3748         * fold-const.c (fold_single_bit_test): Likewise.
3749         * diagnostic.c (default_diagnostic_finalizer): Likewise.
3750         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
3751
3752         * gengtype.c (write_array): Generate ISO C90 prototypes.
3753
3754         * genflags.c (gen_proto): Generate ISO C90 prototypes.
3755
3756 2003-07-07  Roger Sayle  <roger@eyesopen.com>
3757
3758         PR optimization/11059
3759         * expr.c (can_store_by_pieces): Return true if length is zero.
3760         (store_by_pieces): If length is zero and endp is two, abort,
3761         othwerise, if length is zero and endp is not two, return "to".
3762         (clear_by_pieces): Do nothing if length is zero.
3763         (clear_storage): Do nothing if length is zero.
3764         (store_constructor): Simplify code when size is zero, or the
3765         target has already been cleared.  This avoids emitting a
3766         blockage instruction when initializing empty structures.
3767
3768 2003-07-07  Andreas Jaeger  <aj@suse.de>
3769
3770         * mips-tfile.c: Convert prototypes to ISO C90.
3771         * mips-tdump.c: Convert prototypes to ISO C90.
3772
3773 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
3774
3775         * rtl.h (emit_line_note): Take a location_t.
3776         (emit_line_note_force): Remove.
3777         (set_file_and_line_for_statement): Take a location_t.
3778         * tree.g (emit_line_note): Take a location_t.
3779         * emit-rtl.c (emit_line_note): Take a location_t.
3780         (emit_line_note_force): Remove.
3781         * function.c (init_function_start): Adjust emit_line_note call.
3782         (expand_function_end): Use force_next_line_note, not
3783         emit_line_note_force.
3784         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
3785         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
3786         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3787         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
3788         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3789         genrtl_continue_stmt, genrtl_switch_stmt,
3790         genrtl_asm_stmt): Likewise.
3791         * expr.c (expand_expr): Likewise.
3792         * integrate.c (expand_inline_function): Likewise.
3793         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
3794         (expand_decl_init): Adjust emit_line_note call.
3795
3796 2003-07-07  Dale Johannesen  <dalej@apple.com>
3797
3798         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
3799
3800 2003-07-07  Andreas Jaeger  <aj@suse.de>
3801
3802         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
3803         * config/i386/i386.c: Likewise.
3804
3805 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
3806
3807         * config/h8300/h8300.md: Use gen_int_mode instead of
3808         GEN_INT (trunc_int_for_mode (...)).
3809
3810 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
3811
3812         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
3813         2 bytes and then subtract 2 from the stack pointer.
3814         (pushhi1_h8300hs): Likewise.
3815
3816 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
3817
3818         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
3819         -frandom-seed.
3820         * configure: Regenerated.
3821         * Makefile.in: Remove extraneous comment.
3822         * toplev.c (randomize): Protect against potential multiple calls.
3823         * doc/invoke.texi (-frandom-seed): Document use for in coverage
3824         files.
3825
3826 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3827             Eric Botcazou  <ebotcazou@libertysurf.fr>
3828
3829         PR optimization/11198
3830         * alias.c (objects_must_conflict_p): Return 1 if the types have
3831         the same alias set, not if the alias sets only conflict.
3832
3833 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
3834
3835         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
3836         (convert_cset): Change inbuf to type ICONV_CONST char.
3837         * Makefile.in (LIBS): Add LIBICONV.
3838
3839         * doc/invoke.texi (-falign-functions): Document that
3840         when n is zero then a machine-dependent default is used.
3841         (-falign-labels): Document that when n is zero then a
3842         machine-dependent default is used and that -falign-labels =1
3843         is equivalent to -fno-align-labels.
3844         (-falign-loops): Likewise.
3845         (-falign-jumps): Likewise.
3846
3847 2003-07-06  Art Haas  <ahaas@airmail.net>
3848
3849         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
3850         initializer syntax.
3851
3852 2003-07-06  James E Wilson  <wilson@tuliptree.org>
3853
3854         PR optimization/9812
3855         * rtl.h (mem_for_const_double): Delete prototype.
3856         * varasm.c (mem_for_const_double): Delete function.
3857         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
3858         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
3859         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
3860         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
3861         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
3862         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
3863         comment about confused support for XFmode constants.
3864
3865 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
3866
3867         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
3868
3869 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
3870
3871         * config/h8300/h8300.c: Fix comment typos.
3872         * config/h8300/h8300.md: Likewise.
3873         * config/i386/athlon.md: Likewise.
3874         * config/i386/i386.c: Likewise.
3875         * config/i386/pentium.md: Likewise.
3876         * config/ia64/ia64.c: Likewise.
3877         * config/ia64/itanium1.md: Likewise.
3878         * config/ia64/itanium2.md: Likewise.
3879         * config/m32r/m32r.md: Likewise.
3880         * config/m68hc11/m68hc11.c: Likewise.
3881         * config/mcore/mcore.c: Likewise.
3882         * config/mips/sr71k.md: Likewise.
3883         * config/mips/t-iris5-as: Likewise.
3884         * config/mmix/mmix.h: Likewise.
3885         * config/ns32k/ns32k.h: Likewise.
3886         * config/ns32k/NOTES: Fix a typo.
3887
3888 2003-07-06  Andreas Jaeger  <aj@suse.de>
3889
3890         * stmt.c: Convert remaining prototypes to ISO C90.
3891         * cfglayout.c: Likewise.
3892         * dbxout.c: Likewise.
3893         * gcc.c: Likewise.
3894         * genemit.c: Likewise.
3895
3896         * basic-block.h: Convert prototypes to ISO C90.
3897         * c-parse.in: Likewise.
3898         * c-pragma.h: Likewise.
3899         * c-typeck.c: Likewise.
3900         * cfghooks.h: Likewise.
3901         * cfgloopanal.c: Likewise.
3902         * dbxout.h: Likewise.
3903         * debug.h: Likewise.
3904         * dwarf2asm.h: Likewise.
3905         * gcov.c: Likewise.
3906         * gengtype-lex.l: Likewise.
3907         * sched-int.h: Likewise.
3908         * timevar.c: Likewise.
3909
3910 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
3911
3912         * c-common.h (c_comon_handle_filename,
3913         c_common_missing_arguement): New.
3914         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3915         LANG_HOOKS_MISSING_ARGUMENT): New.
3916         * c-opts.c (missing_arg): Rename c_common_missing_argument,
3917         update to be an appropriate langhook.
3918         (c_common_handle_option): Don't handle filenames.
3919         (c_common_handle_filename): New.
3920         * hooks.c (hook_void_constcharptr,
3921         hook_bool_constcharptr_size_t_false): New.
3922         * hooks.h (hook_void_constcharptr,
3923         hook_bool_constcharptr_size_t_false): New.
3924         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
3925         LANG_HOOKS_MISSING_ARGUMENT): New.
3926         (LANG_HOOKS_INITIALIZER): Update.
3927         * langhooks.h (struct lang_hooks): Add handle_filename and
3928         missing_argument.
3929         * opts.c (handle_option): Don't handle filenames here, but ...
3930         (handle_options): ... here.
3931         (common_handle_option): Don't handle missing arguments here.
3932         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3933         LANG_HOOKS_MISSING_ARGUMENT): New.
3934
3935 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
3936
3937         * Makfile.in: Remove traces of mbchar.
3938         * c-parse.in (MULTIBYTE_CHARS): Remove.
3939         * config.in (MULTIBYTE_CHARS): Remove.
3940         * configure: Remove --enable-mbchar.
3941         * configure.in: Remove --enable-mbchar.
3942         * mbchar.c, mbchar.h: Remove.
3943         * system.h: Poison MULTIBYTE_CHARS.
3944         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
3945         * config/linux.h (MULTIBYTE_CHARS): Remove.
3946         * config/svr4.h (MULTIBYTE_CHARS): Remove.
3947         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
3948
3949 2003-07-06  Andreas Jaeger  <aj@suse.de>
3950
3951         * varray.c (varray_check_failed): Fix typo.
3952
3953         * unroll.c: Convert prototypes to ISO C90.
3954         * varasm.c: Likewise.
3955         * varray.c: Likewise.
3956         * varray.h: Likewise.
3957         * vmsdbgout.c: Likewise.
3958         * xcoffout.c: Likewise.
3959         * xcoffout.h: Likewise.
3960
3961 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
3962
3963         * gcov-io.h: Add a local time stamp.
3964         (struct gcov_info): Add stamp field.
3965         (gcov_truncate): New.
3966         * coverage.c (read_counts_file): Skip the stamp.
3967         (coverage_begin_output): Write the stamp.
3968         (build_gcov_info): Declare and init the stamp.
3969         (coverage_finish): Only unlink data file, if stamp is zero.
3970         * gcov-dump.c (dump_file): Dump the stamp.
3971         * gcov.c (bbg_stamp): New.
3972         (release_structures): Clear bbg_stamp.
3973         (read_graph_file): Read stamp.
3974         (read_count_file): Check stamp.
3975         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
3976
3977 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
3978
3979         * tree.h (default_flag_random_seed): Remove.
3980         * toplev.h (local_tick): Declare.
3981         * tree.c (flag_random_seed, default_flag_random_seed): Move to
3982         toplev.c.
3983         (append_random_chars): Don't call default_flag_random_seed.
3984         * toplev.c (flag_random_seed): Define here. Set local_tick.
3985         (local_tick): Define.
3986         (randomize): New, moved from tree.c.
3987         (print_switch_values): Adjust.
3988         (toplev_main): Call randomize.
3989
3990 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
3991
3992         * tree.h (crc32_string): Declare.
3993         * tree.c (append_random_chars): Remove.
3994         (crc32_string): New.
3995         (get_file_function_name_long): Use crc32_string here.
3996
3997 2003-07-06  Andreas Jaeger  <aj@suse.de>
3998
3999         * gcc.c: Convert prototypes to ISO C90.
4000         * gcc.h: Likewise.
4001         * gcov-dump.c: Likewise.
4002         * gcov-iov.c: Likewise.
4003         * gcse.c: Likewise.
4004         * genattrtab.h: Likewise.
4005         * ggc.h: Likewise.
4006         * global.c: Likewise.
4007         * graph.c: Likewise.
4008         * graph.h: Likewise.
4009         * hosthooks.h: Likewise.
4010         * hooks.h: Likewise.
4011         * hooks.c: Likewise.
4012         * hashtable.h: Likewise.
4013         * hashtable.c: Likewise.
4014         * haifa-sched.c: Likewise.
4015         * integrate.h: Likewise.
4016         * integrate.c: Likewise.
4017         * input.h: Likewise.
4018         * ifcvt.c: Likewise.
4019         * jump.c: Likewise.
4020         * langhooks-def.h: Likewise.  Add extern to prototypes.
4021         * langhooks.c: Likewise.
4022         * langhooks.h: Likewise.
4023         * lcm.c: Likewise.
4024         * local-alloc.c: Likewise.
4025         * loop-init.c: Likewise.
4026         * loop-unroll.c: Likewise.
4027         * loop-unswitch.c: Likewise.
4028         * loop.c: Likewise.
4029         * loop.h: Likewise. Add extern to prototypes.
4030         * machmode.h: Likewise.
4031         * main.c: Likewise.
4032         * mbchar.c: Likewise.
4033         * mbchar.h: Likewise.
4034         * mkdeps.c: Likewise.
4035         * mkdeps.h: Likewise.
4036         * optabs.c: Likewise.
4037         * optabs.h: Likewise.
4038         * output.h: Likewise.
4039         * gccspec.c: Likwise.
4040         * postreload.c: Likewise.
4041         * prefix.c: Likewise.
4042         * prefix.h: Likewise.
4043         * print-rtl.c: Likewise.
4044         * print-tree.c: Likewise.
4045         * profile.c: Likewise.
4046         * read-rtl.c: Likewise.
4047         * real.c: Likewise.
4048         * real.h: Likewise.
4049         * recog.c: Likewise.
4050         * recog.h: Likewise.
4051         * reg-stack.c: Likewise.
4052         * regclass.c: Likewise.
4053         * regmove.c: Likewise.
4054         * regrename.c: Likewise.
4055         * regs.h: Likewise.
4056         * reload.c: Likewise.
4057         * reload.h: Likewise.
4058         * reload1.c: Likewise.
4059         * reorg.c: Likewise.
4060         * resource.c: Likewise.
4061         * resource.h: Likewise.
4062         * rtl-error.c: Likewise.
4063         * rtl.c: Likewise.
4064         * rtl.h: Likewise.
4065         * rtlanal.c: Likewise.
4066         * sbitmap.c: Likewise.
4067         * sbitmap.h: Likewise.
4068         * scan-decls.c: Likewise.
4069         * scan.c: Likewise.
4070         * sched-deps.c: Likewise.
4071         * sched-ebb.c: Likewise.
4072         * sched-int.h: Likewise.
4073         * sched-rgn.c: Likewise.
4074         * sched-vis.c: Likewise.
4075         * sibcall.c: Likewise.
4076         * simplify-rtx.c: Likewise.
4077         * sreal.c: Likewise.
4078         * sreal.h: Likewise.
4079         * ssa-ccp.c: Likewise.
4080         * ssa-dce.c: Likewise.
4081         * ssa.c: Likewise.
4082         * ssa.h: Likewise.
4083         * stack.h: Likewise.
4084         * stmt.c: Likewise.
4085         * stor-layout.c: Likewise.
4086         * stringpool.c: Likewise.
4087         * target.h: Likewise.
4088         * timevar.c: Likewise.
4089         * timevar.h: Likewise.
4090         * tlink.c: Likewise.
4091         * tracer.c: Likewise.
4092         * tree-inline.c: Likewise.
4093         * tree-inline.h: Likewise.
4094         * tree.c: Likewise.
4095         * tree.h: Likewise.
4096
4097 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4098
4099         * combine.c (nonzero_bits1): Fix a warning.
4100
4101 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4102
4103         * config/h8300/h8300.c (compute_mov_length): Correct the
4104         length of loading CONST0_RTX (SFmode).
4105
4106 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4107
4108         * toplev.c (output_clean_symbol_name): Remove.
4109         * toplev.h (output_clean_symbol_name): Remove.
4110         * config/alpha/alpha.c (unicosmk_output_module_name): Use
4111         lbasename & clean_symbol_name.
4112
4113 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4114
4115         * ggc.h: Follow spelling conventions.
4116         * config/i386/i386.c: Likewise.
4117         * config/i386/winnt.c: Likewise.
4118         * config/rs6000/rs6000.c: Likewise.
4119
4120 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
4121
4122         * bt-load.c: Fix comment typos.
4123         * c-incpath.c: Likewise.
4124         * cfg.c: Likewise.
4125         * cfgcleanup.c: Likewise.
4126         * cfgloop.h: Likewise.
4127         * cfgloopmanip.c: Likewise.
4128         * cfgrtl.c: Likewise.
4129         * diagnostic.h: Likewise.
4130         * dwarfout.c: Likewise.
4131         * emit-rtl.c: Likewise.
4132         * et-forest.c: Likewise.
4133         * et-forest.h: Likewise.
4134         * expr.c: Likewise.
4135         * gcse.c: Likewise.
4136         * genattr.c: Likewise.
4137         * jump.c: Likewise.
4138         * langhooks.h: Likewise.
4139         * local-alloc.c: Likewise.
4140         * loop-unroll.c: Likewise.
4141         * loop-unswitch.c: Likewise.
4142         * ra-build.c: Likewise.
4143         * regclass.c: Likewise.
4144         * regmove.c: Likewise.
4145         * rtl.def: Likewise.
4146         * rtlanal.c: Likewise.
4147         * sched-ebb.c: Likewise.
4148         * sched-rgn.c: Likewise.
4149         * simplify-rtx.c: Likewise.
4150         * ssa.c: Likewise.
4151         * tracer.c: Likewise.
4152         * tree.c: Likewise.
4153
4154 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
4155
4156         * cppcharset.c: Use the correct return type for the fallback iconv
4157         macro.
4158
4159 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4160
4161         Blame to Jan Hubicka  <jh@suse.cz>
4162         * cfglayout.c (record_effective_endpoints): Split insns before
4163         first basic block correctly.
4164
4165 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4166
4167         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4168         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4169         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4170
4171 2003-07-05  Andreas Jaeger  <aj@suse.de>
4172
4173         * genattrtab.c (write_attr_get): Revert part of last patch to
4174         always write out a prototype.
4175
4176         * genemit.c (gen_split): Readd lost unused attributes in last
4177         patch.
4178
4179 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4180
4181         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4182         different from header.
4183
4184 2003-07-05  Andreas Schwab  <schwab@suse.de>
4185
4186         * config/m68k/m68k.c: Remove code protected by CRDS.
4187         * config/m68k/m68k.md: Likewise.
4188
4189 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
4190
4191         PR driver/11417
4192         * c-opts.c (permit_fortran_options): New.
4193         (c_common_init_options): Accept fortran front end options if
4194         it looks like we might be preprocessing Fortran.
4195         (c_common_handle_option): Don't reject switch if permit_fotran_options.
4196
4197 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4198
4199         * genattr.c (internal_dfa_insn_code): Output prototype.
4200         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4201         * genautomata.c: Likewise.
4202         * genconditions.c: Likewise.
4203         * genemit.c: Likewise.
4204         * genextract.c: Likewise.
4205         * gengenrtl.c: Likewise.
4206         * gengtype.c: Likewise.
4207         * genopinit.c: Likewise.
4208         * genoutput.c: Likewise.
4209         * genpeep.c: Likewise.
4210         * genrecog.c: Likewise.
4211
4212 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
4213
4214         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4215         (struct cpp_options): Add narrow_charset, wide_charset,
4216         bytes_big_endian fields.  Remove EBCDIC field.
4217         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4218
4219         * cpphash.h: Include <iconv.h> if we have it, otherwise
4220         provide a dummy definition of iconv_t.
4221         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4222         (_cpp_valid_ucn): Update prototype.
4223         (_cpp_destroy_iconv): New prototype.
4224
4225         * doc/cpp.texi: Document character set handling.
4226         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4227         * doc/extend.texi: Delete entire section on multiline strings.
4228         Rewrite section on __FUNCTION__ etc now that these are
4229         variables in C.
4230
4231         * cppucnid.tab, cppucnid.pl: New files.
4232         * cppucnid.h: New generated file.
4233         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
4234         (iconv_open, iconv, iconv_close): Provide dummy definitions
4235         if !HAVE_ICONV.
4236         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4237         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4238         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4239         cpp_interpret_string, narrow_str_to_charconst,
4240         wide_str_to_charconst): New.
4241         (ucn_valid_in_identifier): Use a binary search through the
4242         ucnranges table defined in cppucnid.h, not a long chain of if
4243         statements.
4244         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
4245         character names are only valid in C++ and C99" to a warning.
4246         Issue the "meaning of \[uU] is different in traditional C"
4247         warning here.  Take care not to let iconv see an invalid UCS
4248         value if we get a malformed UCN.  Issue an error if we don't
4249         have iconv.
4250         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
4251         cpp_interpret_string to do the heavy lifting.
4252
4253         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4254         narrow_charset, wide_charset fields of options structure.
4255         (cpp_destroy): Call _cpp_destroy_iconv.
4256         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4257         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4258         (cpp_interpret_charconst): Moved to cppcharset.c.
4259         * cpplib.c (dequote_string): Delete.
4260         (interpret_string_notranslate): New.
4261         (do_line, do_linemarker): Use interpret_string_notranslate.
4262
4263         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4264
4265         * c-common.c (fname_string, combine_strings): Delete.
4266         * c-common.h (fname_string, combine_strings): Delete prototypes.
4267         * c-lex.c (ignore_escape_flag): Delete.
4268         (cb_ident): Use cpp_interpret_string, not lex_string.
4269         (get_nonpadding_token): New function.
4270         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4271         Adjust calls to lex_string.  Don't write *value twice.
4272         (lex_string): Now handles string constant concatenation.
4273         Most of the work handed off to cpp_interpret_string.
4274         Call fix_string_type here.
4275         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4276         FUNC_NAME, throughout.
4277         (OBJC_STRING): New token type.
4278         (primary:STRING): No need to call fix_string_type here.
4279         (primary:objc_string): Make that OBJC_STRING.
4280         (objc_string nonterminal): Delete.
4281         (yylexname): Delete code to handle fake string constants.
4282         (yylexstring): Delete entirely.
4283         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
4284         to handle CPP_ATSIGN.
4285
4286         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4287         * c-opts.c (missing_arg, c_common_handle_option): Handle
4288         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4289         (c_common_init): Set cpp_opts->bytes_big_endian, not
4290         cpp_opts->EBCDIC.  Call cpp_init_iconv.
4291         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4292         (TARGET_EBCDIC): Delete default definition.
4293
4294         * objc/objc-act.c (build_objc_string_object): No need to
4295         handle string constant concatenation.
4296
4297 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
4298
4299         * doc/install.texi: Fix typos.
4300         * doc/invoke.texi: Likewise.
4301         * doc/tm.texi: Likewise.
4302
4303 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
4304
4305         * config/pa/fptr.c: Fix comment typos.
4306         * config/pa/pa-64.h: Likewise.
4307         * config/pa/pa.c: Likewise.
4308         * config/pa/pa.h: Likewise.
4309         * config/rs6000/603.md: Likewise.
4310         * config/rs6000/7xx.md: Likewise.
4311         * config/rs6000/darwin.h: Likewise.
4312         * config/rs6000/freebsd.h: Likewise.
4313         * config/rs6000/rs6000.c: Likewise.
4314         * config/rs6000/rs6000.md: Likewise.
4315         * config/rs6000/spe.h: Likewise.
4316
4317 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
4318
4319         * config/s390/2064.md: Change GNU CC to GCC.
4320         * config/s390/2084.md: Likewise.
4321         * config/s390/fixdfdi.h: Likewise.
4322         * config/s390/linux.h: Likewise.
4323         * config/s390/s390-modes.def: Likewise.
4324         * config/s390/s390-protos.h: Likewise.
4325         * config/s390/s390.c: Likewise.
4326         * config/s390/s390.h: Likewise.
4327         * config/s390/s390.md: Likewise.
4328         * config/s390/s390x.h: Likewise.
4329
4330 2003-07-04  Jeff Law  <law@redhat.com>
4331
4332         PR c/11428
4333         * expr.c (do_store_flag): Pass in the correct result type
4334         when calling fold_single_bit_test.
4335         * fold-const.c (fold_single_bit_test): Use result_type for the
4336         result when folding a sign bit test.
4337
4338 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
4339
4340         * opts.c (common_handle_options): Negate sense of -falign- switches.
4341
4342 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
4343
4344         * Makefile.in: Replace PWD with PWD_COMMAND.
4345
4346 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4347
4348         * cfgloopanal.c (count_strange_loop_iterations): New static function.
4349         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4350         Handle strange loops.
4351
4352 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
4353
4354         * install.texi: Even the g77 manpage is derived from
4355         the full g77 manual.
4356
4357 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
4358
4359         * ABOUT-NLS: Delete.
4360         * intl: Delete entire directory.
4361         * aclocal.m4: Include ../config/gettext.m4.  Delete
4362         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4363         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4364         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4365         Remove intl/Makefile from all_outputs.
4366         * configure, config.in: Regenerate.
4367         * Makefile.in: Expunge all references to intl subdirectory.
4368         Add -I../intl to INCLUDES.
4369         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4370
4371 2003-07-04  Roger Sayle  <roger@eyesopen.com>
4372
4373         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4374         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4375
4376 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
4377
4378         PR c++/5287, PR c++/7910, PR c++/11021
4379         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4380         dllimport attribute if function is defined at declaration, but
4381         report error instead. Likewise for dllimport'd variable
4382         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
4383         declared within functions, Report error if dllimport or dllexport
4384         symbol is not global.
4385         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4386         if defined after declaration or if inlined. Don't allow definition
4387         of static data members of C++ classes. Don't dllimport virtual
4388         methods.
4389         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4390         (i386_pe_mark_dllimport): Remove unnecessary checks.
4391         (i386_pe_encode_section_info): Warn if the dllimport attribute
4392         and symbol prefix have been instantiated and then overridden.
4393
4394         * doc/extend.texi: Document dllimport and dllexport attributes.
4395
4396         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4397
4398 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4399
4400         * config/kaos.h (CPP_PREDEFINES): Delete.
4401         (TARGET_OS_CPP_BUILTINS): New.
4402
4403 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4404
4405         * c-aux-info.c: Include toplev.h after c-tree.h.
4406         * c-common.c: Likewise.
4407         (GCC_DIAG_STYLE): Undef.
4408         * c-semantics.c (GCC_DIAG_STYLE): Define.
4409         * c-tree.h (GCC_DIAG_STYLE): Likewise.
4410         * diagnostic.h (inform): Move prototype to toplev.h.
4411         * jump.c: Include diagnostic.h before toplev.h.
4412         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4413         (warning, error, fatal_error, pedwarn, sorry, inform,
4414         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4415
4416 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4417
4418         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4419         at all if edge is not specified.
4420         (can_copy_bbs_p, copy_bbs): New.
4421         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4422         * cfgloop.c (get_loop_body): Comment more precisely.
4423         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4424         (scale_bbs_frequencies): Fix comment typo.
4425         (can_duplicate_loop_p): Use can_copy_bbs_p.
4426         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4427
4428 2003-07-03  Devang Patel <dpatel@apple.com>
4429
4430         * c-opts.c (c_common_parse_file): Remove extra
4431         debug_hooks->start_source_file call.
4432
4433 2003-07-03  Roger Sayle  <roger@eyesopen.com>
4434
4435         * real.c (real_trunc, real_floor, real_ceil): New functions
4436         to implement trunc, floor and ceil respectively.
4437         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4438         * builtins.c (integer_valued_real_p): New function to test if
4439         a floating point expression has an integer valued result.
4440         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4441         foo(x) where foo is an integer rounding function.  Similarly,
4442         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4443         (double)(int)x when both foo and bar are integer rounding
4444         functions and we don't need to honor errno.
4445         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4446         New functions to fold trunc, floor and ceil.
4447         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4448         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4449         to fold BUILT_IN_CEIL*.
4450         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4451         the remaining integer rounding functions.
4452
4453 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4454
4455         * config/sparc/sparc.c (function_arg_partial_nregs): Use
4456         SPARC_INT_ARG_MAX to determine where to split unnamed
4457         complex FP arguments.
4458
4459 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
4460
4461         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4462         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4463         (merge_blocks_move_predecessor_nojumps,
4464          merge_blocks_move_successor_nojumps): Use merge_blocks.
4465         (try_optimize_cfg): Use merge_blocks_move.
4466         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4467         (merge_blocks_nomove): Rename to rtl_merge_blocks.
4468         (cfg_layout_create_basic_block): New.
4469         (rtl_can_merge_blocks): New.
4470         (cfg_layout_split_block): Do not alloc aux by hand.
4471         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4472         merge_blocks.
4473         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4474         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4475         * cfgloopmanip.c (loop_split_edge_with): Likewise.
4476         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4477
4478         * basic-block.h (basic_block_def): Add field 'rbi'.
4479         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4480         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4481         * cfg.c (entry_exit_blocks): Add new field.
4482         * cfglayout.c: Include alloc-pool.h;
4483         (cfg_layout_pool): New.
4484         (record_effective_endpoints, fixup_reorder_chain,
4485         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4486         of rbi.
4487         (cfg_layout_initialize_rbi): New function.
4488         (cfg_layout_initialize): Use it.
4489         (cfg_layout_finalize): Clear rbi fields.
4490         * cfglayout.h (RBI): Kill.
4491         (cfg_layout_initialize_rbi): Declare.
4492         * cfgloopmanip.c (copy_bbs): Use rbi.
4493         (record_exit_edges): Likewise.
4494         (duplicate_loop_to_header_edge): Likewise.
4495         * cfgrtl.c (cfg_layout_create_basic_block): Use
4496         cfg_layout_initialize_rbi.
4497         (cfg_layout_split_block): Use rbi.
4498         (cfg_layout_delete_block): Likewise.
4499         * loop-init.c (loop_optimizer_finalize): Likewise.
4500         * loop-unswitch.c (unswitch_loop): Likewise.
4501         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4502
4503         * cfgrtl.c: Update comments.
4504         (try_redirect_by_replacing_jump): New argument.
4505         (redirect_branch_edge): Break out from ...
4506         (rtl_redirect_edge_and_branch): ... this one.
4507         (update_cfg_after_block_merging): Break out from ...
4508         (rtl_merge_blocks): ... this one.
4509         (cfg_layout_split_edge): New.
4510         (cfg_layout_merge_blocks): New.
4511         (cfg_layout_can_merge_blocks_p): New.
4512         (cfg_layout_redirect_edge_and_branch): Reorganize.
4513         (cfg_layout_rtl_cfg_hooks): Fill in.
4514         (cfg_layout_delete_block): Kill barriers.
4515         * cfganal.c (can_fallthru): Deal with exit blocks
4516         * cfglayout.c (cfg_layout_function_header): New function
4517         (record_effective_endpoints): Record function header.
4518         (fixup_reorder_chain): Fixup dead jumptables; place header
4519
4520         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4521         * bb-reorder.c (cfg_layout_initialize): Update call.
4522         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4523         edges in cfglayout mode.
4524         * cfglayout.c (cleanup_unconditional_jumps): Kill.
4525         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4526         * cfglayout.h (cfg_layout_initialize): Update prototype.
4527         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4528         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4529         * flow.c (propagate_block): Do not crash when basic block ends
4530         by first insn in the chain.
4531         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
4532         do loop discovery.
4533         * tracer.c (tracer): Update call of cfg_layout_initialize.
4534
4535 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4536
4537         * Makefile.in: Use dependency variables in lieu of explicit
4538         files throughout.
4539
4540 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
4541
4542         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4543         * tree.h: ...to here.
4544
4545 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
4546
4547         * config/s390/2064.md: Fix comment typos.
4548         * config/s390/2084.md: Likewise.
4549         * config/s390/s390.c: Likewise.
4550         * config/s390/s390.md: Likewise.
4551         * config/sh/sh.c: Likewise.
4552         * config/sh/sh.h: Likewise.
4553         * config/sh/sh.md: Likewise.
4554         * config/sparc/sparc.c: Likewise.
4555         * config/sparc/sparc.h: Likewise.
4556         * config/sparc/sparc.md: Likewise.
4557         * config/stormy16/stormy16.c: Likewise.
4558         * config/stormy16/stormy16.h: Likewise.
4559         * config/stormy16/stormy-abi: Fix a typo.
4560
4561 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
4562
4563         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4564
4565 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4566
4567         * config/mips/mips.h (save_argv): Delete.
4568
4569 2003-07-03  Roger Sayle  <roger@eyesopen.com>
4570
4571         PR target/10700
4572         * fold-const.c (extract_muldiv_1): There's nothing that can be done
4573         if the expression is a SAVE_EXPR.
4574
4575 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
4576
4577         * config/m32r/m32r.c: Fix comment typos.
4578         * config/m68hc11/m68hc11.c: Likewise.
4579         * config/m68hc11/m68hc11.h: Likewise.
4580         * config/m68k/m68k.c: Likewise.
4581         * config/mcore/mcore.c: Likewise.
4582         * config/mcore/mcore.h: Likewise.
4583         * config/mcore/mcore.md: Likewise.
4584         * config/mips/mips.c: Likewise.
4585         * config/mips/mips.h: Likewise.
4586         * config/mips/mips.md: Likewise.
4587         * config/mips/netbsd.h: Likewise.
4588         * config/mn10300/mn10300.c: Likewise.
4589
4590 2003-07-03  Andreas Schwab  <schwab@suse.de>
4591
4592         * dbxout.c (pending_bincls): Move decl down inside
4593         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4594
4595 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4596
4597         * rtl.h (NOTE_DATA): Refer to whole union.
4598         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4599
4600 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4601
4602         PR optimization/11381
4603         * simplify-rtx.c (simplify_relational_operation): Check that
4604         two equal operands have no side-effects before simplifying
4605         the comparison.
4606
4607 2003-07-02  Jeff Law  <law@redhat.com>
4608
4609         * expr.c (do_store_flag): Remove special case folding for
4610         single bit tests.  Instead call back into the commonized folder
4611         routine.
4612         * fold-const.c (fold_single_bit_test): New function, mostly
4613         extracted from do_store_flag, with an additional case extracted
4614         from fold.
4615         (fold): Call fold_single_bit_test appropriately.
4616         * tree.h (fold_single_bit_test): Prototype.
4617
4618 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
4619
4620         * system.h: Include filenames.h.
4621         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4622         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4623         define based on HAVE_DOS_BASED_FILE_SYSTEM.
4624         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4625         * config/i386/xm-mingw32.h: Don't define
4626         HAVE_DOS_BASED_FILE_SYSTEM,
4627         DIR_SEPARATOR, or DIR_SEPARATOR_2.
4628         * doc/hostconfig.texi: Update to match.
4629
4630         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4631         config/i386/cygwin.h:
4632         Use IS_ABSOLUTE_PATH throughout.
4633         * gcc.c (DIR_UP): Delete, unused.
4634         * protoize.c (IS_SAME_PATH): Define in terms of
4635         FILENAME_CMP.
4636         (is_abspath): Delete.
4637
4638 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
4639
4640         * config/i386/emmintrin.h: Fix comment typos.
4641         * config/i386/i386.c: Likewise.
4642         * config/i386/i386.h: Likewise.
4643         * config/i386/sco5.h: Likewise.
4644         * config/ia64/ia64.c: Likewise.
4645         * config/ia64/itanium2.md: Likewise.
4646
4647 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4648
4649         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4650         DBX_USE_BINCL.
4651         (emit_bincl_stab): Same.
4652         (emit_pending_bincls): Same.
4653
4654 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
4655
4656         * config/h8300/h8300.c (compute_mov_length): Fix the length of
4657         loading CONST0_RTX (SFmode).
4658         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4659         'G' to CONST0_RTX (SFmode).
4660         * config/h8300/h8300.md (movsf_h8300): Change the first
4661         constraint to 'G'.
4662         (movsf_h8300h): Likewise.
4663
4664 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
4665
4666         * c-common.h (c_common_init_options): New prototype.
4667         * c-opts.c (deferred_size): Remove.
4668         (defer_opt): Array is now pre-allocated.
4669         (c_common_init_options): Pre-allocate deferred_opts.  Make
4670         lang_flags unsigned.
4671         (push_command_line_options): Free deferred_opts.
4672         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4673         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4674         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4675         * langhooks.h (struct lang_hooks): New prototype for init_options.
4676         * main.c (main): Cast argv.
4677         * opts.c (handle_option, handle_options): Update prototypes.
4678         (decode_options): save_argc, save_argv are not global.  Constify.
4679         * opts.h (decode_options): New prototype.
4680         * toplev.c (general_init): New protoype.
4681         (save_argv): Make static.
4682         (save_argc): Remove.
4683         (print_switch_values, general_init): Constify.
4684         (toplev_main): Save argv.
4685         * toplev.h (toplev_main): Update prototype.
4686         (save_argc, save_argv): Remove.
4687
4688 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
4689
4690         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4691         (emit_bincl_stab): Same.
4692         (emit_pending_bincls): Same.
4693
4694 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4695
4696         PR c++/11072
4697         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4698
4699 2003-07-02  Andreas Schwab  <schwab@suse.de>
4700
4701         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4702
4703 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
4704
4705         PR optimization/11210
4706         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4707         about the behaviour with regard to bitfields.
4708         * fold-const (decode_field_reference): Record outermost type in
4709         case the expression is a NOP. Strip all NOPs. Set the signedness
4710         to that of the outermost type (if any) when the bitsize is equal
4711         to the size of the type.
4712
4713 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
4714
4715         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
4716         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
4717         (adddi3_internal_3, addsi3_internal_2): Likewise.
4718
4719 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
4720
4721         * config/mips/mips.c (machine_function): Add new fields:
4722         ignore_hazard_length_p and all_noreorder_p.
4723         (mips_flag_delayed_branch): New variable.
4724         (override_options): Treat '/' as an operand punctuation character.
4725         Set up mips_flag_delayed_branch.
4726         (print_operand): Handle '/'.
4727         (mips_output_function_prologue): Put the whole function in
4728         .set noreorder and .set nomacro if all_noreorder_p is true.
4729         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
4730         (mips16_optimize_gp): Remove "first insn" parameter.
4731         (mips16_lay_out_constants): New function, split out from mips_reorg.
4732         (mips_avoid_hazard, mips_avoid_hazards): New functions.
4733         (mips_reorg): For mips16 code, call mips16_lay_out_constant
4734         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
4735         do delayed-branch scheduling followed by hazard detection.
4736         (mips_adjust_insn_length): Only account for hazards if
4737         !ignore_hazard_length_p.
4738         (mips_output_load_label): Add a nop to the o32 sequence if
4739         the target suffers from load delays.
4740         (mips_output_conditional_branch): Add %/ to the end of branches.
4741         (mips_output_division): Fill the branch delay slot with %#.
4742         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
4743         instructions.  End all other %* branches with %/.
4744         (ffssi2, ffsdi2): Fix lengths.
4745         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
4746         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
4747         (fix_truncsfsi2_macro): Likewise.
4748         (mov_lwl): Set hazard to "none".
4749         (ashldi3_internal): Fill the branch delay slot with %#.
4750         (ashrdi3_internal, lshrdi3_internal): Likewise.
4751         (exception_receiver): Explicitly set $28.
4752         (hazard_nop): New pattern.
4753
4754 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
4755
4756         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
4757         before calling tree_inlinable_function_p.
4758
4759 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4760
4761         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
4762         <internal/stdio_core.h> too.
4763         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
4764         <internal/wchar_core.h> too.
4765         Substitute va_list uses in inline definition.
4766         * fixinc/fixincl.x: Regenerate.
4767
4768 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4769
4770         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
4771         Undef before redefinition.
4772         (LABEL_AFTER_LOC): Likewise.
4773         (DEFAULT_SIGNED_CHAR): Likewise.
4774         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
4775         Fix IRIX spelling.
4776
4777         * config/mips/iris3.h: Remove, unused.
4778         * config/mips/iris4.h: Likewise.
4779
4780         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
4781
4782         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
4783         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
4784         target_cpu_default.
4785
4786         * config/mips/iris5.h: Move explicit includes ...
4787         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
4788
4789         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
4790         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4791         tm_defines.
4792
4793         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
4794         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4795         target_cpu_default.
4796
4797         * config/mips/iris6.h: Fix IRIX spelling.
4798         (MULTILIB_DEFAULTS): Undef before redefinition.
4799
4800         * config/mips/iris6.h: Move explicit includes ...
4801         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
4802
4803 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
4804
4805         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
4806         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
4807         Use next_needed field instead of aux to maintain the queue.
4808         * cgraph.h (cgraph_node): Add next_needed.
4809         (cgraph_varpool_node): Add next_needed; remove aux.
4810         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
4811
4812 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4813
4814         * cgraphunit.c (cgraph_finalize_function): Set finalized.
4815         (cgraph_finalize_function): Do not examine inlinablility.
4816         (cgraph_finalize_compilation_unit): Do it here.
4817         * cgraph.h (cgraph_local_info): Add finalized field.
4818
4819 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4820
4821         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
4822         (gt_pch_restore): Likewise.
4823
4824 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
4825
4826         * config/alpha/alpha.c: Fix comment typos.
4827         * config/alpha/elf.h: Likewise.
4828         * config/arm/arm.c: Likewise.
4829         * config/arm/arm.h: Likewise.
4830         * config/arm/arm.md: Likewise.
4831         * config/arm/t-arm-coff: Likewise.
4832         * config/arm/t-strongarm-pe: Likewise.
4833         * config/arm/xscale-elf.h: Likewise.
4834         * config/avr/avr.h: Likewise.
4835
4836 2003-07-01  Jeff Law  <law@redhat.com>
4837
4838         * stmt.c (any_pending_cleanups): Remove another redundant test.
4839
4840 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
4841             J"orn Rennecke <joern.rennecke@superh.com>
4842
4843         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
4844         for MEM case.
4845
4846 2003-07-01  Devang Patel  <dpatel@apple.com>
4847
4848         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
4849         (binclstatus): New.
4850         (struct dbx_file): New members - bincl_status, pending_bincl_name and
4851         prev.
4852         (pending_bincls): New.
4853         (dbxout_init): Initialize new dbx_file members.
4854         (dbxout_start_source_file): Same.
4855         (emit_bincl_stab): New function.
4856         (emit_pending_bincls): Same.
4857         (emit_pending_bincls_if_required): Same.
4858         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
4859         processed.
4860         (dbxout_begin_block): Emit pending BINCL stabs.
4861         (dbxout_end_block): Same.
4862         (dbxout_function_decl): Same.
4863         (dbxout_continue): Same.
4864         (dbxout_type): Same.
4865         (dbxout_class_name_qualifiers): Same.
4866         (dbxout_symbol): Same.
4867         (dbxout_symbol_location): Same.
4868         (dbxout_parms): Same.
4869
4870 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4871
4872         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
4873         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
4874
4875 2003-07-01  Andreas Jaeger  <aj@suse.de>
4876
4877         * fold-const.c: Convert prototypes to ISO C90.
4878         * function.c: Likewise.
4879         * function.h: Likewise.
4880
4881 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
4882
4883         * doc/contrib.texi: Fix typos.
4884         * doc/invoke.texi: Likewise.
4885         * doc/passes.texi: Likewise.
4886         * doc/sourcebuild.texi: Likewise.
4887         * doc/tm.texi: Likewise.
4888
4889 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
4890
4891         * basic-block.h: Fix comment typos.
4892         * bb-reorder.c: Likewise.
4893         * c-format.c: Likewise.
4894         * cfgcleanup.c: Likewise.
4895         * cfghooks.h: Likewise.
4896         * cfgloop.c: Likewise.
4897         * cfgloopmanip.c: Likewise.
4898         * cfgrtl.c: Likewise.
4899         * cgraph.h: Likewise.
4900         * cgraphunit.c: Likewise.
4901         * combine.c: Likewise.
4902         * convert.c: Likewise.
4903         * dbxout.c: Likewise.
4904         * df.c: Likewise.
4905         * df.h: Likewise.
4906         * diagnostic.c: Likewise.
4907         * dwarf2out.c: Likewise.
4908         * et-forest.h: Likewise.
4909         * flow.c: Likewise.
4910         * fold-const.c: Likewise.
4911         * function.h: Likewise.
4912         * gcov-io.h: Likewise.
4913         * gcov.c: Likewise.
4914         * gcse.c: Likewise.
4915         * genautomata.c: Likewise.
4916         * ggc-common.c: Likewise.
4917         * ggc-page.c: Likewise.
4918         * loop-unroll.c: Likewise.
4919         * loop-unswitch.c: Likewise.
4920         * loop.c: Likewise.
4921         * mips-tfile.c: Likewise.
4922         * optabs.c: Likewise.
4923         * ra-build.c: Likewise.
4924         * ra-colorize.c: Likewise.
4925         * ra-rewrite.c: Likewise.
4926         * ra.h: Likewise.
4927         * regmove.c: Likewise.
4928         * reload.c: Likewise.
4929         * rtlanal.c: Likewise.
4930         * sched-ebb.c: Likewise.
4931         * sched-int.h: Likewise.
4932         * sched-vis.c: Likewise.
4933         * sreal.c: Likewise.
4934         * ssa-ccp.c: Likewise.
4935         * ssa.c: Likewise.
4936         * toplev.c: Likewise.
4937         * tree-inline.c: Likewise.
4938         * value-prof.c: Likewise.
4939         * value-prof.h: Likewise.
4940
4941 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
4942
4943         * rtl.h (emit_line_note_after): Remove.
4944         (emit_note_copy_after, emit_note_copy): New.
4945         * emit-rtl.c (reorder_insns_with_line_notes): Replace
4946         emit_line_note_after with emit_note_copy_after.
4947         (emit_insn_after_with_line_notes): Likewise.
4948         (emit_line_note_after): Kill.
4949         (emit_note_copy_after): New.
4950         (emit_note_copy): New.
4951         * function.c (emit_return_into_block): Use emit_note_copy_after.
4952         (thread_prologue_and_epilogue_insns): Likewise.
4953         * integrate.c (expand_inline_function): Use emit_note_copy.
4954         (copy_insn_list): Likewise.
4955         * unroll.c (copy_loop_body): Likewise.
4956         * cfglayout.c (duplicate_insn_chain): Likewise.
4957
4958 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
4959
4960         * c-tree.h (define_label): Replace filename and lineno arguments
4961         with a location_t.
4962         * c-decl.c (poplevel): Adjust define_label call.
4963         (pop_label_level): Likewise.
4964         (define_label): Replace filename and lineno arguments with a
4965         location_t.
4966         (store_parm_decls): Use DECL_SOURCE_LOCATION.
4967         * c-parse.in (label): Adjust define_label call.
4968
4969 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
4970
4971         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
4972         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
4973         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
4974         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
4975         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
4976
4977 2003-07-01  Andreas Jaeger  <aj@suse.de>
4978
4979         * final.c: Convert prototypes to ISO C90.
4980         * flow.c: Likewise.
4981         * flags.h: Likewise.
4982         * gcov-io.c: Likewise.
4983         * gcov-io.h: Likewise.
4984
4985 See ChangeLog.9 for earlier changes.