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