1 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
3 * varasm.c (default_assemble_visibility): Use assemble_name.
5 2003-04-29 David O'Brien <obrien@FreeBSD.org>
7 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
8 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9 (SIZE_TYPE): New macro.
10 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
11 (SET_ASM_OP): New macro.
12 (HANDLE_SYSV_PRAGMA): New macro.
13 (ASM_WEAKEN_LABEL): New macro.
15 2003-04-28 Mark Mitchell <mark@codesourcery.com>
18 * tree-inline.c (expand_call_inline): Call push_srcloc when
19 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
21 2003-04-28 Mike Stump <mrs@apple.com>
23 * gdbinit.in: Update to reflect new identifier structure.
25 2003-04-28 Zack Weinberg <zack@codesourcery.com>
27 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
28 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
29 struct tree_complex, struct tree_vector): Remove RTL field.
30 (CONSTRUCTOR_ELTS): Use elt 0.
31 * tree.def (CONSTRUCTOR): Delete first of its two operands.
32 * varasm.c (output_constant_def): Remove early exit if
33 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
34 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
35 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
36 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
38 2003-04-28 Jakub Jelinek <jakub@redhat.com>
40 * c-decl.c (finish_decl): When prototype with asmspec is found
41 for built-in, adjust built_in_decls as well as expr.c decls.
42 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
43 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
44 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
46 2003-04-28 Richard Henderson <rth@redhat.com>
48 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
49 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
50 integral constant mult operand.
51 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
52 (const_smulsi3_highpart_v8plus): Likewise.
53 (const_smulsi3_highpart): Likewise.
54 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
55 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
56 (const_umulsi3_highpart_v8plus): Likewise.
57 (const_umulsi3_highpart): Likewise.
59 2003-04-28 David O'Brien <obrien@FreeBSD.org>
61 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
64 2003-04-28 David O'Brien <obrien@FreeBSD.org>
66 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
68 2003-04-28 Jakub Jelinek <jakub@redhat.com>
70 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
71 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
72 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
74 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
76 2003-04-28 Nick Clifton <nickc@redhat.com>
78 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
80 2003-04-27 Zack Weinberg <zack@codesourcery.com>
82 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
83 output_constant_def, use its result instead of TREE_CST_RTL (exp).
84 Can assume it has the form (mem (symbol_ref ".LCxxx")).
85 (expand_expr <COMPONENT_REF>): Can always just extract the
86 relevant field of a CONSTRUCTOR.
87 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
88 ARRAY_RANGE_REF>): Make control flow explicit.
89 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
92 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
94 * reload1.c (reg_set_luid): Fix a comment typo.
96 2003-04-27 Zack Weinberg <zack@codesourcery.com>
98 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
99 struct deferred_string, const_str_htab): Kill.
100 (n_deferred_strings): New static variable.
101 (build_constant_desc): Set SYMBOL_REF_DECL of the new
102 symbol_ref to point to the constant.
103 (output_constant_def): When a deferred string is forced out,
104 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
105 (mark_constant): Likewise.
106 (maybe_output_constant_def_contents): When deferring a string
107 constant, just set STRING_POOL_ADDRESS_P and increment
109 (mark_constant_pool): Check n_deferred_strings, not the size
111 (init_varasm_once): No need to create const_str_htab.
113 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
114 SYMBOL_REF_DECL points to a constant.
116 2003-04-26 Zack Weinberg <zack@codesourcery.com>
118 * varasm.c (output_constant_def): Split out two new static
119 functions, build_constant_desc and maybe_output_constant_def_contents.
120 Restructure for comprehensibility. Don't call
121 output_addressed_constants. Treat defstr being non-NULL for
122 STRING_POOL_ADDRESS_P constants as an invariant.
123 (struct deferred_string): Remove labelno field.
124 (output_constant_def_contents): Kill labelno argument. Call
125 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
126 asm_out.internal_label.
127 (mark_constant): Update call to output_constant_def_contents.
128 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
129 constants as an invariant.
131 2003-04-26 Richard Henderson <rth@redhat.com>
133 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
134 (ix86_expand_call, ix86_rtx_consts): Likewise.
136 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
138 * doc/md.texi (cmpstr): Document additional restrictions.
140 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
142 * flags.h (time_report): Remove.
143 * timevar.c (timevar_enable): New.
144 (TIMEVAR_ENABLE): Remove, use timevar_enable.
145 (timevar_init): Rename from init_timevar.
146 * timevar.h (timevar_init): Rename from init_timevar.
147 * toplev.c (time_report): Make static.
148 (do_compile): Conditionally call init_timevar first.
149 (preprocess_options): Move some code to do_compile.
151 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
153 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
155 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
157 * _cpp_lex_direct: Remove pointless code.
159 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
161 * doc/extend.texi (Function Attributes): Document "near" and "far"
162 for 68HC11 and 68HC12.
164 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
166 * expr.c (store_field): When making temporary for store, don't
167 make it TYPE_QUAL_CONST.
169 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
171 * toplev.c (read_integral_parameter): Use "argument" in error
172 message to distinguish it from actual invalid options.
174 2003-04-25 Bob Wilson <bob.wilson@acm.org>
176 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
177 addition of __PIC__ and __pic__ macros.
178 * config/xtensa/xtensa.h: Clean up indentation.
180 2003-04-25 Bob Wilson <bob.wilson@acm.org>
182 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
183 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
184 (SUBTARGET_CPP_SPEC): Define.
186 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
187 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
188 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
190 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
191 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
193 2003-04-25 H.J. Lu <hjl@gnu.org>
195 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
197 (ia64_expand_builtin): Set rmode to SImode for
198 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
199 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
200 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
201 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
203 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
205 * configure.in (make_compare_target): Test for GNU cmp and set this
206 variable appropriately.
207 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
208 compare4-lean): Rename actual targets to slowcompare*. New compare*
209 targets depend on names based on make_compare_target.
210 * configure: Regenerated.
212 2003-04-25 Richard Henderson <rth@redhat.com>
214 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
215 to clobber ar.pfs and ar.unat.
216 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
217 fix test for spilling ar.pfs to the stack.
219 2003-04-25 Richard Henderson <rth@redhat.com>
222 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
223 checks during reload; use validize_mem instead of adjust_address.
225 2003-04-26 Ben Elliston <bje@wasabisystems.com>
227 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
228 return values from recog_memoized().
230 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
233 * gcse.c (try_replace_reg): On a successful substitution of a constant
234 into a single set, try to simplify the source of the set.
235 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
238 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
240 * cpplex.c (cpp_token_len): Tighten up.
241 (cpp_token_as_text): Need extra byte now.
242 * cpplib.c (glue_header_name): Need extra 2 bytes.
243 * cppmacro.c (cpp_macro_definition): Need extra byte.
245 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
247 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
248 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
249 where they might be not present. Use their _sp64 equivalent
252 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
254 * i386.md (cvtsi2sdq): Fix typo in previous patch.
256 2003-04-24 Krister Walfridsson <cato@df.lth.se>
258 * configure.in: Check whether mbstowcs works.
259 * configure, config.in: Regenerate.
260 * intl.c: Use HAVE_WORKING_MBSTOWCS.
262 2003-04-24 H.J. Lu <hjl@gnu.org>
264 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
265 for __sync_bool_compare_and_swap_di for int return type.
267 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
268 Change return type to int.
269 (__sync_bool_compare_and_swap): Likewise.
271 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
273 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
274 looking for fallthru edge.
276 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
278 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
279 athlon-fvector): New.
280 (athlon_*): Revisit to match new optimization guide.
281 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
282 * i386.md (cvt??2?? patterns): Fix modes.
283 (fistp patterns): Set modes.
285 Accidentaly commited with my earlier reload patch:
287 * reload.c (find_reloads_address_1): Reload plus at the place of
290 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
292 New GCOV_TAG_FUNCTION layout
293 * coverage.c (struct function_list): Replace name with ident.
294 (struct counts_entry): Likewise.
296 (htab_counts_entry_hash, htab_counts_entry_eq,
297 htab_counts_entry_del): Adjust.
298 (reads_count_file, get_coverage_counts,
299 coverage_begin_output, coverage_end_function): Adjust.
300 (build_fn_info_type, build_fn_info_value): Likewise.
301 * gcov-dump.c (tag_function): Adjust.
302 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
303 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
304 * gcov.c (struct function_info): Add ident.
305 (read_graph_file, read_count_file): Adjust.
306 * libgcov.c (gcov_exit): Adjust.
308 2003-04-23 Richard Henderson <rth@redhat.com>
311 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
312 after initialize_uninitialized_subregs; update reg info assuming
313 new pseudos were created.
315 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
317 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
318 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
319 (lex_string): Take cpp_string with full spelling.
321 (c_lex): Update diagnostics.
322 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
323 (create_literal): New.
324 (lex_string): Unterminated literals have type CPP_OTHER.
325 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
327 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
328 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
329 * cpplib.c (parse_include, do_line, do_linemarker,
330 destringize_and_run): Update for token storing full spelling.
331 * cpplib.h: Update token spelling types.
332 * cppmacro.c (stringify_arg, check_trad_stringification):
333 Update for token storing full spelling.
335 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
337 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
339 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
341 * arm.h (TARGET_OPTIONS): Add value field.
343 2003-04-23 Mark Mitchell <mark@codesourcery.com>
345 * doc/extend.texi: Remove duplicate 2003 copyright date.
347 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
349 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
350 (libgcov.a): Depends on LIBGCC_DEPS.
351 * basic-block.h (profile_info): Moved here from coverage.h. Made
353 * coverage.c (struct function_list): Fixed array of counter types.
354 (struct counts_entry): Keyed by counter type, contains summary.
355 (profile_info): Moved to profile.c.
356 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
358 (profiler_label): Remove.
360 (set_purpose, label_for_tag, build_counter_section_fields,
361 build_counter_section_value, build_counter_section_data_fields,
362 build_counter_section_data_values, build_function_info_fields,
363 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
364 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
365 build_ctr_info_value, build_gcov_info): New.
366 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
367 (reads_counts_file): Adjust.
368 (get_coverage_counts): Takes counter number. Add summary
370 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
371 create counter array labels.
372 (coverage_end_function): Adjust.
373 (create_coverage): Adjust.
374 (find_counters_section): Remove.
375 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
376 (struct section_info, struct profile_info): Remove.
377 (profile_info): Moved to basic-block.h.
378 (coverage_counter_ref): Takes a counter number.
379 (get_coverage_counts): Takes a counter number. Added summary
381 (find_counters_section): Remove.
382 * gcov-dump.c (tag_arc_counts): Rename to ...
383 (tag_counters): ... here. Adjust.
384 (tag_table): Move tag_counters to 3rd entry. Remove
385 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
386 (dump_file): Check for counter tag values here.
387 (tag_summary): Adjust.
388 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
389 * gcov-io.h (GCOV_LOCKED): New.
390 (GCOV_TAG_ARC_COUNTS): Rename to ...
391 (GCOV_TAG_COUNTS_BASE): ... here.
392 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
394 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
395 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
396 GCOV_TAG_IS_COUNTER): New.
397 (struct gcov_ctr_summary): New.
398 (struct gcov_summary): Adjust.
399 (struct gcov_counter_section): Remove.
400 struct gcov_counter_section_data): Remove.
401 (struct gcov_function_info): Rename to ...
402 (struct gcov_fn_info): ... here. Adjust.
403 (struct gcov_ctr_info): New.
404 (struct gcov_info): Adjust.
405 * gcov.c (read_count_file): Adjust.
406 (output_lines): Adjust.
407 * libgcov.c (gcov_exit): Adjust.
408 (__gcov_flush): Adjust.
409 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
410 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
411 probably_never_executed_bb_p, compute_frequency_function): Adjust
413 * profile.c (struct counts_entry): Remove.
414 (profile_info): Define here.
415 (get_exec_counts): Adjust get_coverage_counts call.
416 (compute_branch_probablilities): Remove find_counters_section
418 (gen_edge_profiler): Adjust coverage_counter_ref call.
419 * tracer.c (tail_duplicate): Adjust profile_info use.
421 2003-04-23 Roger Sayle <roger@eyesopen.com>
423 PR optimization/10339
424 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
425 directly instead of unsafely transforming call into a memcmp.
426 (expand_builtin_strncmp): Likewise.
428 2003-04-22 Roger Sayle <roger@eyesopen.com>
430 * alias.c (mark_constant_function): Check for constancy and
431 purity even of void functions. Update both the function decl
432 and the cgraph RTL info with the results.
434 2003-04-22 Roger Sayle <roger@eyesopen.com>
436 * real.c (do_add): Change to return a bool indicating that the
437 result of the operation may be inexact due to loss of precision.
438 (do_multiply): Likewise.
439 (do_divide): Likewise.
441 2003-04-22 Geoffrey Keating <geoffk@apple.com>
442 Loren James Rittle <ljrittle@acm.org>
444 * dwarf2out.c (fde_table_allocated): Mark with GTY.
445 (decl_die_table_allocated): Likewise.
446 (abbrev_die_table_allocated): Likewise.
447 (line_info_table_allocated): Likewise.
448 (separate_line_info_table_allocated): Likewise.
449 (pubname_table_allocated): Likewise.
450 (arange_table_allocated): Likewise.
451 (ranges_table_allocated): Likewise.
452 (decl_die_table_in_use): Unconditionalize; mark with GTY.
453 (abbrev_die_table_in_use): Likewise.
454 (line_info_table_in_use): Likewise.
455 (separate_line_info_table_in_use): Likewise.
456 (pubname_table_in_use): Likewise.
457 (arange_table_in_use): Likewise.
458 (ranges_table_in_use): Likewise.
459 (have_location_lists): Likewise.
460 (emitcount): New GTY-marked static, moved...
461 (maybe_emit_file): ...from here.
462 (label_num): New GTY-marked static, moved...
463 (gen_internal_sym): ...from here.
465 2003-04-22 Richard Henderson <rth@redhat.com>
468 * rtl.h (MEM_NOTRAP_P): New.
469 (MEM_COPY_ATTRIBUTES): Copy it.
470 * rtlanal.c (may_trap_p): Check it.
471 * expr.c (do_tablejump): Set it.
472 * doc/rtl.texi (Flags): Document it.
474 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
476 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
478 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
479 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
481 2003-04-22 Vincent Celier <celier@gnat.com>
483 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
484 --enable-threads=gnat.
485 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
486 * configure.in: Add gnat to the list of thread packages
487 * configure: Rebuild.
488 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
490 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
492 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
494 2003-04-22 Devang Patel <dpatel@apple.com>
496 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
498 (_cpp_copy_replacement_text): Same.
500 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
502 * c-lex.c (c_lex): Handle CPP_OTHER differently.
503 * cppexp.c (_cpp_parse_expr): Similarly.
504 * cpplex.c (SPELL_CHAR): Remove.
505 (_cpp_lex_direct): Stray chars are saved as byte strings.
506 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
508 (cpp_avoid_paste): Update handling of CPP_OTHER.
509 * cpplib.h: Spell CPP_OTHER like a number.
510 (struct cpp_token): Remove member c.
511 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
513 2003-04-22 David Turner <novalis@gnu.org>
515 * gbl-ctors.h: Add special license exception.
516 * libgcc2.h: Likewise.
517 * tsystem.h: Likewise.
518 * gcov-io.h: Likewise.
520 2003-04-22 David Edelsohn <edelsohn@gnu.org>
522 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
523 macro defaulting to original BRANCH_COST heuristic.
524 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
526 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
528 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
530 * config/rs6000/t-spe: Merge in t-fprules into file.
532 * config.gcc: Add t-spe to powerpc-eabispe.
534 2003-04-22 Kean Johnston <jkj@sco.com>
536 * tlink.c (recompile_files): Add missing '=' to putenv calls
538 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
540 * ginclude/stddef.h: Provide C++ safe offsetof.
542 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
544 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
545 for reg notes, if there are no substitutions, just use a SUBREG.
547 2003-04-21 Mark Mitchell <mark@codesourcery.com>
549 * Makefile.in (calls.o): Depend on except.h.
550 * calls.c: Include except.h.
551 (emit_call_1): Call note_eh_region_may_contain_throw if
553 * except.c (eh_region): Add may_contain_throw.
554 (expand_eh_region_end_cleanup): Do not include handler code when
555 it cannot be reached.
556 (note_eh_region_may_contain_throw): New function.
557 * except.h (note_eh_region_may_contain_throw): New function.
559 2003-04-21 Mark Mitchell <mark@codesourcery.com>
561 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
564 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
566 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
569 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
571 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
572 a number of conversions required for type consistency and previously
573 stripped off by STRIP_NOPS.
575 * calls.c (expand_call): Prevent sibcall optimization for calls to
578 * expmed.c (extract_bit_field): Reverse operands of && condition to
579 prevent a potential division by zero in the previously first branch.
580 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
582 2003-04-21 Joel Brobecker <brobecker@gnat.com>
584 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
585 (subrange_type_die): Likewise.
586 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
587 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
589 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
591 Break out coverage routines to new file.
592 * Makefile.in (COVERAGE_H): New variable
593 (C_OBJS): Add coverage.o
594 (coverage.o): New target.
595 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
598 (gt-coverage.h): New target.
599 (gt-profile.h): Remove.
600 * profile.h: Remove. Move to ...
601 * coverage.h: ... here. New. #include gcov-io.h.
602 * gcov-io.h: Move function definitions to ...
603 * gcov-io.c: ... here. New.
604 * profile.c: Move coverage routines to coverage.c.
605 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
606 end_branch_prob): Adjust.
607 * coverage.c: New. Coverage routines from profile.c
608 (coverage_counter_ref, coverage_init, coverage_finish,
609 coverage_end_function, coverage_begin_output,
610 coverage_counter_ref, get_coverage_counts): Define.
611 * gcov-dump.c, gcov.c: #include gcov-io.c.
612 * libgcov.c: Likewise. Adjust.
613 * loop-init.c: Don't #include profile.h
614 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
615 * rtl.h: Add coverage prototypes.
616 * toplev.c (compile_file): Init coverage, not branch_prob.
617 Always call coverage_finish.
618 (rest_of_compilation): Call coverage_end_function.
620 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
622 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
624 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
626 * c-ppoutput.c (cb_include): Don't take a cpp_token.
627 * cppfiles.c: Don't undef strcmp.
628 (find_include_file): Don't take a cpp_token. Check for empty
630 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
631 (cpp_push_include): Simplify.
632 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
633 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
634 (parse_include): Similary. Don't check for zero-length filenames.
635 (do_include_common, do_pragma_dependency): Update accordingly.
636 * cpplib.h (struct cpp_callbacks): Change prototype of include.
638 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
640 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
641 details of conflict handling.
643 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
644 when conversion overflows.
646 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
648 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
651 2003-04-21 Mark Mitchell <mark@codesourcery.com>
653 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
654 have the same form as the old RTL.
656 2003-04-21 Andreas Jaeger <aj@suse.de>
658 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
660 2003-04-20 Chris Lattner <sabre@nondot.org>
661 Zack Weinberg <zack@codesourcery.com>
663 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
664 genrtl_cleanup_stmt. Correct comment at head of
665 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
667 * stmt.c (struct nesting): Kill n_function_calls.
668 (expand_start_bindings): Don't set
669 thisblock->data.block.n_function_calls.
670 (expand_end_bindings): Compare function_call_count against 0.
671 (expand_cleanups): Kill DONT_DO argument; all callers passed
672 NULL_TREE. All callers updated to match.
674 2003-04-20 Zack Weinberg <zack@codesourcery.com>
676 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
677 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
678 (output_constant_def): Remove code predicated on
679 defer_addressed_constants_flag.
681 * output.h: Remove prototypes of deleted functions.
682 * c-typeck.c (constructor_subconstants_deferred): Kill.
683 (struct initializer_stack): Remove 'deferred' field.
684 (start_init): Remove all references to the above.
685 (finish_init): Likewise. Also remove never-executed call to
686 output_deferred_addressed_constants. Pull assignment to
687 defstr out of if expression.
689 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
691 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
692 NOTE_NEWLINE): Remove.
693 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
694 to handle new form of line note type.
696 2003-04-20 Zack Weinberg <zack@codesourcery.com>
698 * target.h (encode_section_info): Add new argument carrying
699 the RTL to be modified by the hook.
701 * varasm.c (make_decl_rtl, output_constant_def): Update calls
702 to encode_section_info.
703 (default_encode_section_info): Take and use RTL argument,
704 don't use TREE_CST_RTL or DECL_RTL.
705 * output.h: Update prototype of default_encode_section_info.
706 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
707 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
708 Update calls to encode_section_info.
710 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
711 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
712 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
713 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
714 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
715 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
716 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
717 except for PE dllimport/dllexport. Update calls to
718 default_encode_section_info.
720 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
723 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
725 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
728 * pa.md (movccfp): New expander.
729 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
730 Reverse fcmp conditions.
732 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
734 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
735 of operand 1 correctly.
737 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
739 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
740 * gcov.c (output_lines): Don't be so fussy about going past EOF.
742 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
744 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
745 (cppcharset.o): New target.
746 * c-lex.c (is_extended_char): Move to cppcharset.c.
747 (utf8_extend_token): Delete.
748 * cppcharset.c: New file.
749 * cpphash.h (_cpp_valid_ucn): New.
750 * cpplex.c (lex_identifier): Update prototype.
751 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
753 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
755 (lex_number, lex_identifier, cpp_parse_escape): Update.
756 (_cpp_lex_direct): Update to handle UCNs.
757 (cpp_avoid_paste): Don't paste to form a UCN.
759 2003-04-19 Roger Sayle <roger@eyesopen.com>
761 * builtins.c (expand_builtin): Don't expand a pure or const
762 built-in function if the result will be ignored and none of
763 its arguments are volatile.
765 2003-04-19 Kean Johnston <jkj@sco.com>
767 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
768 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
769 target fragment now: t-sco5; dont compile crti.o.
770 * config/i386/sco5.h: major overhaul to remove all COFF remnants
771 and to use elfos.h for most definitions.
772 (BSS_SECTION_ASM_OP): set correct segment attributes.
773 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
774 (DWARF2_UNWIND_INFO): Always set to 1.
775 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
776 (MD_STARTFILE_PREFIX_1): Define.
777 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
778 (DEFAULT_LINKER): Define if not specified to configure.
779 (CTORS_SECTION_ASM_OP): Remove COFF crud.
780 (DTORS_SECTION_ASM_OP): Remove COFF crud.
782 (SDB_DEBUGGING_INFO): Remove.
783 (EXTRA_SECTIONS): Likewise.
784 (EXTRA_SECTION_FUNCTIONS): Likewise.
785 (CTOR_LIST_BEGIN): Likewise.
786 (CTOR_LIST_END): Likewise.
787 (INIT_SECTION_FUNCTION): Likewise.
788 (FINI_SECTION_FUNCTION): Likewise.
789 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
790 (LOCAL_LABEL_PREFIX): Likewise.
791 (NON_SAVING_SETJMP): Likewise.
792 (RETURN_POPS_ARGS): Likewise.
793 (ASM_OUTPUT_SKIP): Likewise.
794 (TARGET_ASM_NAMED_SECTION): Likewise.
795 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
796 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
797 (ASM_OUTPUT_IDENT): Likewise.
798 (ASM_OUTPUT_CASE_LABEL): Likewise.
799 (ASM_OUTPUT_ASCII): Likewise.
800 (ASM_OUTPUT_LIMITED_STRING): Likewise.
801 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
802 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
803 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
804 (ASM_FINISH_DECLARE_OBJECT): Likewise.
805 (ASM_DECLARE_OBJECT_NAME): Likewise.
806 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
807 (ASM_DECLARE_FUNCTION_NAME): Likewise.
808 (ASM_DECLARE_RESULT): Likewise.
809 (ASM_WEAKEN_LABEL): Likewise.
810 (SUPPORTS_WEAK): Likewise.
811 (APPLY_RESULT_SIZE): Likewise.
813 (ALIGN_ASM_OP): Likewise.
814 (ASCII_DATA_ASM_OP): Likewise.
815 (IDENT_ASM_OP): Likewise.
816 (ASM_SHORT): Likewise.
817 (ASM_LONG): Likewise.
818 (TYPE_ASM_OP): Likewise.
819 (SIZE_ASM_OP): Likewise.
820 (STRING_ASM_OP): Likewise.
821 (SKIP_ASM_OP): Likewise.
822 (EH_FRAME_SECTION_ASM_OP): Likewise.
823 (READONLY_DATA_SECTION_ASM_OP): Likewise.
824 (INIT_SECTION_ASM_OP): Likewise.
825 (FINI_SECTION_ASM_OP): Likewise.
826 (TEXT_SECTION_ASM_OP): Likewise.
827 (DATA_SECTION_ASM_OP): Likewise.
828 (TYPE_OPERANT_FORMAT): Likewise.
829 (ASM_SPEC): Remove COFF code.
830 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
831 cause -pg to emit an error; use pcrt1elf.o with -pp
832 (ENDFILE_SPEC): Likewise.
833 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
834 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
835 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
836 add -z alt_resolve to support weak symbols the way GCC wants them.
837 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
838 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
839 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
840 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
841 (CRTSTUFF_T_CFLAGS_S): Define.
842 (MULTILIB_OPTIONS): Likewise.
843 (MULTILIB_DIRNAMES): Likewise.
844 (MULTILIB_MATCHES): Likewise.
845 (MULTILIB_EXTRA_OPTS): Likewise.
847 (INSTALL_LIBGCC): Likewise.
849 * config/i386/t-sco5gas: Remove.
850 * doc/install.texi: Updated for new OpenServer instructions.
851 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
853 2003-04-19 Kean Johnston <jkj@sco.com>
855 * fixinc/check.tpl: Allow user to over-ride diff program.
856 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
857 (sco_math): Added test for SCO math header files.
858 (sco_regset): Added check for conflicts with ieeefp.h.
859 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
860 * fixinc/fixincl.x: Regenerated
861 * fixinc/tests/base/math.h: Added sco_math tests.
862 * fixinc/tests/base/string.h: New file.
863 * fixinc/tests/base/sys/regset.h: New file.
865 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
867 * cpphash.h (struct cpp_buffer): Remove backup_to.
868 * cpplex.c (BACKUP, get_effective_char): Die.
869 (_cpp_skip_block_comment): Assume '*' is location on entry.
870 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
871 (IF_NEXT_IS): Update.
872 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
874 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
876 * README.Portability: Move to a new section and obsolete K+R
879 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
881 * rtlanal.c (subreg_offset_representable_p): Fix call of
884 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
886 * cpphash.h (struct cpp_reader): New member warned_dollar.
887 * cpplex.c (continues_identifier_p): New function.
888 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
889 lex_number and lex_string, and simplify.
890 (parse_slow, unescaped_terminator_p): Die.
891 (_cpp_lex_direct): Update.
893 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
895 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
897 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
899 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
902 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
904 * cppexp.c (eval_token): Permit true and false even if pedantic.
906 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
908 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
910 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
912 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
913 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
914 (struct include_file): Remove fefcnt, mapped members.
915 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
916 (read_include_file): Don't use mmap, terminate buffers in '\r'.
917 (purge_cache): Don't use munmap.
918 * cpphash.h (CPP_BUF_COLUMN): Update.
919 (lexer_state): Remove lexing_comment.
920 (struct _cpp_line_note): New.
921 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
922 next_line and need_line. Remove col_adjust and saved_flags.
923 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
924 _cpp_skip_block_comment, scan_out_logical_line): New.
925 (_cpp_init_mbchar): Remove.
926 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
927 (cpp_read_main_file): Set line to 1 earlier.
928 (post_options): -traditional-cpp doesn't want trigraphs.
929 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
930 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
931 _cpp_get_fresh_line): New.
932 (handle_newline, skip_escaped_newlines, trigraph_p,
933 continue_after_nul, _cpp_init_mbchar): Remove.
934 (get_effective_char): Update.
935 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
936 (skip_line_comment): Simplify.
937 (skip_whitespace, parse_identifier, parse_slow, parse_number,
938 parse_string): Update.
939 (cpp_lex_direct): Use clean lines and process line notes. Update.
940 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
941 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
943 (_cpp_handle_directive): Don't set saved_flags.
944 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
945 cpp_undef, handle_assertion, cpp_push_buffer): Update.
946 (_cpp_pop_buffer): Free notes.
947 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
948 * cpppch.c (cpp_read_state): \n terminate buffer.
949 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
950 (copy_comment): Use _cpp_skip_block_comment.
951 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
953 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
954 save_replacement_text): Update.
955 (scan_out_logical_line): Update to use clean lines and process
957 * fix-header.c (read_scan_file): Update.
959 2003-04-18 Douglas B Rupp <rupp@gnat.com>
961 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
962 null begin parameter (as well as pointer to null).
963 (__deregister_frame_info_bases): Likewise.
965 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
967 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
968 hard or virtual register and copy into pseudo if replacement fails.
970 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
972 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
974 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
976 * calls.c (expand_call): Move special case for constructor calls
977 to right place. Ensures constructor calls used to initialize
978 arguments get a clean outgoing argument block for themselves.
979 Move check for stack deallocation completeness until after last
980 deallocation. Add stack_pointer_delta to set of state
981 variables saved and restored along with current stack_level.
983 * integrate.c (expand_inline_function): Ensure non-const actuals
984 don't end up const in the caller's flow after conversion to possibly
987 2003-04-18 Vincent Celier <celier@gnat.com>
989 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
990 and *_DIV_EXPR as TRUNC_*_EXPR.
992 2003-04-18 Mark Mitchell <mark@codesourcery.com>
994 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
995 for orphaned jump tables.
997 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
999 * reload1.c: Revert my previous patch on 2002-04-17.
1001 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1003 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
1004 Add Segher Boessenkool.
1006 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
1009 * c-decl.c (c_expand_body): Don't garbage collect the function
1010 body if we are going to dump it later.
1012 2003-04-18 Richard Henderson <rth@redhat.com>
1014 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
1015 (alpha_end_function): Don't set them.
1016 (decl_in_text_section): Remove.
1017 (alpha_encode_section_info): Remove.
1018 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
1019 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
1020 sections, rather than decl_in_text_section results.
1022 2003-04-18 Roger Sayle <roger@eyesopen.com>
1024 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
1027 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1029 PR optimization/7675
1030 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
1031 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
1032 nested functions if they refer to declarations from parent functions.
1033 * stmt.c (expand_decl): Don't put automatic variables in registers
1034 if the DECL_NONLOCAL flag is set.
1036 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1038 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
1039 consider those to be movable where the source matches
1041 (update_ld_motion_stores): In comment, refer to
1042 compute_ld_motion_mems for validity of replacement.
1044 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
1046 * gcov-dump.c (tag_summary): Remove max_sum
1047 * gcov-io.h (gcov_summary, gcov_write_summary,
1048 gcov_read_summary): Kill max_sum.
1049 * libgcov.c (gcov_exit): Do one pass over the data. Make error
1050 message more verbose.
1052 * emit-rtl.c (subreg_hard_regno): Check that register is
1055 * reload.c (reload_inner_reg_of_subreg): When register is not
1056 representable, reload the whole thing.
1057 (find_reloads): Likewsie.
1058 * rtlanal.c (subreg_representable_p): New function.
1060 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
1061 allow negative probabilities for edges from the call to exit.
1062 (branch_prob): Do not add fake edges for functions that may return
1065 2003-04-17 DJ Delorie <dj@redhat.com>
1067 * toplev.c (target_options): Add value field.
1068 (set_target_switch): Handle target options with values.
1069 * doc/tm.texi: Document how fixed vs variable target
1071 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
1072 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
1073 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1074 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
1075 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
1076 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
1077 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
1078 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
1079 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
1080 Add value initializer to target options.
1082 2003-04-07 Loren James Rittle <ljrittle@acm.org>
1084 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
1086 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
1088 * reload1.c (move2add_last_cc0): New.
1089 (reload_cse_move2add): Detect implicit sets.
1090 (move2add_note_store): Notice a store into cc0.
1092 2003-04-17 Roger Sayle <roger@eyesopen.com>
1095 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
1096 function attributes.
1098 2003-04-17 Janis Johnson <janis187@us.ibm.com>
1100 * doc/sourcebuild.texi (Test Suites): Document support for testing
1101 binary compatibility (moved from testsuite/README.compat).
1103 2003-04-17 Richard Henderson <rth@redhat.com>
1105 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
1107 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
1109 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
1110 the one provided by the FSF.
1112 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1114 * doc/install.texi (Binaries): Update URL and list of platforms
1115 provided by ftp.thewrittenword.com.
1117 2003-04-17 Richard Henderson <rth@redhat.com>
1119 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
1120 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
1121 * config/xtensa/xtensa.md (call, call_value): Likewise.
1123 2003-04-17 Richard Henderson <rth@redhat.com>
1125 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
1126 (print_operand_address): Likewise.
1127 (ep_memory_operand): Likewise.
1128 (special_symbolref_operand): Likewise.
1129 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
1130 (v850_encode_section_info): Call default_encode_section_info.
1131 (v850_strip_name_encoding): Remove.
1132 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
1133 (ASM_OUTPUT_LABELREF): Remove.
1134 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
1135 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
1136 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
1137 (ENCODED_NAME_P): Remove.
1138 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
1139 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
1140 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
1142 2003-04-17 Richard Henderson <rth@redhat.com>
1144 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
1145 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
1146 SYMBOL_REF_FUNCTION_P.
1148 2003-04-17 Richard Henderson <rth@redhat.com>
1150 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
1151 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
1152 (text_segment_operand): Likewise.
1154 2003-04-17 Richard Henderson <rth@redhat.com>
1156 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
1157 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1158 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
1159 (sh_encode_section_info): Remove.
1160 (sh_strip_name_encoding): Remove.
1161 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
1162 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
1163 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
1164 (ASM_OUTPUT_LABELREF): Remove.
1165 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
1166 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
1168 2003-04-17 Richard Henderson <rth@redhat.com>
1170 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
1171 (tls_model_chars): Remove.
1172 (larl_operand): Use SYMBOL_REF_FLAGS.
1173 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1174 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
1175 (s390_output_mi_thunk): Likewise.
1176 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
1177 (s390_function_profiler): Likewise.
1178 (s390_encode_section_info): Use default_encode_section_info
1179 and SYMBOL_FLAG_ALIGN1.
1180 (s390_strip_name_encoding): Remove.
1181 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
1182 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
1183 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
1185 2003-04-17 Richard Henderson <rth@redhat.com>
1187 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
1188 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
1189 (print_operand_address): Likewise.
1191 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
1192 * config/ns32k/ns32k.c (expand_block_move): Don't check
1195 2003-04-17 Richard Henderson <rth@redhat.com>
1197 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
1200 2003-04-17 Richard Henderson <rth@redhat.com>
1202 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
1204 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
1205 (SYMBOL_REF_MODEL): New.
1206 (LIT_NAME_P): Move from m32r.h.
1207 (m32r_select_section): Remove.
1208 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
1209 (m32r_strip_name_encoding): Remove.
1210 (m32r_in_small_data_p): New.
1211 (small_data_operand): Use SYMBOL_REF_SMALL_P.
1212 (addr24_operand): Use SYMBOL_REF_MODEL.
1213 (call26_operand): Likewise.
1214 (addr32_operand): Tidy.
1215 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
1216 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
1217 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
1218 (READONLY_DATA_SECTION_ASM_OP): Remove.
1219 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1220 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
1221 (TARGET_ASM_SELECT_SECTION): Remove.
1222 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
1223 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
1224 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
1225 (ASM_OUTPUT_LABELREF): Remove.
1227 2003-04-17 Richard Henderson <rth@redhat.com>
1229 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
1230 (encode_section_info): Remove.
1231 * config/ip2k/ip2k-protos.h: Update.
1233 2003-04-17 Richard Henderson <rth@redhat.com>
1235 * varasm.c (default_encode_section_info): Don't set
1236 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
1237 * config/i370/i370.c (i370_encode_section_info): Remove.
1238 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
1239 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
1240 * config/i370/i370.md (movsi): Likewise.
1242 * config/i370/t-i370: Add missing backslash.
1244 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1246 * doc/invoke.texi (inline-limit): Fix pasto.
1248 2003-04-17 Richard Henderson <rth@redhat.com>
1250 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
1251 (small_call_insn_operand): Use it.
1252 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
1253 (h8300_eightbit_constant_address_p): Use it.
1254 (SYMBOL_FLAG_TINY_DATA): New.
1255 (h8300_tiny_constant_address_p): Use it.
1256 (h8300_encode_label, h8300_strip_name_encoding): Remove.
1257 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
1258 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
1259 (ASM_OUTPUT_LABELREF): Remove.
1261 2003-04-16 Richard Henderson <rth@redhat.com>
1263 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
1264 all users with SYMBOL_REF_SMALL_P.
1265 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
1266 (frv_encode_section_info): Remove.
1267 (frv_strip_name_encoding): Remove.
1268 (frv_in_small_data_p): Merge tests from encode_section_info.
1269 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
1270 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
1271 (SDATA_NAME_P): Remove.
1272 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
1273 (ASM_OUTPUT_LABELREF): Remove.
1274 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
1276 * config/frv/frv.c (frv_asm_out_constructor): New.
1277 (frv_asm_out_destructor): New.
1278 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
1279 (DTORS_SECTION_ASM_OP): New.
1280 (ASM_OUTPUT_CONSTRUCTOR): Remove.
1281 (ASM_OUTPUT_DESTRUCTOR): Remove.
1283 2003-04-16 Richard Henderson <rth@redhat.com>
1285 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
1286 SYMBOL_REF_LOCAL_P; abort if not pic.
1287 (cris_encode_section_info): Remove.
1289 2003-04-16 Richard Henderson <rth@redhat.com>
1291 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
1292 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
1294 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
1297 2003-04-16 Richard Henderson <rth@redhat.com>
1299 * config/avr/avr.c (avr_encode_section_info): Remove.
1300 (avr_insert_attributes): New.
1301 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
1302 (avr_assemble_integer): Likewise.
1304 2003-04-16 Richard Henderson <rth@redhat.com>
1306 * arc.c (arc_encode_section_info): Remove.
1307 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
1308 (arc_print_operand, arc_print_operand_address): Likewise.
1309 * arc.h (EXTRA_CONSTRAINT): Likewise.
1311 2003-04-16 Roger Sayle <roger@eyesopen.com>
1313 * c-semantics.c (find_reachable_label): New function to find a
1314 potentially reachable label in an expression.
1315 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
1316 assumes the start of the IF_STMT is unreachable (dead) code.
1317 (expand_unreachable_stmt): Similar to expand_stmt but assumes
1318 the start of the statement list is unreachable (dead) code.
1319 (genrtl_if_stmt): If the controlling expression of the IF
1320 is constant, use expand_unreachable_stmt for the THEN or ELSE
1321 clause as appropriate.
1322 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
1323 the body of a SWITCH statement.
1324 (expand_stmt): The code immediately following a "return",
1325 "break", "continue" or "goto" is unreachable.
1326 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
1328 2003-04-16 Richard Henderson <rth@redhat.com>
1330 * rtl.h (MEM_ALIAS_SET): Update documentation.
1331 * doc/rtl.texi (Special Accessors): New node.
1332 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
1334 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
1336 * reload1.c (reload_cse_noop_set_p): Return false if mode of
1337 SET_DEST is not the same as that returned by...
1338 * cselib.h (cselib_reg_set_mode): ... new function.
1339 * cselib.c (cselib_reg_set_mode): Define it.
1340 (REG_VALUES): Document semantics of first element as set mode.
1341 (cselib_subst_to_values): Skip first element if ELT is NULL.
1342 (cselib_lookup): Likewise. Insert past the first element.
1343 (cselib_invalidate_regno): NULLify first element.
1344 (cselib_record_set): Set first element.
1346 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
1348 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
1349 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
1350 * tree.h: Add prototypes for the two new functions.
1351 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
1352 updates introduced in the previous revision by call to saved_expr_p.
1353 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
1355 * expr.c (store_field): Force usage of bitfield instructions when
1356 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
1357 (expand_expr, case BIT_FIELD_REF): likewise.
1359 2003-04-16 Mark Mitchell <mark@codesourcery.com>
1362 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
1365 2003-04-16 Richard Henderson <rth@redhat.com>
1367 * config/ia64/ia64.c (sdata_symbolic_operand): Use
1368 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
1369 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1370 (function_operand): Use SYMBOL_REF_FUNCTION_P.
1371 (ia64_expand_load_address): Likewise.
1372 (ia64_assemble_integer): Likewise.
1373 (ia64_encode_section_info): Remove.
1374 (ia64_strip_name_encoding): Remove.
1375 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
1376 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
1378 2003-04-16 Richard Henderson <rth@redhat.com>
1380 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
1381 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
1382 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
1383 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
1384 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
1385 (global_symbolic_operand): Similarly.
1386 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
1387 (tls_symbolic_operand_type): Likewise.
1388 (alpha_encode_section_info): Use default_encode_section_info.
1389 (alpha_strip_name_encoding): Remove.
1390 (get_tls_get_addr): Split out from ...
1391 (alpha_legitimize_address): ... here.
1392 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
1393 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
1394 (alpha_initialize_trampoline): Use init_one_libfunc.
1395 (alpha_setup_incoming_varargs): Mark unused parameters.
1396 (alpha_initial_elimination_offset): Likewise.
1397 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
1398 (unicosmk_unique_section): Use default_strip_name_encoding.
1399 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
1401 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
1403 * config.gcc: Add t-spe for eabispe.
1405 * config/rs6000/t-spe: New.
1407 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
1409 Re-apply this patch:
1411 2002-05-16 Dale Johannesen <dalej@apple.com>
1412 * combine.c (cant_combine_insn_p): Reenable combinations
1413 involving hard regs unless CLASS_LIKELY_SPILLED_P.
1415 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1418 * pa-protos.h (function_arg): Remove last argument.
1419 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
1420 * pa.h (struct hppa_args): Add member incoming.
1421 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
1423 (FUNCTION_ARG): Revise call to function_arg.
1424 (FUNCTION_INCOMING_ARG): Delete.
1426 2003-04-15 Zack Weinberg <zack@codesourcery.com>
1428 * configure.in: Unify the code which creates symlinks to a
1429 just-built as, ld, objdump, and nm with the code that detects
1430 their presence for purposes of feature tests.
1431 * configure: Regenerate.
1433 2003-04-15 Zack Weinberg <zack@codesourcery.com>
1435 * varasm.c (output_constant_def): Do not consult
1436 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
1437 (after_function_constants, output_after_function_constants): Delete.
1438 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
1439 * config/mips/mips-protos.h, config/mips/mips.c
1440 (mips16_constant_after_function_p): Delete.
1441 * config/mips/mips.h: Delete #if-0-ed definition of
1442 CONSTANT_AFTER_FUNCTION_P.
1443 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
1444 mention of CONSTANT_AFTER_FUNCTION_P in comment.
1446 2003-04-15 Geoffrey Keating <geoffk@apple.com>
1448 * tree.c (next_decl_uid): Mark with GTY.
1449 (next_type_uid): Likewise.
1451 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
1454 * sh.c (barrier_align): Also recognize stuff_delay_slot as
1455 an indicator that a barrier was created by branch splitting.
1457 2003-04-15 Mark Mitchell <mark@codesourcery.com>
1459 * c-decl.c (implicitly_declare): Copy declarations that are going
1460 to be placed in a local scope.
1462 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
1464 * invoke.texi (Spec Files): Wrap if-exists-else example.
1465 (MCore): Remove duplicate @itemx entries and @opindex entries.
1467 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
1469 * unwind.inc (_Unwind_Backtrace): New function.
1470 * unwind.h (_Unwind_Backtrace): Declare it.
1471 * libgcc-std.ver (_Unwind_Backtrace): Export it.
1473 2003-04-14 Jason Merrill <jason@redhat.com>
1475 PR middle-end/10336, c++/10401
1476 * jump.c (never_reached_warning): Also stop looking if we reach the
1477 beginning of the function.
1479 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1484 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
1486 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
1488 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
1490 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1492 * optabs.c (expand_binop): In multi-word add cases, ensure
1493 XTARGET is copied to TARGET if they are different.
1495 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
1497 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
1498 to region, possible after integration of function with unreachable
1499 regions that were optimized away.
1501 2003-04-15 Jakub Jelinek <jakub@redhat.com>
1503 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
1504 instead of TOC_REGISTER in epilogue in
1505 current_function_calls_eh_return functions.
1507 2003-04-14 Mark Mitchell <mark@codesourcery.com>
1509 * doc/extend.texi (Empty Structures): Correct description of G++'s
1510 handling of these structures.
1512 * c-decl.c (grokdeclarator): Reject extern redeclarations of
1515 2003-04-14 Janis Johnson <janis287@us.ibm.com>
1517 * config/rs6000/rs6000.md (define_constants): Define constants for
1518 all UNSPEC usage, including new values for TLS support.
1519 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
1520 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
1521 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
1522 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
1523 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
1524 eh_set_lr_di): Use them.
1525 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
1526 rs6000_emit_epilogue) Use them.
1528 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
1530 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
1532 * Makefile.in (c-opts.o): Use custom action.
1534 2003-04-14 Douglas B Rupp <rupp@gnat.com>
1536 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
1538 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1540 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
1541 handle "superflat arrays" in Ada.
1543 * integrate.c (expand_inline_function): Don't inline if would
1544 lose /u on a BLKmode TARGET.
1546 2003-04-14 Joel Brobecker <brobecker@gnat.com>
1548 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
1549 extracted from dbxout_type.
1550 (dbxout_range_type): print large bounds in octal format.
1551 (dbxout_type): Replace extracted code by call to
1552 print_int_cst_bounds_in_octal_p.
1554 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
1555 of DW_LANG_Ada83 for Ada units.
1557 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
1559 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
1560 temporary used to round CONST_INT sizes.
1562 * tree.c (int_fits_type_p): Extract generic checks from the case
1563 of constant type bounds. Refine the checks against constant type
1564 bounds to allow for possible decisions against each of these bounds
1565 without requiring both bounds to be constant.
1566 (tree_int_cst_msb): Put back.
1567 * tree.h (tree_int_cst_msb): Likewise.
1569 * global.c (global_conflicts): Prevent allocation of call clobbered
1570 hard regs to pseudos live across abnormal edges, as later passes are
1571 not ready to handle them.
1573 * fold-const.c (fold): Reorder tests for conditional expressions.
1575 * expr.c (highest_pow2_factor): Return unsigned.
1576 * expr.h (offset_address): Likewise.
1577 * emit-rtl.c (offset_address): POW2 argument now unsigned.
1579 2003-04-14 Roger Sayle <roger@eyesopen.com>
1581 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
1582 string literals at compile-time.
1584 2003-04-14 Roger Sayle <roger@eyesopen.com>
1586 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
1587 comparison operation and c1/c2 are floating point constants into
1588 x swap(cmp) (c1 - c2).
1590 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
1592 * genautomata.c (output_translate_vect): Fix a typo in loop
1595 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
1598 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
1599 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
1600 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
1601 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
1602 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
1603 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
1604 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
1605 ("*extopqihi_swap_side", "*extopqisi_swap_side")
1606 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
1607 When next to constraint R, replace constraint i with n.
1609 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
1612 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
1614 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1616 * doc/contrib.texi (Contributors): Correct my entry.
1618 2003-04-13 Roger Sayle <roger@eyesopen.com>
1620 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
1621 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
1622 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
1623 implies DECL_BUILT_IN to simplify logic.
1624 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
1626 2003-04-13 Roger Sayle <roger@eyesopen.com>
1628 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
1629 (BT_FN_PTR_SIZE_SIZE): Likewise.
1630 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
1631 New built-in functions for malloc, calloc and strdup respectively.
1632 * calls.c (special_function_p): No need to handle malloc-like
1633 functions any longer. ECF_MALLOC is set via built-in attributes.
1635 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
1637 * doc/extend.texi: Document these new built-in functions.
1639 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1641 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
1642 (expand_builtin_stpcpy): New.
1643 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
1644 * builtins.def: Add mempcpy & stpcpy support.
1645 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
1647 2003-04-13 Nick Clifton <nickc@redhat.com>
1649 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
1651 * config/rs6000/40x.md, config/rs6000/603.md,
1652 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
1653 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
1654 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
1655 config/rs6000/aix43.h, config/rs6000/aix51.h,
1656 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
1657 config/rs6000/altivec.h, config/rs6000/altivec.md,
1658 config/rs6000/beos.h, config/rs6000/darwin.h,
1659 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
1660 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
1661 config/rs6000/freebsd.h, config/rs6000/gnu.h,
1662 config/rs6000/host-darwin.c, config/rs6000/linux.h,
1663 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
1664 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
1665 config/rs6000/netbsd.h, config/rs6000/power4.md,
1666 config/rs6000/rios1.md, config/rs6000/rios2.md,
1667 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
1668 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1669 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
1670 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
1671 config/rs6000/spe.md, config/rs6000/sysv4.h,
1672 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
1673 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
1675 2003-04-13 Nick Clifton <nickc@redhat.com>
1677 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
1678 support for -mcall-aix switch.
1679 * config/rs6000/eabiaix.h: Delete.
1680 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
1681 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
1682 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
1683 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
1684 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
1685 debug_stack_info, output_function_profiler,
1686 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
1687 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
1688 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1689 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
1690 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
1691 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
1693 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
1694 (MULTILIB_EXCEPTIONS): Delete.
1695 (MULTILIB_MATCHES): Remove mcall-aix matches.
1697 * doc/fragments.texi: Replace -mcall-aix example with an ARM
1699 * doc/install.texi: Delete powerpc-*-eabiaix target.
1700 * doc/invoke.texi: Remove documentation of mcall-aix switch.
1701 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
1702 * config.gcc: Delete powerpc-*-eabiaix target.
1704 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
1706 * doc/invoke.texi: Fix typos.
1707 * doc/tm.texi: Likewise.
1709 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1711 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
1713 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1715 * tree.c (build_constructor): New function.
1716 * tree.h: Prototype it.
1718 * c-typeck.c (build_c_cast, pop_init_level)
1719 * profile.c (build_function_info_value, build_gcov_info_value)
1721 Use build_constructor.
1723 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
1725 * objc/objc-act.c (build_constructor):
1726 Rename objc_build_constructor. Use build_constructor.
1727 (build_objc_string_object, objc_add_static_instance)
1728 (init_def_list, init_objc_symtab, init_module_descriptor)
1729 (generate_static_references, build_selector_translation_table)
1730 (build_descriptor_table_initializer, generate_descriptor_table)
1731 (build_protocol_initializer, build_ivar_list_initializer)
1732 (generate_ivars_list, build_dispatch_table_initializer)
1733 (generate_dispatch_table, generate_protocol_list)
1734 (build_category_initializer, build_shared_structure_initializer):
1737 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1739 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
1741 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1743 * config/m68hc11/m68hc11-protos.h
1744 (m68hc11_eq_compare_operator): Declare
1745 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
1746 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
1747 (d_register_operand): Check the operand mode.
1748 (hard_addr_reg_operand): Likewise.
1750 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1752 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
1753 pattern for dbcc/ibcc generation for 68HC12.
1754 ("doloop_end"): New pattern.
1755 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
1756 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
1757 ("m68hc12_dbcc_dec_qi"): New pattern.
1758 ("m68hc12_dbcc_inc_qi"): New pattern.
1759 (split): Add split for the above when we can't use dbcc/ibcc due to
1761 (peephole2): Add peephole2 to generate the above when possible.
1763 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1765 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
1767 (peephole2 optimize const load): Likewise for operand 2.
1768 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
1770 ("*rotrhi3_with_carry"): Likewise.
1771 (ashift:DI 1 split): Update pattern to create the above rotate.
1772 (lshiftrt:DI 1 split): Likewise.
1774 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1776 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
1777 ("tstqi_z_used" split): Use it.
1778 ("cmphi_z_used"): Likewise.
1779 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
1780 ("cmpqi_z_used"): Likewise.
1782 2003-04-12 Mark Mitchell <mark@codesourcery.com>
1785 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
1787 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1789 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
1790 * configure, config.in: Regenerate.
1791 * intl.c (gcc_gettext_width): New function.
1792 * intl.h: Prototype it.
1794 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1796 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
1797 recognize -mnorelax.
1798 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
1799 (REG_CLASS_NAMES): Add its name.
1800 (REG_CLASS_CONTENTS): Define its content.
1802 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1804 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
1805 parameters so that offsets are valid for far definition.
1806 (__mulsi3): Likewise and use ret to return.
1807 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
1809 2003-04-12 David Edelsohn <edelsohn@gnu.org>
1811 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
1813 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
1815 * mklibgcc.in (libgcc-stage-start): For every multilib directory
1816 containing a libgcc.a, move lib* to the corresponding stage dir.
1818 * Makefile.in (stage1-start, stage2-start, stage3-start,
1819 stage4-start): Move $(SPECS) to specs in stage dir.
1820 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
1823 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
1824 object files from the non-libgcc/ multilib directories as well.
1826 2003-04-11 Geoffrey Keating <geoffk@apple.com>
1828 * profile.c (read_counts_file): Initialise 'checksum'.
1830 * emit-rtl.c (gen_rtx): Really correct typo.
1833 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
1834 * configure.in: Check for gettimeofday.
1835 * tree.c (flag_random_seed): Define.
1836 (default_flag_random_seed): New.
1837 (append_random_chars): Use flag_random_seed rather than trying
1838 to acquire randomness here.
1839 * tree.h (default_flag_random_seed): Declare.
1840 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
1842 (decode_f_option): Handle -frandom-seed.
1843 (print_switch_values): Call default_flag_random_seed.
1844 * flags.h (flag_random_seed): Declare.
1845 * configure: Regenerate.
1846 * config.in: Regenerate.
1847 * config/alpha/t-crtfm: Use -frandom-seed.
1849 * doc/extend.texi (Empty Structures): New.
1851 * c-pch.c: Include flags.h. Add comments to routines.
1852 (struct c_pch_validity): New.
1853 (get_ident): Update PCH file version number.
1854 (pch_init): Output current debugging type.
1855 (c_common_valid_pch): Check debugging type.
1856 * Makefile.in (c-pch.o): Update dependencies.
1857 * flags.h (debug_type_names): Declare.
1858 * toplev.c (debug_type_names): Move out of decode_g_option.
1860 2003-04-11 Eric Christopher <echristo@redhat.com>
1862 * emit-rtl.c (gen_rtx): Fix typos.
1864 2003-04-11 Richard Henderson <rth@redhat.com>
1866 * emit-rtl.c (gen_rtx): Zero '0' fields.
1868 2003-04-11 Richard Henderson <rth@redhat.com>
1871 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
1872 not COMPLETE_TYPE_P for re-invoking layout_decl.
1874 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
1876 * doc/bugreport.texi: Fix paragraph breaking between sections
1877 in preparation for TeXinfo's paragraph indentation fixes.
1878 * doc/extend.texi: Ditto.
1879 * doc/invoke.texi: Ditto.
1880 * doc/objc.texi: Ditto.
1881 * doc/gcov.texi: Wrap 'gcov' in @command{}.
1882 * doc/invoke.texi (Darwin Options): Add a preamble.
1884 2003-04-11 Richard Henderson <rth@redhat.com>
1886 * config/i386/i386.c (tls_model_chars): Remove.
1887 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
1888 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
1889 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1890 (tls_symbolic_operand_1): Likewise.
1891 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
1892 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
1893 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
1894 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
1895 bits "copied from i386.h" with default_encode_section_info.
1897 2003-04-11 Richard Henderson <rth@redhat.com>
1899 * rtl.def (SYMBOL_REF): Add two 0 fields.
1900 * gengtype.c (adjust_field_rtx_def): Handle them.
1901 * print-rtl.c (print_rtx): Print them.
1902 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
1903 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
1904 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
1905 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
1906 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
1907 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
1908 (SYMBOL_FLAG_MACH_DEP): New.
1909 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
1910 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
1911 (assemble_static_space): Set SYMBOL_REF_FLAGS.
1912 (assemble_trampoline_template): Likewise.
1913 (output_constant_def, force_const_mem): Likewise.
1914 (default_encode_section_info): New.
1915 * output.h: Declare it.
1916 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
1918 2003-04-11 Richard Henderson <rth@redhat.com>
1920 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
1921 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
1922 * optabs.c (init_optabs): Initialize them.
1923 (init_libfuncs): Use init_one_libfunc.
1924 * calls.c (expand_call): Use gcov_flush_libfunc.
1925 * expr.c (store_constructor): Use setbits_libfunc.
1926 * function.c (expand_main_function): Use init_one_libfunc.
1927 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
1929 2003-04-11 Mark Mitchell <mark@codesourcery.com>
1931 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
1932 documentation; add DECL_FRIEND_CONTEXT.
1934 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1936 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
1937 notes on linker selection and configuration for 64-bit HP-UX port.
1938 * doc/invoke.texi (hppa): Remove hppa text from description for
1939 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
1940 and -threads options.
1942 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
1943 libc.a on libdld.sl when -static is specified and -nolibdld is not
1945 * pa64-hpux.h (LIB_SPEC): Likewise.
1946 * pa-hpux11.h (LIB_SPEC): Likewise.
1947 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
1950 2003-04-11 Zack Weinberg <zack@codesourcery.com>
1952 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
1953 not IDENTIFIER_LOCAL_VALUE.
1955 2003-04-11 Richard Henderson <rth@redhat.com>
1958 * expr.c (expand_expr): Move DECL_RTL frobbing ...
1959 * stor-layout.c (layout_decl): ... here.
1961 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
1963 * doc/invoke.texi: Eliminate extra white-space caused by
1964 @gccoptlist{ on its own line.
1965 * doc/invoke.texi: Ensured there are two spaces between each option.
1966 * doc/invoke.texi: Re-wrapped option lines that were too wide.
1967 Added @gol to options that didn't have them.
1969 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
1971 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
1974 Simplify interface to gcov reading and writing.
1975 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
1976 gcov_alloc, gcov_modified, gcov_errored): Move into ...
1977 (struct gcov_var gcov_var): ... this static structure.
1978 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
1980 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
1982 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
1983 (gcov_reserve_length): Remove.
1984 (gcov_write_tag): New.
1985 (gcov_write_length): Adjust.
1986 (gcov_read_summary, gcov_write_summary): Adjust.
1987 (gcov_eof, gcov_ok): Rename to ...
1988 (gcov_is_eof, gcov_is_error): ... here. Return error code.
1989 (gcov_save_position, gcov_resync): Rename to ...
1990 (gcov_position, gcov_seek): ... here.
1991 (gcov_skip, gcov_skip_string): Remove.
1992 (gcov_error): Remove.
1993 (gcov_open, gcov_close): Adjust.
1994 * gcov.c (find_source): Take const char *, copy it on allocation.
1995 (read_graph_file): Adjust.
1996 (read_count_file): Adjust.
1997 * libgcov.c (gcov_exit): Adjust.
1998 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
1999 tag_arc_counts, tag_summary): Return void. Adjust.
2000 (struct tag_format): Adjust proc member.
2001 (dump_file): Adjust gcov calls.
2003 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2005 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
2007 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
2008 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
2009 build != host sysrooted builds.
2010 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
2011 TARGET_SYSTEM_ROOT even on sysrooted natives.
2012 * configure: Rebuilt.
2014 2003-04-10 Zack Weinberg <zack@codesourcery.com>
2016 * c-decl.c (struct binding_level): Add shadowed_tags and
2017 function_body; remove this_block, tag_transparent, and
2018 subblocks_tag_transparent; update comments.
2019 (clear_binding_level, lookup_tag_reverse): Kill.
2020 (make_binding_level): Use ggc_alloc_cleared or memset.
2021 (lookup_tag): Remove struct binding_level* parameter. All
2022 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
2023 current_binding_level->tags if asked for thislevel_only or if
2024 we might have to diagnose "struct foo; union foo;"
2025 (pushlevel): Ignore argument. Do not push another binding
2026 level on the transition from the parameters to the top level
2027 of the function body; just tweak the flags and proceed.
2028 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
2029 a function body, separate the parameter list from the
2030 top-level local variables.
2031 (set_block): Do nothing.
2032 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
2033 shadowed_tags if necessary.
2034 (warn_if_shadowing): Nuke the special case for local shadowing
2036 (pushdecl): Do not create a shadow entry if we are replacing
2037 an older decl in the same binding level.
2038 (pushdecl_function_level): Tweak for new way of indicating
2040 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
2041 (start_function): Don't set subblocks_tag_transparent.
2042 (finish_function): Fix up the binding_level stack for totally
2043 empty functions. Otherwise, don't call poplevel.
2045 * c-common.c (shadow_warning): MANDATORY argument is no longer
2046 necessary. Always use plain warning.
2047 * c-common.h: Update to match.
2049 * cfglayout.c (scope_to_insns_initialize): Clear block when we
2050 hit the FUNCTION_DECL.
2051 * function.c: Do not create cyclic tree structure.
2053 2003-04-10 Zack Weinberg <zack@codesourcery.com>
2055 * c-tree.h (struct lang_identifier): Replace global_value,
2056 local_value members with symbol_value, tag_value. Kill
2057 implicit_decl and limbo_value.
2058 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
2059 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
2060 C_MISSING_PROTOTYPE_WARNED): Kill.
2061 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
2062 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
2063 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
2064 (implicit_decl_warning, lookup_name_current_level,
2065 record_function_scope_shadow): Don't prototype.
2066 (pushdecl_function_level): Prototype.
2068 * c-decl.c (truly_local_externals): New variable.
2069 (struct binding_level): Adjust commentary.
2070 (get_function_binding_level, clear_limbo_values,
2071 record_function_scope_shadow): Kill.
2072 (lookup_name_current_level, implicit_decl_warning): Are now static.
2073 (any_external_decl, record_external_decl): New static functions.
2074 (clone_underlying type): Split out of pushdecl.
2075 (c_print_identifier): Update to match changes to struct
2077 (poplevel): Delete #if 0 block. Make externals invisible
2078 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
2079 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
2080 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
2081 (duplicate-decls): For real parm decl after a forward decl,
2082 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
2083 foo(...) { } with only a warning. Say whether a previous
2084 declaration was implicit.
2085 (warn_if_shadowing): Now handles all shadowing, not just
2086 local-over-local. Clarify comments.
2087 (pushdecl): Rewritten. There is no longer a distinction
2088 between global and local symbol values; they're all
2089 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
2090 DECL_EXTERNAL decls, and use any_external_decl to check
2091 against previous externals. Kill #if 0 blocks. Don't
2092 tolerate error_mark_node being NULL.
2093 (pushdecl_top_level): Handle only those cases which
2094 Objective C (the only user) needs.
2095 (pushdecl_function_level): New function.
2096 (implicitly_declare): Create ordinary decls with
2097 C_DECL_IMPLICIT set. Recycle old decls, however they got
2099 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
2100 for C_DECL_INVISIBLE symbols.
2101 (lookup_name_current_level): Likewise. Use chain_member.
2102 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
2103 Use pushdecl_function_level.
2104 (builtin_function): Use C_DECL_INVISIBLE.
2105 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
2106 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
2107 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
2108 (identifier_global_value): Same. Must scan
2109 global_binding_level in extremis.
2111 * c-typeck.c (undeclared_variable): New static function, split
2112 from build_external_ref.
2113 (build_external_ref): Use DECL_CONTEXT, not
2114 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
2115 an instance variable. Restructure for clarity.
2116 * objc/objc-act.c: Use identifier_global_value, not
2117 IDENTIFIER_GLOBAL_VALUE.
2119 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
2121 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
2123 * doc/invoke.texi (C++ Dialect Options): Same.
2125 2003-04-10 Zack Weinberg <zack@codesourcery.com>
2127 * tree.c (tree_operand_check_failed): New function.
2128 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
2129 TREE_RTL_OPERAND_CHECK): New checking macros.
2130 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
2131 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
2132 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
2133 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
2134 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
2135 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
2138 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2141 * function.c (instantate_virtual_regs): Verify that all ASM statements
2142 match after the virutal regs instantiation.
2144 2003-04-10 Steve Ellcey <sje@cup.hp.com>
2146 * ia64-protos.h (addp4_optimize_ok): New.
2147 * ia64.c (addp4_optimize_ok): New.
2148 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
2149 (*ptr_extend_plus_2): Ditto.
2151 2003-04-10 Steve Ellcey <sje@cup.hp.com>
2153 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
2154 not with convert_memory_address.
2155 (store_constructor): Ditto, and same for copy_size_rtx.
2156 (expand_expr): Ditto.
2158 2003-04-10 Douglas B Rupp <rupp@gnat.com>
2160 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
2162 2003-04-10 Bob Wilson <bob.wilson@acm.org>
2164 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
2165 even if it is configured to be write-through.
2167 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2169 * config/s390/s390.c (larl_operand): Do not allow symbols
2171 (s390_encode_section_info): Mark symbols with forced 1-byte
2173 (s390_strip_name_encoding): Strip '@'.
2174 (legitimize_pic_address): Handle symbols that are not valid
2175 LARL operands in 64-bit mode.
2177 2003-04-10 Andrew Haley <aph@redhat.com>
2179 * tree-inline.c (inlinable_function_p): Disable inlining for
2180 synchronized methods.
2182 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
2184 * c-common.h (lang_statement_code_p): Remove declaration.
2185 (statement_code_p): Ditto.
2186 (c_common_stmt_codes): Define; list of c-common statement codes.
2187 (statement_code_p): New extern declaration.
2188 (STATEMENT_CODE_P): Define.
2189 (INIT_STATEMENT_CODES): Define.
2190 * c-common.c (statement_code_p): Kill the function, declare
2191 as an array of bools instead.
2192 (lang_statement_code_p): Remove.
2193 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
2194 (c_safe_from_p): Ditto.
2195 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
2196 to initialize the statement_code_p array.
2197 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
2199 (copy_tree_r): Ditto.
2200 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
2201 statement tree codes.
2202 * cp/lex.c (cxx_init): Add missing print line break. Use
2203 INIT_STATEMENT_CODES to initialize the statement_code_p array.
2204 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
2205 instead of statement_code_p.
2206 * cp/pt.c (tsubst_expr): Ditto.
2207 * cp/tree.c (verify_stmt_tree_r): Ditto.
2208 (cp_statement_code_p): Remove.
2209 (init_tree): Don't set lang_statement_code_p, it's gone.
2211 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
2212 Zack Weinberg <zack@codesourcery.com>
2214 * regrename.c (struct du_chain): Use a bitfield for reg_class.
2215 * cse.c (struct qty_table_elem, struct table_elt, struct set):
2216 Use bitfields for fields holding enum rtx_code or
2217 enum machine_mode values. Add comments explaining size choices.
2219 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
2221 * config/fp-bit.c (unpack_d): Handle pair of doubles with
2222 different signs correctly.
2224 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
2226 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
2227 (reg_pending_barrier): Make it of the enumeration type.
2228 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
2230 (sched_analyze): Ditto.
2231 (sched_analyze_insn): Ditto. Use anti-dependencies for
2232 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
2233 (init_deps_global): Initialize the barrier as NO_BARRIER.
2235 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
2237 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
2238 Check that asm insn starts on a new cycle. Add nops after asm
2240 (bundling): Move insn type evaluation from the loop. Call
2241 issue_nops_and_insn with the new parameter. Ignore changing
2242 position for nops after asm insn.
2244 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
2246 * optabs.c: Comment that gen_add2_insn and others may actually
2247 return emitted insns, if the gen functions turn out to return
2249 * reload1.c (reload_cse_move2add): Cope with emitted insns from
2252 2003-04-09 Richard Henderson <rth@redhat.com>
2254 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
2255 but not tls_symbolic_operand.
2256 (ia64_expand_load_address): Remove scratch operand.
2257 (ia64_expand_tls_address): Split out from ia64_expand_move.
2258 (ia64_expand_move): Split symbolics only after reload.
2259 (ia64_emit_cond_move): New.
2260 * config/ia64/ia64-protos.h: Update.
2261 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
2262 (symbolic splitter): Accept SImode operands too.
2263 (cmove splitter): Use ia64_emit_cond_move.
2265 2003-04-09 Nick Clifton <nickc@redhat.com>
2267 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
2269 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
2270 instead of -mno-fpu.
2271 * config/arm/semi.h (ASM_SPEC): Likewise.
2272 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
2273 but only if -msoft-float is specified pass. Otherwise pass
2276 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2278 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
2279 free_EXPR_LIST_node.
2281 2003-04-08 Roger Sayle <roger@eyesopen.com>
2283 * fold-const.c (fold): Use "fold" following build in more places.
2284 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
2285 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
2287 2003-04-08 Roger Sayle <roger@eyesopen.com>
2289 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
2290 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
2291 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
2292 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
2293 Delete function scope "fcode" variable to avoid shadowing.
2295 2003-04-08 Kevin Buettner <kevinb@redhat.com>
2297 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
2298 Take into account DWARF_INITIAL_LENGTH_SIZE.
2300 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
2302 * reorg.c (fill_slots_from_thread): When considering changing the
2303 insn following a reg-to-reg copy insn to use the source reg of the
2304 copy, bail out if there's overlap between the registers.
2306 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2308 * function.c (postponed_insns): New.
2309 (purge_addressof_1): Postpone processing of insns if addressofs
2310 are not put into stack.
2311 (purge_addressof): Process postponed insns.
2313 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
2315 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
2316 this is FP_MODE_DOUBLE .
2317 * sh.c (ra.h): #include.
2318 (push_regs): Add second parameter. Changed all callers.
2319 If necessary, set fpscr before saving floating point registers.
2320 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
2321 do saves / restores with SZ == 1.
2322 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
2323 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
2324 registers are being restored, restore FPSCR only after restoring them.
2326 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
2328 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
2329 regardless of architecture.
2330 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
2332 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
2334 * sh.c (push_regs, calc_live_regs): Return int. Take single
2335 HARD_REG_SET * parameter. Changed all callers.
2337 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
2339 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
2341 (legitimize_pic_address): Move plus outside the unspec.
2342 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
2345 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
2347 * gcov-io.h (gcov_save_position): Remove __inline__ from
2350 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
2352 * doc/install.texi: Use @command and @samp for single- and
2353 multi-word commands respectively.
2354 * doc/makefile.texi: Likewise.
2355 * doc/sourcebuild.texi: Likewise.
2357 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
2358 Richard Henderson <rth@redhat.com>
2361 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
2362 favour of looping and tail recursion for TREE_LIST and binops.
2364 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2366 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
2367 for insns without luid.
2369 2003-04-07 Glen Nakamura <glen@imodulo.com>
2372 * explow.c (maybe_set_unchanging): Don't flag non-static const
2373 aggregate type initializers with RTX_UNCHANGING_P.
2375 2003-04-07 Richard Henderson <rth@redhat.com>
2378 * function.c (purge_addressof_1): Don't try arithmetics for
2379 unchanging memories.
2381 2003-04-07 Janis Johnson <janis187@us.ibm.com>
2383 * doc/sourcebuild.texi (Test Suites): Document testing support for
2384 gcov and profile-directed optimizations; describe gcc.misc-tests.
2386 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
2389 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
2391 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2393 * doc/rtl.texi (Comparison operations): Update to
2394 record the allowed comparison modes.
2396 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
2398 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
2399 V2SI_type_node to opaque_V2SI_type_node. Rename all
2400 V2SF_type_node to opaque_V2SF_type_node.
2401 (rs6000_init_builtins): Define opaque_V2SI_type_node and
2402 opaque_V2SF_type_node.
2403 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
2404 opaque_V2SF_type_node are opaque types.
2406 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
2408 * gcse.c (replace_store_insn): Use single_set.
2410 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
2412 Change gcov file interface to single file at a time.
2413 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
2414 Convert to C89 prototypes.
2415 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
2416 gcov_error, gcov_modified): New static variables.
2417 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
2419 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2420 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2421 (gcov_read_summary, gcov_write_summary): Adjust.
2422 (gcov_save_position, gcov_reserve_length, gcov_write_length):
2424 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
2425 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
2426 (da_file_position, da_file_seek, da_file_write, da_file_read):
2428 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
2429 * gcov.c (gcov_type): Don't typedef here.
2431 (read_graph_file, read_count_file): Adjust.
2432 * gcov-dump.c (gcov_type): Don't typedef here.
2434 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
2435 Remove FILE parameter, adjust.
2436 (struct tag_format): Adjust proc member.
2437 (dump_file): Adjust.
2438 * libgcov.c (IN_LIBGCOV): #define.
2439 (gcov_exit): Adjust.
2440 * loop-init.c: Don't #include gcov-io.h
2441 * profile.c (struct counts_entry): New structure to hold counter
2443 (struct section_reference, struct da_index_entry): Remove.
2444 (bbg_file, da_file): Remove.
2445 (htab_counts_index_hash, htab_counts_index_eq,
2446 htab_counts_index_del): Replace with ...
2447 (htab_counts_entry_hash, htab_counts_entry_eq,
2448 htab_counts_entry_del): ... these.
2449 (cleanup_counts_index, index_counts_file): Remove.
2450 (read_counts_file): New function.
2451 (get_exec_counts): Adjust.
2452 (compute_branch_probabilities): Don't free the exec counts here.
2453 (branch_prob): Adjust.
2454 (init_branch_prob): Adjust.
2455 (end_branch_prob): Adjust.
2457 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
2459 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2462 * config/rs6000/rs6000.c: Delete rs6000_fprs.
2463 Declare rs6000_float_gprs.
2464 Declare rs6000_float_gprs_string.
2465 (rs6000_parse_float_gprs_option): New.
2466 (rs6000_override_options): Genericize rs6000_parse_* calls to use
2467 rs6000_parse_yes_no_option.
2468 Change check for cpu=8540, to use TARGET_E500.
2469 (rs6000_parse_isel_option): Delete.
2470 (rs6000_parse_spe_option): Delete.
2471 (rs6000_parse_vrsave_option): Delete.
2473 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
2474 Define rs6000_float_gprs_string.
2475 (TARGET_OPTIONS): Add rs6000_float_gprs option.
2477 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
2479 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
2481 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
2484 * cfglayout.c (cfg_layout_redirect_edge):
2485 Redirect any branch edges unified with the fallthru one.
2486 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
2487 case fallthru edges when called via cfglayout.c
2489 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
2491 * c-typeck.c (output_init_element): Check for type == error_mark_node.
2493 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
2495 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
2497 (a splitter): Do zero-extension via HImode.
2499 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
2501 * doc/invoke.texi: Eliminate extra white-space caused by
2502 @gccoptlist{ on its own line.
2503 * doc/invoke.texi: Ensured there are two spaces between each option.
2504 * doc/invoke.texi: Re-wrapped option lines that were too wide.
2505 Added @gol to options that didn't have them.
2507 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
2509 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
2511 2003-04-06 Zack Weinberg <zack@codesourcery.com>
2513 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
2514 at the sizes of the relevant structures, rather than relying
2515 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
2516 sizes of any such we don't know about. Use
2517 lang_hooks.identifier_size for IDENTIFIER_NODE.
2519 (initializer_zerop): Use CONSTRUCTOR_ELTS.
2520 * tree.def: Update commentary. Make fourth element of
2521 the definition for all 'c' and 'x' nodes zero.
2523 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
2524 * langhooks-def.h: Update to match.
2525 * langhooks.c: New default, lhd_tree_size.
2527 * c-common.def (SRCLOC): Kill.
2528 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
2529 Remove entirely - was already #if-ed out.
2532 2003-04-06 Zack Weinberg <zack@codesourcery.com>
2534 * mklibgcc.in: Use a here document to avoid running afoul of
2535 shells that generate control-A from "echo \1".
2537 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
2539 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
2542 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2545 * config/rs6000/eabi.h (TARGET_E500): Define.
2547 * config/rs6000/rs6000.h (TARGET_E500): Define.
2548 (TARGET_OPTIONS): Add spe= option.
2549 Declare rs6000_spe and rs6000_spe_string extern.
2551 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
2552 Change TARGET_SPE to TARGET_E500.
2553 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
2555 (print_operand): Same.
2556 (rs6000_generate_compare): Same.
2557 (output_cbranch): Same.
2558 (rs6000_spe): Declare.
2559 (rs6000_spe_string): Declare.
2560 (rs6000_override_options): Call rs6000_parse_spe_option.
2561 (rs6000_parse_spe_option): New.
2563 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
2565 * hashtable.c (gcc_obstack_init): Delete this function
2566 and everything related to it.
2567 * hashtable.h: Remove prototype.
2568 * bitmap.c (bitmap_element_allocate): Cleanup redundant
2569 defines. Cleanup some unnecessary whitespace.
2570 * defaults.h (obstack_chunk_alloc): Redefine with
2571 appropriate casts for libiberty obstacks.
2572 (obstack_chunk_free): Ditto.
2573 (OBSTACK_CHUNK_SIZE): Define, default to 0.
2574 (gcc_obstack_init): Define as a call to _obstack_begin.
2575 * tree.c (print_obstack_statistics): Delete this unused
2577 * tree.h (obstack): Don't forward-declare.
2578 (print_obstack_statistics): Delete prototype.
2579 (print_obstack_name): Ditto.
2580 (gcc_obstack_init): Ditto.
2581 * rtl.h (gcc_obstack_init): Ditto.
2582 * java/jv-scan.c (gcc_obstack_init): Delete this
2583 function, its prototype and related defines.
2584 * java/jvgenmain.c (gcc_obstack_init): Delete this
2585 function, and related defines.
2586 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
2587 (obstack_chunk_free): Ditto
2589 2003-04-06 Geoffrey Keating <geoffk@apple.com>
2591 * dbxout.c (dbxout_handle_pch): Move prototype out from
2592 #if defined DBX_DEBUGGING_INFO.
2594 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
2596 * gcov.c (struct arc_info): Replace local_span with cycle.
2597 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
2598 (solve_flow_graph): Set is_call_return.
2599 (add_line_counts): Adjust. In block mode, blocks attach to last line.
2600 (accumulate_line_counts): Find graph cycles, not spanning tree.
2601 (output_branch_count): Adjust.
2602 (output_lines): Adjust.
2603 * doc/gcov.texi: Update.
2605 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
2607 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
2608 the second alternative to "#".
2610 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
2612 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
2613 (single_zero_operand): Likewise.
2615 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
2617 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
2618 * df.c: Include alloc-pool.h, not obstack.h.
2619 (df_ref_obstack): Remove.
2620 (df_ref_pool, df_link_pool): Add pools.
2621 (df_alloc): Init the new pools.
2622 (df_free): And free them.
2623 (df_link_create): Use the pools.
2624 (df_ref_create): Ditto.
2626 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
2628 * simplify-rtx.c: Fix formatting.
2630 2003-04-05 Andrew Pinski <apinski@apple.com>
2632 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
2633 reg with reg1 == reg2 and offset1 = -8.
2635 2003-04-05 David Edelsohn <edelsohn@gnu.org>
2637 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
2638 multiply costs. Correct Power4 divide costs.
2639 * config/rs6000/power4.md: Restore multiply and FP latency.
2641 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2643 * alias.c (find_base_term): Export.
2644 * rtl.h (find_base_term): Declare.
2645 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
2646 instead of flag_exceptions. Move test for parameter passing ...
2647 (store_killed_in_insn): ... here.
2649 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2652 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
2655 2003-04-04 Geoffrey Keating <geoffk@apple.com>
2657 * dbxout.c (scope_labelno): Add GTY.
2658 (have_used_extensions): Add GTY.
2659 (source_label_number): Add GTY.
2660 (lastfile): Add GTY.
2661 (lastfile_is_base): New.
2662 (base_input_file): New.
2663 (dbxout_handle_pch): New.
2664 (dbx_debug_hooks): Add handle_pch.
2665 (xcoff_debug_hooks): Likewise.
2666 (dbxout_function_end): Remove scope_labelno.
2667 (dbxout_init): Set base_input_file.
2668 (dbxout_handle_pch): New.
2669 (dbxout_source_file): Honour lastfile_is_base.
2670 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
2671 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
2672 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
2673 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
2674 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
2675 * debug.h (struct gcc_debug_hooks): Add handle_pch.
2676 * c-pch.c (pch_init): Don't call start_source_file, but do call
2678 (c_common_write_pch): Call handle_pch.
2679 (c_common_read_pch): Don't call start_source_file,
2682 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
2684 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
2685 use of default attributes to agree MEM_ALIGN macro.
2687 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
2689 * dbxout.c (dbxout_type): When printing type index of range type
2690 whose bounds are printed in octal format, print type of parent type if
2691 it exists so enumerated type descriptions are not transformed
2692 into unsigned types.
2694 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
2696 * config/h8300/h8300-protos.h: Add a prototype for
2698 * config/h8300/h8300.c (shift_one): Update the CC status.
2699 (shift_two): Likewise.
2700 (output_a_shift_cc): Set cc_inline and cc_special.
2701 (compute_a_shift_cc): New.
2702 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
2704 2003-04-04 Richard Henderson <rth@redhat.com>
2706 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
2708 2003-04-04 Loren James Rittle <ljrittle@acm.org>
2710 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
2711 * fixinc/fixincl.x: Rebuilt.
2712 * fixinc/tests/base/stdio.h: Regenerated.
2714 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
2716 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
2718 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
2720 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
2722 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
2724 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2726 * doc/contrib.texi (Contributors): Add entries for Wolfgang
2727 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
2728 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
2729 Danny Smith, and Ulrich Weigand.
2730 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
2733 2003-04-04 Nick Clifton <nickc@redhat.com>
2735 * config/sparc/sol2-bi.h: Revert previous delta.
2736 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
2738 2003-04-04 Nick Clifton <nickc@redhat.com>
2740 * config/v850/v850.c (expand_prologue): Only use register save
2741 helper functions if long calls are not being used.
2742 Add a clobber of r11 id using long calls.
2743 (pattern_is_ok_for_prologue): Account for the extra clobber.
2744 (construct_save_jarl): Likewise.
2745 * config/v850/v850.md (prolog pattern): Do not use this pattern
2748 2003-04-04 Andreas Schwab <schwab@suse.de>
2750 * stor-layout.c (layout_decl): Avoid syntax error in last change
2751 when PCC_BITFIELD_TYPE_MATTERS is defined but not
2752 EMPTY_FIELD_BOUNDARY.
2754 2003-04-03 Jason Merrill <jason@redhat.com>
2757 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
2758 Look backwards for a line note.
2760 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
2762 * fix-header.c (read_scan_file): Defer switch processing.
2764 2003-04-03 Matt Austern <austern@apple.com>
2766 * cpppch.c (reset_ht): Remove.
2767 (cpp_read_state): Remove loop to reset hashtable identifiers.
2768 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
2769 after pch file is written.
2770 * ggc.h (gt_pch_fixup_stringpool): Declare.
2771 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
2772 hashnode's value to another hashtable, then clear the original.
2773 (saved_ident_hash): Define.
2774 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
2775 store definitions in ident_hash, and clear ident_hash.
2776 (gt_pch_fixup_stringpool): Define. Restore definitions from
2777 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
2779 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
2781 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
2783 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2785 PR optimization/10157
2786 * gcse.c (can_copy_p): Rename it to can_copy.
2787 (can_copy_init_p): Remove.
2788 (compute_can_copy): Use can_copy instead of can_copy_p.
2789 (can_copy_p): New exported function. Call compute_can_copy.
2790 (hash_scan_set): Use it.
2791 (gcse_main): Don't call compute_can_copy.
2792 (bypass_jumps): Don't call compute_can_copy.
2793 * rtl.h (can_copy_p): Declare.
2794 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
2795 copy if the mode doesn't support copy operations.
2797 2003-04-03 Jason Merrill <jason@redhat.com>
2799 * Makefile.in (unstrap): Also remove stage_last.
2801 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
2802 (dwarf2out_source_line): Don't do anything if line==0.
2804 * stor-layout.c (do_type_align): New fn, split out from...
2805 (layout_decl): ...here. Do all alignment calculations for
2807 (update_alignment_for_field): Not here.
2808 (start_record_layout, debug_rli): Remove unpadded_align.
2809 * tree.h (struct record_layout_info_s): Remove unpadded_align.
2810 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
2811 or DECL_MODE on the CONST_DECLs.
2812 (finish_struct): Don't mess with DECL_ALIGN.
2814 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
2816 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
2818 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
2820 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
2821 function is an interrupt handler.
2823 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
2824 restoring target registers with EH_RETURN_STACKADJ_RTX; use
2825 multiple registers in round-robin fashion.
2827 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2829 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
2830 * system.h (CHAR_BITFIELD): New.
2832 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
2834 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
2836 (another peephole2): Likewise.
2838 2003-04-03 Nick Clifton <nickc@redhat.com>
2840 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
2841 (DEF_ARCH64_SPEC): Likewise.
2843 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
2845 * i386.c (constant_address_p): Use legitimate_constant_p.
2846 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
2848 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
2850 * config/h8300/h8300-protos.h: Add a prototype for
2852 * config/h8300/h8300.c (gtle_operator): New.
2853 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
2855 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
2858 2003-04-02 Richard Henderson <rth@redhat.com>
2860 * libgcc-std.ver (_Unwind_GetCFA): New.
2861 * unwind-dw2.c (_Unwind_GetCFA): New.
2862 * unwind-libunwind.c (_Unwind_GetCFA): New.
2863 * unwind-sjlj.c (_Unwind_GetCFA): New.
2864 * unwind.h: Declare it.
2866 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
2869 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
2870 when MMX/SSE is not available.
2872 2003-04-02 Mike Stump <mrs@apple.com>
2874 * doc/install.texi (Specific): Update pointers to apple.com.
2876 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
2878 * i386.c (override_options): Disable red zone by default on i386.
2879 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
2880 Do not test TARGET_64BIT together with TARGET_RED_ZONE
2882 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
2884 * config/h8300/h8300.md (a peephole2): Tighten the condition.
2886 2003-04-02 Richard Henderson <rth@redhat.com>
2888 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
2890 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
2892 * config/h8300/h8300.md (a peephole2): New.
2894 2003-04-02 Richard Henderson <rth@redhat.com>
2896 * except.c (sjlj_find_directly_reachable_regions): Recognize when
2897 must-not-throw region has been deleted.
2899 2003-04-02 Richard Henderson <rth@redhat.com>
2901 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
2902 optimization when flag_exceptions not enabled.
2904 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
2906 * config/rs6000/rs6000.c
2907 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
2909 (rs6000_issue_rate): Add case for 8540.
2910 (rs6000_use_sched_lookahead): New function.
2912 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
2914 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
2915 reservation before retirement.
2916 (ppc8540_multiply, ppc8540_load, ppc8540_store,
2917 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
2918 Remove additional cycle in the reservation before retirement.
2919 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
2920 reservation of ppc8540_issue.
2922 2003-04-02 Andreas Schwab <schwab@suse.de>
2924 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
2926 2003-04-01 Richard Henderson <rth@redhat.com>
2928 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
2929 notes for nothrow calls if flag_forced_unwind_exceptions.
2930 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
2931 (sjlj_find_directly_reachable_regions): Likewise.
2932 (reachable_handlers): Likewise.
2933 (can_throw_external): Likewise.
2934 (collect_one_action_chain): Record cleanups after catch-all and
2935 must-not-throw if flag_forced_unwind_exceptions.
2936 * flags.h (flag_forced_unwind_exceptions): Declare.
2937 * toplev.c (flag_forced_unwind_exceptions): New.
2938 (lang_independent_options): Add it.
2939 * doc/invoke.text: Add it.
2941 2003-04-01 David Mosberger <davidm@hpl.hp.com>
2943 * config/ia64/crti.asm: Clean up trailing whitespace.
2944 Remove trailing hashes (#) from identifiers.
2946 * config/ia64/crtn.asm: Ditto.
2948 * config/ia64/crtend.asm: Remove trailing hashes (#) from
2950 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
2951 directives. Drop explicit bundling---it just makes the code
2952 harder to read. Don't save/restore gp needlessly.
2954 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
2955 identifiers (they're only needed if the identifier would clash
2956 with a register name otherwise).
2957 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
2958 directives. Drop explicit bundling---it just makes the code
2960 (__do_jv_register_classes): Ditto.
2961 (.fini_array): Remove "progbits" (newer
2962 assemblers don't like wrong section-types).
2963 (.init_array): Ditto.
2965 2003-04-01 Roger Sayle <roger@eyesopen.com>
2968 * gcse.c (reg_killed_on_edge): New function to test whether the
2969 given reg is overwritten by any instruction queued on an edge.
2970 (bypass_block): Ignore substitutions killed on incoming edges.
2971 Don't bypass outgoing edges that have queued instructions.
2973 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
2975 * real.h (EXP_BITS): Make room for...
2976 (struct real_value): ... added canonical bit.
2977 (struct real_format): Added pnan.
2978 (mips_single_format, mips_double_format, mips_extended_format,
2979 mips_quad_format): New.
2980 * real.c: Copy p to pnan in all formats.
2981 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
2982 (real_nan): Use pnan to compute significand's shift.
2983 (real_identical): Disregard significand in canonical
2985 (real_hash): Likewise. Take signalling into account.
2986 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
2987 Disregard significand bits in canonical NaNs. Set all bits of
2988 canonical NaN if !qnan_msb_set.
2989 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
2990 qnan_msb_set to tell the base double format.
2991 (ibm_extended_format): Use 53 as pnan.
2992 (mips_single_format, mips_double_format, mips_extended_format,
2993 mips_quad_format): Copied from the corresponding ieee/ibm
2994 formats, with qnan_msb_set false.
2995 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
2996 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
2997 * config/mips/mips.c (override_options): Use mips_single_format
2998 and mips_double_format. Default TFmode to mips_quad_format.
2999 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
3000 * config/mips/t-irix6: Likewise.
3001 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
3002 * config/fp-bit.c (pack_d, unpack_d): Obey it.
3004 2003-04-01 Geoffrey Keating <geoffk@apple.com>
3006 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
3007 (live_image_destructor): Reset image to initial state.
3008 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
3010 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3012 * config/sparc/sparc.c (input_operand): Accept bare
3013 CONSTANT_P_RTX operands.
3015 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3017 * gcse.c (struct ls_expr): Added pattern_regs field.
3018 (ldst_entry): Initialize it.
3019 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
3020 (store_ops_ok): Use regs precomputed by them.
3021 (find_loads, store_killed_in_insn, load_kills_store): Change return
3023 (store_killed_before, store_killed_after): Take position of register
3025 (reg_set_info): Store position of the setter.
3026 (gcse_main): Enable store motion.
3027 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
3028 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
3030 (simple_mem): Enable store motion of non-symbol mems.
3031 (regvec): Type changed.
3032 (LAST_AVAIL_CHECK_FAILURE): New.
3033 (compute_store_table_current_insn): New.
3034 (build_store_vectors): Computation of availability and anticipatability
3036 (compute_store_table, find_moveable_store): ... here.
3037 (delete_store): Remove senseless comment.
3038 (store_motion): Reorganize.
3040 2003-04-01 Kevin Buettner <kevinb@redhat.com>
3042 * config/mips/mips.c (override_options): Provide mappings for
3043 HI_REGNUM and LO_REGNUM.
3044 * config/mips/mips.h (MD_DBX_FIRST): Define.
3046 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3048 * combine.c (merge_outer_ops): Fix typo.
3050 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
3052 2003-04-01 David Edelsohn <edelsohn@gnu.org>
3054 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
3055 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
3056 imul_compare. Add lmul_compare.
3057 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
3058 in second pair of dispatch slots. Model stores more accurately.
3059 Tweak multiply model. Add bypasses for CR instructions dependent
3060 on complicated compares.
3061 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
3062 (muldi3): Add lmul_compare patterns.
3063 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
3064 and FPSTORE_UX to split instructions and add COMPARE,
3065 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
3066 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
3067 (rs6000_rtx_costs): Separate POWER4 multiply case.
3069 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
3071 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
3072 Do nothing if __builtin_return_address was not used.
3074 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
3076 * i386.md (test patterns): Allow memory operand in operand1.
3078 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
3080 * testsuite/gcc.c-torture/execute/simd-3.c: New.
3082 * expr.c (expand_expr): Handle VECTOR_CST.
3083 (const_vector_from_tree): New.
3085 * varasm.c (output_constant): Handle VECTOR_CST.
3087 * c-typeck.c (digest_init): Build a vector constant from a
3090 * config/rs6000/rs6000.c: Remove prototype for
3091 easy_vector_constant.
3092 (easy_vector_constant): Add mode parameter. Rewrite to handle
3093 more easy constants.
3094 (rs6000_emit_move): Pass mode to easy_vector_constant.
3095 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
3096 (emit_easy_vector_insn): New.
3097 (easy_vector_same): New.
3098 (EASY_VECTOR_15): New macro.
3099 (EASY_VECTOR_15_ADD_SELF): New macro.
3100 (bdesc_2arg): Rename to xorv2si3.
3101 (easy_vector_constant_add_self): New.
3102 (input_operand): Allow vector constants.
3104 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3105 easy_vector_constant, easy_vector_constant_add_self.
3106 (EXTRA_CONSTRAINT): Add 'W'.
3108 * config/rs6000/rs6000-protos.h: Add prototype for
3109 easy_vector_constant, emit_easy_vector_insn.
3111 * config/rs6000/altivec.md (xorv8hi3): New.
3113 Remove all _const0 patterns.
3114 (movv4si_internal): Rewrite to use code. Add vector constant to
3115 vector alternative. Add splitter.
3116 (movv8hi_internal): Same.
3117 (movv16qi_internal): Same.
3118 (movv4sf_internal): Same.
3119 Change the unspecs for vspltis* to use constants.
3121 * config/rs6000/spe.md ("xorv4hi3"): New.
3122 ("spe_evxor"): Rename to xorv2si3.
3124 Remove all _const0 patterns.
3125 (movv2si_internal): Rewrite to use code. Add vector constant to
3126 alternatives. Add splitter.
3127 (movv4hi_internal): Add vector constant to alternatives.
3128 (movv1di_internal): Same.
3129 (movv2sf_internal): Same.
3131 2003-03-31 Mark Mitchell <mark@codesourcery.com>
3134 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
3135 variably-sized arrays in parameters.
3136 (set_save_expr_context): New function.
3137 (c_expand_body): Use it, via walk_tree.
3139 2003-03-31 Eric Christopher <echristo@redhat.com>
3141 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
3142 (combinable_i3pat): Remove call to expand_field_assignment and
3145 2003-03-31 Mark Mitchell <mark@codesourcery.com>
3148 * c-common.c (finish_label_address_expr): Handle the
3151 2003-03-31 Richard Henderson <rth@redhat.com>
3153 * real.c (real_identical): Reorg so as to not compare
3154 signalling for normals.
3156 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
3158 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
3160 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
3162 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
3163 notes as they are boggus.
3164 (m68hc11_gen_movqi): Likewise.
3166 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
3168 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
3169 save the soft registers after the frame pointer so that gdb can unwind
3170 the frame more easily.
3171 (expand_epilogue): Likewise in opposite order; allow to use X register
3172 as scratch if the return value is by reference.
3174 2003-03-31 Jason Merrill <jason@redhat.com>
3177 * stor-layout.c (update_alignment_for_field): Respect
3178 DECL_USER_ALIGN for zero-length bitfields, too.
3179 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
3182 2003-03-31 Matt Austern <austern@apple.com>
3184 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
3185 (count_defs): Keep track of number of defs as well as total size.
3186 (write_defs): Put every definition in cpp_savedstate's defs array.
3187 (comp_hashnode): Define. Comparison function for qsort.
3188 (cpp_write_pch_deps): Sort definitions before writing them.
3189 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
3190 (collect_ht_nodes): Define.
3191 (cpp_valid_state): When verifying that undefined identifiers in
3192 the pch file are still undefined, read a sorted list of undefined
3193 identifiers, collect all defined identifiers into a sorted list,
3194 and walk through both lists to make sure there's no match.
3196 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
3198 * config/h8300/h8300.md (a peephole2): New.
3200 2003-03-31 Michael Matz <matz@suse.de>
3202 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
3204 2003-03-31 Segher Boessenkool <segher@koffie.nl>
3207 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
3208 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
3209 all call-clobbered registers as used.
3211 2003-03-31 Michael Matz <matz@suse.de>
3213 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
3214 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
3216 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
3218 * gcov.c: Add -a & -u options.
3219 (struct arc_info): Add local_span, is_call_non_return,
3220 is_nonlocal_return, is_unconditional flags, remove is_call flag.
3221 (struct block_info): Add flags, is_call_site, is_nonlocal_return
3222 members. Make encodings a union with span member.
3223 (struct function_info): Add blocks_executed, line, src, line_next
3225 (struct coverage_info): Make branches a union with blocks member.
3226 (struct source_info): Add functions member.
3227 (object_summary, program_count): New global variables.
3228 (flag_all_blocks, flag_unconditional): New flags.
3229 (find_source, output_branch_count): New functions.
3230 (print_usage): Adjust.
3232 (process_args): Adjust.
3233 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
3234 <GCOV_TAG_BLOCKS>: Read flags.
3235 <GCOV_TAG_LINES>: Adjust.
3236 (read_count_file): Process SUMMARY tags.
3237 (solve_flow_graph): Set is_unconditional and clear is_call_site
3239 (add_branch_counts): Adjust. Don't count unconditional branches.
3240 (add_line_counts): Deal with all-blocks mode, accumulate block
3242 (accumulate_line_counts): Adjust, generate local spanning tree for
3244 (output_lines): Adjust.
3245 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
3246 * doc/gcov.texi: Document.
3248 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
3250 * config/h8300/h8300.md: Organize peephole2's that transform
3251 (compare (reg:HI) (const_int)).
3253 2003-03-31 Roger Sayle <roger@eyesopen.com>
3255 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
3256 (init_emit_once): Initialize dconstm2 and dconsthalf here.
3257 * real.h (dconstm2, dconsthalf): Add prototypes here.
3258 * real.c (real_sqrt): Use dconsthalf rather than local copy.
3259 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
3260 exp(x/2.0) remember to fold the division if possible.
3261 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
3262 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
3263 1.0/(x*x) and pow(x,0.5) as sqrt(x).
3265 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
3267 * config/h8300/h8300.md (a new peephole2): New.
3269 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
3271 * gcse.c (simple_mem): Return false for floating-point accesses
3272 if flag_float_store is true.
3274 2003-03-30 Roger Sayle <roger@eyesopen.com>
3276 * gcse.c (gcse_constant_p): New function to identify constants
3277 suitable for constant propagation, including COMPARE with two
3278 integer constant arguments.
3279 (hash_scan_set): Use gcse_constant_p.
3280 (find_avail_set): Likewise.
3281 (cprop_insn): Likewise.
3282 (do_local_cprop): Likewise.
3283 (find_implicit_sets): Likewise.
3284 (find_bypass_set): Likewise.
3286 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
3288 * except.h: Remove definition of varray_type.
3290 2003-03-30 Richard Henderson <rth@redhat.com>
3292 PR opt/10011, opt/10252:
3293 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
3294 before post-gcse cse pass.
3296 2003-03-30 Roger Sayle <roger@eyesopen.com>
3298 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
3300 2003-03-30 DJ Delorie <dj@redhat.com>
3302 * profile.c (instrument_edges): Make sure any newly created
3303 jump insns have correct jump label info.
3305 2003-03-30 Richard Henderson <rth@redhat.com>
3307 * cfgbuild.c (make_edges): Use tablejump_p.
3308 * cfgcleanup.c (label_is_jump_target_p): Likewise.
3309 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
3310 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
3311 (try_redirect_by_replacing_jump): Likewise.
3312 (redirect_edge_and_branch): Likewise.
3313 * cse.c (fold_rtx): Likewise.
3314 * jump.c (delete_related_insns): Likewise.
3315 * rtlanal.c (get_jump_table_offset): Likewise.
3316 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
3318 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3320 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
3321 (STRICT2_WARN): Likewise.
3323 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3326 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
3327 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
3329 2003-03-30 Richard Henderson <rth@redhat.com>
3332 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
3333 don't zero_extend const inputs.
3335 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
3337 * reload1.c (reload_cse_move2add): Fix a comment typo.
3339 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
3341 * config/h8300/h8300.md (a peephole2): Remove useless code.
3343 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
3345 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
3346 (*iorsi3_and_lshiftrt): Likewise.
3347 (*iorsi3_zero_extract): Likewise.
3349 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
3351 * config/h8300/h8300.md (*insv_si_8_8): New.
3352 (*insv_si_8_8_lshiftrt_8): Likewise.
3353 (a peephole2): Likewise.
3355 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3357 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
3358 Uniformly use bugfix instead of bug fix.
3360 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3363 * ONEWS: Remove those items that already appear in the EGCS
3364 release notes on our web pages.
3366 2003-03-29 Alan Modra <amodra@bigpond.net.au>
3368 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
3369 TARGET_HARD_FLOAT. Reformat.
3370 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
3372 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
3374 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
3375 work on Solaris 2.5.1.
3377 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
3379 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
3381 (*addsi3_and_nor_r_1): Likewise.
3383 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
3385 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
3386 set up before any trapping memory access if flag_non_call_exceptions.
3388 2003-03-29 Alan Modra <amodra@bigpond.net.au>
3390 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
3392 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
3394 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
3396 * configure.in: Clarify comments.
3397 * configure: Regenerate.
3399 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
3401 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
3402 label even if pool empty when generating PIC.
3403 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
3405 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
3406 Dhananjay Deshpande <dhananjayd@kpit.com>
3409 * config/h8300/h8300.c (h8300_initial_elimination_offset):
3410 Correct the offset computation when TARGET_NORMAL.
3412 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
3415 * config/sparc/sparc.md (jump pattern): Correct order
3416 when issuing the annuling marker.
3418 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
3421 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
3422 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
3424 2003-03-28 Alan Modra <amodra@bigpond.net.au>
3426 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
3428 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3429 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3430 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3431 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3432 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3433 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3434 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
3436 2003-03-28 Alan Modra <amodra@bigpond.net.au>
3438 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
3439 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
3440 notes after hoisting.
3441 (load_mems): Adjust replace_loop_mems call.
3443 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
3444 Richard Henderson <rth@redhat.com>
3446 PR target/10114 and PR target/10084
3447 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
3449 2003-03-27 Richard Henderson <rth@redhat.com>
3451 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
3453 2003-03-27 Roger Sayle <roger@eyesopen.com>
3455 * fold-const.c (fold_inf_compare): New function to simplify FP