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