1 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
4 * gengtype-yacc.y: Improve portability.
6 2003-04-29 Zack Weinberg <zack@codesourcery.com>
8 * config.gcc: Install obsolete target list for GCC 3.3.
9 * doc/install.texi: Mention in specific-target instructions
10 that certain configurations are deprecated.
12 2003-04-29 Zack Weinberg <zack@codesourcery.com>
14 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
16 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
18 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
19 * gcc.c (display_help): Likewise.
20 * toplev.c (f_options): Likewise.
21 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
22 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
23 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
24 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
25 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
27 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
29 * varasm.c (default_assemble_visibility): Use assemble_name.
31 2003-04-29 David O'Brien <obrien@FreeBSD.org>
33 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
34 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
35 (SIZE_TYPE): New macro.
36 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
37 (SET_ASM_OP): New macro.
38 (HANDLE_SYSV_PRAGMA): New macro.
39 (ASM_WEAKEN_LABEL): New macro.
41 2003-04-28 Mark Mitchell <mark@codesourcery.com>
44 * tree-inline.c (expand_call_inline): Call push_srcloc when
45 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
47 2003-04-28 Mike Stump <mrs@apple.com>
49 * gdbinit.in: Update to reflect new identifier structure.
51 2003-04-28 Zack Weinberg <zack@codesourcery.com>
53 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
54 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
55 struct tree_complex, struct tree_vector): Remove RTL field.
56 (CONSTRUCTOR_ELTS): Use elt 0.
57 * tree.def (CONSTRUCTOR): Delete first of its two operands.
58 * varasm.c (output_constant_def): Remove early exit if
59 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
60 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
61 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
62 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
64 2003-04-28 Jakub Jelinek <jakub@redhat.com>
66 * c-decl.c (finish_decl): When prototype with asmspec is found
67 for built-in, adjust built_in_decls as well as expr.c decls.
68 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
69 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
70 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
72 2003-04-28 Richard Henderson <rth@redhat.com>
74 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
75 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
76 integral constant mult operand.
77 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
78 (const_smulsi3_highpart_v8plus): Likewise.
79 (const_smulsi3_highpart): Likewise.
80 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
81 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
82 (const_umulsi3_highpart_v8plus): Likewise.
83 (const_umulsi3_highpart): Likewise.
85 2003-04-28 David O'Brien <obrien@FreeBSD.org>
87 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
90 2003-04-28 David O'Brien <obrien@FreeBSD.org>
92 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
94 2003-04-28 Jakub Jelinek <jakub@redhat.com>
96 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
97 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
98 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
100 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
102 2003-04-28 Nick Clifton <nickc@redhat.com>
104 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
106 2003-04-27 Zack Weinberg <zack@codesourcery.com>
108 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
109 output_constant_def, use its result instead of TREE_CST_RTL (exp).
110 Can assume it has the form (mem (symbol_ref ".LCxxx")).
111 (expand_expr <COMPONENT_REF>): Can always just extract the
112 relevant field of a CONSTRUCTOR.
113 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
114 ARRAY_RANGE_REF>): Make control flow explicit.
115 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
118 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
120 * reload1.c (reg_set_luid): Fix a comment typo.
122 2003-04-27 Zack Weinberg <zack@codesourcery.com>
124 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
125 struct deferred_string, const_str_htab): Kill.
126 (n_deferred_strings): New static variable.
127 (build_constant_desc): Set SYMBOL_REF_DECL of the new
128 symbol_ref to point to the constant.
129 (output_constant_def): When a deferred string is forced out,
130 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
131 (mark_constant): Likewise.
132 (maybe_output_constant_def_contents): When deferring a string
133 constant, just set STRING_POOL_ADDRESS_P and increment
135 (mark_constant_pool): Check n_deferred_strings, not the size
137 (init_varasm_once): No need to create const_str_htab.
139 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
140 SYMBOL_REF_DECL points to a constant.
142 2003-04-26 Zack Weinberg <zack@codesourcery.com>
144 * varasm.c (output_constant_def): Split out two new static
145 functions, build_constant_desc and maybe_output_constant_def_contents.
146 Restructure for comprehensibility. Don't call
147 output_addressed_constants. Treat defstr being non-NULL for
148 STRING_POOL_ADDRESS_P constants as an invariant.
149 (struct deferred_string): Remove labelno field.
150 (output_constant_def_contents): Kill labelno argument. Call
151 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
152 asm_out.internal_label.
153 (mark_constant): Update call to output_constant_def_contents.
154 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
155 constants as an invariant.
157 2003-04-26 Richard Henderson <rth@redhat.com>
159 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
160 (ix86_expand_call, ix86_rtx_consts): Likewise.
162 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
164 * doc/md.texi (cmpstr): Document additional restrictions.
166 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
168 * flags.h (time_report): Remove.
169 * timevar.c (timevar_enable): New.
170 (TIMEVAR_ENABLE): Remove, use timevar_enable.
171 (timevar_init): Rename from init_timevar.
172 * timevar.h (timevar_init): Rename from init_timevar.
173 * toplev.c (time_report): Make static.
174 (do_compile): Conditionally call init_timevar first.
175 (preprocess_options): Move some code to do_compile.
177 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
179 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
181 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
183 * _cpp_lex_direct: Remove pointless code.
185 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
187 * doc/extend.texi (Function Attributes): Document "near" and "far"
188 for 68HC11 and 68HC12.
190 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
192 * expr.c (store_field): When making temporary for store, don't
193 make it TYPE_QUAL_CONST.
195 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
197 * toplev.c (read_integral_parameter): Use "argument" in error
198 message to distinguish it from actual invalid options.
200 2003-04-25 Bob Wilson <bob.wilson@acm.org>
202 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
203 addition of __PIC__ and __pic__ macros.
204 * config/xtensa/xtensa.h: Clean up indentation.
206 2003-04-25 Bob Wilson <bob.wilson@acm.org>
208 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
209 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
210 (SUBTARGET_CPP_SPEC): Define.
212 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
213 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
214 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
216 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
217 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
219 2003-04-25 H.J. Lu <hjl@gnu.org>
221 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
223 (ia64_expand_builtin): Set rmode to SImode for
224 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
225 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
226 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
227 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
229 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
231 * configure.in (make_compare_target): Test for GNU cmp and set this
232 variable appropriately.
233 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
234 compare4-lean): Rename actual targets to slowcompare*. New compare*
235 targets depend on names based on make_compare_target.
236 * configure: Regenerated.
238 2003-04-25 Richard Henderson <rth@redhat.com>
240 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
241 to clobber ar.pfs and ar.unat.
242 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
243 fix test for spilling ar.pfs to the stack.
245 2003-04-25 Richard Henderson <rth@redhat.com>
248 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
249 checks during reload; use validize_mem instead of adjust_address.
251 2003-04-26 Ben Elliston <bje@wasabisystems.com>
253 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
254 return values from recog_memoized().
256 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
259 * gcse.c (try_replace_reg): On a successful substitution of a constant
260 into a single set, try to simplify the source of the set.
261 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
264 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
266 * cpplex.c (cpp_token_len): Tighten up.
267 (cpp_token_as_text): Need extra byte now.
268 * cpplib.c (glue_header_name): Need extra 2 bytes.
269 * cppmacro.c (cpp_macro_definition): Need extra byte.
271 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
273 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
274 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
275 where they might be not present. Use their _sp64 equivalent
278 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
280 * i386.md (cvtsi2sdq): Fix typo in previous patch.
282 2003-04-24 Krister Walfridsson <cato@df.lth.se>
284 * configure.in: Check whether mbstowcs works.
285 * configure, config.in: Regenerate.
286 * intl.c: Use HAVE_WORKING_MBSTOWCS.
288 2003-04-24 H.J. Lu <hjl@gnu.org>
290 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
291 for __sync_bool_compare_and_swap_di for int return type.
293 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
294 Change return type to int.
295 (__sync_bool_compare_and_swap): Likewise.
297 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
299 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
300 looking for fallthru edge.
302 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
304 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
305 athlon-fvector): New.
306 (athlon_*): Revisit to match new optimization guide.
307 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
308 * i386.md (cvt??2?? patterns): Fix modes.
309 (fistp patterns): Set modes.
311 Accidentaly commited with my earlier reload patch:
313 * reload.c (find_reloads_address_1): Reload plus at the place of
316 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
318 New GCOV_TAG_FUNCTION layout
319 * coverage.c (struct function_list): Replace name with ident.
320 (struct counts_entry): Likewise.
322 (htab_counts_entry_hash, htab_counts_entry_eq,
323 htab_counts_entry_del): Adjust.
324 (reads_count_file, get_coverage_counts,
325 coverage_begin_output, coverage_end_function): Adjust.
326 (build_fn_info_type, build_fn_info_value): Likewise.
327 * gcov-dump.c (tag_function): Adjust.
328 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
329 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
330 * gcov.c (struct function_info): Add ident.
331 (read_graph_file, read_count_file): Adjust.
332 * libgcov.c (gcov_exit): Adjust.
334 2003-04-23 Richard Henderson <rth@redhat.com>
337 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
338 after initialize_uninitialized_subregs; update reg info assuming
339 new pseudos were created.
341 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
343 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
344 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
345 (lex_string): Take cpp_string with full spelling.
347 (c_lex): Update diagnostics.
348 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
349 (create_literal): New.
350 (lex_string): Unterminated literals have type CPP_OTHER.
351 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
353 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
354 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
355 * cpplib.c (parse_include, do_line, do_linemarker,
356 destringize_and_run): Update for token storing full spelling.
357 * cpplib.h: Update token spelling types.
358 * cppmacro.c (stringify_arg, check_trad_stringification):
359 Update for token storing full spelling.
361 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
363 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
365 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
367 * arm.h (TARGET_OPTIONS): Add value field.
369 2003-04-23 Mark Mitchell <mark@codesourcery.com>
371 * doc/extend.texi: Remove duplicate 2003 copyright date.
373 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
375 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
376 (libgcov.a): Depends on LIBGCC_DEPS.
377 * basic-block.h (profile_info): Moved here from coverage.h. Made
379 * coverage.c (struct function_list): Fixed array of counter types.
380 (struct counts_entry): Keyed by counter type, contains summary.
381 (profile_info): Moved to profile.c.
382 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
384 (profiler_label): Remove.
386 (set_purpose, label_for_tag, build_counter_section_fields,
387 build_counter_section_value, build_counter_section_data_fields,
388 build_counter_section_data_values, build_function_info_fields,
389 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
390 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
391 build_ctr_info_value, build_gcov_info): New.
392 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
393 (reads_counts_file): Adjust.
394 (get_coverage_counts): Takes counter number. Add summary
396 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
397 create counter array labels.
398 (coverage_end_function): Adjust.
399 (create_coverage): Adjust.
400 (find_counters_section): Remove.
401 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
402 (struct section_info, struct profile_info): Remove.
403 (profile_info): Moved to basic-block.h.
404 (coverage_counter_ref): Takes a counter number.
405 (get_coverage_counts): Takes a counter number. Added summary
407 (find_counters_section): Remove.
408 * gcov-dump.c (tag_arc_counts): Rename to ...
409 (tag_counters): ... here. Adjust.
410 (tag_table): Move tag_counters to 3rd entry. Remove
411 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
412 (dump_file): Check for counter tag values here.
413 (tag_summary): Adjust.
414 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
415 * gcov-io.h (GCOV_LOCKED): New.
416 (GCOV_TAG_ARC_COUNTS): Rename to ...
417 (GCOV_TAG_COUNTS_BASE): ... here.
418 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
420 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
421 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
422 GCOV_TAG_IS_COUNTER): New.
423 (struct gcov_ctr_summary): New.
424 (struct gcov_summary): Adjust.
425 (struct gcov_counter_section): Remove.
426 struct gcov_counter_section_data): Remove.
427 (struct gcov_function_info): Rename to ...
428 (struct gcov_fn_info): ... here. Adjust.
429 (struct gcov_ctr_info): New.
430 (struct gcov_info): Adjust.
431 * gcov.c (read_count_file): Adjust.
432 (output_lines): Adjust.
433 * libgcov.c (gcov_exit): Adjust.
434 (__gcov_flush): Adjust.
435 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
436 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
437 probably_never_executed_bb_p, compute_frequency_function): Adjust
439 * profile.c (struct counts_entry): Remove.
440 (profile_info): Define here.
441 (get_exec_counts): Adjust get_coverage_counts call.
442 (compute_branch_probablilities): Remove find_counters_section
444 (gen_edge_profiler): Adjust coverage_counter_ref call.
445 * tracer.c (tail_duplicate): Adjust profile_info use.
447 2003-04-23 Roger Sayle <roger@eyesopen.com>
449 PR optimization/10339
450 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
451 directly instead of unsafely transforming call into a memcmp.
452 (expand_builtin_strncmp): Likewise.
454 2003-04-22 Roger Sayle <roger@eyesopen.com>
456 * alias.c (mark_constant_function): Check for constancy and
457 purity even of void functions. Update both the function decl
458 and the cgraph RTL info with the results.
460 2003-04-22 Roger Sayle <roger@eyesopen.com>
462 * real.c (do_add): Change to return a bool indicating that the
463 result of the operation may be inexact due to loss of precision.
464 (do_multiply): Likewise.
465 (do_divide): Likewise.
467 2003-04-22 Geoffrey Keating <geoffk@apple.com>
468 Loren James Rittle <ljrittle@acm.org>
470 * dwarf2out.c (fde_table_allocated): Mark with GTY.
471 (decl_die_table_allocated): Likewise.
472 (abbrev_die_table_allocated): Likewise.
473 (line_info_table_allocated): Likewise.
474 (separate_line_info_table_allocated): Likewise.
475 (pubname_table_allocated): Likewise.
476 (arange_table_allocated): Likewise.
477 (ranges_table_allocated): Likewise.
478 (decl_die_table_in_use): Unconditionalize; mark with GTY.
479 (abbrev_die_table_in_use): Likewise.
480 (line_info_table_in_use): Likewise.
481 (separate_line_info_table_in_use): Likewise.
482 (pubname_table_in_use): Likewise.
483 (arange_table_in_use): Likewise.
484 (ranges_table_in_use): Likewise.
485 (have_location_lists): Likewise.
486 (emitcount): New GTY-marked static, moved...
487 (maybe_emit_file): ...from here.
488 (label_num): New GTY-marked static, moved...
489 (gen_internal_sym): ...from here.
491 2003-04-22 Richard Henderson <rth@redhat.com>
494 * rtl.h (MEM_NOTRAP_P): New.
495 (MEM_COPY_ATTRIBUTES): Copy it.
496 * rtlanal.c (may_trap_p): Check it.
497 * expr.c (do_tablejump): Set it.
498 * doc/rtl.texi (Flags): Document it.
500 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
502 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
504 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
505 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
507 2003-04-22 Vincent Celier <celier@gnat.com>
509 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
510 --enable-threads=gnat.
511 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
512 * configure.in: Add gnat to the list of thread packages
513 * configure: Rebuild.
514 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
516 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
518 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
520 2003-04-22 Devang Patel <dpatel@apple.com>
522 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
524 (_cpp_copy_replacement_text): Same.
526 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
528 * c-lex.c (c_lex): Handle CPP_OTHER differently.
529 * cppexp.c (_cpp_parse_expr): Similarly.
530 * cpplex.c (SPELL_CHAR): Remove.
531 (_cpp_lex_direct): Stray chars are saved as byte strings.
532 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
534 (cpp_avoid_paste): Update handling of CPP_OTHER.
535 * cpplib.h: Spell CPP_OTHER like a number.
536 (struct cpp_token): Remove member c.
537 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
539 2003-04-22 David Turner <novalis@gnu.org>
541 * gbl-ctors.h: Add special license exception.
542 * libgcc2.h: Likewise.
543 * tsystem.h: Likewise.
544 * gcov-io.h: Likewise.
546 2003-04-22 David Edelsohn <edelsohn@gnu.org>
548 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
549 macro defaulting to original BRANCH_COST heuristic.
550 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
552 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
554 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
556 * config/rs6000/t-spe: Merge in t-fprules into file.
558 * config.gcc: Add t-spe to powerpc-eabispe.
560 2003-04-22 Kean Johnston <jkj@sco.com>
562 * tlink.c (recompile_files): Add missing '=' to putenv calls
564 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
566 * ginclude/stddef.h: Provide C++ safe offsetof.
568 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
570 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
571 for reg notes, if there are no substitutions, just use a SUBREG.
573 2003-04-21 Mark Mitchell <mark@codesourcery.com>
575 * Makefile.in (calls.o): Depend on except.h.
576 * calls.c: Include except.h.
577 (emit_call_1): Call note_eh_region_may_contain_throw if
579 * except.c (eh_region): Add may_contain_throw.
580 (expand_eh_region_end_cleanup): Do not include handler code when
581 it cannot be reached.
582 (note_eh_region_may_contain_throw): New function.
583 * except.h (note_eh_region_may_contain_throw): New function.
585 2003-04-21 Mark Mitchell <mark@codesourcery.com>
587 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
590 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
592 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
595 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
597 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
598 a number of conversions required for type consistency and previously
599 stripped off by STRIP_NOPS.
601 * calls.c (expand_call): Prevent sibcall optimization for calls to
604 * expmed.c (extract_bit_field): Reverse operands of && condition to
605 prevent a potential division by zero in the previously first branch.
606 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
608 2003-04-21 Joel Brobecker <brobecker@gnat.com>
610 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
611 (subrange_type_die): Likewise.
612 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
613 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
615 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
617 Break out coverage routines to new file.
618 * Makefile.in (COVERAGE_H): New variable
619 (C_OBJS): Add coverage.o
620 (coverage.o): New target.
621 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
624 (gt-coverage.h): New target.
625 (gt-profile.h): Remove.
626 * profile.h: Remove. Move to ...
627 * coverage.h: ... here. New. #include gcov-io.h.
628 * gcov-io.h: Move function definitions to ...
629 * gcov-io.c: ... here. New.
630 * profile.c: Move coverage routines to coverage.c.
631 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
632 end_branch_prob): Adjust.
633 * coverage.c: New. Coverage routines from profile.c
634 (coverage_counter_ref, coverage_init, coverage_finish,
635 coverage_end_function, coverage_begin_output,
636 coverage_counter_ref, get_coverage_counts): Define.
637 * gcov-dump.c, gcov.c: #include gcov-io.c.
638 * libgcov.c: Likewise. Adjust.
639 * loop-init.c: Don't #include profile.h
640 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
641 * rtl.h: Add coverage prototypes.
642 * toplev.c (compile_file): Init coverage, not branch_prob.
643 Always call coverage_finish.
644 (rest_of_compilation): Call coverage_end_function.
646 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
648 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
650 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
652 * c-ppoutput.c (cb_include): Don't take a cpp_token.
653 * cppfiles.c: Don't undef strcmp.
654 (find_include_file): Don't take a cpp_token. Check for empty
656 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
657 (cpp_push_include): Simplify.
658 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
659 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
660 (parse_include): Similary. Don't check for zero-length filenames.
661 (do_include_common, do_pragma_dependency): Update accordingly.
662 * cpplib.h (struct cpp_callbacks): Change prototype of include.
664 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
666 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
667 details of conflict handling.
669 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
670 when conversion overflows.
672 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
674 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
677 2003-04-21 Mark Mitchell <mark@codesourcery.com>
679 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
680 have the same form as the old RTL.
682 2003-04-21 Andreas Jaeger <aj@suse.de>
684 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
686 2003-04-20 Chris Lattner <sabre@nondot.org>
687 Zack Weinberg <zack@codesourcery.com>
689 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
690 genrtl_cleanup_stmt. Correct comment at head of
691 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
693 * stmt.c (struct nesting): Kill n_function_calls.
694 (expand_start_bindings): Don't set
695 thisblock->data.block.n_function_calls.
696 (expand_end_bindings): Compare function_call_count against 0.
697 (expand_cleanups): Kill DONT_DO argument; all callers passed
698 NULL_TREE. All callers updated to match.
700 2003-04-20 Zack Weinberg <zack@codesourcery.com>
702 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
703 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
704 (output_constant_def): Remove code predicated on
705 defer_addressed_constants_flag.
707 * output.h: Remove prototypes of deleted functions.
708 * c-typeck.c (constructor_subconstants_deferred): Kill.
709 (struct initializer_stack): Remove 'deferred' field.
710 (start_init): Remove all references to the above.
711 (finish_init): Likewise. Also remove never-executed call to
712 output_deferred_addressed_constants. Pull assignment to
713 defstr out of if expression.
715 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
717 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
718 NOTE_NEWLINE): Remove.
719 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
720 to handle new form of line note type.
722 2003-04-20 Zack Weinberg <zack@codesourcery.com>
724 * target.h (encode_section_info): Add new argument carrying
725 the RTL to be modified by the hook.
727 * varasm.c (make_decl_rtl, output_constant_def): Update calls
728 to encode_section_info.
729 (default_encode_section_info): Take and use RTL argument,
730 don't use TREE_CST_RTL or DECL_RTL.
731 * output.h: Update prototype of default_encode_section_info.
732 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
733 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
734 Update calls to encode_section_info.
736 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
737 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
738 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
739 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
740 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
741 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
742 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
743 except for PE dllimport/dllexport. Update calls to
744 default_encode_section_info.
746 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
749 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
751 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
754 * pa.md (movccfp): New expander.
755 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
756 Reverse fcmp conditions.
758 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
760 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
761 of operand 1 correctly.
763 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
765 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
766 * gcov.c (output_lines): Don't be so fussy about going past EOF.
768 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
770 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
771 (cppcharset.o): New target.
772 * c-lex.c (is_extended_char): Move to cppcharset.c.
773 (utf8_extend_token): Delete.
774 * cppcharset.c: New file.
775 * cpphash.h (_cpp_valid_ucn): New.
776 * cpplex.c (lex_identifier): Update prototype.
777 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
779 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
781 (lex_number, lex_identifier, cpp_parse_escape): Update.
782 (_cpp_lex_direct): Update to handle UCNs.
783 (cpp_avoid_paste): Don't paste to form a UCN.
785 2003-04-19 Roger Sayle <roger@eyesopen.com>
787 * builtins.c (expand_builtin): Don't expand a pure or const
788 built-in function if the result will be ignored and none of
789 its arguments are volatile.
791 2003-04-19 Kean Johnston <jkj@sco.com>
793 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
794 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
795 target fragment now: t-sco5; dont compile crti.o.
796 * config/i386/sco5.h: major overhaul to remove all COFF remnants
797 and to use elfos.h for most definitions.
798 (BSS_SECTION_ASM_OP): set correct segment attributes.
799 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
800 (DWARF2_UNWIND_INFO): Always set to 1.
801 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
802 (MD_STARTFILE_PREFIX_1): Define.
803 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
804 (DEFAULT_LINKER): Define if not specified to configure.
805 (CTORS_SECTION_ASM_OP): Remove COFF crud.
806 (DTORS_SECTION_ASM_OP): Remove COFF crud.
808 (SDB_DEBUGGING_INFO): Remove.
809 (EXTRA_SECTIONS): Likewise.
810 (EXTRA_SECTION_FUNCTIONS): Likewise.
811 (CTOR_LIST_BEGIN): Likewise.
812 (CTOR_LIST_END): Likewise.
813 (INIT_SECTION_FUNCTION): Likewise.
814 (FINI_SECTION_FUNCTION): Likewise.
815 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
816 (LOCAL_LABEL_PREFIX): Likewise.
817 (NON_SAVING_SETJMP): Likewise.
818 (RETURN_POPS_ARGS): Likewise.
819 (ASM_OUTPUT_SKIP): Likewise.
820 (TARGET_ASM_NAMED_SECTION): Likewise.
821 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
822 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
823 (ASM_OUTPUT_IDENT): Likewise.
824 (ASM_OUTPUT_CASE_LABEL): Likewise.
825 (ASM_OUTPUT_ASCII): Likewise.
826 (ASM_OUTPUT_LIMITED_STRING): Likewise.
827 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
828 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
829 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
830 (ASM_FINISH_DECLARE_OBJECT): Likewise.
831 (ASM_DECLARE_OBJECT_NAME): Likewise.
832 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
833 (ASM_DECLARE_FUNCTION_NAME): Likewise.
834 (ASM_DECLARE_RESULT): Likewise.
835 (ASM_WEAKEN_LABEL): Likewise.
836 (SUPPORTS_WEAK): Likewise.
837 (APPLY_RESULT_SIZE): Likewise.
839 (ALIGN_ASM_OP): Likewise.
840 (ASCII_DATA_ASM_OP): Likewise.
841 (IDENT_ASM_OP): Likewise.
842 (ASM_SHORT): Likewise.
843 (ASM_LONG): Likewise.
844 (TYPE_ASM_OP): Likewise.
845 (SIZE_ASM_OP): Likewise.
846 (STRING_ASM_OP): Likewise.
847 (SKIP_ASM_OP): Likewise.
848 (EH_FRAME_SECTION_ASM_OP): Likewise.
849 (READONLY_DATA_SECTION_ASM_OP): Likewise.
850 (INIT_SECTION_ASM_OP): Likewise.
851 (FINI_SECTION_ASM_OP): Likewise.
852 (TEXT_SECTION_ASM_OP): Likewise.
853 (DATA_SECTION_ASM_OP): Likewise.
854 (TYPE_OPERANT_FORMAT): Likewise.
855 (ASM_SPEC): Remove COFF code.
856 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
857 cause -pg to emit an error; use pcrt1elf.o with -pp
858 (ENDFILE_SPEC): Likewise.
859 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
860 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
861 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
862 add -z alt_resolve to support weak symbols the way GCC wants them.
863 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
864 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
865 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
866 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
867 (CRTSTUFF_T_CFLAGS_S): Define.
868 (MULTILIB_OPTIONS): Likewise.
869 (MULTILIB_DIRNAMES): Likewise.
870 (MULTILIB_MATCHES): Likewise.
871 (MULTILIB_EXTRA_OPTS): Likewise.
873 (INSTALL_LIBGCC): Likewise.
875 * config/i386/t-sco5gas: Remove.
876 * doc/install.texi: Updated for new OpenServer instructions.
877 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
879 2003-04-19 Kean Johnston <jkj@sco.com>
881 * fixinc/check.tpl: Allow user to over-ride diff program.
882 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
883 (sco_math): Added test for SCO math header files.
884 (sco_regset): Added check for conflicts with ieeefp.h.
885 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
886 * fixinc/fixincl.x: Regenerated
887 * fixinc/tests/base/math.h: Added sco_math tests.
888 * fixinc/tests/base/string.h: New file.
889 * fixinc/tests/base/sys/regset.h: New file.
891 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
893 * cpphash.h (struct cpp_buffer): Remove backup_to.
894 * cpplex.c (BACKUP, get_effective_char): Die.
895 (_cpp_skip_block_comment): Assume '*' is location on entry.
896 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
897 (IF_NEXT_IS): Update.
898 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
900 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
902 * README.Portability: Move to a new section and obsolete K+R
905 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
907 * rtlanal.c (subreg_offset_representable_p): Fix call of
910 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
912 * cpphash.h (struct cpp_reader): New member warned_dollar.
913 * cpplex.c (continues_identifier_p): New function.
914 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
915 lex_number and lex_string, and simplify.
916 (parse_slow, unescaped_terminator_p): Die.
917 (_cpp_lex_direct): Update.
919 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
921 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
923 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
925 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
928 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
930 * cppexp.c (eval_token): Permit true and false even if pedantic.
932 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
934 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
936 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
938 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
939 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
940 (struct include_file): Remove fefcnt, mapped members.
941 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
942 (read_include_file): Don't use mmap, terminate buffers in '\r'.
943 (purge_cache): Don't use munmap.
944 * cpphash.h (CPP_BUF_COLUMN): Update.
945 (lexer_state): Remove lexing_comment.
946 (struct _cpp_line_note): New.
947 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
948 next_line and need_line. Remove col_adjust and saved_flags.
949 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
950 _cpp_skip_block_comment, scan_out_logical_line): New.
951 (_cpp_init_mbchar): Remove.
952 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
953 (cpp_read_main_file): Set line to 1 earlier.
954 (post_options): -traditional-cpp doesn't want trigraphs.
955 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
956 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
957 _cpp_get_fresh_line): New.
958 (handle_newline, skip_escaped_newlines, trigraph_p,
959 continue_after_nul, _cpp_init_mbchar): Remove.
960 (get_effective_char): Update.
961 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
962 (skip_line_comment): Simplify.
963 (skip_whitespace, parse_identifier, parse_slow, parse_number,
964 parse_string): Update.
965 (cpp_lex_direct): Use clean lines and process line notes. Update.
966 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
967 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
969 (_cpp_handle_directive): Don't set saved_flags.
970 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
971 cpp_undef, handle_assertion, cpp_push_buffer): Update.
972 (_cpp_pop_buffer): Free notes.
973 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
974 * cpppch.c (cpp_read_state): \n terminate buffer.
975 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
976 (copy_comment): Use _cpp_skip_block_comment.
977 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
979 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
980 save_replacement_text): Update.
981 (scan_out_logical_line): Update to use clean lines and process
983 * fix-header.c (read_scan_file): Update.
985 2003-04-18 Douglas B Rupp <rupp@gnat.com>
987 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
988 null begin parameter (as well as pointer to null).
989 (__deregister_frame_info_bases): Likewise.
991 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
993 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
994 hard or virtual register and copy into pseudo if replacement fails.
996 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
998 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
1000 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
1002 * calls.c (expand_call): Move special case for constructor calls
1003 to right place. Ensures constructor calls used to initialize
1004 arguments get a clean outgoing argument block for themselves.
1005 Move check for stack deallocation completeness until after last
1006 deallocation. Add stack_pointer_delta to set of state
1007 variables saved and restored along with current stack_level.
1009 * integrate.c (expand_inline_function): Ensure non-const actuals
1010 don't end up const in the caller's flow after conversion to possibly
1013 2003-04-18 Vincent Celier <celier@gnat.com>
1015 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
1016 and *_DIV_EXPR as TRUNC_*_EXPR.
1018 2003-04-18 Mark Mitchell <mark@codesourcery.com>
1020 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
1021 for orphaned jump tables.
1023 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
1025 * reload1.c: Revert my previous patch on 2002-04-17.
1027 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1029 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
1030 Add Segher Boessenkool.
1032 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
1035 * c-decl.c (c_expand_body): Don't garbage collect the function
1036 body if we are going to dump it later.
1038 2003-04-18 Richard Henderson <rth@redhat.com>
1040 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
1041 (alpha_end_function): Don't set them.
1042 (decl_in_text_section): Remove.
1043 (alpha_encode_section_info): Remove.
1044 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
1045 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
1046 sections, rather than decl_in_text_section results.
1048 2003-04-18 Roger Sayle <roger@eyesopen.com>
1050 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
1053 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1055 PR optimization/7675
1056 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
1057 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
1058 nested functions if they refer to declarations from parent functions.
1059 * stmt.c (expand_decl): Don't put automatic variables in registers
1060 if the DECL_NONLOCAL flag is set.
1062 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1064 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
1065 consider those to be movable where the source matches
1067 (update_ld_motion_stores): In comment, refer to
1068 compute_ld_motion_mems for validity of replacement.
1070 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
1072 * gcov-dump.c (tag_summary): Remove max_sum
1073 * gcov-io.h (gcov_summary, gcov_write_summary,
1074 gcov_read_summary): Kill max_sum.
1075 * libgcov.c (gcov_exit): Do one pass over the data. Make error
1076 message more verbose.
1078 * emit-rtl.c (subreg_hard_regno): Check that register is
1081 * reload.c (reload_inner_reg_of_subreg): When register is not
1082 representable, reload the whole thing.
1083 (find_reloads): Likewsie.
1084 * rtlanal.c (subreg_representable_p): New function.
1086 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
1087 allow negative probabilities for edges from the call to exit.
1088 (branch_prob): Do not add fake edges for functions that may return
1091 2003-04-17 DJ Delorie <dj@redhat.com>
1093 * toplev.c (target_options): Add value field.
1094 (set_target_switch): Handle target options with values.
1095 * doc/tm.texi: Document how fixed vs variable target
1097 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
1098 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
1099 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1100 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
1101 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
1102 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
1103 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
1104 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
1105 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
1106 Add value initializer to target options.
1108 2003-04-07 Loren James Rittle <ljrittle@acm.org>
1110 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
1112 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
1114 * reload1.c (move2add_last_cc0): New.
1115 (reload_cse_move2add): Detect implicit sets.
1116 (move2add_note_store): Notice a store into cc0.
1118 2003-04-17 Roger Sayle <roger@eyesopen.com>
1121 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
1122 function attributes.
1124 2003-04-17 Janis Johnson <janis187@us.ibm.com>
1126 * doc/sourcebuild.texi (Test Suites): Document support for testing
1127 binary compatibility (moved from testsuite/README.compat).
1129 2003-04-17 Richard Henderson <rth@redhat.com>
1131 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
1133 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
1135 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
1136 the one provided by the FSF.
1138 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1140 * doc/install.texi (Binaries): Update URL and list of platforms
1141 provided by ftp.thewrittenword.com.
1143 2003-04-17 Richard Henderson <rth@redhat.com>
1145 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
1146 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
1147 * config/xtensa/xtensa.md (call, call_value): Likewise.
1149 2003-04-17 Richard Henderson <rth@redhat.com>
1151 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
1152 (print_operand_address): Likewise.
1153 (ep_memory_operand): Likewise.
1154 (special_symbolref_operand): Likewise.
1155 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
1156 (v850_encode_section_info): Call default_encode_section_info.
1157 (v850_strip_name_encoding): Remove.
1158 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
1159 (ASM_OUTPUT_LABELREF): Remove.
1160 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
1161 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
1162 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
1163 (ENCODED_NAME_P): Remove.
1164 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
1165 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
1166 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
1168 2003-04-17 Richard Henderson <rth@redhat.com>
1170 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
1171 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
1172 SYMBOL_REF_FUNCTION_P.
1174 2003-04-17 Richard Henderson <rth@redhat.com>
1176 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
1177 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
1178 (text_segment_operand): Likewise.
1180 2003-04-17 Richard Henderson <rth@redhat.com>
1182 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
1183 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1184 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
1185 (sh_encode_section_info): Remove.
1186 (sh_strip_name_encoding): Remove.
1187 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
1188 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
1189 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
1190 (ASM_OUTPUT_LABELREF): Remove.
1191 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
1192 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
1194 2003-04-17 Richard Henderson <rth@redhat.com>
1196 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
1197 (tls_model_chars): Remove.
1198 (larl_operand): Use SYMBOL_REF_FLAGS.
1199 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1200 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
1201 (s390_output_mi_thunk): Likewise.
1202 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
1203 (s390_function_profiler): Likewise.
1204 (s390_encode_section_info): Use default_encode_section_info
1205 and SYMBOL_FLAG_ALIGN1.
1206 (s390_strip_name_encoding): Remove.
1207 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
1208 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
1209 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
1211 2003-04-17 Richard Henderson <rth@redhat.com>
1213 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
1214 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
1215 (print_operand_address): Likewise.
1217 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
1218 * config/ns32k/ns32k.c (expand_block_move): Don't check
1221 2003-04-17 Richard Henderson <rth@redhat.com>
1223 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
1226 2003-04-17 Richard Henderson <rth@redhat.com>
1228 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
1230 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
1231 (SYMBOL_REF_MODEL): New.
1232 (LIT_NAME_P): Move from m32r.h.
1233 (m32r_select_section): Remove.
1234 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
1235 (m32r_strip_name_encoding): Remove.
1236 (m32r_in_small_data_p): New.
1237 (small_data_operand): Use SYMBOL_REF_SMALL_P.
1238 (addr24_operand): Use SYMBOL_REF_MODEL.
1239 (call26_operand): Likewise.
1240 (addr32_operand): Tidy.
1241 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
1242 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
1243 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
1244 (READONLY_DATA_SECTION_ASM_OP): Remove.
1245 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1246 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
1247 (TARGET_ASM_SELECT_SECTION): Remove.
1248 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
1249 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
1250 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
1251 (ASM_OUTPUT_LABELREF): Remove.
1253 2003-04-17 Richard Henderson <rth@redhat.com>
1255 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
1256 (encode_section_info): Remove.
1257 * config/ip2k/ip2k-protos.h: Update.
1259 2003-04-17 Richard Henderson <rth@redhat.com>
1261 * varasm.c (default_encode_section_info): Don't set
1262 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
1263 * config/i370/i370.c (i370_encode_section_info): Remove.
1264 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
1265 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
1266 * config/i370/i370.md (movsi): Likewise.
1268 * config/i370/t-i370: Add missing backslash.
1270 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1272 * doc/invoke.texi (inline-limit): Fix pasto.
1274 2003-04-17 Richard Henderson <rth@redhat.com>
1276 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
1277 (small_call_insn_operand): Use it.
1278 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
1279 (h8300_eightbit_constant_address_p): Use it.
1280 (SYMBOL_FLAG_TINY_DATA): New.
1281 (h8300_tiny_constant_address_p): Use it.
1282 (h8300_encode_label, h8300_strip_name_encoding): Remove.
1283 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
1284 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
1285 (ASM_OUTPUT_LABELREF): Remove.
1287 2003-04-16 Richard Henderson <rth@redhat.com>
1289 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
1290 all users with SYMBOL_REF_SMALL_P.
1291 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
1292 (frv_encode_section_info): Remove.
1293 (frv_strip_name_encoding): Remove.
1294 (frv_in_small_data_p): Merge tests from encode_section_info.
1295 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
1296 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
1297 (SDATA_NAME_P): Remove.
1298 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
1299 (ASM_OUTPUT_LABELREF): Remove.
1300 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
1302 * config/frv/frv.c (frv_asm_out_constructor): New.
1303 (frv_asm_out_destructor): New.
1304 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
1305 (DTORS_SECTION_ASM_OP): New.
1306 (ASM_OUTPUT_CONSTRUCTOR): Remove.
1307 (ASM_OUTPUT_DESTRUCTOR): Remove.
1309 2003-04-16 Richard Henderson <rth@redhat.com>
1311 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
1312 SYMBOL_REF_LOCAL_P; abort if not pic.
1313 (cris_encode_section_info): Remove.
1315 2003-04-16 Richard Henderson <rth@redhat.com>
1317 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
1318 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
1320 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
1323 2003-04-16 Richard Henderson <rth@redhat.com>
1325 * config/avr/avr.c (avr_encode_section_info): Remove.
1326 (avr_insert_attributes): New.
1327 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
1328 (avr_assemble_integer): Likewise.
1330 2003-04-16 Richard Henderson <rth@redhat.com>
1332 * arc.c (arc_encode_section_info): Remove.
1333 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
1334 (arc_print_operand, arc_print_operand_address): Likewise.
1335 * arc.h (EXTRA_CONSTRAINT): Likewise.
1337 2003-04-16 Roger Sayle <roger@eyesopen.com>
1339 * c-semantics.c (find_reachable_label): New function to find a
1340 potentially reachable label in an expression.
1341 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
1342 assumes the start of the IF_STMT is unreachable (dead) code.
1343 (expand_unreachable_stmt): Similar to expand_stmt but assumes
1344 the start of the statement list is unreachable (dead) code.
1345 (genrtl_if_stmt): If the controlling expression of the IF
1346 is constant, use expand_unreachable_stmt for the THEN or ELSE
1347 clause as appropriate.
1348 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
1349 the body of a SWITCH statement.
1350 (expand_stmt): The code immediately following a "return",
1351 "break", "continue" or "goto" is unreachable.
1352 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
1354 2003-04-16 Richard Henderson <rth@redhat.com>
1356 * rtl.h (MEM_ALIAS_SET): Update documentation.
1357 * doc/rtl.texi (Special Accessors): New node.
1358 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
1360 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
1362 * reload1.c (reload_cse_noop_set_p): Return false if mode of
1363 SET_DEST is not the same as that returned by...
1364 * cselib.h (cselib_reg_set_mode): ... new function.
1365 * cselib.c (cselib_reg_set_mode): Define it.
1366 (REG_VALUES): Document semantics of first element as set mode.
1367 (cselib_subst_to_values): Skip first element if ELT is NULL.
1368 (cselib_lookup): Likewise. Insert past the first element.
1369 (cselib_invalidate_regno): NULLify first element.
1370 (cselib_record_set): Set first element.
1372 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
1374 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
1375 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
1376 * tree.h: Add prototypes for the two new functions.
1377 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
1378 updates introduced in the previous revision by call to saved_expr_p.
1379 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
1381 * expr.c (store_field): Force usage of bitfield instructions when
1382 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
1383 (expand_expr, case BIT_FIELD_REF): likewise.
1385 2003-04-16 Mark Mitchell <mark@codesourcery.com>
1388 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
1391 2003-04-16 Richard Henderson <rth@redhat.com>
1393 * config/ia64/ia64.c (sdata_symbolic_operand): Use
1394 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
1395 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1396 (function_operand): Use SYMBOL_REF_FUNCTION_P.
1397 (ia64_expand_load_address): Likewise.
1398 (ia64_assemble_integer): Likewise.
1399 (ia64_encode_section_info): Remove.
1400 (ia64_strip_name_encoding): Remove.
1401 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
1402 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
1404 2003-04-16 Richard Henderson <rth@redhat.com>
1406 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
1407 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
1408 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
1409 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
1410 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
1411 (global_symbolic_operand): Similarly.
1412 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
1413 (tls_symbolic_operand_type): Likewise.
1414 (alpha_encode_section_info): Use default_encode_section_info.
1415 (alpha_strip_name_encoding): Remove.
1416 (get_tls_get_addr): Split out from ...
1417 (alpha_legitimize_address): ... here.
1418 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
1419 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
1420 (alpha_initialize_trampoline): Use init_one_libfunc.
1421 (alpha_setup_incoming_varargs): Mark unused parameters.
1422 (alpha_initial_elimination_offset): Likewise.
1423 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
1424 (unicosmk_unique_section): Use default_strip_name_encoding.
1425 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
1427 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
1429 * config.gcc: Add t-spe for eabispe.
1431 * config/rs6000/t-spe: New.
1433 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
1435 Re-apply this patch:
1437 2002-05-16 Dale Johannesen <dalej@apple.com>
1438 * combine.c (cant_combine_insn_p): Reenable combinations
1439 involving hard regs unless CLASS_LIKELY_SPILLED_P.
1441 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1444 * pa-protos.h (function_arg): Remove last argument.
1445 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
1446 * pa.h (struct hppa_args): Add member incoming.
1447 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
1449 (FUNCTION_ARG): Revise call to function_arg.
1450 (FUNCTION_INCOMING_ARG): Delete.
1452 2003-04-15 Zack Weinberg <zack@codesourcery.com>
1454 * configure.in: Unify the code which creates symlinks to a
1455 just-built as, ld, objdump, and nm with the code that detects
1456 their presence for purposes of feature tests.
1457 * configure: Regenerate.
1459 2003-04-15 Zack Weinberg <zack@codesourcery.com>
1461 * varasm.c (output_constant_def): Do not consult
1462 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
1463 (after_function_constants, output_after_function_constants): Delete.
1464 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
1465 * config/mips/mips-protos.h, config/mips/mips.c
1466 (mips16_constant_after_function_p): Delete.
1467 * config/mips/mips.h: Delete #if-0-ed definition of
1468 CONSTANT_AFTER_FUNCTION_P.
1469 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
1470 mention of CONSTANT_AFTER_FUNCTION_P in comment.
1472 2003-04-15 Geoffrey Keating <geoffk@apple.com>
1474 * tree.c (next_decl_uid): Mark with GTY.
1475 (next_type_uid): Likewise.
1477 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
1480 * sh.c (barrier_align): Also recognize stuff_delay_slot as
1481 an indicator that a barrier was created by branch splitting.
1483 2003-04-15 Mark Mitchell <mark@codesourcery.com>
1485 * c-decl.c (implicitly_declare): Copy declarations that are going
1486 to be placed in a local scope.
1488 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
1490 * invoke.texi (Spec Files): Wrap if-exists-else example.
1491 (MCore): Remove duplicate @itemx entries and @opindex entries.
1493 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
1495 * unwind.inc (_Unwind_Backtrace): New function.
1496 * unwind.h (_Unwind_Backtrace): Declare it.
1497 * libgcc-std.ver (_Unwind_Backtrace): Export it.
1499 2003-04-14 Jason Merrill <jason@redhat.com>
1501 PR middle-end/10336, c++/10401
1502 * jump.c (never_reached_warning): Also stop looking if we reach the
1503 beginning of the function.
1505 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1510 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
1512 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
1514 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
1516 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1518 * optabs.c (expand_binop): In multi-word add cases, ensure
1519 XTARGET is copied to TARGET if they are different.
1521 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
1523 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
1524 to region, possible after integration of function with unreachable
1525 regions that were optimized away.
1527 2003-04-15 Jakub Jelinek <jakub@redhat.com>
1529 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
1530 instead of TOC_REGISTER in epilogue in
1531 current_function_calls_eh_return functions.
1533 2003-04-14 Mark Mitchell <mark@codesourcery.com>
1535 * doc/extend.texi (Empty Structures): Correct description of G++'s
1536 handling of these structures.
1538 * c-decl.c (grokdeclarator): Reject extern redeclarations of
1541 2003-04-14 Janis Johnson <janis287@us.ibm.com>
1543 * config/rs6000/rs6000.md (define_constants): Define constants for
1544 all UNSPEC usage, including new values for TLS support.
1545 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
1546 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
1547 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
1548 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
1549 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
1550 eh_set_lr_di): Use them.
1551 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
1552 rs6000_emit_epilogue) Use them.
1554 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
1556 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
1558 * Makefile.in (c-opts.o): Use custom action.
1560 2003-04-14 Douglas B Rupp <rupp@gnat.com>
1562 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
1564 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1566 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
1567 handle "superflat arrays" in Ada.
1569 * integrate.c (expand_inline_function): Don't inline if would
1570 lose /u on a BLKmode TARGET.
1572 2003-04-14 Joel Brobecker <brobecker@gnat.com>
1574 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
1575 extracted from dbxout_type.
1576 (dbxout_range_type): print large bounds in octal format.
1577 (dbxout_type): Replace extracted code by call to
1578 print_int_cst_bounds_in_octal_p.
1580 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
1581 of DW_LANG_Ada83 for Ada units.
1583 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
1585 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
1586 temporary used to round CONST_INT sizes.
1588 * tree.c (int_fits_type_p): Extract generic checks from the case
1589 of constant type bounds. Refine the checks against constant type
1590 bounds to allow for possible decisions against each of these bounds
1591 without requiring both bounds to be constant.
1592 (tree_int_cst_msb): Put back.
1593 * tree.h (tree_int_cst_msb): Likewise.
1595 * global.c (global_conflicts): Prevent allocation of call clobbered
1596 hard regs to pseudos live across abnormal edges, as later passes are
1597 not ready to handle them.
1599 * fold-const.c (fold): Reorder tests for conditional expressions.
1601 * expr.c (highest_pow2_factor): Return unsigned.
1602 * expr.h (offset_address): Likewise.
1603 * emit-rtl.c (offset_address): POW2 argument now unsigned.
1605 2003-04-14 Roger Sayle <roger@eyesopen.com>
1607 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
1608 string literals at compile-time.
1610 2003-04-14 Roger Sayle <roger@eyesopen.com>
1612 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
1613 comparison operation and c1/c2 are floating point constants into
1614 x swap(cmp) (c1 - c2).
1616 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
1618 * genautomata.c (output_translate_vect): Fix a typo in loop
1621 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
1624 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
1625 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
1626 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
1627 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
1628 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
1629 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
1630 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
1631 ("*extopqihi_swap_side", "*extopqisi_swap_side")
1632 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
1633 When next to constraint R, replace constraint i with n.
1635 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
1638 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
1640 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
1642 * doc/contrib.texi (Contributors): Correct my entry.
1644 2003-04-13 Roger Sayle <roger@eyesopen.com>
1646 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
1647 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
1648 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
1649 implies DECL_BUILT_IN to simplify logic.
1650 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
1652 2003-04-13 Roger Sayle <roger@eyesopen.com>
1654 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
1655 (BT_FN_PTR_SIZE_SIZE): Likewise.
1656 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
1657 New built-in functions for malloc, calloc and strdup respectively.
1658 * calls.c (special_function_p): No need to handle malloc-like
1659 functions any longer. ECF_MALLOC is set via built-in attributes.
1661 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
1663 * doc/extend.texi: Document these new built-in functions.
1665 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1667 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
1668 (expand_builtin_stpcpy): New.
1669 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
1670 * builtins.def: Add mempcpy & stpcpy support.
1671 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
1673 2003-04-13 Nick Clifton <nickc@redhat.com>
1675 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
1677 * config/rs6000/40x.md, config/rs6000/603.md,
1678 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
1679 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
1680 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
1681 config/rs6000/aix43.h, config/rs6000/aix51.h,
1682 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
1683 config/rs6000/altivec.h, config/rs6000/altivec.md,
1684 config/rs6000/beos.h, config/rs6000/darwin.h,
1685 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
1686 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
1687 config/rs6000/freebsd.h, config/rs6000/gnu.h,
1688 config/rs6000/host-darwin.c, config/rs6000/linux.h,
1689 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
1690 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
1691 config/rs6000/netbsd.h, config/rs6000/power4.md,
1692 config/rs6000/rios1.md, config/rs6000/rios2.md,
1693 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
1694 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1695 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
1696 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
1697 config/rs6000/spe.md, config/rs6000/sysv4.h,
1698 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
1699 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
1701 2003-04-13 Nick Clifton <nickc@redhat.com>
1703 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
1704 support for -mcall-aix switch.
1705 * config/rs6000/eabiaix.h: Delete.
1706 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
1707 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
1708 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
1709 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
1710 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
1711 debug_stack_info, output_function_profiler,
1712 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
1713 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
1714 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1715 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
1716 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
1717 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
1719 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
1720 (MULTILIB_EXCEPTIONS): Delete.
1721 (MULTILIB_MATCHES): Remove mcall-aix matches.
1723 * doc/fragments.texi: Replace -mcall-aix example with an ARM
1725 * doc/install.texi: Delete powerpc-*-eabiaix target.
1726 * doc/invoke.texi: Remove documentation of mcall-aix switch.
1727 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
1728 * config.gcc: Delete powerpc-*-eabiaix target.
1730 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
1732 * doc/invoke.texi: Fix typos.
1733 * doc/tm.texi: Likewise.
1735 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1737 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
1739 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1741 * tree.c (build_constructor): New function.
1742 * tree.h: Prototype it.
1744 * c-typeck.c (build_c_cast, pop_init_level)
1745 * profile.c (build_function_info_value, build_gcov_info_value)
1747 Use build_constructor.
1749 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
1751 * objc/objc-act.c (build_constructor):
1752 Rename objc_build_constructor. Use build_constructor.
1753 (build_objc_string_object, objc_add_static_instance)
1754 (init_def_list, init_objc_symtab, init_module_descriptor)
1755 (generate_static_references, build_selector_translation_table)
1756 (build_descriptor_table_initializer, generate_descriptor_table)
1757 (build_protocol_initializer, build_ivar_list_initializer)
1758 (generate_ivars_list, build_dispatch_table_initializer)
1759 (generate_dispatch_table, generate_protocol_list)
1760 (build_category_initializer, build_shared_structure_initializer):
1763 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1765 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
1767 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1769 * config/m68hc11/m68hc11-protos.h
1770 (m68hc11_eq_compare_operator): Declare
1771 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
1772 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
1773 (d_register_operand): Check the operand mode.
1774 (hard_addr_reg_operand): Likewise.
1776 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1778 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
1779 pattern for dbcc/ibcc generation for 68HC12.
1780 ("doloop_end"): New pattern.
1781 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
1782 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
1783 ("m68hc12_dbcc_dec_qi"): New pattern.
1784 ("m68hc12_dbcc_inc_qi"): New pattern.
1785 (split): Add split for the above when we can't use dbcc/ibcc due to
1787 (peephole2): Add peephole2 to generate the above when possible.
1789 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1791 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
1793 (peephole2 optimize const load): Likewise for operand 2.
1794 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
1796 ("*rotrhi3_with_carry"): Likewise.
1797 (ashift:DI 1 split): Update pattern to create the above rotate.
1798 (lshiftrt:DI 1 split): Likewise.
1800 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1802 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
1803 ("tstqi_z_used" split): Use it.
1804 ("cmphi_z_used"): Likewise.
1805 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
1806 ("cmpqi_z_used"): Likewise.
1808 2003-04-12 Mark Mitchell <mark@codesourcery.com>
1811 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
1813 2003-04-12 Zack Weinberg <zack@codesourcery.com>
1815 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
1816 * configure, config.in: Regenerate.
1817 * intl.c (gcc_gettext_width): New function.
1818 * intl.h: Prototype it.
1820 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1822 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
1823 recognize -mnorelax.
1824 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
1825 (REG_CLASS_NAMES): Add its name.
1826 (REG_CLASS_CONTENTS): Define its content.
1828 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
1830 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
1831 parameters so that offsets are valid for far definition.
1832 (__mulsi3): Likewise and use ret to return.
1833 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
1835 2003-04-12 David Edelsohn <edelsohn@gnu.org>
1837 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
1839 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
1841 * mklibgcc.in (libgcc-stage-start): For every multilib directory
1842 containing a libgcc.a, move lib* to the corresponding stage dir.
1844 * Makefile.in (stage1-start, stage2-start, stage3-start,
1845 stage4-start): Move $(SPECS) to specs in stage dir.
1846 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
1849 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
1850 object files from the non-libgcc/ multilib directories as well.
1852 2003-04-11 Geoffrey Keating <geoffk@apple.com>
1854 * profile.c (read_counts_file): Initialise 'checksum'.
1856 * emit-rtl.c (gen_rtx): Really correct typo.
1859 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
1860 * configure.in: Check for gettimeofday.
1861 * tree.c (flag_random_seed): Define.
1862 (default_flag_random_seed): New.
1863 (append_random_chars): Use flag_random_seed rather than trying
1864 to acquire randomness here.
1865 * tree.h (default_flag_random_seed): Declare.
1866 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
1868 (decode_f_option): Handle -frandom-seed.
1869 (print_switch_values): Call default_flag_random_seed.
1870 * flags.h (flag_random_seed): Declare.
1871 * configure: Regenerate.
1872 * config.in: Regenerate.
1873 * config/alpha/t-crtfm: Use -frandom-seed.
1875 * doc/extend.texi (Empty Structures): New.
1877 * c-pch.c: Include flags.h. Add comments to routines.
1878 (struct c_pch_validity): New.
1879 (get_ident): Update PCH file version number.
1880 (pch_init): Output current debugging type.
1881 (c_common_valid_pch): Check debugging type.
1882 * Makefile.in (c-pch.o): Update dependencies.
1883 * flags.h (debug_type_names): Declare.
1884 * toplev.c (debug_type_names): Move out of decode_g_option.
1886 2003-04-11 Eric Christopher <echristo@redhat.com>
1888 * emit-rtl.c (gen_rtx): Fix typos.
1890 2003-04-11 Richard Henderson <rth@redhat.com>
1892 * emit-rtl.c (gen_rtx): Zero '0' fields.
1894 2003-04-11 Richard Henderson <rth@redhat.com>
1897 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
1898 not COMPLETE_TYPE_P for re-invoking layout_decl.
1900 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
1902 * doc/bugreport.texi: Fix paragraph breaking between sections
1903 in preparation for TeXinfo's paragraph indentation fixes.
1904 * doc/extend.texi: Ditto.
1905 * doc/invoke.texi: Ditto.
1906 * doc/objc.texi: Ditto.
1907 * doc/gcov.texi: Wrap 'gcov' in @command{}.
1908 * doc/invoke.texi (Darwin Options): Add a preamble.
1910 2003-04-11 Richard Henderson <rth@redhat.com>
1912 * config/i386/i386.c (tls_model_chars): Remove.
1913 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
1914 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
1915 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
1916 (tls_symbolic_operand_1): Likewise.
1917 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
1918 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
1919 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
1920 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
1921 bits "copied from i386.h" with default_encode_section_info.
1923 2003-04-11 Richard Henderson <rth@redhat.com>
1925 * rtl.def (SYMBOL_REF): Add two 0 fields.
1926 * gengtype.c (adjust_field_rtx_def): Handle them.
1927 * print-rtl.c (print_rtx): Print them.
1928 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
1929 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
1930 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
1931 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
1932 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
1933 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
1934 (SYMBOL_FLAG_MACH_DEP): New.
1935 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
1936 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
1937 (assemble_static_space): Set SYMBOL_REF_FLAGS.
1938 (assemble_trampoline_template): Likewise.
1939 (output_constant_def, force_const_mem): Likewise.
1940 (default_encode_section_info): New.
1941 * output.h: Declare it.
1942 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
1944 2003-04-11 Richard Henderson <rth@redhat.com>
1946 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
1947 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
1948 * optabs.c (init_optabs): Initialize them.
1949 (init_libfuncs): Use init_one_libfunc.
1950 * calls.c (expand_call): Use gcov_flush_libfunc.
1951 * expr.c (store_constructor): Use setbits_libfunc.
1952 * function.c (expand_main_function): Use init_one_libfunc.
1953 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
1955 2003-04-11 Mark Mitchell <mark@codesourcery.com>
1957 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
1958 documentation; add DECL_FRIEND_CONTEXT.
1960 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1962 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
1963 notes on linker selection and configuration for 64-bit HP-UX port.
1964 * doc/invoke.texi (hppa): Remove hppa text from description for
1965 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
1966 and -threads options.
1968 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
1969 libc.a on libdld.sl when -static is specified and -nolibdld is not
1971 * pa64-hpux.h (LIB_SPEC): Likewise.
1972 * pa-hpux11.h (LIB_SPEC): Likewise.
1973 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
1976 2003-04-11 Zack Weinberg <zack@codesourcery.com>
1978 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
1979 not IDENTIFIER_LOCAL_VALUE.
1981 2003-04-11 Richard Henderson <rth@redhat.com>
1984 * expr.c (expand_expr): Move DECL_RTL frobbing ...
1985 * stor-layout.c (layout_decl): ... here.
1987 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
1989 * doc/invoke.texi: Eliminate extra white-space caused by
1990 @gccoptlist{ on its own line.
1991 * doc/invoke.texi: Ensured there are two spaces between each option.
1992 * doc/invoke.texi: Re-wrapped option lines that were too wide.
1993 Added @gol to options that didn't have them.
1995 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
1997 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
2000 Simplify interface to gcov reading and writing.
2001 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
2002 gcov_alloc, gcov_modified, gcov_errored): Move into ...
2003 (struct gcov_var gcov_var): ... this static structure.
2004 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
2006 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
2008 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
2009 (gcov_reserve_length): Remove.
2010 (gcov_write_tag): New.
2011 (gcov_write_length): Adjust.
2012 (gcov_read_summary, gcov_write_summary): Adjust.
2013 (gcov_eof, gcov_ok): Rename to ...
2014 (gcov_is_eof, gcov_is_error): ... here. Return error code.
2015 (gcov_save_position, gcov_resync): Rename to ...
2016 (gcov_position, gcov_seek): ... here.
2017 (gcov_skip, gcov_skip_string): Remove.
2018 (gcov_error): Remove.
2019 (gcov_open, gcov_close): Adjust.
2020 * gcov.c (find_source): Take const char *, copy it on allocation.
2021 (read_graph_file): Adjust.
2022 (read_count_file): Adjust.
2023 * libgcov.c (gcov_exit): Adjust.
2024 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
2025 tag_arc_counts, tag_summary): Return void. Adjust.
2026 (struct tag_format): Adjust proc member.
2027 (dump_file): Adjust gcov calls.
2029 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2031 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
2033 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
2034 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
2035 build != host sysrooted builds.
2036 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
2037 TARGET_SYSTEM_ROOT even on sysrooted natives.
2038 * configure: Rebuilt.
2040 2003-04-10 Zack Weinberg <zack@codesourcery.com>
2042 * c-decl.c (struct binding_level): Add shadowed_tags and
2043 function_body; remove this_block, tag_transparent, and
2044 subblocks_tag_transparent; update comments.
2045 (clear_binding_level, lookup_tag_reverse): Kill.
2046 (make_binding_level): Use ggc_alloc_cleared or memset.
2047 (lookup_tag): Remove struct binding_level* parameter. All
2048 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
2049 current_binding_level->tags if asked for thislevel_only or if
2050 we might have to diagnose "struct foo; union foo;"
2051 (pushlevel): Ignore argument. Do not push another binding
2052 level on the transition from the parameters to the top level
2053 of the function body; just tweak the flags and proceed.
2054 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
2055 a function body, separate the parameter list from the
2056 top-level local variables.
2057 (set_block): Do nothing.
2058 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
2059 shadowed_tags if necessary.
2060 (warn_if_shadowing): Nuke the special case for local shadowing
2062 (pushdecl): Do not create a shadow entry if we are replacing
2063 an older decl in the same binding level.
2064 (pushdecl_function_level): Tweak for new way of indicating
2066 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
2067 (start_function): Don't set subblocks_tag_transparent.
2068 (finish_function): Fix up the binding_level stack for totally
2069 empty functions. Otherwise, don't call poplevel.
2071 * c-common.c (shadow_warning): MANDATORY argument is no longer
2072 necessary. Always use plain warning.
2073 * c-common.h: Update to match.
2075 * cfglayout.c (scope_to_insns_initialize): Clear block when we
2076 hit the FUNCTION_DECL.
2077 * function.c: Do not create cyclic tree structure.
2079 2003-04-10 Zack Weinberg <zack@codesourcery.com>
2081 * c-tree.h (struct lang_identifier): Replace global_value,
2082 local_value members with symbol_value, tag_value. Kill
2083 implicit_decl and limbo_value.
2084 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
2085 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
2086 C_MISSING_PROTOTYPE_WARNED): Kill.
2087 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
2088 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
2089 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
2090 (implicit_decl_warning, lookup_name_current_level,
2091 record_function_scope_shadow): Don't prototype.
2092 (pushdecl_function_level): Prototype.
2094 * c-decl.c (truly_local_externals): New variable.
2095 (struct binding_level): Adjust commentary.
2096 (get_function_binding_level, clear_limbo_values,
2097 record_function_scope_shadow): Kill.
2098 (lookup_name_current_level, implicit_decl_warning): Are now static.
2099 (any_external_decl, record_external_decl): New static functions.
2100 (clone_underlying type): Split out of pushdecl.
2101 (c_print_identifier): Update to match changes to struct
2103 (poplevel): Delete #if 0 block. Make externals invisible
2104 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
2105 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
2106 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
2107 (duplicate-decls): For real parm decl after a forward decl,
2108 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
2109 foo(...) { } with only a warning. Say whether a previous
2110 declaration was implicit.
2111 (warn_if_shadowing): Now handles all shadowing, not just
2112 local-over-local. Clarify comments.
2113 (pushdecl): Rewritten. There is no longer a distinction
2114 between global and local symbol values; they're all
2115 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
2116 DECL_EXTERNAL decls, and use any_external_decl to check
2117 against previous externals. Kill #if 0 blocks. Don't
2118 tolerate error_mark_node being NULL.
2119 (pushdecl_top_level): Handle only those cases which
2120 Objective C (the only user) needs.
2121 (pushdecl_function_level): New function.
2122 (implicitly_declare): Create ordinary decls with
2123 C_DECL_IMPLICIT set. Recycle old decls, however they got
2125 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
2126 for C_DECL_INVISIBLE symbols.
2127 (lookup_name_current_level): Likewise. Use chain_member.
2128 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
2129 Use pushdecl_function_level.
2130 (builtin_function): Use C_DECL_INVISIBLE.
2131 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
2132 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
2133 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
2134 (identifier_global_value): Same. Must scan
2135 global_binding_level in extremis.
2137 * c-typeck.c (undeclared_variable): New static function, split
2138 from build_external_ref.
2139 (build_external_ref): Use DECL_CONTEXT, not
2140 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
2141 an instance variable. Restructure for clarity.
2142 * objc/objc-act.c: Use identifier_global_value, not
2143 IDENTIFIER_GLOBAL_VALUE.
2145 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
2147 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
2149 * doc/invoke.texi (C++ Dialect Options): Same.
2151 2003-04-10 Zack Weinberg <zack@codesourcery.com>
2153 * tree.c (tree_operand_check_failed): New function.
2154 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
2155 TREE_RTL_OPERAND_CHECK): New checking macros.
2156 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
2157 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
2158 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
2159 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
2160 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
2161 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
2164 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2167 * function.c (instantate_virtual_regs): Verify that all ASM statements
2168 match after the virutal regs instantiation.
2170 2003-04-10 Steve Ellcey <sje@cup.hp.com>
2172 * ia64-protos.h (addp4_optimize_ok): New.
2173 * ia64.c (addp4_optimize_ok): New.
2174 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
2175 (*ptr_extend_plus_2): Ditto.
2177 2003-04-10 Steve Ellcey <sje@cup.hp.com>
2179 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
2180 not with convert_memory_address.
2181 (store_constructor): Ditto, and same for copy_size_rtx.
2182 (expand_expr): Ditto.
2184 2003-04-10 Douglas B Rupp <rupp@gnat.com>
2186 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
2188 2003-04-10 Bob Wilson <bob.wilson@acm.org>
2190 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
2191 even if it is configured to be write-through.
2193 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2195 * config/s390/s390.c (larl_operand): Do not allow symbols
2197 (s390_encode_section_info): Mark symbols with forced 1-byte
2199 (s390_strip_name_encoding): Strip '@'.
2200 (legitimize_pic_address): Handle symbols that are not valid
2201 LARL operands in 64-bit mode.
2203 2003-04-10 Andrew Haley <aph@redhat.com>
2205 * tree-inline.c (inlinable_function_p): Disable inlining for
2206 synchronized methods.
2208 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
2210 * c-common.h (lang_statement_code_p): Remove declaration.
2211 (statement_code_p): Ditto.
2212 (c_common_stmt_codes): Define; list of c-common statement codes.
2213 (statement_code_p): New extern declaration.
2214 (STATEMENT_CODE_P): Define.
2215 (INIT_STATEMENT_CODES): Define.
2216 * c-common.c (statement_code_p): Kill the function, declare
2217 as an array of bools instead.
2218 (lang_statement_code_p): Remove.
2219 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
2220 (c_safe_from_p): Ditto.
2221 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
2222 to initialize the statement_code_p array.
2223 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
2225 (copy_tree_r): Ditto.
2226 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
2227 statement tree codes.
2228 * cp/lex.c (cxx_init): Add missing print line break. Use
2229 INIT_STATEMENT_CODES to initialize the statement_code_p array.
2230 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
2231 instead of statement_code_p.
2232 * cp/pt.c (tsubst_expr): Ditto.
2233 * cp/tree.c (verify_stmt_tree_r): Ditto.
2234 (cp_statement_code_p): Remove.
2235 (init_tree): Don't set lang_statement_code_p, it's gone.
2237 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
2238 Zack Weinberg <zack@codesourcery.com>
2240 * regrename.c (struct du_chain): Use a bitfield for reg_class.
2241 * cse.c (struct qty_table_elem, struct table_elt, struct set):
2242 Use bitfields for fields holding enum rtx_code or
2243 enum machine_mode values. Add comments explaining size choices.
2245 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
2247 * config/fp-bit.c (unpack_d): Handle pair of doubles with
2248 different signs correctly.
2250 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
2252 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
2253 (reg_pending_barrier): Make it of the enumeration type.
2254 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
2256 (sched_analyze): Ditto.
2257 (sched_analyze_insn): Ditto. Use anti-dependencies for
2258 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
2259 (init_deps_global): Initialize the barrier as NO_BARRIER.
2261 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
2263 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
2264 Check that asm insn starts on a new cycle. Add nops after asm
2266 (bundling): Move insn type evaluation from the loop. Call
2267 issue_nops_and_insn with the new parameter. Ignore changing
2268 position for nops after asm insn.
2270 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
2272 * optabs.c: Comment that gen_add2_insn and others may actually
2273 return emitted insns, if the gen functions turn out to return
2275 * reload1.c (reload_cse_move2add): Cope with emitted insns from
2278 2003-04-09 Richard Henderson <rth@redhat.com>
2280 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
2281 but not tls_symbolic_operand.
2282 (ia64_expand_load_address): Remove scratch operand.
2283 (ia64_expand_tls_address): Split out from ia64_expand_move.
2284 (ia64_expand_move): Split symbolics only after reload.
2285 (ia64_emit_cond_move): New.
2286 * config/ia64/ia64-protos.h: Update.
2287 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
2288 (symbolic splitter): Accept SImode operands too.
2289 (cmove splitter): Use ia64_emit_cond_move.
2291 2003-04-09 Nick Clifton <nickc@redhat.com>
2293 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
2295 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
2296 instead of -mno-fpu.
2297 * config/arm/semi.h (ASM_SPEC): Likewise.
2298 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
2299 but only if -msoft-float is specified pass. Otherwise pass
2302 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2304 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
2305 free_EXPR_LIST_node.
2307 2003-04-08 Roger Sayle <roger@eyesopen.com>
2309 * fold-const.c (fold): Use "fold" following build in more places.
2310 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
2311 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
2313 2003-04-08 Roger Sayle <roger@eyesopen.com>
2315 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
2316 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
2317 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
2318 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
2319 Delete function scope "fcode" variable to avoid shadowing.
2321 2003-04-08 Kevin Buettner <kevinb@redhat.com>
2323 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
2324 Take into account DWARF_INITIAL_LENGTH_SIZE.
2326 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
2328 * reorg.c (fill_slots_from_thread): When considering changing the
2329 insn following a reg-to-reg copy insn to use the source reg of the
2330 copy, bail out if there's overlap between the registers.
2332 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2334 * function.c (postponed_insns): New.
2335 (purge_addressof_1): Postpone processing of insns if addressofs
2336 are not put into stack.
2337 (purge_addressof): Process postponed insns.
2339 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
2341 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
2342 this is FP_MODE_DOUBLE .
2343 * sh.c (ra.h): #include.
2344 (push_regs): Add second parameter. Changed all callers.
2345 If necessary, set fpscr before saving floating point registers.
2346 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
2347 do saves / restores with SZ == 1.
2348 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
2349 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
2350 registers are being restored, restore FPSCR only after restoring them.
2352 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
2354 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
2355 regardless of architecture.
2356 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
2358 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
2360 * sh.c (push_regs, calc_live_regs): Return int. Take single
2361 HARD_REG_SET * parameter. Changed all callers.
2363 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
2365 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
2367 (legitimize_pic_address): Move plus outside the unspec.
2368 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
2371 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
2373 * gcov-io.h (gcov_save_position): Remove __inline__ from
2376 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
2378 * doc/install.texi: Use @command and @samp for single- and
2379 multi-word commands respectively.
2380 * doc/makefile.texi: Likewise.
2381 * doc/sourcebuild.texi: Likewise.
2383 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
2384 Richard Henderson <rth@redhat.com>
2387 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
2388 favour of looping and tail recursion for TREE_LIST and binops.
2390 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2392 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
2393 for insns without luid.
2395 2003-04-07 Glen Nakamura <glen@imodulo.com>
2398 * explow.c (maybe_set_unchanging): Don't flag non-static const
2399 aggregate type initializers with RTX_UNCHANGING_P.
2401 2003-04-07 Richard Henderson <rth@redhat.com>
2404 * function.c (purge_addressof_1): Don't try arithmetics for
2405 unchanging memories.
2407 2003-04-07 Janis Johnson <janis187@us.ibm.com>
2409 * doc/sourcebuild.texi (Test Suites): Document testing support for
2410 gcov and profile-directed optimizations; describe gcc.misc-tests.
2412 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
2415 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
2417 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2419 * doc/rtl.texi (Comparison operations): Update to
2420 record the allowed comparison modes.
2422 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
2424 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
2425 V2SI_type_node to opaque_V2SI_type_node. Rename all
2426 V2SF_type_node to opaque_V2SF_type_node.
2427 (rs6000_init_builtins): Define opaque_V2SI_type_node and
2428 opaque_V2SF_type_node.
2429 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
2430 opaque_V2SF_type_node are opaque types.
2432 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
2434 * gcse.c (replace_store_insn): Use single_set.
2436 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
2438 Change gcov file interface to single file at a time.
2439 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
2440 Convert to C89 prototypes.
2441 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
2442 gcov_error, gcov_modified): New static variables.
2443 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
2445 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2446 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2447 (gcov_read_summary, gcov_write_summary): Adjust.
2448 (gcov_save_position, gcov_reserve_length, gcov_write_length):
2450 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
2451 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
2452 (da_file_position, da_file_seek, da_file_write, da_file_read):
2454 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
2455 * gcov.c (gcov_type): Don't typedef here.
2457 (read_graph_file, read_count_file): Adjust.
2458 * gcov-dump.c (gcov_type): Don't typedef here.
2460 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
2461 Remove FILE parameter, adjust.
2462 (struct tag_format): Adjust proc member.
2463 (dump_file): Adjust.
2464 * libgcov.c (IN_LIBGCOV): #define.
2465 (gcov_exit): Adjust.
2466 * loop-init.c: Don't #include gcov-io.h
2467 * profile.c (struct counts_entry): New structure to hold counter
2469 (struct section_reference, struct da_index_entry): Remove.
2470 (bbg_file, da_file): Remove.
2471 (htab_counts_index_hash, htab_counts_index_eq,
2472 htab_counts_index_del): Replace with ...
2473 (htab_counts_entry_hash, htab_counts_entry_eq,
2474 htab_counts_entry_del): ... these.
2475 (cleanup_counts_index, index_counts_file): Remove.
2476 (read_counts_file): New function.
2477 (get_exec_counts): Adjust.
2478 (compute_branch_probabilities): Don't free the exec counts here.
2479 (branch_prob): Adjust.
2480 (init_branch_prob): Adjust.
2481 (end_branch_prob): Adjust.
2483 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
2485 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2488 * config/rs6000/rs6000.c: Delete rs6000_fprs.
2489 Declare rs6000_float_gprs.
2490 Declare rs6000_float_gprs_string.
2491 (rs6000_parse_float_gprs_option): New.
2492 (rs6000_override_options): Genericize rs6000_parse_* calls to use
2493 rs6000_parse_yes_no_option.
2494 Change check for cpu=8540, to use TARGET_E500.
2495 (rs6000_parse_isel_option): Delete.
2496 (rs6000_parse_spe_option): Delete.
2497 (rs6000_parse_vrsave_option): Delete.
2499 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
2500 Define rs6000_float_gprs_string.
2501 (TARGET_OPTIONS): Add rs6000_float_gprs option.
2503 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
2505 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
2507 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
2510 * cfglayout.c (cfg_layout_redirect_edge):
2511 Redirect any branch edges unified with the fallthru one.
2512 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
2513 case fallthru edges when called via cfglayout.c
2515 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
2517 * c-typeck.c (output_init_element): Check for type == error_mark_node.
2519 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
2521 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
2523 (a splitter): Do zero-extension via HImode.
2525 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
2527 * doc/invoke.texi: Eliminate extra white-space caused by
2528 @gccoptlist{ on its own line.
2529 * doc/invoke.texi: Ensured there are two spaces between each option.
2530 * doc/invoke.texi: Re-wrapped option lines that were too wide.
2531 Added @gol to options that didn't have them.
2533 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
2535 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
2537 2003-04-06 Zack Weinberg <zack@codesourcery.com>
2539 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
2540 at the sizes of the relevant structures, rather than relying
2541 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
2542 sizes of any such we don't know about. Use
2543 lang_hooks.identifier_size for IDENTIFIER_NODE.
2545 (initializer_zerop): Use CONSTRUCTOR_ELTS.
2546 * tree.def: Update commentary. Make fourth element of
2547 the definition for all 'c' and 'x' nodes zero.
2549 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
2550 * langhooks-def.h: Update to match.
2551 * langhooks.c: New default, lhd_tree_size.
2553 * c-common.def (SRCLOC): Kill.
2554 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
2555 Remove entirely - was already #if-ed out.
2558 2003-04-06 Zack Weinberg <zack@codesourcery.com>
2560 * mklibgcc.in: Use a here document to avoid running afoul of
2561 shells that generate control-A from "echo \1".
2563 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
2565 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
2568 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2571 * config/rs6000/eabi.h (TARGET_E500): Define.
2573 * config/rs6000/rs6000.h (TARGET_E500): Define.
2574 (TARGET_OPTIONS): Add spe= option.
2575 Declare rs6000_spe and rs6000_spe_string extern.
2577 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
2578 Change TARGET_SPE to TARGET_E500.
2579 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
2581 (print_operand): Same.
2582 (rs6000_generate_compare): Same.
2583 (output_cbranch): Same.
2584 (rs6000_spe): Declare.
2585 (rs6000_spe_string): Declare.
2586 (rs6000_override_options): Call rs6000_parse_spe_option.
2587 (rs6000_parse_spe_option): New.
2589 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
2591 * hashtable.c (gcc_obstack_init): Delete this function
2592 and everything related to it.
2593 * hashtable.h: Remove prototype.
2594 * bitmap.c (bitmap_element_allocate): Cleanup redundant
2595 defines. Cleanup some unnecessary whitespace.
2596 * defaults.h (obstack_chunk_alloc): Redefine with
2597 appropriate casts for libiberty obstacks.
2598 (obstack_chunk_free): Ditto.
2599 (OBSTACK_CHUNK_SIZE): Define, default to 0.
2600 (gcc_obstack_init): Define as a call to _obstack_begin.
2601 * tree.c (print_obstack_statistics): Delete this unused
2603 * tree.h (obstack): Don't forward-declare.
2604 (print_obstack_statistics): Delete prototype.
2605 (print_obstack_name): Ditto.
2606 (gcc_obstack_init): Ditto.
2607 * rtl.h (gcc_obstack_init): Ditto.
2608 * java/jv-scan.c (gcc_obstack_init): Delete this
2609 function, its prototype and related defines.
2610 * java/jvgenmain.c (gcc_obstack_init): Delete this
2611 function, and related defines.
2612 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
2613 (obstack_chunk_free): Ditto
2615 2003-04-06 Geoffrey Keating <geoffk@apple.com>
2617 * dbxout.c (dbxout_handle_pch): Move prototype out from
2618 #if defined DBX_DEBUGGING_INFO.
2620 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
2622 * gcov.c (struct arc_info): Replace local_span with cycle.
2623 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
2624 (solve_flow_graph): Set is_call_return.
2625 (add_line_counts): Adjust. In block mode, blocks attach to last line.
2626 (accumulate_line_counts): Find graph cycles, not spanning tree.
2627 (output_branch_count): Adjust.
2628 (output_lines): Adjust.
2629 * doc/gcov.texi: Update.
2631 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
2633 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
2634 the second alternative to "#".
2636 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
2638 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
2639 (single_zero_operand): Likewise.
2641 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
2643 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
2644 * df.c: Include alloc-pool.h, not obstack.h.
2645 (df_ref_obstack): Remove.
2646 (df_ref_pool, df_link_pool): Add pools.
2647 (df_alloc): Init the new pools.
2648 (df_free): And free them.
2649 (df_link_create): Use the pools.
2650 (df_ref_create): Ditto.
2652 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
2654 * simplify-rtx.c: Fix formatting.
2656 2003-04-05 Andrew Pinski <apinski@apple.com>
2658 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
2659 reg with reg1 == reg2 and offset1 = -8.
2661 2003-04-05 David Edelsohn <edelsohn@gnu.org>
2663 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
2664 multiply costs. Correct Power4 divide costs.
2665 * config/rs6000/power4.md: Restore multiply and FP latency.
2667 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2669 * alias.c (find_base_term): Export.
2670 * rtl.h (find_base_term): Declare.
2671 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
2672 instead of flag_exceptions. Move test for parameter passing ...
2673 (store_killed_in_insn): ... here.
2675 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2678 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
2681 2003-04-04 Geoffrey Keating <geoffk@apple.com>
2683 * dbxout.c (scope_labelno): Add GTY.
2684 (have_used_extensions): Add GTY.
2685 (source_label_number): Add GTY.
2686 (lastfile): Add GTY.
2687 (lastfile_is_base): New.
2688 (base_input_file): New.
2689 (dbxout_handle_pch): New.
2690 (dbx_debug_hooks): Add handle_pch.
2691 (xcoff_debug_hooks): Likewise.
2692 (dbxout_function_end): Remove scope_labelno.
2693 (dbxout_init): Set base_input_file.
2694 (dbxout_handle_pch): New.
2695 (dbxout_source_file): Honour lastfile_is_base.
2696 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
2697 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
2698 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
2699 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
2700 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
2701 * debug.h (struct gcc_debug_hooks): Add handle_pch.
2702 * c-pch.c (pch_init): Don't call start_source_file, but do call
2704 (c_common_write_pch): Call handle_pch.
2705 (c_common_read_pch): Don't call start_source_file,
2708 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
2710 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
2711 use of default attributes to agree MEM_ALIGN macro.
2713 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
2715 * dbxout.c (dbxout_type): When printing type index of range type
2716 whose bounds are printed in octal format, print type of parent type if
2717 it exists so enumerated type descriptions are not transformed
2718 into unsigned types.
2720 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
2722 * config/h8300/h8300-protos.h: Add a prototype for
2724 * config/h8300/h8300.c (shift_one): Update the CC status.
2725 (shift_two): Likewise.
2726 (output_a_shift_cc): Set cc_inline and cc_special.
2727 (compute_a_shift_cc): New.
2728 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
2730 2003-04-04 Richard Henderson <rth@redhat.com>
2732 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
2734 2003-04-04 Loren James Rittle <ljrittle@acm.org>
2736 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
2737 * fixinc/fixincl.x: Rebuilt.
2738 * fixinc/tests/base/stdio.h: Regenerated.
2740 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
2742 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
2744 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
2746 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
2748 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
2750 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2752 * doc/contrib.texi (Contributors): Add entries for Wolfgang
2753 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
2754 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
2755 Danny Smith, and Ulrich Weigand.
2756 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
2759 2003-04-04 Nick Clifton <nickc@redhat.com>
2761 * config/sparc/sol2-bi.h: Revert previous delta.
2762 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
2764 2003-04-04 Nick Clifton <nickc@redhat.com>
2766 * config/v850/v850.c (expand_prologue): Only use register save
2767 helper functions if long calls are not being used.
2768 Add a clobber of r11 id using long calls.
2769 (pattern_is_ok_for_prologue): Account for the extra clobber.
2770 (construct_save_jarl): Likewise.
2771 * config/v850/v850.md (prolog pattern): Do not use this pattern
2774 2003-04-04 Andreas Schwab <schwab@suse.de>
2776 * stor-layout.c (layout_decl): Avoid syntax error in last change
2777 when PCC_BITFIELD_TYPE_MATTERS is defined but not
2778 EMPTY_FIELD_BOUNDARY.
2780 2003-04-03 Jason Merrill <jason@redhat.com>
2783 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
2784 Look backwards for a line note.
2786 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
2788 * fix-header.c (read_scan_file): Defer switch processing.
2790 2003-04-03 Matt Austern <austern@apple.com>
2792 * cpppch.c (reset_ht): Remove.
2793 (cpp_read_state): Remove loop to reset hashtable identifiers.
2794 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
2795 after pch file is written.
2796 * ggc.h (gt_pch_fixup_stringpool): Declare.
2797 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
2798 hashnode's value to another hashtable, then clear the original.
2799 (saved_ident_hash): Define.
2800 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
2801 store definitions in ident_hash, and clear ident_hash.
2802 (gt_pch_fixup_stringpool): Define. Restore definitions from
2803 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
2805 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
2807 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
2809 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2811 PR optimization/10157
2812 * gcse.c (can_copy_p): Rename it to can_copy.
2813 (can_copy_init_p): Remove.
2814 (compute_can_copy): Use can_copy instead of can_copy_p.
2815 (can_copy_p): New exported function. Call compute_can_copy.
2816 (hash_scan_set): Use it.
2817 (gcse_main): Don't call compute_can_copy.
2818 (bypass_jumps): Don't call compute_can_copy.
2819 * rtl.h (can_copy_p): Declare.
2820 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
2821 copy if the mode doesn't support copy operations.
2823 2003-04-03 Jason Merrill <jason@redhat.com>
2825 * Makefile.in (unstrap): Also remove stage_last.
2827 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
2828 (dwarf2out_source_line): Don't do anything if line==0.
2830 * stor-layout.c (do_type_align): New fn, split out from...
2831 (layout_decl): ...here. Do all alignment calculations for
2833 (update_alignment_for_field): Not here.
2834 (start_record_layout, debug_rli): Remove unpadded_align.
2835 * tree.h (struct record_layout_info_s): Remove unpadded_align.
2836 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
2837 or DECL_MODE on the CONST_DECLs.
2838 (finish_struct): Don't mess with DECL_ALIGN.
2840 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
2842 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
2844 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
2846 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
2847 function is an interrupt handler.
2849 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
2850 restoring target registers with EH_RETURN_STACKADJ_RTX; use
2851 multiple registers in round-robin fashion.
2853 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2855 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
2856 * system.h (CHAR_BITFIELD): New.
2858 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
2860 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
2862 (another peephole2): Likewise.
2864 2003-04-03 Nick Clifton <nickc@redhat.com>
2866 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
2867 (DEF_ARCH64_SPEC): Likewise.
2869 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
2871 * i386.c (constant_address_p): Use legitimate_constant_p.
2872 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
2874 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
2876 * config/h8300/h8300-protos.h: Add a prototype for
2878 * config/h8300/h8300.c (gtle_operator): New.
2879 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
2881 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
2884 2003-04-02 Richard Henderson <rth@redhat.com>
2886 * libgcc-std.ver (_Unwind_GetCFA): New.
2887 * unwind-dw2.c (_Unwind_GetCFA): New.
2888 * unwind-libunwind.c (_Unwind_GetCFA): New.
2889 * unwind-sjlj.c (_Unwind_GetCFA): New.
2890 * unwind.h: Declare it.
2892 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
2895 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
2896 when MMX/SSE is not available.
2898 2003-04-02 Mike Stump <mrs@apple.com>
2900 * doc/install.texi (Specific): Update pointers to apple.com.
2902 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
2904 * i386.c (override_options): Disable red zone by default on i386.
2905 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
2906 Do not test TARGET_64BIT together with TARGET_RED_ZONE
2908 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
2910 * config/h8300/h8300.md (a peephole2): Tighten the condition.
2912 2003-04-02 Richard Henderson <rth@redhat.com>
2914 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
2916 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
2918 * config/h8300/h8300.md (a peephole2): New.
2920 2003-04-02 Richard Henderson <rth@redhat.com>
2922 * except.c (sjlj_find_directly_reachable_regions): Recognize when
2923 must-not-throw region has been deleted.
2925 2003-04-02 Richard Henderson <rth@redhat.com>
2927 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
2928 optimization when flag_exceptions not enabled.
2930 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
2932 * config/rs6000/rs6000.c
2933 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
2935 (rs6000_issue_rate): Add case for 8540.
2936 (rs6000_use_sched_lookahead): New function.
2938 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
2940 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
2941 reservation before retirement.
2942 (ppc8540_multiply, ppc8540_load, ppc8540_store,
2943 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
2944 Remove additional cycle in the reservation before retirement.
2945 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
2946 reservation of ppc8540_issue.
2948 2003-04-02 Andreas Schwab <schwab@suse.de>
2950 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
2952 2003-04-01 Richard Henderson <rth@redhat.com>
2954 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
2955 notes for nothrow calls if flag_forced_unwind_exceptions.
2956 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
2957 (sjlj_find_directly_reachable_regions): Likewise.
2958 (reachable_handlers): Likewise.
2959 (can_throw_external): Likewise.
2960 (collect_one_action_chain): Record cleanups after catch-all and
2961 must-not-throw if flag_forced_unwind_exceptions.
2962 * flags.h (flag_forced_unwind_exceptions): Declare.
2963 * toplev.c (flag_forced_unwind_exceptions): New.
2964 (lang_independent_options): Add it.
2965 * doc/invoke.text: Add it.
2967 2003-04-01 David Mosberger <davidm@hpl.hp.com>
2969 * config/ia64/crti.asm: Clean up trailing whitespace.
2970 Remove trailing hashes (#) from identifiers.
2972 * config/ia64/crtn.asm: Ditto.
2974 * config/ia64/crtend.asm: Remove trailing hashes (#) from
2976 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
2977 directives. Drop explicit bundling---it just makes the code
2978 harder to read. Don't save/restore gp needlessly.
2980 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
2981 identifiers (they're only needed if the identifier would clash
2982 with a register name otherwise).
2983 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
2984 directives. Drop explicit bundling---it just makes the code
2986 (__do_jv_register_classes): Ditto.
2987 (.fini_array): Remove "progbits" (newer
2988 assemblers don't like wrong section-types).
2989 (.init_array): Ditto.
2991 2003-04-01 Roger Sayle <roger@eyesopen.com>
2994 * gcse.c (reg_killed_on_edge): New function to test whether the
2995 given reg is overwritten by any instruction queued on an edge.
2996 (bypass_block): Ignore substitutions killed on incoming edges.
2997 Don't bypass outgoing edges that have queued instructions.
2999 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
3001 * real.h (EXP_BITS): Make room for...
3002 (struct real_value): ... added canonical bit.
3003 (struct real_format): Added pnan.
3004 (mips_single_format, mips_double_format, mips_extended_format,
3005 mips_quad_format): New.
3006 * real.c: Copy p to pnan in all formats.
3007 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
3008 (real_nan): Use pnan to compute significand's shift.
3009 (real_identical): Disregard significand in canonical
3011 (real_hash): Likewise. Take signalling into account.
3012 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
3013 Disregard significand bits in canonical NaNs. Set all bits of
3014 canonical NaN if !qnan_msb_set.
3015 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
3016 qnan_msb_set to tell the base double format.
3017 (ibm_extended_format): Use 53 as pnan.
3018 (mips_single_format, mips_double_format, mips_extended_format,
3019 mips_quad_format): Copied from the corresponding ieee/ibm
3020 formats, with qnan_msb_set false.
3021 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
3022 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
3023 * config/mips/mips.c (override_options): Use mips_single_format
3024 and mips_double_format. Default TFmode to mips_quad_format.
3025 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
3026 * config/mips/t-irix6: Likewise.
3027 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
3028 * config/fp-bit.c (pack_d, unpack_d): Obey it.
3030 2003-04-01 Geoffrey Keating <geoffk@apple.com>
3032 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
3033 (live_image_destructor): Reset image to initial state.
3034 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
3036 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3038 * config/sparc/sparc.c (input_operand): Accept bare
3039 CONSTANT_P_RTX operands.
3041 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3043 * gcse.c (struct ls_expr): Added pattern_regs field.
3044 (ldst_entry): Initialize it.
3045 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
3046 (store_ops_ok): Use regs precomputed by them.
3047 (find_loads, store_killed_in_insn, load_kills_store): Change return
3049 (store_killed_before, store_killed_after): Take position of register
3051 (reg_set_info): Store position of the setter.
3052 (gcse_main): Enable store motion.
3053 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
3054 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
3056 (simple_mem): Enable store motion of non-symbol mems.
3057 (regvec): Type changed.
3058 (LAST_AVAIL_CHECK_FAILURE): New.
3059 (compute_store_table_current_insn): New.
3060 (build_store_vectors): Computation of availability and anticipatability
3062 (compute_store_table, find_moveable_store): ... here.
3063 (delete_store): Remove senseless comment.
3064 (store_motion): Reorganize.
3066 2003-04-01 Kevin Buettner <kevinb@redhat.com>
3068 * config/mips/mips.c (override_options): Provide mappings for
3069 HI_REGNUM and LO_REGNUM.
3070 * config/mips/mips.h (MD_DBX_FIRST): Define.
3072 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3074 * combine.c (merge_outer_ops): Fix typo.
3076 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
3078 2003-04-01 David Edelsohn <edelsohn@gnu.org>
3080 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
3081 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
3082 imul_compare. Add lmul_compare.
3083 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
3084 in second pair of dispatch slots. Model stores more accurately.
3085 Tweak multiply model. Add bypasses for CR instructions dependent
3086 on complicated compares.
3087 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
3088 (muldi3): Add lmul_compare patterns.
3089 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
3090 and FPSTORE_UX to split instructions and add COMPARE,
3091 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
3092 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
3093 (rs6000_rtx_costs): Separate POWER4 multiply case.
3095 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
3097 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
3098 Do nothing if __builtin_return_address was not used.
3100 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
3102 * i386.md (test patterns): Allow memory operand in operand1.
3104 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
3106 * testsuite/gcc.c-torture/execute/simd-3.c: New.
3108 * expr.c (expand_expr): Handle VECTOR_CST.
3109 (const_vector_from_tree): New.
3111 * varasm.c (output_constant): Handle VECTOR_CST.
3113 * c-typeck.c (digest_init): Build a vector constant from a
3116 * config/rs6000/rs6000.c: Remove prototype for
3117 easy_vector_constant.
3118 (easy_vector_constant): Add mode parameter. Rewrite to handle
3119 more easy constants.
3120 (rs6000_emit_move): Pass mode to easy_vector_constant.
3121 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
3122 (emit_easy_vector_insn): New.
3123 (easy_vector_same): New.
3124 (EASY_VECTOR_15): New macro.
3125 (EASY_VECTOR_15_ADD_SELF): New macro.
3126 (bdesc_2arg): Rename to xorv2si3.
3127 (easy_vector_constant_add_self): New.
3128 (input_operand): Allow vector constants.
3130 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3131 easy_vector_constant, easy_vector_constant_add_self.
3132 (EXTRA_CONSTRAINT): Add 'W'.
3134 * config/rs6000/rs6000-protos.h: Add prototype for
3135 easy_vector_constant, emit_easy_vector_insn.
3137 * config/rs6000/altivec.md (xorv8hi3): New.
3139 Remove all _const0 patterns.
3140 (movv4si_internal): Rewrite to use code. Add vector constant to
3141 vector alternative. Add splitter.
3142 (movv8hi_internal): Same.
3143 (movv16qi_internal): Same.
3144 (movv4sf_internal): Same.
3145 Change the unspecs for vspltis* to use constants.
3147 * config/rs6000/spe.md ("xorv4hi3"): New.
3148 ("spe_evxor"): Rename to xorv2si3.
3150 Remove all _const0 patterns.
3151 (movv2si_internal): Rewrite to use code. Add vector constant to
3152 alternatives. Add splitter.
3153 (movv4hi_internal): Add vector constant to alternatives.
3154 (movv1di_internal): Same.
3155 (movv2sf_internal): Same.
3157 2003-03-31 Mark Mitchell <mark@codesourcery.com>
3160 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
3161 variably-sized arrays in parameters.
3162 (set_save_expr_context): New function.
3163 (c_expand_body): Use it, via walk_tree.
3165 2003-03-31 Eric Christopher <echristo@redhat.com>
3167 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
3168 (combinable_i3pat): Remove call to expand_field_assignment and
3171 2003-03-31 Mark Mitchell <mark@codesourcery.com>
3174 * c-common.c (finish_label_address_expr): Handle the
3177 2003-03-31 Richard Henderson <rth@redhat.com>
3179 * real.c (real_identical): Reorg so as to not compare
3180 signalling for normals.
3182 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
3184 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
3186 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
3188 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
3189 notes as they are boggus.
3190 (m68hc11_gen_movqi): Likewise.
3192 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
3194 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
3195 save the soft registers after the frame pointer so that gdb can unwind
3196 the frame more easily.
3197 (expand_epilogue): Likewise in opposite order; allow to use X register
3198 as scratch if the return value is by reference.
3200 2003-03-31 Jason Merrill <jason@redhat.com>
3203 * stor-layout.c (update_alignment_for_field): Respect
3204 DECL_USER_ALIGN for zero-length bitfields, too.
3205 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
3208 2003-03-31 Matt Austern <austern@apple.com>
3210 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
3211 (count_defs): Keep track of number of defs as well as total size.
3212 (write_defs): Put every definition in cpp_savedstate's defs array.
3213 (comp_hashnode): Define. Comparison function for qsort.
3214 (cpp_write_pch_deps): Sort definitions before writing them.
3215 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
3216 (collect_ht_nodes): Define.
3217 (cpp_valid_state): When verifying that undefined identifiers in
3218 the pch file are still undefined, read a sorted list of undefined
3219 identifiers, collect all defined identifiers into a sorted list,
3220 and walk through both lists to make sure there's no match.
3222 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
3224 * config/h8300/h8300.md (a peephole2): New.
3226 2003-03-31 Michael Matz <matz@suse.de>
3228 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
3230 2003-03-31 Segher Boessenkool <segher@koffie.nl>
3233 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
3234 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
3235 all call-clobbered registers as used.
3237 2003-03-31 Michael Matz <matz@suse.de>
3239 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
3240 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
3242 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
3244 * gcov.c: Add -a & -u options.
3245 (struct arc_info): Add local_span, is_call_non_return,
3246 is_nonlocal_return, is_unconditional flags, remove is_call flag.
3247 (struct block_info): Add flags, is_call_site, is_nonlocal_return
3248 members. Make encodings a union with span member.
3249 (struct function_info): Add blocks_executed, line, src, line_next
3251 (struct coverage_info): Make branches a union with blocks member.
3252 (struct source_info): Add functions member.
3253 (object_summary, program_count): New global variables.
3254 (flag_all_blocks, flag_unconditional): New flags.
3255 (find_source, output_branch_count): New functions.
3256 (print_usage): Adjust.
3258 (process_args): Adjust.
3259 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
3260 <GCOV_TAG_BLOCKS>: Read flags.
3261 <GCOV_TAG_LINES>: Adjust.
3262 (read_count_file): Process SUMMARY tags.
3263 (solve_flow_graph): Set is_unconditional and clear is_call_site
3265 (add_branch_counts): Adjust. Don't count unconditional branches.
3266 (add_line_counts): Deal with all-blocks mode, accumulate block
3268 (accumulate_line_counts): Adjust, generate local spanning tree for
3270 (output_lines): Adjust.
3271 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
3272 * doc/gcov.texi: Document.
3274 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
3276 * config/h8300/h8300.md: Organize peephole2's that transform
3277 (compare (reg:HI) (const_int)).
3279 2003-03-31 Roger Sayle <roger@eyesopen.com>
3281 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
3282 (init_emit_once): Initialize dconstm2 and dconsthalf here.
3283 * real.h (dconstm2, dconsthalf): Add prototypes here.
3284 * real.c (real_sqrt): Use dconsthalf rather than local copy.
3285 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
3286 exp(x/2.0) remember to fold the division if possible.
3287 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
3288 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
3289 1.0/(x*x) and pow(x,0.5) as sqrt(x).
3291 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
3293 * config/h8300/h8300.md (a new peephole2): New.
3295 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
3297 * gcse.c (simple_mem): Return false for floating-point accesses
3298 if flag_float_store is true.
3300 2003-03-30 Roger Sayle <roger@eyesopen.com>
3302 * gcse.c (gcse_constant_p): New function to identify constants
3303 suitable for constant propagation, including COMPARE with two
3304 integer constant arguments.
3305 (hash_scan_set): Use gcse_constant_p.
3306 (find_avail_set): Likewise.
3307 (cprop_insn): Likewise.
3308 (do_local_cprop): Likewise.
3309 (find_implicit_sets): Likewise.
3310 (find_bypass_set): Likewise.
3312 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
3314 * except.h: Remove definition of varray_type.
3316 2003-03-30 Richard Henderson <rth@redhat.com>
3318 PR opt/10011, opt/10252:
3319 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
3320 before post-gcse cse pass.
3322 2003-03-30 Roger Sayle <roger@eyesopen.com>
3324 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
3326 2003-03-30 DJ Delorie <dj@redhat.com>
3328 * profile.c (instrument_edges): Make sure any newly created
3329 jump insns have correct jump label info.
3331 2003-03-30 Richard Henderson <rth@redhat.com>
3333 * cfgbuild.c (make_edges): Use tablejump_p.
3334 * cfgcleanup.c (label_is_jump_target_p): Likewise.
3335 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
3336 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
3337 (try_redirect_by_replacing_jump): Likewise.
3338 (redirect_edge_and_branch): Likewise.
3339 * cse.c (fold_rtx): Likewise.
3340 * jump.c (delete_related_insns): Likewise.
3341 * rtlanal.c (get_jump_table_offset): Likewise.
3342 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
3344 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3346 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
3347 (STRICT2_WARN): Likewise.
3349 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3352 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
3353 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
3355 2003-03-30 Richard Henderson <rth@redhat.com>
3358 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
3359 don't zero_extend const inputs.
3361 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
3363 * reload1.c (reload_cse_move2add): Fix a comment typo.
3365 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
3367 * config/h8300/h8300.md (a peephole2): Remove useless code.
3369 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
3371 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
3372 (*iorsi3_and_lshiftrt): Likewise.
3373 (*iorsi3_zero_extract): Likewise.
3375 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
3377 * config/h8300/h8300.md (*insv_si_8_8): New.
3378 (*insv_si_8_8_lshiftrt_8): Likewise.
3379 (a peephole2): Likewise.
3381 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3383 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
3384 Uniformly use bugfix instead of bug fix.
3386 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3389 * ONEWS: Remove those items that already appear in the EGCS
3390 release notes on our web pages.
3392 2003-03-29 Alan Modra <amodra@bigpond.net.au>
3394 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
3395 TARGET_HARD_FLOAT. Reformat.
3396 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
3398 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
3400 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
3401 work on Solaris 2.5.1.
3403 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
3405 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
3407 (*addsi3_and_nor_r_1): Likewise.
3409 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
3411 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
3412 set up before any trapping memory access if flag_non_call_exceptions.
3414 2003-03-29 Alan Modra <amodra@bigpond.net.au>
3416 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
3418 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
3420 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
3422 * configure.in: Clarify comments.
3423 * configure: Regenerate.
3425 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
3427 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
3428 label even if pool empty when generating PIC.
3429 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
3431 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
3432 Dhananjay Deshpande <dhananjayd@kpit.com>
3435 * config/h8300/h8300.c (h8300_initial_elimination_offset):
3436 Correct the offset computation when TARGET_NORMAL.
3438 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
3441 * config/sparc/sparc.md (jump pattern): Correct order
3442 when issuing the annuling marker.
3444 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
3447 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
3448 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
3450 2003-03-28 Alan Modra <amodra@bigpond.net.au>
3452 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
3454 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3455 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3456 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3457 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3458 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3459 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3460 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
3462 2003-03-28 Alan Modra <amodra@bigpond.net.au>
3464 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
3465 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
3466 notes after hoisting.
3467 (load_mems): Adjust replace_loop_mems call.
3469 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
3470 Richard Henderson <rth@redhat.com>
3472 PR target/10114 and PR target/10084
3473 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
3475 2003-03-27 Richard Henderson <rth@redhat.com>
3477 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
3479 2003-03-27 Roger Sayle <roger@eyesopen.com>
3481 * fold-const.c (fold_inf_compare): New function to simplify FP
3482 comparisons against +Infinity or -Infinity.
3483 (fold): Optimize floating point comparisons against Infs and NaNs.
3485 2003-03-27 Janis Johnson <janis187@us.ibm.com>
3487 * libgcov.c: Provide only dummy functions if libc is not available.
3489 2003-03-27 Richard Henderson <rth@redhat.com>
3491 * real.h (struct real_value): Add signalling.
3492 (EXP_BITS): Decrement.
3493 * real.c (get_canonical_qnan): Don't set MSB-1.
3494 (get_canonical_snan): Likewise. Set signalling.
3495 (real_identical): Compare signalling.
3496 (round_for_format): Remove force-one-bit on code.
3497 (real_nan): Likewise. Set signalling.
3498 (encode_ieee_single): Add force-one-bit code; honor signalling.
3499 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
3500 (decode_ieee_single): Set signalling.
3501 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
3503 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
3506 * ada/Makefile.in (gnatlib configuration for HPUX): Split
3507 the general section for HPUX into specific sections for
3508 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
3511 2003-03-27 Glen Nakamura <glen@imodulo.com>
3514 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
3515 while incrementing giv.
3516 (record_biv): Check for duplicate biv locations and
3517 set (struct induction *) v->same if found.
3519 2003-03-27 David Mosberger <davidm@hpl.hp.com>
3521 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
3522 v0.9 API change: replace read of UNW_REG_HANDLER with
3523 unw_get_proc_info().
3524 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
3525 with unw_get_proc_info().
3526 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
3527 unw_get_proc_info().
3529 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
3531 * config/rs6000/8540.md: Use presence_set instead of absence_set.
3533 2003-03-26 Richard Henderson <rth@redhat.com>
3535 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
3537 2003-03-26 Roger Sayle <roger@eyesopen.com>
3539 PR bootstrap/10051, PR bootstrap/10169.
3540 * mips-tfile.c (init_file): Don't provide a static initializer.
3541 (initialize_init_file): Initialize the contents of init_file.
3542 (add_file): Call initialize_init_file if not already initialized.
3544 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3546 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
3547 registers used for global asm variables.
3548 (s390_frame_info, s390_arg_frame_offset): Likewise.
3549 (s390_emit_prologue, s390_emit_epilogue): Likewise.
3551 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
3553 * config/rs6000/8540.md: New file.
3555 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
3556 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
3557 reservations for imul.
3559 * config/rs6000/rs6000.md: Include 8540.md. Change
3560 delayed_compare onto mult_compare for insns generating
3562 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
3563 New type attribute values.
3565 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
3566 fpsimple instead of fp.
3567 (*divsf3_gpr): Use type vecfdiv instead of fp.
3568 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
3569 instead of vecfloat.
3570 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
3571 (spe_brinc): Use type brinc instead of veccomplex.
3572 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
3574 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
3575 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
3576 *movv2sf_internal): Define type attribute values for all
3578 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
3580 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
3581 instead of fpcompare.
3583 2003-03-26 David Edelsohn <edelsohn@gnu.org>
3585 * config/rs6000/power4.md: Allow delay between dispatch and
3586 function units for simple instructions. Correct store units.
3587 Allow branch to occupy as many dispatch slots as necessary.
3589 2003-03-26 Jakub Jelinek <jakub@redhat.com>
3591 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
3592 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
3593 zero extend old to it.
3594 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
3597 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
3600 * reload.c (find_reloads_address): Handle
3601 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
3604 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
3607 * version.c: Reference the GCC web site in the URL.
3609 2003-03-26 Alan Modra <amodra@bigpond.net.au>
3611 * c-incpath.c (add_standard_paths): Add both "translated" and
3612 non-translated header paths.
3614 2003-03-25 Loren James Rittle <ljrittle@acm.org>
3616 * doc/install.texi (*-*-freebsd*): Update with known status.
3618 2003-03-21 Jason Merrill <jason@redhat.com>
3620 PR optimization/10171
3621 * unroll.c (unroll_loop): Don't delete the jump at the end unless
3622 we also delete a jump at the beginning.
3624 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
3626 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
3629 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
3631 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
3632 constants are not expensive.
3634 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
3637 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
3638 jump jumping to the next instruction.
3639 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3641 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3643 * doc/passes.texi (Passes): Properly document that we do not
3644 perform jump2 any longer; remove command-line option -dJ.
3646 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3648 PR optimization/8746
3649 * config/i386/i386.md (and promoting splitters): Disable HImode to
3650 SImode promoting when the sign bit matters and is not preserved, or
3651 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
3654 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
3656 * config/h8300/h8300.md (a peephole2): Extend to support loads
3657 in QImode and HImode.
3659 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
3661 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
3663 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
3664 (MULTILIB_EXCEPTIONS): Likewise.
3665 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
3666 by calling some board support routine.
3667 ("call_value"): Likewise.
3668 ("*return_void"): Likewise for return.
3669 ("*return_16bit"): Likewise.
3670 ("*return_32bit"): Likewise.
3671 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
3673 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
3674 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
3675 -mlong-calls for 68HC11.
3676 * config/m68hc11/larith.asm (declare_near): New macro.
3677 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
3678 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
3679 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
3680 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
3681 (__mulhi32): Likewise.
3682 (ret): Update macro for 68HC11.
3683 (__far_trampoline): Implement for 68HC11.
3684 (__call_a16, __call_a32, __return_void, __return_16): New support
3685 routines for 68HC11 memory bank switching calling support.
3686 (__return_32): Likewise.
3688 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
3690 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
3692 2003-03-24 Janis Johnson <janis187@us.ibm.com>
3694 * doc/install.texi (Testing): Mention test result links from build
3697 2003-03-24 Mark Mitchell <mark@codesourcery.com>
3699 * function.c (put_var_into_stack): Change bool parameter to int.
3700 (gen_mem_addressof): Likewise.
3701 * rtl.h (gen_mem_addressof): Likewise.
3702 * tree.h (put_var_into_stack): Likewise.
3703 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
3704 gen_mem_addressof or put_var_into_stack.
3705 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3706 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
3708 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
3710 * config/h8300/h8300.md (a peephole2): New.
3712 2003-03-24 Jakub Jelinek <jakub@redhat.com>
3714 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
3716 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3718 * doc/contrib.texi (Contributors): Update Janis Johnson.
3720 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3723 * combine.c (simplify_if_then_else): Check that the mode
3724 has MODE_INT class before applying the (OP Z (mult COND C2))
3727 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3729 PR optimization/9414
3730 * config/sparc/sparc.md (widening peepholes): Use
3731 widen_memory_access instead of change_address.
3733 2003-03-23 Mark Mitchell <mark@codesourcery.com>
3736 * c-typeck.c (c_mark_addressable): Adjust calls to
3738 * expr.c (expand_expr): Likewise.
3739 * function.c (put_var_into_stack): Add rescan parameter. Do not
3740 call fixup_var_refs when rescan is false.
3741 (gen_mem_addressof): Likewise.
3742 (assign_parms): Adjust calls to put_var_into_stack.
3743 (setjmp_protect): Likewise.
3744 (setjmp_protect_args): Likewise.
3745 * rtl.h (gen_mem_addressof): Change prototype.
3746 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
3747 * tree.h (put_var_into_stack): Change prototype.
3749 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
3752 * builtins.c (expand_builtin_fputs): When optimizing for size,
3753 don't transform fputs into fwrite.
3755 2003-03-23 Glen Nakamura <glen@imodulo.com>
3758 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
3759 when signedness changes for division or modulus.
3761 2003-03-24 Alan Modra <amodra@bigpond.net.au>
3763 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
3766 2003-03-23 Roger Sayle <roger@eyesopen.com>
3769 * stmt.c (expand_end_case_type): Check for overflow in range when
3770 determining whether to use a bit-test implementation.
3772 2003-03-23 Richard Henderson <rth@redhat.com>
3774 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
3776 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
3778 2003-03-23 Richard Henderson <rth@redhat.com>
3781 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
3782 from then_bb or else_bb after flow2.
3784 2003-03-23 Zack Weinberg <zack@codesourcery.com>
3786 * configure.in: Check whether it is necessary to link against
3788 * configure: Regenerate.
3789 * Makefile.in: Add LDEXP_LIB substitution variable.
3791 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
3793 * config/h8300/h8300.md: Fix comment typos.
3795 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3797 * pa.c (output_cbranch): Fix typo in comment.
3799 2003-03-22 Richard Henderson <rth@redhat.com>
3801 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
3804 2003-03-22 DJ Delorie <dj at redhat dot com>,
3805 Bruce Korb <bkorb at gnu dot org>
3807 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
3808 buggy Solaris 2.6 mutex/cond initializers.
3809 (solaris_mutex_init): Rename to solaris_mutex_init_2.
3810 * fixinc/fixincl.x: Regenerate.
3811 * fixinc/tests/base/pthread.h: Update.
3812 * fixinc/fixincl.c(initialize): be explicit about the default case
3813 and indicate verbose level when being very, very verbose.
3814 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
3816 2003-03-22 Andreas Jaeger <aj@suse.de>
3818 * config/i386/i386.c (ix86_init_machine_status): Return value.
3820 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3822 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
3823 conditional branch to the following instruction. Use next_real_insn
3824 instead of next_active_insn.
3825 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
3826 instead of next_active_insn.
3828 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3830 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
3831 instead of 'm' constraint in forced-split alternatives.
3832 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
3833 VALIDATE_ADDRESS parameter to operand_subword.
3835 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
3837 * config/h8300/h8300.c (notice_update_cc): Correctly handle
3838 the case where the set destination is STRICT_LOW_PART.
3840 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
3842 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
3843 c30 instead of a c40 processor.
3845 2003-03-22 Alan Modra <amodra@bigpond.net.au>
3847 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
3849 2003-03-21 Zack Weinberg <zack@codesourcery.com>
3851 * c-common.c: Include intl.h.
3852 (shadow_warning): Rewrite to allow better diagnostic translations.
3853 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
3854 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
3856 * Makefile.in (c-common.o): Add intl.h.
3858 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
3860 * config.gcc: Remove 'float_format'.
3862 * fixproto: Define NULL and size_t in generated stdlib.h and
3863 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
3864 Rearrange file generation loop for readability. Generate time.h,
3865 string.h if missing.
3866 * tsystem.h: Include <string.h>, <time.h> unconditionally.
3867 * config.gcc: Blow away POSIX defines.
3869 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
3871 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
3873 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
3875 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
3876 writing .interrupt command.
3877 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
3878 if it's a far or near function.
3879 ("call_value"): Likewise.
3880 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
3882 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
3883 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
3884 (m68hc11_initial_elimination_offset): Set current_function_far
3885 according to attributes.
3886 (expand_prologue): Likewise.
3887 (trap_handler_symbol): New global to keep track of trap handlers.
3888 (m68hc11_encode_section_info): Mark symbol as far if needed; set
3890 (m68hc11_is_far_symbol): New function.
3891 (m68hc11_is_trap_symbol): New function.
3892 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
3893 (m68hc11_is_trap_symbol): Declare.
3895 2003-03-21 Jan Hubicka <jh@suse.cz>
3897 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
3898 only when amount of saved regs changed.
3899 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
3900 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
3902 2003-03-21 Jan Hubicka <jh@suse.cz>
3905 * function.c (instantiate_virtual_regs_lossage): New function.
3906 (instantiate_virtual_regs_1): Use it.
3907 (instantiate_virtual_regs): Do not continue in substition when insn has
3910 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
3912 * combine.c (make_field_assignment): Fix a warning.
3914 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
3916 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
3918 2003-03-21 Dale Johannesen <dalej@apple.com>
3920 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
3921 priority for R2 on Darwin.
3922 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
3924 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
3926 * combine.c (make_field_assignment): Remove unnecessary AND
3927 when storing into zero_extract.
3929 2003-03-21 Zack Weinberg <zack@codesourcery.com>
3931 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
3932 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
3933 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
3936 2003-03-21 DJ Delorie <dj@redhat.com>
3938 * optabs.c (init_integral_libfuncs): Make sure we init at least up
3939 to "long long" size words.
3941 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3943 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
3944 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
3945 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
3947 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3950 * doc/extend.texi: Move misplaced paragraph about underscores in
3951 variables in macros.
3953 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3954 Richard Henderson <rth@redhat.com>
3956 PR optimization/8366
3957 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
3958 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
3959 PIC+SYMBOLIC_CONST in other modes than Pmode.
3960 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
3961 the form PIC+SYMBOLIC_CONST as mode dependent.
3963 2003-03-21 DJ Delorie <dj@redhat.com>
3965 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
3966 sure we always emit at least one insn.
3968 2003-03-21 Christopher Faylor <cgf@redhat.com>
3970 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
3971 stub t-cygming. Use common target header cygming.h. Add extra
3972 c_target_obj and cxx_target_obj file. Default cygwin to posix
3973 threading. Enforce i386 as float format.
3974 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
3975 Remove cygwin.h as target header. Use common target header
3976 cygming.h Enforce i386 as float format. Correct typo.
3977 * config/i386/cygming.h: New file, containing definitions
3978 common to mingw32 and cygwin.
3979 * config/i386/cygwin.h: Remove definitions common to cygwin and
3980 mingw. Simplify special spec logic. Define "wrappers" around
3981 certain include path defines to accommodate -mno-cygwin.
3982 Remove some #if 0'ed code.
3983 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
3984 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
3985 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
3986 * config/i386/mingw32.h: Remove definitions common to cygwin and
3988 (EXTRA_OS_CPP_BUILTINS): Adjust.
3989 (TARGET_VERSION): Define.
3990 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
3991 mingw32.h definitions.
3992 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
3993 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
3994 Add compilation rules for cygwin1.o cygwin2.o.
3995 * config/i386/cygwin1.c: New file.
3996 * config/i386/cygwin2.c: New file.
3997 * config/i386/t-cygming: New makefile stub.
3999 2003-03-20 Richard Henderson <rth@redhat.com>
4001 * fold-const.c (extract_muldiv_1): Revert changing order of
4002 operands in case MULT_EXPR of 2003-02-16 patch.
4004 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
4005 Merge changes from new-regalloc-branch
4007 From Michael Matz <matz@suse.de>
4008 * df.c (df_ref_record_1): Move init of loc to safe point.
4009 Only recurse on interesting things in parallels.
4010 Handle CLASS_CANNOT_CHANGE_MODE smarter.
4011 (df_uses_record): Ditto.
4013 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
4014 it's already okay to use memory operands in (IE doesn't require
4015 adding another insn or anything).
4017 2003-03-20 Richard Henderson <rth@redhat.com>
4020 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
4021 different from word_mode.
4023 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
4025 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
4026 source operand to those that can be extracted with bld.
4028 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
4031 * arm.md (UNSPEC_PIC_BASE): New constant.
4032 (pic_add_dot_plus_four): Wrap with unspec.
4033 (pic_add_dot_plus_eight): Likewise.
4035 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
4037 * config/h8300/h8300.md (*insv_si_1_n): New.
4038 (*insv_si_1_n_lshiftrt): Likewise.
4040 2003-03-20 Roger Sayle <roger@eyesopen.com>
4042 * fold-const.c (fold_mathfn_compare): New function to simplify
4043 comparisons against built-in math functions. Fold comparisons
4044 of sqrt against constants.
4045 (fold): Call fold_mathfn_compare when appropriate.
4047 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
4049 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
4052 2003-03-20 Per Bothner <pbothner@apple.com>
4054 Various cleanups to help compile server.
4056 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
4057 and pass that to _cpp_init_hashtable.
4058 (cpp_read_main_file): Drop hash_table* argument; don't call