OSDN Git Service

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