1 2003-03-22 DJ Delorie <dj at redhat dot com>,
2 Bruce Korb <bkorb at gnu dot org>
4 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
5 buggy Solaris 2.6 mutex/cond initializers.
6 (solaris_mutex_init): Rename to solaris_mutex_init_2.
7 * fixinc/fixincl.x: Regenerate.
8 * fixinc/tests/base/pthread.h: Update.
10 2003-03-22 Andreas Jaeger <aj@suse.de>
12 * config/i386/i386.c (ix86_init_machine_status): Return value.
14 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
17 conditional branch to the following instruction. Use next_real_insn
18 instead of next_active_insn.
19 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
20 instead of next_active_insn.
22 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
24 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o' instead
25 of 'm' constraint in forced-split alternatives.
26 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
27 VALIDATE_ADDRESS parameter to operand_subword.
29 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
31 * config/h8300/h8300.c (notice_update_cc): Correctly handle
32 the case where the set destination is STRICT_LOW_PART.
34 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
36 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
37 c30 instead of a c40 processor.
39 2003-03-22 Alan Modra <amodra@bigpond.net.au>
41 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
43 2003-03-21 Zack Weinberg <zack@codesourcery.com>
45 * c-common.c: Include intl.h.
46 (shadow_warning): Rewrite to allow better diagnostic translations.
47 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
48 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
50 * Makefile.in (c-common.o): Add intl.h.
52 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
54 * config.gcc: Remove 'float_format'.
56 * fixproto: Define NULL and size_t in generated stdlib.h and
57 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
58 Rearrange file generation loop for readability. Generate time.h,
60 * tsystem.h: Include <string.h>, <time.h> unconditionally.
61 * config.gcc: Blow away POSIX defines.
63 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
65 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
67 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
69 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
70 writing .interrupt command.
71 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
72 if it's a far or near function.
73 ("call_value"): Likewise.
74 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
76 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
77 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
78 (m68hc11_initial_elimination_offset): Set current_function_far
79 according to attributes.
80 (expand_prologue): Likewise.
81 (trap_handler_symbol): New global to keep track of trap handlers.
82 (m68hc11_encode_section_info): Mark symbol as far if needed; set
84 (m68hc11_is_far_symbol): New function.
85 (m68hc11_is_trap_symbol): New function.
86 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
87 (m68hc11_is_trap_symbol): Declare.
89 Fri Mar 21 23:12:33 CET 2003 Jan Hubicka <jh@suse.cz>
91 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
92 only when amount of saved regs changed.
93 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
94 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
96 Fri Mar 21 22:44:33 CET 2003 Jan Hubicka <jh@suse.cz>
99 * function.c (instantiate_virtual_regs_lossage): New function.
100 (instantiate_virtual_regs_1): Use it.
101 (instantiate_virtual_regs): Do not continue in substition when insn has
104 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
106 * combine.c (make_field_assignment): Fix a warning.
108 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
110 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
112 2003-03-21 Dale Johannesen <dalej@apple.com>
114 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
115 priority for R2 on Darwin.
116 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
118 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
120 * combine.c (make_field_assignment): Remove unnecessary AND
121 when storing into zero_extract.
123 2003-03-21 Zack Weinberg <zack@codesourcery.com>
125 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
126 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
127 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
130 2003-03-21 DJ Delorie <dj@redhat.com>
132 * optabs.c (init_integral_libfuncs): Make sure we init at least up
133 to "long long" size words.
135 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
137 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
138 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
139 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
141 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
144 * doc/extend.texi: Move misplaced paragraph about underscores in
147 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
148 Richard Henderson <rth@redhat.com>
151 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
152 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
153 PIC+SYMBOLIC_CONST in other modes than Pmode.
154 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
155 the form PIC+SYMBOLIC_CONST as mode dependent.
157 2003-03-21 DJ Delorie <dj@redhat.com>
159 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
160 sure we always emit at least one insn.
162 2003-03-21 Christopher Faylor <cgf@redhat.com>
164 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
165 stub t-cygming. Use common target header cygming.h. Add extra
166 c_target_obj and cxx_target_obj file. Default cygwin to posix
167 threading. Enforce i386 as float format.
168 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
169 Remove cygwin.h as target header. Use common target header
170 cygming.h Enforce i386 as float format. Correct typo.
171 * config/i386/cygming.h: New file, containing definitions
172 common to mingw32 and cygwin.
173 * config/i386/cygwin.h: Remove definitions common to cygwin and
174 mingw. Simplify special spec logic. Define "wrappers" around
175 certain include path defines to accommodate -mno-cygwin.
176 Remove some #if 0'ed code.
177 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
178 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
179 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
180 * config/i386/mingw32.h: Remove definitions common to cygwin and
182 (EXTRA_OS_CPP_BUILTINS): Adjust.
183 (TARGET_VERSION): Define.
184 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
185 mingw32.h definitions.
186 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
187 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
188 Add compilation rules for cygwin1.o cygwin2.o.
189 * config/i386/cygwin1.c: New file.
190 * config/i386/cygwin2.c: New file.
191 * config/i386/t-cygming: New makefile stub.
193 2003-03-20 Richard Henderson <rth@redhat.com>
195 * fold-const.c (extract_muldiv_1): Revert changing order of
196 operands in case MULT_EXPR of 2003-02-16 patch.
198 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
199 Merge changes from new-regalloc-branch
201 From Michael Matz <matz@suse.de>
202 * df.c (df_ref_record_1): Move init of loc to safe point.
203 Only recurse on interesting things in parallels.
204 Handle CLASS_CANNOT_CHANGE_MODE smarter.
205 (df_uses_record): Ditto.
207 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
208 it's already okay to use memory operands in (IE doesn't require
209 adding another insn or anything).
211 2003-03-20 Richard Henderson <rth@redhat.com>
214 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
215 different from word_mode.
217 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
219 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
220 source operand to those that can be extracted with bld.
222 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
225 * arm.md (UNSPEC_PIC_BASE): New constant.
226 (pic_add_dot_plus_four): Wrap with unspec.
227 (pic_add_dot_plus_eight): Likewise.
229 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
231 * config/h8300/h8300.md (*insv_si_1_n): New.
232 (*insv_si_1_n_lshiftrt): Likewise.
234 2003-03-20 Roger Sayle <roger@eyesopen.com>
236 * fold-const.c (fold_mathfn_compare): New function to simplify
237 comparisons against built-in math functions. Fold comparisons
238 of sqrt against constants.
239 (fold): Call fold_mathfn_compare when appropriate.
241 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
243 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
246 2003-03-20 Per Bothner <pbothner@apple.com>
248 Various cleanups to help compile server.
250 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
251 and pass that to _cpp_init_hashtable.
252 (cpp_read_main_file): Drop hash_table* argument; don't call
254 * cpplib.h: Update declarations to match.
255 * c-opts.c (c_common_init_options): Pass ident_hash to
257 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
258 * fix-header.c (read_scan_file): Likewise pass NULL table to
259 cpp_create_reader rather than cpp_read_main_file.
261 * cppfiles.c (cpp_rename_file): Generalized and renamed
263 * cpplib.h: Update declaration to match.
264 * c-opts.c (push_command_line_line, finish_options): Change
265 cpp_rename_file calls to cpp_change_file.
267 * line-map.c (add_line_map): Allow leaving the outermost file.
268 Allowing entering an outermost-file after the initial time.
270 * toplev.c (pop_srcloc): Allow popping from initial file.
272 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
274 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
276 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
278 * config/h8300/h8300.md (a peephole2): New.
280 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
282 * config/h8300/h8300.md (*addsi3_and_r_1): New.
283 (*addsi3_and_not_r_1): Likewise.
285 2003-03-19 Loren James Rittle <ljrittle@acm.org>
287 * Makefile.in (STRICT2_WARN): Add @WERROR@.
288 (GCC_WARN_CFLAGS): Remove $(WERROR).
289 (fixinc.sh-warn): New.
290 * ada/Make-lang.in (ada-warn): Add $(WERROR).
291 * cp/Make-lang.in (cp-warn): Add $(WERROR).
292 * f/Make-lang.in (f-warn): Add $(WERROR).
293 * java/Make-lang.in (java-warn): Add $(WERROR).
294 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
296 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
298 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
299 langhooks-def.h (lhd_tree_dump_dump_tree),
300 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
301 Change return type from 'int' to 'bool'. Replace 0 and 1 with
302 true and false in return statements.
304 2003-03-19 Kevin Buettner <kevinb@redhat.com>
306 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
307 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
308 DWARF_INITIAL_LENGTH_SIZE.
309 (output_compilation_unit_header, output_pubnames, output_aranges)
310 (output_line_info): Output 0xffffffff escape value for 64-bit
312 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
314 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
316 * config/s390/s390.c (s390_preferred_reload_class): Do not
317 force constants to the pool unless necessary.
318 (s390_decompose_address): Prefer to use pointer as base,
320 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
322 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
323 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
324 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
325 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
326 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
328 Wed Mar 19 11:28:45 CET 2003 Jan Hubicka <jh@suse.cz>
330 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
331 * i386.c (use_fast_prologue_epilogue): Remove.
332 (ix86_frame): New field save_regs-using_mov;
333 (ix86_compute_frame_layout): Decide on fast prologues;
334 allocate saved registers in red zone.
335 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
337 2003-03-19 Nick Clifton <nickc@redhat.com>
339 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
341 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
344 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
345 * pa-protos.h (output_lbranch): New prototype.
346 * pa.c (compute_frame_size): Change size of the frame marker on the
347 64-bit ports to 48 bytes.
348 (pa_output_function_prologue): Document why SAVE_SP is set.
349 (hppa_expand_prologue): Save previous stack pointer into frame marker
350 on targets which use the hpux unwind library.
351 (output_cbranch): Use output_lbranch.
352 (output_lbranch): New function to output long unconditional branches.
353 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
354 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
356 * pa.md (jump): Use output_lbranch.
357 (allocate_stack): New expander for dynamic stack allocation.
359 2003-03-19 Alan Modra <amodra@bigpond.net.au>
361 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
362 when debugging on XCOFF targets. Delete "abi" temp.
365 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
367 2003-03-18 Jakub Jelinek <jakub@redhat.com>
369 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
370 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
371 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
373 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
374 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
375 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
377 2003-03-18 Geoffrey Keating <geoffk@apple.com>
379 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
380 the result of machopic_function_base_name.
381 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
382 string rather than a static array.
384 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
386 * gengtype.c: Include rtl.h.
387 (enum rtx_code): Don't define.
388 (rtx_format): Make declaration match rtl.h.
389 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
391 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
392 * Makefile.in (gengtype.o): Update dependencies.
394 2003-03-18 Andreas Schwab <schwab@suse.de>
396 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
399 2003-03-18 Geoffrey Keating <geoffk@apple.com>
401 * function.c (next_block_index): Mark with GTY.
403 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
405 2003-03-18 Richard Henderson <rth@redhat.com>
407 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
408 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
411 2003-03-18 Richard Henderson <rth@redhat.com>
413 * builtins.c (expand_builtin_unop): New target_mode operand;
414 use it to convert the result to the correct mode.
415 (expand_builtin): Update all callers.
417 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
419 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
421 Tue Mar 18 19:22:57 CET 2003 Jan Hubicka <jh@suse.cz>
423 * i386.md: Fix previous commit that mistakely applied the patch
426 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
428 (memrefs_conflict_p): Likewise.
429 (addr_side_effect_eval): Canonicalize the constructed address.
431 Tue Mar 18 13:15:08 CET 2003 Jan Hubicka <jh@suse.cz>
433 * i386.md (cvtts?2si peep2): New.
435 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
437 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
439 2003-03-18 Andreas Schwab <schwab@suse.de>
441 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
444 2003-03-17 Jason Merrill <jason@redhat.com>
447 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
448 an unaligned member of TREE_ADDRESSABLE type.
450 2003-03-18 Alan Modra <amodra@bigpond.net.au>
452 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
453 (TARGET_PROFILE_KERNEL): Define.
454 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
455 (PROFILE_BEFORE_PROLOGUE): Don't define.
456 (PROFILE_KERNEL): Remove hacks.
457 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
458 (rs6000_stack_info): No need to save lr if just for profiling when
459 TARGET_PROFILE_KERNEL.
460 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
461 (output_function_profiler): Localize label generation. Emit code
462 for kernel profiling.
464 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
466 * config/h8300/h8300-protos.h: Add a prototype for
467 byte_accesses_mergeable_p.
468 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
469 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
470 (a splitter): Likewise.
471 (*iorsi3_ashift_16_ashift_24): Likewise.
472 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
474 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
476 * dwarf2asm.h: Delete obsolete comment.
477 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
478 dw2_asm_output_pcrel, dw2_asm_output_addr,
479 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
480 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
481 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
482 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
484 2003-03-17 Zack Weinberg <zack@codesourcery.com>
486 * c-tree.h (struct lang_identifier): Remove error_locus field.
487 (IDENTIFIER_ERROR_LOCUS): Kill.
488 (record_function_scope_shadow): New prototype.
489 * c-typeck.c (build_external_ref): Don't complain if
490 decl is error_mark_node. When not at file scope, bind the
491 decl's local value to error_mark_node to suppress further
492 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
494 * c-decl.c (get_function_binding_level): New static function.
495 (record_function_scope_shadow): New exported function.
496 (c_make_fname_decl): Use get_function_binding_level.
498 2003-03-17 Steve Ellcey <sje@cup.hp.com>
500 * stmt.c (tail_recursion_args): Call promote_mode to set
501 unsignedp flag correctly before calling convert_move.
503 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
505 * loop-unroll.c (decide_peel_completely,
506 decide_unroll_constant_iterations, decide_unroll_stupid,
507 decide_unroll_runtime_iterations, decide_peel_simple): Set
510 Mon Mar 17 18:57:01 CET 2003 Jan Hubicka <jh@suse.cz>
512 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
514 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
516 * function.c (assign_parms): For a struct value address passed as
517 first argument, delay the function's result RTL setup code until
518 after the emission of parameter conversions.
520 2003-03-17 Dave Love <fx@gnu.org>
521 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
523 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
524 __arch64__ to match Compaq cc.
526 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
528 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
529 (c_common_init): Set EBCDIC in cpp options.
530 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
531 not conditional compilation.
532 * cpplib.h (struct cpp_options): New entry EBCDIC.
534 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
536 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
538 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
540 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
541 argument to 0 for redirect_jump.
543 2003-03-16 Mark Mitchell <mark@codesourcery.com>
546 * except.c (eh_region_u_cleanup): Add prev_try.
547 (expand_eh_region_end_cleanup): Set it.
548 (reachable_handlers): Use it to skip over cleanup blocks.
550 2003-03-17 Andreas Jaeger <aj@suse.de>
552 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
554 2003-03-17 Alan Modra <amodra@bigpond.net.au>
556 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
557 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
558 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
559 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
561 2003-03-16 Richard Henderson <rth@redhat.com>
563 * simplify-rtx (simplify_binary_operation): Don't abort for
564 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
566 2003-03-16 Richard Henderson <rth@redhat.com>
568 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
569 optimize_size as well.
571 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
573 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
574 for D register to specify the low part of it, aka B.
575 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
576 the register if we are loading 1 or -1 to it; avoid using temp
577 register when moving X/Y to Y/X.
578 (m68hc11_gen_movqi): Likewise.
579 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
581 2003-03-14 Mark Mitchell <mark@codesourcery.com>
584 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
585 into the constant pool.
587 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
590 * tree.c (get_narrower): For extensions with unchanged bit number,
591 return the unsignedness of the outer mode.
593 2003-03-16 Roger Sayle <roger@eyesopen.com>
595 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
596 to avoid "may be used uninitialized" warning on ia64-hpux.
597 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
599 2003-03-16 Andreas Jaeger <aj@suse.de>
601 * configure.in: Improve check for memcheck.h.
602 * configure: Regenerated.
604 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
606 * doc/cppopts.texi: Remove documentation of -A-.
608 2003-03-15 Zack Weinberg <zack@codesourcery.com>
610 * doc/libgcc.texi: Remove @tie.
612 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
614 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
615 (rtx_pair): Added new element update_label_nuses, renamed to
617 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
618 replace_label_data instead of rtx_pair.
619 * loop.c (load_mems): Likewise.
620 * rtlanal.c (replace_label): Replace label in pool constants and in
621 INSN_LIST (in REG_LABEL note).
622 (subrtx_p): Renamed to rtx_referenced_p.
623 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
624 LABEL_REF with CODE_LABEL, traverse constants from pool.
626 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
627 Zack Weinberg <zack@codesourcery.com>
629 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
630 * doc/libgcc.texi: New file.
631 * doc/interface.texi: Delete paragraph about libgcc interface.
632 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
634 2003-03-15 Jason Merrill <jason@redhat.com>
637 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
640 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
641 function DIEs at toplevel.
642 (decls_for_scope): At -g1, don't descend into subblocks.
644 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
646 * varasm.c (struct rtx_const): Change type of un.addr member
647 to struct holding an additional 'symbol' member.
648 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
649 with equal string addresses as equal.
650 (simplify_subtraction): Adapt to struct rtx_const change.
652 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
654 * fix-header.c (read_scan_file): Read main file before handling -D.
656 2003-03-15 Roger Sayle <roger@eyesopen.com>
658 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
659 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
660 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
661 (find_sub_basic_blocks): Likewise.
662 * cgraphunit.c (cgraph_expand_functions): Likewise.
663 * dwarf2out.c (prune_unused_types): Likewise.
664 * expr.c (store_field): Likewise.
665 * genextract.c (print_path): Likewise.
666 * haifa-sched.c (schedule_insn): Likewise.
667 * lcm.c (compute_antinout_edge): Likewise.
668 * loop-unroll.c (decide_peel_once_rolling): Likewise.
669 * ra-colorize.c (ra_colorize_free_all): Likewise.
670 * ra-debug.c (dump_igraph): Likewise.
671 (debug_hard_reg_set): Likewise.
672 * reg-stack.c (reg_to_stack): Likewise.
673 * rtlanal.c (refers_to_regno_p): Likewise.
674 * tracer.c (layout_superblocks): Likewise.
676 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
678 * fix-header.c (read_scan_file): Fix thinko.
680 2003-03-15 Glen Nakamura <glen@imodulo.com>
682 * reload1.c (choose_reload_regs): Use && instead of ||
683 with REG_CANNOT_CHANGE_MODE_P condition.
685 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
687 * Makefile.in: Update.
688 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
689 * c-lex.c (init_c_lex): Register builtins hook is dead.
690 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
691 (c_common_decode_option): Don't call cpp_handle_option.
692 Handle -A, -D and -U.
693 (handle_deferred_opts): Simplify.
694 (finish_options): Define builtins and command line macros.
695 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
696 * cppinit.c: Don't include intl.h.
697 (init_builtins): Rename cpp_init_builtins. No hook to call.
698 (init_library): Don't need to sort options.
699 (cpp_create_reader): Don't set pending.
700 (cpp_destroy): Don't free pending.
701 (struct pending_option, cl_directive_handler, struct cpp_pending,
702 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
703 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
704 cl_options, cpp_handle_option): Remove.
705 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
706 cpp_finish_options): Remove.
707 (cpp_init_builtins): New.
708 * fix-header.c (read_scan_file): Update to handle -D. Fix
709 handling of -I. Replace call to cpp_finish_options.
711 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
714 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
715 for conditional returns.
717 2003-03-14 Jason Merrill <jason@redhat.com>
720 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
722 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
724 * c-opts.c (finish_options): New.
725 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
726 (missing_arg): Handle OPT_include and OPT_imacros.
727 (c_common_init, c_common_parse_file): Use finish_options.
728 (handle_deferred_opts): Update.
729 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
730 (cpp_finish_options): Don't handle -imacros here.
732 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
734 2003-03-14 Jakub Jelinek <jakub@redhat.com>
736 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
737 rs6000_maybe_dead if !fromprolog.
739 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
741 * Makefile.in: Update.
742 * c-common.h (fe_file_change, pp_file_change): New.
743 * c-lex.c (init_c_lex): Don't set cb_file_change.
744 (c_common_parse_file): Move to c-opts.c.
745 (cb_file_change): Rename fe_file_change.
746 * c-opts.c: Include debug.h.
747 (warn_unused_macros, include_cursor): New.
748 (push_command_line_include, cb_file_change): New.
749 (COMMAND_LINE_OPTIONS): Handle -include.
750 (c_common_decode_option): Use local warn_unused_macros.
752 (c_common_post_options): Set file change callback.
753 (handle_deferred_opts): Skip -include. Don't free the array.
754 (c_common_init): Call cpp_finish_options here, and push an
755 initial -include file.
756 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
757 (preprocess_file): Don't call cpp_finish_options.
758 (init_pp_output): Don't set the file change callback.
759 (pp_file_change): Return if no line commands or no output.
760 * cpphash.h (next_include_file, first_unused_line): Remove.
761 * cppinit.c (include_head, include_tail): Remove.
762 (cpp_destroy): Don't free -include chain.
763 (cpp_finish_options): Don't handle -include, or worry about
765 (_cpp_maybe_push_include_file): Remove.
766 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
767 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
768 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
769 Used flag is set based upon the state of the warn_unused_macros
770 flag, and so use of first_unused_line is unnecessary.
772 Thu Mar 13 18:39:42 CET 2003 Jan Hubicka <jh@suse.cz>
774 * cselib.c (clear_table): Do not take argument; always clear just
776 (cselib_process_insn): Update call of clear_table
777 (cselib_init): Do not call clear_table.
778 (cselib_finish): Clear table.
780 * cse.c (count_reg_usage): Do not check side_effects_p.
781 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
783 (find_reg_equal_equiv_note): Do not use find_reg_note.
785 2003-03-14 Richard Henderson <rth@redhat.com>
788 * config/alpha/alpha.c (alpha_va_start): Account for
789 current_function_pretend_args_size in the AP offset.
791 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
792 (INITIAL_ELIMINATION_OFFSET): Move out of line.
793 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
794 (alpha_initial_elimination_offset) New.
795 * config/alpha/alpha-protos.h: Update.
797 2003-03-14 Jakub Jelinek <jakub@redhat.com>
799 * stmt.c (expand_start_case): Call emit_queue ().
801 2003-03-14 Chris Demetriou <cgd@broadcom.com>
802 Alexandre Oliva <aoliva@redhat.com>
804 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
807 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
810 * tree-inline.c (initialize_inlined_parameters): Make sure the value
811 of read-only constant arguments is passed with the right type.
813 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
815 * doc/extend.texi (Function Names): Make the example compilable.
817 2003-03-13 David Edelsohn <edelsohn@gnu.org>
819 * config/rs6000/rs6000.c (processor_target_table): Really allow
820 GP optional instructions on Power4.
822 2003-03-13 Roger Sayle <roger@eyesopen.com>
824 * calls.c (flags_from_decl_or_type): Factor and remove redundant
827 2003-03-13 Mike Stump <mrs@apple.com>
829 * ggc-page.c (struct page_entry): Remove varray.h header.
830 Add index_by_depth field.
831 Remove save_in_use_p field.
832 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
833 by_depth_max, by_depth, and save_in_use fields.
834 (INITIAL_PTE_COUNT): Add.
835 (save_in_use_p_i): Add.
836 (save_in_use_p): Add.
838 (move_ptes_to_front): Add.
840 (push_by_depth): Add.
842 (free_page): Add support for and use faster data structures.
843 (ggc_alloc): Likewise.
844 (init_ggc): Likewise.
845 (ggc_recalculate_in_use_p): Likewise.
846 (ggc_pop_context): Likewise.
847 (clear_marks): Likewise.
848 (ggc_pch_read): Likewise.
849 * Makefile.in (ggc-page.o): Remove varray.h.
851 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
853 * ChangeLog: Rotated last year's entries to...
856 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
857 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
858 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
859 config/ia64/ia64-protos.h, config/ia64/ia64.c,
860 config/ia64/ia64.h, config/ia64/ia64.md,
861 config/ia64/itanium1.md, config/ia64/itanium2.md,
862 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
863 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
865 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
867 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
868 Differentiate endianness.
869 (s6000_override_options): Use cpu type instead of TARGET_SPE.
871 2003-03-13 Nick Clifton <nickc@redhat.com>
873 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
874 LDM instructions with writeback enabled.
875 (output_return_instruction): Likewise.
877 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
878 (CALL_USED_REGISTERS): Remove definition.
879 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
881 2003-03-13 Alan Modra <amodra@bigpond.net.au>
883 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
884 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
885 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
886 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
887 (rs6000_legitimize_address): Formatting.
888 (rs6000_emit_move): Likewise.
889 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
890 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
891 (rs6000_elf_select_section): Comment reason for shlib being
893 (rs6000_elf_unique_section): Likewise.
894 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
895 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
897 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
898 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
899 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
901 2003-03-13 Richard Henderson <rth@redhat.com>
903 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
905 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
906 (ia64_gp_save_reg): Remove.
907 (struct ia64_frame_info): Move to the beginning of the file;
909 (ia64_expand_call): Rearrange for new call patterns.
910 (ia64_reload_gp): New.
911 (ia64_split_call): New.
912 (ia64_compute_frame_size): Allocate reg_save_gp.
913 (ia64_expand_prologue): Save reg_save_gp.
914 (ia64_expand_epilogue): Don't restore gp.
915 (ia64_hard_regno_rename_ok): Remove R4 hack.
916 (ia64_function_ok_for_sibcall): New.
917 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
918 call try_split on sibcall pattern.
919 * config/ia64/ia64-protos.h: Update.
920 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
921 Rename from nopic versions. Confiscate 2nd argument to call as
923 (call_pic, call_value_pic, sibcall_pic): Remove.
924 (call_gp, call_value_gp, sibcall_gp): New.
925 (builtin_setjmp_setup): Remove.
926 (builtin_setjmp_receiver): Call ia64_reload_gp.
928 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
930 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
931 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
934 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
935 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
936 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
939 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
940 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
942 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
943 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
944 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
947 * config/v850/lib1funcs.asm, config/v850/rtems.h,
948 config/v850/v850-c.c, config/v850/v850-protos.h,
949 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
952 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
953 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
954 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
955 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
958 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
960 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
962 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
964 * fixinc/fixinc.interix: Remove dead code (most of it).
965 * fixinc/fixinc.dgux: Remove.
967 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
968 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
970 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
972 * pa.c (pa_init_builtins): Fix warning.
974 2003-03-12 Steve Ellcey <sje@cup.hp.com>
976 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
977 (ASM_OUTPUT_XDATA_SHORT): Remove.
978 (ASM_OUTPUT_XDATA_INT): Remove.
979 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
980 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
981 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
982 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
984 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
987 * expr.c (store_expr): Don't attempt to store void-typed trees,
988 just evaluate them for side effects.
990 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
992 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
993 * cppinit.c (push_include): Move with changes to cppfiles.c.
994 (cpp_read_main_file): Mark named operators here...
995 (cpp_finish_options): ...not here. Update.
996 (_cpp_maybe_push_include_file): Update.
997 * cpplib.h (cpp_push_include, cpp_rename_file): New.
999 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
1001 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
1002 _gcc_COMPUTE_GAS_VERSION.
1003 * configure.in: Use them.
1004 * configure: Regenerate.
1006 2003-03-12 Bob Wilson <bob.wilson@acm.org>
1008 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
1010 (subdi3): Reorder emitted instructions.
1012 2003-03-12 Andreas Jaeger <aj@suse.de>
1014 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
1015 NETBSD_OS_CPP_BUILTINS_LP64.
1017 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
1019 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
1020 Rearrange. Reorganize.
1021 * configure.in: Rearrange.
1022 * configure: Regenerate.
1024 2003-03-12 Andreas Jaeger <aj@suse.de>
1026 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
1029 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
1032 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
1034 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1036 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
1037 NETBSD_OS_CPP_BUILTINS_LP64.
1038 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
1039 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
1041 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
1043 Wed Mar 12 19:04:39 CET 2003 Jan Hubicka <jh@suse.cz>
1045 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
1047 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
1049 Fix PR target/9797 and PR c/9853.
1050 * stmt.c (expand_decl_init): Call push_temp_slots () and
1053 Wed Mar 12 16:30:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
1055 * sh.c: Include basic-block.h.
1056 (sh_output_mi_thunk, emit_load_ptr): New functions.
1057 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
1059 2003-03-12 Nick Clifton <nickc@redhat.com>
1061 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
1062 (CALL_USED_REGISTERS): Likewise.
1063 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
1064 describing how this value is calculated.
1066 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
1068 * configure.in (rlim_t): Define to long if no valid definition
1069 found in sys/resource.h.
1070 * config.in, configure: Regenerate.
1072 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
1074 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
1075 TARGET_OS_CPP_BUILTINS.
1076 * config/mcore/mcore-pe.h: Similarly.
1077 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
1078 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
1080 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1083 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
1084 only if it is a VAR_DECL.
1086 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1088 PR optimization/9888
1089 * config/i386/i386.md (jcc_1): Fix range.
1092 (doloop_end_internal): Likewise.
1094 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1096 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
1097 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
1098 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
1099 DLL_IMPORT_EXPORT_PREFIX and "i."
1100 (i386_pe_dllexport_name_p): Here.
1101 (i386_pe_dllimport_name_p): Here.
1102 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
1103 not 9 chars when getting identifier name.
1104 (i386_pe_mark_dllimport): Here.
1105 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
1106 not 9 chars when getting identifier name. Correct comment.
1107 (i386_pe_strip_name_encoding): Here. Add comments for different
1109 (gen_fastcall_suffix): Break down xmalloc() argument to
1111 (gen_stdcall_suffix): Likewise.
1112 Update copyright year.
1114 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1116 PR optimization/9888
1117 * config/i386/i386.md (movsi_1): Remove special alternatives
1119 (movsi_1_nointernunit): Likewise.
1120 (movhi_1): Likewise.
1121 * config/i386/i386.c (memory_address_length): Do not use
1122 short displacement when there is no base.
1123 (ix86_attr_length_address_default): Handle LEA instructions.
1125 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
1127 * c-cppbuiltin.c (builtin_define_std): Make non-static.
1129 2003-03-11 Loren James Rittle <ljrittle@acm.org>
1131 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
1132 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
1133 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
1134 * config/freebsd.h (CPP_PREDEFINES): Remove.
1135 (TARGET_OS_CPP_BUILTINS): New.
1136 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
1137 instead of TARGET_OS_CPP_BUILTINS.
1138 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
1140 2003-03-11 Geoffrey Keating <geoffk@apple.com>
1142 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
1144 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
1146 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
1147 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
1149 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
1151 Tue Mar 11 21:19:03 2003 Alexandre Oliva <aoliva@redhat.com>
1153 * toplev.c (independent_decode_option): Return success for --help,
1154 --target-help and --version.
1156 Tue Mar 11 20:20:14 2003 Alexandre Oliva <aoliva@redhat.com>
1158 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
1159 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
1161 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
1163 (LINK_SPEC): Let endian options affect the linker emulation name.
1165 Tue Mar 11 22:35:39 2003 J"orn Rennecke <joern.rennecke@superh.com>
1167 * sh.md (reload_inqi): Fix mode for source in second set.
1169 Tue Mar 11 22:48:03 CET 2003 Jan Hubicka <jh@suse.cz>
1171 * cselib.c (cselib_invalidate_mem_1): Move too ...
1172 (cselib_invalidate_mem): ... here; use new list
1173 (dummy_val, first_containing_mem): New static variables.
1174 (clear_table): Initialize first_containing_mem.
1175 (discard_useless_values): Compact the containing_mem list.
1176 (add_mem_for_addr): Add to the list.
1177 * cselib.h (cselib_val): Add next_containing_mem.
1179 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
1181 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
1182 instructions for e500.
1184 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
1186 * Makefile.in: Update.
1187 * c-cppbuiltin.c: Include tm_p.h.
1189 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
1191 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
1193 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
1194 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
1195 (_Unwind_SetGR): Same.
1196 (_Unwind_GetGRPtr): New.
1197 (_Unwind_SetGRPtr): New.
1198 (uw_update_context_1): Use accesor functions instead of accessing
1199 context->reg[] directly.
1200 (uw_install_context_1): Same.
1201 (execute_cfa_program): Same.
1202 (__frame_state_for): Same.
1204 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
1205 the synthetic register offset.
1207 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
1209 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
1211 * config/cris/cris.md: Remove lingering EGCS reference.
1212 ("*extopqihi_side_biap"): For HI operation, match
1213 cris_additive_operand_extend_operator, not
1214 cris_operand_extend_operator. Adjust condition.
1215 ("*extopqihi_side", "*extopqihi"): Ditto.
1216 ("*extopqisi_side_biap"): Correct operand numbers in condition.
1217 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
1218 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
1219 ("*extophisi_swap"): Ditto.
1220 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
1221 PLUS, not cris_operand_extend_operator. Adjust condition and
1223 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
1224 * config/cris/cris.h (PREDICATE_CODES): Add
1225 cris_additive_operand_extend_operator.
1226 * config/cris/cris.c (cris_additive_operand_extend_operator):
1229 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
1231 * df.c (read_modify_subreg_p): Change from static to global.
1232 * df.h (read_modify_subreg_p): Add prototype.
1233 * sched-deps.c (sched_analyze_1): Generate true dependency for
1234 strict_low_part, certain subregs and zero/sign_extract.
1236 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
1238 * Makefile.in: Update.
1239 * c-common.c: Don't include real.h or except.h.
1240 (REGISTER_PREFIX): Remove.
1241 (builtin_define_std, builtin_define_with_value,
1242 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
1243 builtin_define_type_max, builtin_define_type_precision,
1244 builtin_define_float_constants): Move to c-cppbuiltin.c.
1245 (c_stddef_cpp_builtins): New.
1246 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
1247 * c-cppbuiltin.c: New, extracted from c-common.c.
1248 (define__GNUC__): New.
1249 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
1250 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
1251 (cpp_unique_options): Don't support no-gcc.
1252 (do_spec_1): Remove support of version specs.
1253 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
1254 * doc/passes.texi: Update.
1255 * doc/tm.texi: Update.
1257 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
1259 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
1261 2003-03-10 Andrew Pinski <apinski@apple.com>
1263 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
1264 is on should not get here.
1265 (machopic_indirect_data_reference): If dynamic-no-pic is on just
1266 generate high/low parts of the address.
1267 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
1268 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
1269 symbol and labels with a new reg. Dynamic-no-pic does not have a
1270 pic_offset_table_rtx.
1271 (machopic_select_section): Change references of flag_pic to
1273 (machopic_asm_out_destructor): Likewise.
1274 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
1275 reference of flag_pic to MACHOPIC_INDIRECT.
1276 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
1277 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
1278 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
1279 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
1280 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
1281 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
1282 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
1283 (TARGET_DYNAMIC_NO_PIC): Define.
1284 (SUBTARGET_SWITCHES): Define, have sub-target switches for
1286 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
1287 rs6000_override_options to here. Dynamic-no-pic overrides
1289 (CC1_SPEC): Change from not static then pic to not static and not
1290 dynamic-no-pic then pic.
1291 * config/rs6000/rs6000.c (rs6000_override_options): Move the
1292 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
1293 (rs6000_legitimize_reload_address): Add case for loading floating in
1295 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
1296 of flag_pic to MACHOPIC_INDIRECT.
1297 (secondary_reload_class): Conditional change the reference of
1298 flag_pic to MACHOPIC_INDIRECT.
1299 (rs6000_output_mi_thunk): Change reference of flag_pic to
1301 (output_profile_hook): Likewise.
1302 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
1303 * config/rs6000/rs6000.md (movdf_low): Add the case for
1304 MACHO_DYNAMIC_NO_PIC_P.
1305 (call): Change references for flag_pic in TARGET_MACHO to
1307 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
1308 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
1309 * doc/invoke.texi (-mdynamic-no-pic): Document.
1311 2003-03-10 Devang Patel <dpatel@apple.com>
1314 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1315 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1316 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
1317 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
1318 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1319 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1321 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
1323 PR optimization/7189
1324 * toplev.c (rest_of_compilation): Move
1325 check_function_return_warnings up to just after
1326 delete_unreachable_blocks.
1328 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
1330 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
1331 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
1333 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
1334 for reg rename optimization to avoid using Z and Y registers.
1336 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
1338 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
1339 when adding to X and Y since leax/leay are fast.
1340 ("*addhi3"): Accept 'I' constraint when adding to address register.
1341 ("rotlhi3"): Operand 1 must be a register_operand.
1342 (peephole2): New peephole to optimize some adds.
1343 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
1344 to represent -2 .. 2 small integer range.
1346 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
1348 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
1349 each 16-bit rotation.
1351 2003-03-10 Zack Weinberg <zack@codesourcery.com>
1353 * c-opts.c (add_prefixed_path): Don't use concat. When
1354 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
1355 cpp_GCC_INCLUDE_DIR_len characters.
1357 2003-03-10 Segher Boessenkool <segher@koffie.nl>
1359 * testsuite/gcc.dg/altivec-9.c: New file.
1361 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
1362 (rs6000_emit_prologue): Use rs6000_frame_related instead.
1364 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
1366 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
1368 (__ev_convert_u64): Remove macro. Define as inline.
1369 (__ev_convert_s64): Same.
1371 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
1373 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
1374 (rs6000_stack_t): Add spe_64bit_regs_used.
1376 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
1377 spe_64bit_regs_used, and use it to determine the size of the
1379 (spe_func_has_64bit_regs_p): New.
1380 (spe_synthesize_frame_save): New.
1381 (rs6000_frame_related): Handle SPE synthetic registers.
1382 (rs6000_emit_prologue): Only save in 64-bits if the function used
1383 any registers in 64-bit mode.
1384 (rs6000_emit_epilogue): Same, but for restore.
1386 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
1388 * arm.h (enum floating_point_type): Delete. Replace with...
1389 (enum fputype): ... new.
1390 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
1391 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
1392 * arm.md (attr fpu): Reworked for new underlying enum values.
1393 * arm.c (arm_fpu_arch): Now enum fputype.
1394 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
1395 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
1396 Update uses of arm_fpu_arch and arm_fpu_tune.
1398 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
1400 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
1401 (try_crossjump_to_edge): Replace refereces to one jump table by
1402 references to identical jump table.
1403 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
1404 (replace_label): Moved to rtlanal.c.
1405 (struct rtx_pair): Moved to rtl.h.
1406 * rtl.h (struct rtx_pair): Moved from loop.c.
1407 (replace_label): New extern function.
1408 (subrtx_p): New extern function.
1409 (tablejump_p): New extern function.
1410 * rtlanal.c (replace_label): Moved from loop.c.
1411 (subrtx_p_1): New static function.
1412 (subrtx_p): New function.
1413 (tablejump_p): New function.
1415 Mon Mar 10 15:30:36 CET 2003 Jan Hubicka <jh@suse.cz>
1417 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
1419 * cfgcleanup.c (merge_blocks): Return where to iterate next.
1420 (try_optimize_cfg): Use return value of merge_blocks
1422 2003-03-10 Michael Matz <matz@suse.de>
1424 * cfg.c (unchecked_make_edge): New.
1425 (cached_make_edge): Use it.
1426 * basic-block.h (unchecked_make_edge): Declare.
1427 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
1429 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
1431 * fpa.md: New file. Move all patterns relating to FPA co-processor
1433 * arm.md: ... from here.
1434 (cirrus.md, fpa.md): Include at end of description.
1435 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
1436 (pic_load_addr_based): Remove register constraint from expander.
1437 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
1438 (sordered, sungt, sunle, sunge, sunlt): Likewise.
1439 (eh_epilogue, tablejump): Likewise.
1441 2003-03-09 David Edelsohn <edelsohn@gnu.org>
1444 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
1447 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
1449 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
1450 * config/ip2k/ip2k.h: Similarly.
1451 * config/m32r/m32r.h: Similarly.
1452 * config/m68hc11/m68hc11.h: Similarly.
1453 * config/mn10200/mn10200.h: Similarly.
1454 * config/mn10300/mn10300.h: Similarly.
1455 * config/pdp11/pdp11.h: Similarly.
1456 * config/v850/v850.h: Similarly.
1457 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
1458 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
1459 * config/mips/iris3.h: Remove #if 0 block.
1461 2003-03-09 Roger Sayle <roger@eyesopen.com>
1462 Joern Rennecke <joern.rennecke@superh.com>
1464 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
1465 pending argument upon return from handle_braces here.
1466 (do_spec_2): Instead handle it upon return from do_spec_1 here.
1468 2003-03-09 Roger Sayle <roger@eyesopen.com>
1469 Joern Rennecke <joern.rennecke@superh.com>
1471 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
1472 pending argument upon return from handle_braces here.
1473 (do_spec_2): Instead handle it upon return from do_spec_1 here.
1475 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1477 * varasm.c (make_decl_one_only): Use declare_weak().
1479 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1482 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
1483 after the common builtins.
1484 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
1485 * pa.c (TARGET_INIT_BUILTINS): Define.
1486 (pa_init_builtins): New function.
1488 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
1489 space has been allocated for the outgoing arguments, set the arg
1490 pointer for a call emitted after virtuals have been instantiated
1491 using the stack pointer offset, otherwise abort.
1493 2003-03-09 DJ Delorie <dj@redhat.com>
1495 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
1497 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
1499 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
1500 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
1501 conversion to integer.
1502 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
1504 2003-03-09 Roger Sayle <roger@eyesopen.com>
1506 * builtins.def: Fix typo and improve grammar.
1507 * loop-unroll.c (decide_peel_completely): Tidy log message.
1509 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
1511 * config/h8300/h8300.md (*tstsi_upper_bit): New.
1512 (*iorsi3_e2f): Likewise.
1514 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
1516 * config/h8300/h8300.c (h8300_and_costs): Return the number of
1517 assembly instructions needed.
1518 (h8300_shift_costs): Likewise.
1520 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
1522 * config/cris/aout.h (ENDFILE_SPEC): Undef.
1524 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
1526 * expr.c (emit_move_insn_1): ... to here.
1528 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
1529 (TARGET_OS_CPP_BUILTINS): New macro.
1530 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
1531 (TARGET_OS_CPP_BUILTINS): New macro.
1532 (CPP_PREDEFINES): Don't define. Move old definitions and...
1533 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
1534 (TARGET_CPU_CPP_BUILTINS): New macro.
1535 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
1536 definitions and the optional __PIC__, __pic__ and
1537 __NO_UNDERSCORES__ definitions to...
1538 (TARGET_OS_CPP_BUILTINS): New macro.
1540 * flags.h (flag_leading_underscore): Declare.
1542 * c-opts.c (c_common_post_options): On fopen failure, return
1545 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
1547 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
1549 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
1550 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
1552 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
1554 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
1556 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
1559 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
1561 * c-common.h (c_common_init, c_common_post_options): Update.
1562 * c-objc-common.c (c_objc_common_init): Update for new prototype.
1563 * c-opts.c (saved_lineno): New.
1564 (c_common_post_options, c_common_init): Update prototypes,
1565 move call to cpp_read_main_file from latter to former.
1566 * c-tree.h (c_ojbc_common_init): Update.
1567 * langhooks-def.h (lhd_post_options): New.
1568 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
1569 * langhooks.c (lhd_post_options): New.
1570 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
1571 * toplev.c (no_backend): New.
1572 (process_options): Call post_options hook and set main_input_filename
1573 and input_filename here.
1574 (lang_dependent_init, do_compile): post_options hook moved to
1576 * objc/objc-act.c (objc_init): Update prototype.
1577 * objc/objc-act.h (objc_init): Update prototype.
1579 2003-03-08 Roger Sayle <roger@eyesopen.com>
1581 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
1582 a complex or vector type, using a load in the original mode.
1584 Sat Mar 8 19:22:30 CET 2003 Jan Hubicka <jh@suse.cz>
1586 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
1587 * gt-cgraph.h: New GC file.
1588 * cgraph.c (known_fns): New static variable.
1589 (cgraph_node): Add the decl into varray.
1591 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
1593 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
1595 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
1597 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
1598 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
1599 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
1600 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
1601 All callers changed.
1602 * arm.md, arm.h, arm-protos.h: Updated.
1604 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
1605 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
1606 * arm.c (arm_regno_class, f_register_operand): Updated.
1608 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
1610 * config/cris/cris.h: Remove EGCS references.
1611 (CPP_SPEC): Remove "-$".
1612 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
1614 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
1616 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
1617 preference to CPP_PREDEFINES.
1619 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
1621 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
1623 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
1625 * config/h8300/h8300.md (*extzv_16_8): New.
1627 Sat Mar 8 14:13:35 CET 2003 Jan Hubicka <jh@suse.cz>
1629 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
1630 * cgraph.h: (cgraph_local_info): Add can_inline_once
1631 (cgraph_global_info): Add inline_once.
1632 (cgraph_node): Add previous.
1633 (cgraph_remove_node): New.
1634 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
1636 (cgraph_optimize): Call it.
1637 (cgraph_finalize_function): Set inlinable flags.
1638 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
1639 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
1640 (cgraph_expand_function): Likewise.
1642 (cgraph_node): Put nodes into doubly linked chain.
1643 (cgraph_remove_node): New function.
1644 * flags.h (flag_inline_functions_called_once): Declare.
1645 * tree-inline.c: Include cgraph.h
1646 (inlinable_functions_p): Add extra argument to bypass limits.
1647 (expand_call_inline): Obey cgraph flag.
1648 * tree-inline.h (tree_inlinable_function_p): Update prototype.
1650 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1652 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
1655 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
1656 loops info correctly.
1658 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
1661 * unroll.c (calculate_giv_inc): Handle constants being
1662 loaded with LSHIFTRT.
1664 2003-03-07 David Edelsohn <edelsohn@gnu.org>
1666 * config/rs6000/rs6000.c (processor_target_table): Do not disable
1667 GP optional instructions on Power3, Power4, 620, and 630.
1669 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
1671 * calls.c: Fix comment formatting.
1672 * cfgloopanal.c: Likewise.
1673 * cfgloopmanip.c: Likewise.
1674 * combine.c: Likewise.
1675 * dwarf2out.c: Likewise.
1676 * ggc-common.c: Likewise.
1677 * langhooks.c: Likewise.
1678 * loop-unroll.c: Likewise.
1680 * ra-build.c: Likewise.
1681 * sbitmap.c: Likewise.
1682 * toplev.c: Likewise.
1684 2003-03-07 James E Wilson <wilson@tuliptree.org>
1686 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
1688 2003-03-07 Geoffrey Keating <geoffk@apple.com>
1690 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
1691 support -no-integrated-cpp.
1693 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
1694 than langhooks.name.
1696 2003-03-07 Michael Matz <matz@suse.de>
1698 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
1699 (DF_FOR_REGALLOC): New.
1700 * df.c (df_ref_record): Set DF_REF_STRIPPED.
1701 (read_modify_subreg_p): Simplify.
1702 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
1703 Use DF_FOR_REGALLOC.
1704 * ra.h (struct web): New member subreg_stripped.
1705 (invalid_mode_change_regs): Declare.
1706 * ra.c (invalid_mode_change_regs): New.
1707 (init_ra): Initialize it.
1708 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
1709 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1710 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
1711 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
1712 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1714 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
1716 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
1717 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
1718 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
1719 machine description file from ...
1720 * cirrus.md: ... here.
1722 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
1724 * config/h8300/h8300.md (a peephole2): Don't use
1725 reg_overlap_mentioned_p.
1727 2003-03-06 Geoffrey Keating <geoffk@apple.com>
1729 * c-pch.c: Include langhooks.h.
1730 (IDENT_LENGTH): New.
1732 (pch_ident): Delete.
1733 (pch_init): Use get_ident, IDENT_LENGTH.
1734 (c_common_valid_pch): Likewise. Also, use actual language
1736 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
1738 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
1740 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
1742 (gt-objc-objc-act.h): New rule.
1743 * objc/lang-specs.h: Support PCH.
1744 * objc/objc-act.c: Include gt-objc-objc-act.h.
1745 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
1746 (build_selector_reference_decl): Move idx out, mark for PCH.
1747 (build_class_reference_decl): Likewise.
1748 (build_objc_string_decl): Move *_idx out, mark for PCH.
1749 (build_tmp_function_decl): Move xxx out, mark for PCH.
1751 2003-03-06 Dale Johannesen <dalej@apple.com>
1753 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
1754 global functions for inlining on Darwin.
1756 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
1758 * haifa-sched.c (schedule_block): Don't call reorder when sorting
1761 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
1763 * Makefile.in (c-ppoutput.o): Update.
1764 * c-common.h (init_pp_output): New.
1765 (preprocess_file): Update.
1766 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
1768 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
1769 Make call to cpp_read_main_file common to whether preprocessing
1770 or not. Don't register builtins.
1771 * c-ppoutput.c: Include c-pragma.h.
1772 (setup_callbacks): Rename init_pp_output.
1773 (preprocess_file): No longer setup callbacks or call
1775 * cpphash.h (_cpp_init_mbchar): New.
1776 * cppinit.c (init_library): Call _cpp_init_mbchar.
1777 * cpplex.c (_cpp_init_mbchar): New.
1779 2003-03-06 Roger Sayle <roger@eyesopen.com>
1781 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
1782 MEM, try loading the MEM into a register and taking the low-part
1783 of that, to help CSE see the use of the MEM in its true mode.
1785 2003-03-05 Tom Tromey <tromey@redhat.com>
1787 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
1790 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
1792 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
1794 ("*ineqbranchsi"): Likewise.
1796 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
1798 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
1799 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
1800 register store followed by a stack increment.
1802 2003-03-05 Chris Moller <cmoller@redhat.com>
1804 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
1805 to inhibit saving CARRY_REGS.
1807 * config/stormy16/stormy16.c (xs_hi_general_operand):
1808 added predicate to detect and error-out on out-of-range
1809 const_ints for movhi.
1810 * config/stormy16/stormy16.md (movhi): use
1811 xs_hi_general_operand.
1813 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
1814 added a check for local vbl size overflow.
1815 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
1816 added predicate to detect and error-out on out-of-range
1817 const_ints for addhi and subhi.
1818 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
1819 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
1821 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1822 add a term to accept PRE_MODIFY addresses.
1823 * config/stormy16/stormy16.c (xstormy16_expand_move):
1824 add code to expand PRE_MODIFY addresses to an add followed
1827 2003-03-06 Jason Merrill <jason@redhat.com>
1829 * tree-inline.c (inlinable_function_p): Revert earlier change
1830 pending investigation.
1832 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
1834 * config/h8300/h8300.md (a new peephole2): New.
1836 Thu Mar 6 14:20:15 CET 2003 Jan Hubicka <jh@suse.cz>
1838 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
1840 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1842 * dwarf2out.c (size_of_die): Compute size of external reference to
1845 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
1847 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
1848 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
1851 2003-03-05 Roger Sayle <roger@eyesopen.com>
1853 * expr.h (lang_expand_expr): Delete obsolete prototype.
1855 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
1857 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
1859 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
1861 * config/h8300/h8300.md (a peephole2): Generalize to
1862 accept a memory operand.
1864 Wed Mar 5 19:34:18 2003 Olivier Hainque <hainque@act-europe.fr>
1866 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
1867 * config/alpha/alpha.c (print_operand, case '+'): New.
1868 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
1869 (call_value_osf_1_noreturn): Likewise.
1871 Wed Mar 5 18:55:02 2003 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1873 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
1874 (expand_end_bindings): Likewise.
1876 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1878 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
1879 (epilogue): Don't generate return_external_pic when emitting PA 2.0
1882 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
1884 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
1886 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
1888 * hooks.c (hook_rtx_rtx_null): New.
1890 * hooks.h (hook_rtx_rtx_null): Protoize.
1892 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
1893 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
1895 * target.h (struct gcc_target): Add dwarf_register_span.
1897 * dwarf2out.c (multiple_reg_loc_descriptor): New.
1898 (one_reg_loc_descriptor): New.
1899 (reg_loc_descriptor): Add support for values that span more than
1902 Wed Mar 5 23:16:57 CET 2003 Jan Hubicka <jh@suse.cz>
1904 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
1905 * alias.c: Include cgraph.h
1906 (mark_constant_function): Use cgraph_rtl_info.
1907 * calls.c: Include cgraph.h
1908 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
1910 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
1911 * cgraph.c (cgraph_rtl_info): New function.
1912 * cgraph.h (cgraph_rtl_info): Declare
1913 (cgraph_rtl_info): Likewise.
1914 * function.h (struct function): Add recursive_call_emit.
1915 * toplev.c: Include cgraph.h.
1916 (rest_of_compilation): Set preferred_incoming_stack_boundary.
1918 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
1920 * config/h8300/h8300.c (output_simode_bld): Clear the
1921 destination first if possible.
1922 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
1924 (extzv_1_r_inv_h8300hs): Likewise.
1926 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1928 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
1929 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
1930 * cfgloop.c (flow_loop_free): Made global.
1931 (establish_preds): New static function.
1932 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
1933 (get_loop_exit_edges): New.
1934 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
1935 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
1936 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
1938 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
1939 removability of an edge.
1940 (fix_irreducible_loops): New static function.
1941 (find_path, remove_path): Add ability to remove enclosing loops.
1943 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
1945 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
1946 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
1948 (decide_peel_completely, peel_loops_completely): Allow complete peeling
1949 of non-duplicable once rolling loops.
1950 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
1952 Wed Mar 5 21:40:57 2003 J"orn Rennecke <joern.rennecke@superh.com>
1954 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
1955 for align_jumps is 4.
1957 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
1960 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
1962 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
1963 according to va_arg type.
1964 (EXPAND_BUILTIN_VA_ARG): Remove.
1965 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
1966 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
1968 2003-03-05 David Edelsohn <edelsohn@gnu.org>
1970 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
1973 2003-03-05 Michael Matz <matz@suse.de>
1975 * i386/i386.c (ix86_save_reg): Also test
1976 current_function_uses_const_pool.
1978 2003-03-05 Michael Matz <matz@suse.de>
1980 * unwind.h: Add the GPL exception.
1981 * Makefile.in (USER_H): Add unwind.h.
1983 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1986 * c-typeck.c (push_init_level): Add sanity check.
1988 Wed Mar 5 02:04:04 CET 2003 Jan Hubicka <jh@suse.cz>
1990 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
1991 RTL inlining is done.
1993 * cgraphunit.c (cgraph_mark_local_functions): New local function.
1994 (cgraph_optimize): Mark local functions.
1995 * i386-protos.h (init_cumulative_args): Update prototype.
1996 * i386.c (init_cumulative_args): Use register passing convention for
1999 * cgraph.c (cgraph_global_info_ready): New global variable
2000 (cgraph_local_info, cgraph_global_info): New functions.
2001 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
2003 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
2005 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
2006 (cgraph_mark_functions_to_output): Use inline_many.
2007 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
2008 (cgraph_expand_functions): Expand inline functions last.
2009 (cgraph_optimize): Do not emit uneeded functions.
2011 2003-03-04 Steve Ellcey <sje@cup.hp.com>
2013 * expr.c (convert_modes): Check for legal hard register.
2015 2003-03-04 Tom Tromey <tromey@redhat.com>
2017 * doc/sourcebuild.texi (Front End Directory): Document tags.
2018 * configure: Rebuilt.
2019 * configure.in (target_list): Added tags.
2020 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
2021 TAGS files by reference.
2022 * objc/Make-lang.in (objc.tags): New target.
2024 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2026 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
2027 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
2028 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
2029 gcov_read_string, gcov_write_length): Modified to enable reading/
2030 writing of whole .da file just once.
2031 (da_file_open, da_file_close, da_file_eof, da_file_error,
2032 da_file_position, da_file_seek, da_file_write, da_file_read): New
2034 (actual_da_file, actual_da_file_position, actual_da_file_length,
2035 actual_da_file_buffer, actual_da_file_buffer_size): New static
2037 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
2041 2003-03-04 Andreas Schwab <schwab@suse.de>
2043 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
2044 offset without frame pointer.
2046 2003-03-04 Steve Ellcey <sje@cup.hp.com>
2048 * expr.c (expand_expr): Call promote_mode to set unsignedp.
2050 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
2052 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
2053 * configure: Regenerated.
2054 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
2056 2003-03-04 Andreas Jaeger <aj@suse.de>
2058 * configure.in: Check for <memcheck.h>.
2059 * configure: Regenerated.
2061 * config.in: Define HAVE_MEMCHECK_H.
2063 * ggc-common.c: Use <memcheck.h> if available instead of
2065 * ggc-page.c: Likewise.
2066 * cppfiles.c: Likewise.
2068 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
2070 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
2072 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2075 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
2076 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
2078 Tue Mar 4 11:30:04 CET 2003 Jan Hubicka <jh@suse.cz>
2080 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
2081 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
2084 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
2086 * configure.in: Delete three unused variables. Move a variable
2087 definition closer to its use. Simplify use_collect2 logic. Start to
2088 organize. Simplify tests for in-tree gas and ld.
2089 * configure: Regenerate.
2091 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
2093 * Makefile.in: Update.
2094 * c-common.c (flag_no_line_commands, flag_no_output,
2095 flag_dump_macros, flag_dump_includes): New.
2096 * c-common.h (flag_no_line_commands, flag_no_output,
2097 flag_dump_macros, flag_dump_includes, preprocess_file): New.
2098 (init_c_lex): Update prototype.
2099 * c-lex.c (init_c_lex): Update prototype; move some code to
2101 * c-opts.c (preprocess_file): Subsume into c_common_init.
2102 (c_common_decode_option): Update flags.
2103 (c_common_init): Move code from preprocess_file and init_c_lex.
2104 (sanitize_cpp_opts): Update.
2105 * c-ppoutput.c: New, cppmain.c almost verbatim.
2106 * cpphash.h (struct printer): Remove.
2107 (struct cpp_reader): Remove print.
2108 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
2109 cpp_preprocess_file): Remove.
2110 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
2112 * cppmain.c: Remove.
2113 * doc/passes.texi: Update.
2115 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2117 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
2118 (assign_stack_local_1): Perform overall stack alignment only when
2119 STACK_ALIGNMENT_NEEDED is non-zero.
2120 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
2122 * pa.c (compute_frame_size): Rename fsize to size. Account for
2123 alignment to a word boundary before general register save block. Only
2124 account for double-word alignment before floating point register save
2125 block if one or more are saved. Don't allocate space for %r3 when
2126 frame pointer is needed.
2127 (hppa_expand_prologue): Include alignment to word boundary in local
2129 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
2130 (STACK_ALIGNMENT_NEEDED): Define.
2132 2003-03-04 Kevin Buettner <kevinb@redhat.com>
2134 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
2135 global register variables.
2137 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
2139 * reload.c (reload_adjust_reg_for_mode): New function.
2140 (subst_reloads): Call it.
2141 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
2142 * reload.h (reload_adjust_reg_for_mode): Declare.
2143 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
2146 2003-03-03 James E Wilson <wilson@tuliptree.org>
2148 * optabs.c (add_equal_note): Delete SUBREG_REG use.
2151 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2153 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
2154 (*ixorsi3_lshiftrt_16): New.
2155 (*iorsi3_ashift_16): Remove.
2157 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2159 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
2162 2003-03-03 Geoffrey Keating <geoffk@apple.com>
2164 * doc/install.texi (Specific): Update entry for powerpc-darwin.
2166 2003-03-03 Richard Henderson <rth@redhat.com>
2168 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
2170 2003-03-03 David Edelsohn <edelsohn@gnu.org>
2172 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
2173 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
2174 (rs6000_variable_issue): Do not return negative value.
2175 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
2178 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2180 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
2181 prune_unused_types calls.
2183 2003-03-03 Jason Merrill <jason@redhat.com>
2185 * tree-inline.c (find_builtin_longjmp_call): Save and restore
2186 lineno and input_filename.
2187 (find_alloca_call): Likewise.
2188 (inlinable_function_p): Run the langhook earlier.
2190 * calls.c (compute_argument_addresses): Give the new MEMs a
2191 minimum alignment of PARM_BOUNDARY.
2193 Mon Mar 3 20:45:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
2195 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
2196 subtarget_asm_isa_spec.
2197 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
2198 (ASM_SPEC): Define as SH_ASM_SPEC.
2199 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
2200 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
2201 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
2202 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
2204 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
2205 and align_jumps if not set.
2206 Force align_jumps to be at least 2.
2207 When relaxing, force align_functions to be at least the maximum of
2208 align_loops, align_jumps and 4.
2209 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
2210 (sh_loop_align): Honour align_loops_log.
2212 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
2213 to check for indirect_jump_scratch.
2214 (indirect_jump_scratch): Add second set.
2215 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
2216 when looking for indirect_jump_scratch.
2217 Extract scratch register taking new structure of indirect_jump_scratch
2219 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
2221 Mon Mar 3 19:07:21 CET 2003 Jan Hubicka <jh@suse.cz>
2223 * calls.c (rtx_for_function_call): Take the address as an argument
2224 (expand_call): Do not modify the expression.
2226 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
2229 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2231 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
2232 TARGET_H8300H and TARGET_H8300S.
2234 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2236 * config/h8300/h8300.md (a peephole2): New.
2238 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2240 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
2241 operands[0] and operands[1] are different.
2243 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2245 * reload1.c (reload_cse_move2add): Remove variable success.
2247 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2249 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
2252 2003-03-02 Richard Henderson <rth@redhat.com>
2254 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
2255 * config.in, configure: Rebuild.
2256 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
2257 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
2258 paired ldtoffx and ldxmov annotations.
2259 (load_symptr_internal1): Remove.
2260 (load_symptr_high, load_symptr_low): New.
2262 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
2264 * c-incpath.c (add_path): Fix sysp assignment.
2266 2003-03-02 Kurt Garloff <garloff@suse.de>
2268 * params.def: Introduce parameter max-inline-insns-rtl for
2269 a separate limit for the RTL inliner.
2270 * params.h: Likewise.
2271 * integrate.c (function_cannot_inline_p): Use it.
2272 * toplev.c (decode_f_option): Set multiple parameters
2273 controlling inlining with -finline-limit.
2274 * params.def: Fix orthographic and typographic errors.
2275 * doc/invoke.texi: Document parameters controlling inlining
2276 and the way -finline-limit sets multiple of them.
2278 * tree.h (struct tree_decl): Introduce inlined_function_flag,
2279 recording whether the function became eligible for inlining
2280 by a compiler flag rather than the declaration.
2281 Provide DID_INLINE_FUNC macro to access it.
2282 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
2283 * cp/decl.c (grokfndecl): Likewise.
2284 * toplev.c (rest_of_compilation): Likewise.
2285 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
2286 * print-tree.c (print_node): Report it.
2287 * params.def: Introduce new max-inline-insns-auto limit.
2288 * params.h: Likewise.
2289 * tree-inline.c (inlinable_function_p): Apply it to functions
2290 with DID_INLINE_FUNC set.
2291 * toplev.c (decode_f_option): Initialize it from -finline-limit
2293 * doc/invoke.texi: Document new parameter.
2295 2003-03-02 Geoffrey Keating <geoffk@apple.com>
2297 * fix-header.c (read_scan_file): Don't reference simplify_path.
2299 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
2301 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
2302 min/max instructions by default as may result in reload errors.
2304 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
2306 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
2307 avoid reload problems; define split for it.
2309 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
2311 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
2312 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
2313 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
2314 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
2315 rotatert and rotate.
2316 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
2317 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
2318 ("*rotrhi3_addr"): New split for shift insns on address register.
2319 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
2320 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
2321 (___rotrhi3): Likewise.
2322 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
2324 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
2326 * toplev.c (aux_base_name): Moved from toplev.h.
2327 (filename): Constify.
2328 (lang_dependent_init): Don't duplicate name.
2329 (process_options): Set aux_base_name here, not...
2330 (do_compile): ...here. Change protoype.
2331 (toplev_main): Move some code from do_compile.
2332 * toplev.h: Remove aux_base_name.
2334 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
2336 * config/h8300/h8300-protos.h: Add a prototype for
2338 * config/h8300/h8300.c (print_operand): Handle 'c'.
2339 (iorxor_operator): New.
2340 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
2341 * config/h8300/h8300.md (*iorhi3_zext): Remove.
2342 (*iorsi3_zexthi): Likewise.
2343 (*iorsi3_zextsi): Likewise.
2344 (*xorhi3_zextqi): Likewise.
2345 (*xorsi3_zexthi): Likewise.
2346 (*xorsi3_zextsi): Likewise.
2347 (*ixorhi3_zext): New.
2348 (*ixorsi3_zext_qi): Likewise.
2349 (*ixorsi3_zext_hi): Likewise.
2351 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
2353 * c-incpath.c (remove_component_p, simplify_path): Move back to
2355 (remove_duplicates): Use cpp_simplify_path.
2356 * c-incpath.h (simplify_path): Remove.
2357 * c-lex.c: Don't include c-incpath.h.
2358 (init_c_lex): Remove simplify_path.
2359 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
2360 (find_or_create_entry, validate_pch): Revert.
2362 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
2364 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
2365 an external cpp during compilation.
2366 (option_map): Likewise.
2367 * objc/lang-specs.h (default_compilers): Similarly.
2368 * doc/invoke.texi: Document -no-integrated-cpp flag.
2370 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
2372 * config/h8300/h8300.md (zero_extendqisi2): Change to an
2374 (*zero_extendqisi2_h8300): New.
2375 (*zero_extendqisi2_h8300hs): New.
2376 (two splitters): New.
2378 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2380 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
2382 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
2384 * config/h8300/h8300.md (a peephole2): Remove dead code.
2386 2003-03-01 Roger Sayle <roger@eyesopen.com>
2389 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
2390 (BT_FN_INT_CONST_STRING_VALIST_ARG,
2391 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
2392 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
2393 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
2394 BT_FN_INT_STRING_CONST_STRING_VAR,
2395 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
2396 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
2397 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
2398 ATTR_NONNULL_3): Also include the nothrow attribute.
2399 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
2400 vsnprintf, vscanf, vsscanf): Don't define attributes here.
2401 * builtins.def (putchar, puts): Make full C89 built-ins.
2402 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
2403 vsscanf, vsnprintf, vsprintf): New built-ins.
2404 * c-common.c (c_common_nodes_and_builtins): Handle new macro
2405 DEF_FUNCTION_TYPE_VAR_3.
2407 * doc/extend.texi: Document these new built-in functions.
2409 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
2411 * config/h8300/h8300.md (a peephole2): New.
2413 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
2415 * predict.c (estimate_bb_frequencies): Correctly set
2416 real_values_initialized after initialization.
2418 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
2420 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
2421 cppinit.o, cppdefault.o, fix-header): Update.
2422 * c-incpath.c: New file.
2423 * c-incpath.h: New file.
2424 * c-lex.c: Include c-incpath.h.
2425 (init_c_lex): Register path simplifier.
2426 * c-opts.c: Include cppdefault.h and c-incpath.h.
2427 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
2428 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
2429 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
2430 (missing_arg, c_common_decode_option): Handle them.
2431 (c_common_post_options): Register include chains.
2432 (print_help): Update.
2433 * cppdefault.h (struct default include): Update.
2434 Move some macros to ...
2435 * cppdefault.c: ... here.
2436 (cpp_include_defaults): Add extra field add_sysroot.
2437 * cppfiles.c (include_file, search_from, find_or_create_entry,
2438 cpp_included, find_include_file, remap_filename): Update for
2439 renaming of search_path to cpp_path, and of the chain headers.
2440 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
2441 * cpphash.h (struct search_path): Move to cpplib.h.
2442 (struct cpp_buffer, struct cpp_reader): Update.
2443 (_cpp_simplify_pathname): Remove.
2444 * cppinit.c: Don't include prefix.h and cppdefault.h.
2445 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
2446 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
2447 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
2448 no_pth, cpp_handle_options): Remove.
2449 (struct pending_option): Remove chain members.
2450 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
2451 cpp_handle_option): Update.
2452 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
2453 (struct cpp_options): Remove quote_include, bracket_include,
2454 include_prefix, include_prefix_len, verbose, ignore_srcdir,
2455 no_standard_includes, no_standard_cplusplus_includes.
2456 (struct cpp_callbacks): Add simplify_path.
2457 (cpp_handle_options): Remove.
2458 * fix-header.c: Include c-incpath.h.
2459 (read_scan_file): Update to use c-incpath functionality.
2460 * doc/passes.texi: Update.
2462 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
2464 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
2465 satisfies EXTRA_CONSTRAINT 'U'.
2467 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
2469 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
2471 (*tst_extzv_memqi_1_n): Change to a splitter.
2472 (a peephole2): Update.
2474 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
2476 * predict.c (estimate_bb_frequencies): Initialize the sreal
2477 constants once per compilation.
2479 2003-02-28 Richard Henderson <rth@redhat.com>
2481 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
2483 2003-02-28 scott snyder <snyder@fnal.gov>
2485 * flags.h: Add flag_eliminate_unused_debug_types.
2486 * toplev.c: Add flag_eliminate_unused_debug_types.
2487 (f_options): Add -feliminate-unused-debug-types.
2488 * dwarf2out.c (struct file_table): Add emitted member.
2489 (splice_child_die): Fix the parent pointer for the child being
2491 (lookup_filename): Maintain file_table.emitted array. Don't
2492 output .file directive here.
2493 (maybe_emit_file): (new)
2494 (init_file_table): Set up file_table.emitted.
2495 (dwarf2out_source_line): Use maybe_emit_file.
2496 (dwarf2out_start_source_file): Use maybe_emit_file.
2497 (dwarf2out_init): Use maybe_emit_file.
2498 (prune_unused_types_walk_attribs): (new)
2499 (prune_unused_types_mark): (new)
2500 (prune_unused_types_walk): (new)
2501 (prune_unused_types_prune): (new)
2502 (prune_unused_types): (new)
2503 (dwarf2out_finish): Call prune_unused_types if
2504 flag_eliminate_unused_debug_types is set.
2505 * doc/invoke.texi (Option Summary): Add
2506 -feliminate-unused-debug-types.
2507 (Debugging Options): Likewise.
2509 2003-02-28 Geoffrey Keating <geoffk@apple.com>
2511 * doc/invoke.texi: Change .pch to .gch.
2512 * cppfiles.c (open_file_pch): Likewise.
2513 * gcc.c (default_compilers): Likewise.
2515 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
2517 * floatlib.c: Remove.
2519 2003-02-28 Jason Merrill <jason@redhat.com>
2521 * stor-layout.c (variable_size): Leave a "minus 1" outside the
2524 2003-02-28 David Edelsohn <edelsohn@gnu.org>
2526 * config/rs6000/power4.md: Add compare bypass.
2528 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
2530 * config/netbsd.h: Update copyright years.
2531 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
2532 -pthread is specified on the command line.
2534 2003-02-28 Dale Johannesen <dalej@apple.com>
2536 * loop.c (struct movable): Add insert_temp, shrink savemode.
2537 (scan_loop): Accept invariants that require copying; mark as
2539 (combine_movables): Don't combine insert_temp movables.
2540 (move_movables): Insert copies for insert_temp movables.
2541 Don't record the info based on regno for insert_temp's.
2543 2003-02-28 Joel Sherrill <joel@OARcorp.com>
2546 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
2547 this constant defaults to 1.
2549 2003-02-28 Bob Wilson <bob.wilson@acm.org>
2551 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
2553 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
2555 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
2556 ARMv5e processor, not just for XScale. Instructions are predicable.
2557 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
2559 2003-02-28 Nick Clifton <nickc@redhat.com>
2561 * config/arm/arm.c (note_invalid_constants): Change parameter type
2564 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
2566 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
2568 (*tst_extzv_memqi_1_n): Likewise.
2571 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
2573 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
2576 Fri Feb 28 11:09:14 CET 2003 Jan Hubicka <jh@suse.cz>
2578 * combine.c (gen_lowpart_for_combine): Update handling of
2580 * flow.c (life_analysis, mark_used_regs): Likewise.
2581 * regclass.c (subregs_of_mode): Turn into single bitmap.
2582 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
2583 dealing with subregs_of_mode
2584 * regs.h (subregs_of_mode): Update prototype.
2586 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
2588 * emit-rtl.c (set_reg_attrs_for_parm): New function.
2589 * rtl.h (set_reg_attrs_for_parm): New exported function.
2590 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
2591 set_reg_attrs_from_mem.
2593 2003-02-27 Roger Sayle <roger@eyesopen.com>
2594 Zack Weinberg <zack@codesourcery.com>
2596 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
2598 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
2600 * reload1.c (sext_for_mode): Remove.
2601 (reload_cse_move2add): Use trunc_int_for_mode instead of
2603 (move2add_note_store): Likewise.
2604 Reset register information if we see a set in non-integer
2607 2003-02-27 David Edelsohn <edelsohn@gnu.org>
2609 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
2611 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
2612 * config/rs6000/aix51.h: Same.
2613 * config/rs6000/aix52.h: Same.
2614 * config/rs6000/power4.md: Additional VMX bypasses.
2616 2003-02-27 Geert Bosch <bosch@gnat.com>
2618 * toplev.c (print_version): Add indentation for GGC heuristics and
2619 output after printing version information.
2621 2003-02-27 James E Wilson <wilson@tuliptree.org>
2623 * combine.c (simplify_comparison): Require integral mode when
2624 permuting SUBREG with AND.
2626 2003-02-27 Steve Ellcey <sje@cup.hp.com>
2628 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
2630 2003-02-27 Nick Clifton <nickc@redhat.com>
2632 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
2633 deleted when cirrus instructions were added.
2635 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
2637 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
2638 POSIX thread support by default.
2640 2003-02-27 Roger Sayle <roger@eyesopen.com>
2642 * config/i386/cygwin.h: Don't include any other files directly.
2643 * config/i386/mingw32.h: Don't include cygwin.h directly.
2644 * config.gcc (cygwin, mingw32, uwin): Instead make these files
2645 explicit in the tm_files variable.
2647 2003-02-27 Alan Modra <amodra@bigpond.net.au>
2649 * config/rs6000/rs6000.md: Add TI constant splitter.
2651 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
2653 * builtins.c (purge_builtin_constant_p): Handle subreg of
2656 * function.c (assign_stack_local_1): Truncate constant added to
2657 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
2659 2003-02-26 David Edelsohn <edelsohn@gnu.org>
2661 * config.gcc: Add power4 to PowerPC with_cpu list.
2663 Wed Feb 26 19:46:25 CET 2003 Jan Hubicka <jh@suse.cz>
2665 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
2667 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2669 * gcov-dump.c (print_prefix): Fix signedness warning.
2670 * gcov-io.h (struct counter_section, struct counter_section_data): New.
2671 (struct function_info): n_arc_counts field removed, n_counter_sections,
2672 counter_sections fields added.
2673 (struct gcov_info): arc_counts, n_arc_counts fields removed,
2674 n_counter_sections, counter_sections fields added.
2675 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
2677 * profile.h (MAX_COUNTER_SECTIONS): New.
2678 (struct section_info): New.
2679 (struct profile_info): count_instrumented_edges,
2680 count_edges_instrumented_now fields removed, n_sections, section_info
2682 (find_counters_section): Declare.
2683 * profile.c (struct function_list): count_edges field removed,
2684 n_counter_sections, counter_sections fields added.
2685 (set_purpose, label_for_tag, build_counter_section_fields,
2686 build_counter_section_value, build_counter_section_data_fields,
2687 build_counter_section_data_value, build_function_info_fields,
2688 build_function_info_value, build_gcov_info_fields,
2689 build_gcov_info_value): New static functions.
2690 (find_counters_section): New function.
2691 (instrument_edges, get_exec_counts, compute_branch_probabilities,
2692 branch_prob, create_profiler): Modified to support multiple profile
2695 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2697 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
2698 is 8 * STACK_BOUNDARY.
2699 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
2701 2003-02-26 Michael Matz <matz@suse.de>
2703 * ra-colorize.c (merge_moves): Fix list handling.
2705 2003-02-26 Nick Clifton <nickc@redhat.com>
2707 * config/arm/arm.c (is_load_address): Rename to...
2708 (arm_memory_load_p) ... this and make it check for SUBREGs and
2709 constant loads that will be converted into loads from the
2711 (is_cirrus_insn): Rename to ...
2712 (arm_cirrus_insn_p): ... this, for consistency. Replace test
2713 of CIRRUS_NO with CIRRUS_NOT.
2714 (cirrus_reorg): Use renamed functions.
2715 (note_invalid_constants): Change from a void function to bool.
2716 Add an extra parameter, saying whether the fixups should be
2717 pushed. Return true if fixups are needed.
2718 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
2719 of CIRRUS_NO with CIRRUS_NOT.
2720 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
2721 other floating point co-processors can also affect this.
2722 * config/arm/arm.md ("type" attribute): Add mav_farith and
2723 mav_dmult. Replace references to "cirrus_type" attribute with
2725 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
2726 ("cirrus_type" attribute): Delete - use "type" instead.
2727 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
2730 Tue Feb 25 22:46:27 CET 2003 Jan Hubicka <jh@suse.cz>
2732 * objc-act.c: Include cgraph.h
2733 (mark_referenced_methods): New function.
2734 (objc_init): Call it.
2735 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
2737 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
2740 * optabs.c (expand_fix): Do not widen the input operand.
2742 * expr.c (emit_group_store): Fix crash when converting single
2743 register into complex register.
2745 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
2746 * alias.c: Include timevar.h
2747 (init_alias_analysis): Set timevar
2748 * jump.c: Include timevar.h
2749 (rebuild_jump_labels): Set timevar
2750 * regcalss.c: Include timevar.h
2751 (reg_scan): Set timevar
2752 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
2754 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2756 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
2758 * Makefile.in (loop-unroll.o): New.
2759 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
2760 (unroll_and_peel_loops): Declare.
2761 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
2762 flag_old_unroll_loops.
2763 * loop.c (loop_invariant_p): Ditto.
2764 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
2765 flag_old_unroll_all_loops.
2766 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
2767 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
2768 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
2769 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
2770 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
2771 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
2772 PARAM_MAX_ONCE_PEELED_INSNS): New.
2773 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
2774 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
2776 (flag_peel_loops): New.
2777 (lang_independent_options): The new flags added.
2778 (rest_of_compilation): Call new unroller.
2779 (process_options): Setup flags for coexistence of old and new unroller.
2780 * doc/invoke.texi: Document new options.
2781 * doc/passes.texi: Document new unroller pass.
2783 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
2785 * fixinc/fixincl.x: Regenerate
2787 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
2789 * function.c (assign_parms): Set reg_attrs for parameters passed in
2792 2003-02-26 Alan Modra <amodra@bigpond.net.au>
2795 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
2797 2003-02-25 David Edelsohn <edelsohn@gnu.org>
2799 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
2802 2003-02-25 Roger Sayle <roger@eyesopen.com>
2804 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
2805 * cse.c (invalidate_skipped_set): Likewise.
2806 * integrate.c (subst_constants): Likewise.
2807 * jump.c (reversed_comparison_code_parts): Likewise.
2808 * loop.c (canonicalize_condition): Likewise.
2809 * simplify-rtx.c (simplify_relational_operation): Likewise.
2811 2003-02-25 Roger Sayle <roger@eyesopen.com>
2813 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
2814 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
2815 the appropriate macro to define built-in function.
2816 (fmod,fmodf,fmodl): New built-in functions.
2818 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
2820 2003-02-25 Richard Henderson <rth@redhat.com>
2822 * config/i386/i386.c (function_arg): Pass variable sized
2823 structures correctly on the stack.
2825 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
2827 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
2828 does not reduce the cost of SET.
2830 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2833 * config/rs6000/rs6000.c (first_reg_to_save): Handle
2834 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
2835 (rs6000_emit_prologue): Likewise.
2836 (rs6000_emit_epilogue): Likewise.
2837 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
2838 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
2840 2003-02-25 Richard Henderson <rth@redhat.com>
2842 * real.c (real_to_integer2): Force overflow result only for
2845 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
2847 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
2849 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
2850 Richard Henderson <rth@redhat.com>
2852 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
2853 there is no similar load.
2855 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
2856 Richard Henderson <rth@redhat.com>
2858 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
2860 (add_forward_dependence): New function prototype.
2862 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
2864 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
2865 them to haifa-sched.c.
2867 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
2868 haifa_classify_insn): Move them from sched-rgn.c.
2870 * sched-deps.c (add_dependence): Return flag of creating a new
2872 (add_forward_dependence): New function.
2873 (compute_forward_dependences): Use the function.
2875 * sched-ebb.c (earliest_block_with_similiar_load): New function.
2876 (add_deps_for_risky_insns): New function.
2877 (schedule_ebb): Call the function.
2879 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
2881 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
2882 TARGET_VECTOR_OPAQUE_P. Document accordingly.
2884 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
2887 * c-typeck.c (comptypes): Change call to vector_types_compatible
2889 (convert_for_assignment): Call vector_opaque_p instead of
2890 vector_types_compatible.
2891 (really_start_incremental_init): Disallow initialization of opaque
2894 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
2895 Define TARGET_VECTOR_OPAQUE_P.
2896 (TARGET_INITIALIZER): Same.
2898 * target.h (struct gcc_target): Remove vector_types_compatible.
2899 Add vector_opaque_p.
2901 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
2903 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
2904 a vector type. Change return type to bool.
2905 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
2906 (TARGET_VECTOR_OPAQUE_P): Define.
2908 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
2911 (cp_parser_init_declarator): Fix typo in function comments.
2913 Tue Feb 25 12:35:34 CET 2003 Jan Hubicka <jh@suse.cz>
2915 * Makefile.in (lcm.o): Add dependency on function.h
2916 * lcm.c (function.h): Include.
2917 * i386.c (machine_function, ix86_stack_locals,
2918 * ix86_save_varrargs_registers) : Move to
2920 * i386.h (machine_function, ix86_stack_locals,
2921 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
2922 (ix86_optimize_mode_switching): New.
2923 * i386.md (fix patterns): Set ix86_optimize_mode_switching
2925 2003-02-25 Nick Clifton <nickc@redhat.com>
2927 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
2928 of fourth arg is 'fndecl' not 'indirect'. Update comment
2929 describing the function's parameters.
2931 Mon Feb 24 22:08:22 CET 2003 Jan Hubicka <jh@suse.cz>
2933 * combine.c (simplify_shift_const): Fix previous patch.
2935 2003-02-24 Jeff Law <law@redhat.com>
2937 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
2939 (testsi_1, testhi_1, testqi_1): Likewise.
2941 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2943 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
2944 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
2945 * doc/extend.texi (Tru64 Pragmas): Reflect this.
2947 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
2948 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
2949 * fixinc/fixincl.x: Regenerate.
2950 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
2952 Fixes PR c/5059, c/6126, other/9671.
2954 2003-02-24 Roger Sayle <roger@eyesopen.com>
2956 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
2957 from handle_braces in "%{...}".
2959 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
2961 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
2962 (prepare_move_operands): Handle TLS operands.
2963 (tls_symbolic_operand): New.
2964 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
2965 (legitimize_pic_address): Do nothing for the TLS symbol.
2966 (sh_encode_section_info): Handle TLS case.
2967 (sh_strip_name_encoding): Drop TLS encoding.
2968 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
2969 * config/sh/sh.h (SH_TLS_ENCODING): Define.
2970 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
2971 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
2972 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
2973 * config/sh/sh.md: Define TLS UNSPEC constants.
2974 (type): Add tls_load.
2975 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
2976 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
2977 ("tls_initial_exec"): New insn.
2978 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
2979 ("load_gbr"): New insn.
2981 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
2982 * configure: Regenerate.
2984 2003-02-24 Alan Modra <amodra@bigpond.net.au>
2987 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
2988 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
2989 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
2990 (enum block_op_methods): Reorder for better store_expr optimization.
2991 * expr.c (store_expr): Test bit 1 of "want_value" for call param
2992 stores, test bit 0 for original want_value meaning. Pass
2993 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
2994 recursive calls, and calls to expand_param.
2995 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
2996 expected, set target to 0 rather than to subtarget. Formatting.
2998 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
3000 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
3002 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3004 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
3005 new default behavior.
3006 * ggc-common.c: Include sys/resource.h.
3007 (ggc_rlimit_bound): New function.
3008 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
3009 defaults to account for rlimits.
3011 2003-02-22 Richard Henderson <rth@redhat.com>
3013 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
3015 2003-02-22 Kelley Cook <kelley@dwhoops.info>
3017 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
3018 (ix86_tune_string): Rename from ix86_cpu_string.
3020 2003-02-22 Kelley Cook <kelleycook@comcast.net>
3022 * config/i386/i386.c: Replace "mcpu" with "mtune".
3023 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
3024 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
3025 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
3026 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
3028 2003-02-23 Andreas Schwab <schwab@suse.de>
3030 * config.gcc: Delete references to m68k/t-linux and
3032 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
3034 Sat Feb 22 20:22:19 CET 2003 Jan Hubicka <jh@suse.cz>
3036 * toplev.c (rest_of_compilation): Apply fotgotten hunk
3037 of track scheduling patch.
3039 Sat Feb 22 19:29:28 CET 2003 Jan Hubicka <jh@suse.cz>
3041 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
3042 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
3044 Sat Feb 22 12:42:16 CET 2003 Jan Hubicka <jh@suse.cz>
3046 * c-decl.c (c_expand_body_1): Fix.
3048 Sat Feb 22 03:13:36 CET 2003 Jan Hubicka <jh@suse.cz>
3050 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
3052 * cfgcleanup.c (try_forward_edges): Don't check loop structures
3053 when not optimizing.
3054 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
3056 * toplev.c (rest_of_compilation): Duplicate loop headers only when
3057 optimizing; Delete trivially dead insns early; fix optimize check.
3059 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
3060 dependency on cgraph.h
3061 * c-decl.c: Include cgraph.h
3062 (finish_function): Update call of tree_inlinable_function_p.
3063 * c-objc-common.c: Include cgraph.h
3064 * cgraph.h: New file.
3065 * cgraphunit.c: New file.
3066 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
3067 (cgraph_nodes, cgraph_n_nodes): Globalize.
3068 (cgraph_finalize_function, cgraph_finalize_compilation_unit
3069 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
3070 Move into cgraphunit.c
3071 * tree-inline.c: Include cgraph.h
3072 * tree-inline.c: Include cgraph.h
3074 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
3076 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
3077 for copying a register.
3079 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
3082 * toplev.c (process_options): If flag_detailed_statistics is set,
3083 then set time_report as well.
3086 * jump.c (never_reached_warning): Don't fall through BARRRIER
3087 insns. Update comments to reflect what the function really does.
3089 2003-02-21 Roger Sayle <roger@eyesopen.com>
3091 * fold-const.c (omit_one_operand): No longer static.
3092 * tree.h (omit_one_operand): Prototype here.
3093 (div_and_round_double): Keep fold-const.c prototypes together.
3094 * builtins.c (builtin_mathfn_code): Handle binary built-in
3095 funtions, such as "pow" and "atan2".
3096 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
3097 Simplify optimizations using "type" the builtin's return type.
3099 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
3101 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
3102 Fix functionalization typo.
3104 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
3107 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3109 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
3110 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
3112 * ggc-common.c: Include params.h
3113 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
3114 init_ggc_heuristics): New functions.
3115 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
3116 init_ggc_heuristics): Prototype.
3117 * toplev.c (print_version): Output GGC heuristics.
3118 (parse_options_and_default_flags): Call init_ggc_heuristics.
3120 Sat Feb 22 02:35:07 CET 2003 Jan Hubicka <jh@suse.cz>
3122 * i386.c (def_builtin): Special case 64bit builtins.
3123 (MASK_SSE164, MASK_SSE264): New constants.
3124 (builtin_description): Add 64bit builtins.
3125 (ix86_init_mmx_sse_builtins): Likewise.
3126 * i386.h (enum ix86_builtins): Likewise.
3127 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
3128 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
3129 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
3130 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
3131 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
3132 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
3133 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
3135 Sat Feb 22 00:48:22 CET 2003 Jan Hubicka <jh@suse.cz>
3137 * i386.c (builtin_description): Add __builtin_ia32_paddq and
3138 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
3139 and __builtin_ia32_psubq128.
3140 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
3141 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
3142 (mmx_adddi3, mmx_subdi3): New.
3143 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
3144 * xmmintrin.h (_mm_movepi64_pi64): New.
3145 (_mm_add_epi64, _mm_sub_epi64): fix.
3146 (_mm_mul_pu16): Rename to...
3147 (_mm_mul_su32): ... this one.
3149 * builtins.c (expand_builtin_expect): Do not predict
3150 flag_guess_branch_prob is not set.
3151 * c-semantics.c (expand_stmt): Likewise.
3152 * predict.c (predict_insn): Likewise.
3153 * stmt.c (expand_continue_loop): Likewise.
3154 * toplev.c (rest_of_compilation): Do not call
3155 note_prediction_to_br_prob and note_prediction_to_br_prob
3156 when not optimizing.
3158 Fri Feb 21 23:10:13 CET 2003 Jan Hubicka <jh@suse.cz>
3160 * cfgrtl.c (commit_edge_insertions): Call
3161 find_many_sub_basic_block only when some code has been emitted.
3162 (commit_edge_insertions_watch_calls): Bring into sync with
3163 commit_edge_insertions
3165 Fri Feb 21 20:41:29 2003 J"orn Rennecke <joern.rennecke@superh.com>
3167 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
3169 * sh.md (binary_sf_op): Use extra constant operand instead of
3170 negating constant operand 4.
3171 * sh.c (sh_expand_binop_v2sf): Supply it.
3173 2003-02-21 Zack Weinberg <zack@codesourcery.com>
3175 * cpphash.h (struct lexer_state): Add directive_wants_padding.
3176 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
3177 for directives of type INCL.
3178 (glue_header_name, parse_include): Use get_token_no_padding.
3179 * cppmacro.c (replace_args): If directive_wants_padding,
3180 provide padding tokens.
3182 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
3184 * config/h8300/h8300.md (a peephole2): New.
3186 Fri Feb 21 11:05:44 CET 2003 Jan Hubicka <jh@suse.cz>
3188 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
3189 (commit_edge_insertions): Call find_many_sub_basic_blocks
3191 * reg-stack.c (convert_regs): Cleax aux for blocks.
3193 Fri Feb 21 10:29:52 CET 2003 Jan Hubicka <jh@suse.cz>
3195 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
3197 2003-02-21 Glen Nakamura <glen@imodulo.com>
3199 PR optimization/8613
3200 * builtins.c (expand_builtin): Emit postincrements before expanding
3203 2003-02-21 Ben Elliston <bje@redhat.com>
3206 * doc/install.texi (Configuration): Explain using $HOME instead of
3207 the ~ metacharacter when referring to home directories.
3209 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
3211 * configure.in (TARGET_SYSTEM_ROOT): Set default to
3212 ${exec_prefix}/${target_alias}/sys-root. Match explicit
3213 '${exec_prefix}' (in addition to the expansion thereof) as
3215 * configure: Rebuilt.
3217 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
3219 * config/h8300/h8300.md (addhi3_incdec): Change the name to
3221 (addsi3_incdec): Change the name to *addsi3_incdec.
3223 2003-02-20 Roger Sayle <roger@eyesopen.com>
3225 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
3227 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
3230 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
3231 options to be ignored.
3232 (c_common_decode_option): Ignore them when preprocessing.
3234 Thu Feb 20 21:41:19 CET 2003 Jan Hubicka <jh@suse.cz>
3236 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
3238 (lang_independent_options): Add -fsched2-use-superblocks
3240 (rest_of_compilation): Deal with it.
3241 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
3242 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
3244 * rtl.h (reg_to_stack): Update prototype.
3245 * reg-stack.c (reg_to_stack): Return when something has changed;
3246 update liveness when executing after superblock scheduling.
3248 * combine.c (simplify_shift_const): Simplify few special cases
3251 2003-02-20 David Edelsohn <edelsohn@gnu.org>
3253 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
3254 (add.,subf.,neg.): Change attribute to fast_compare.
3255 All DFA descriptions updated.
3257 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
3259 Change base class access representation.
3260 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
3261 TREE_VIA_PRIVATE): Remove.
3262 (BINFO_BASEACCESSES): New binfo elt.
3263 (BINFO_BASEACCESS): New accessor.
3264 (BINFO_ELTS): Increase.
3265 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
3266 (access_public_node, access_protected_node,
3267 access_private_node): New global nodes.
3268 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
3269 * dbxout.c (dbxout_type): Adjust.
3270 * dwarf2out.c (gen_inheritance_die): Add access parameter.
3271 (gen_member_die): Adjust.
3272 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
3273 (output_type): Adjust.
3274 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
3276 Change base class access representation. Share virtual base
3278 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
3280 * cp/class.c (build_base_path): Likewise.
3281 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
3282 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
3283 (make_new_vtable): Adjust.
3284 (force_canonical_binfo_r): Delete.
3285 (force_canonical_binfo): Delete.
3286 (mark_primary_virtual_base): Delete.
3287 (dfs_unshared_virtual_bases): Delete.
3288 (mark_primary_bases): Adjust.
3289 (maybe_warn_about_overly_private_class): Adjust.
3290 (dfs_base_derived_from): Delete.
3291 (base_derived_from): Follow the inheritance chain.
3292 (struct find_final_overrider_data): Add vpath member.
3293 (dfs_find_final_overrider): Adjust.
3294 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
3295 (find_final_overrider): Adjust.
3296 (update_vtable_entry_for_fn): Adjust.
3297 (modify_all_vtables): Adjust.
3298 (walk_subobject_offsets): Adjust.
3299 (layout_nonempty_base_or_field): Adjust.
3300 (layout_empty_base): Remove last parameter. Adjust.
3301 (build_base_field): Adjust.
3302 (build_base_fields): Adjust.
3303 (propagate_binfo_offsets): Remove last parameter. Adjust.
3304 (dfs_set_offset_for_unshared_vbases): Delete.
3305 (layout_virtual_bases): Adjust.
3306 (finish_struct_1): Adjust.
3307 (init_class_processing): Don't init access nodes.
3308 (dfs_get_primary_binfo): Delete.
3309 (get_primary_binfo): Adjust.
3310 (dump_class_hierarchy_r): Remove most derived arg, add IGO
3312 (dump_class_hierarchy): Adjust.
3313 (finish_vtbls): Adjust.
3314 (get_original_base): Delete.
3315 (build_vtt_inits): Adjust.
3316 (dfs_build_secondary_vptr_vtt_inits): Adjust.
3317 (dfs_ctor_vtable_bases_queue_p): Adjust.
3318 (build_ctor_vtbl_group): Adjust.
3319 (dfs_accumulate_vtbl_inits): Adjust.
3320 (build_vtbl_initializer): Adjust.
3321 (build_vbase_offset_vtbl_entries): Adjust.
3322 (add_vcall_offset_vtbl_entries_1): Adjust.
3323 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
3324 (access_*_node): Remove.
3325 (CANONICAL_BINFO): Delete.
3326 (BINFO_UNSHARED_MARKED): Remove.
3327 (BINFO_MARKED): Set LANG_FLAG_0 directly.
3328 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
3329 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
3330 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
3332 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
3333 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
3334 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
3336 (BINFO_DEPENDENT_BASE_P): New.
3337 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
3339 (markedp, unmarkedp): Adjust.
3340 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
3341 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
3342 find_vbase_instance, binfo_for_vbase): Delete.
3343 (copied_binfo, original_binfo): Declare.
3344 (finish_base_specifier): Add virtual_p arg.
3345 (unshare_base_binfos): Delete.
3346 (copy_base_binfos): Declare.
3347 (reverse_path): Delete.
3348 * cp/decl.c (xref_basetypes): Access and virtuality passed
3349 differently. Don't copy direct base binfos here. Call
3351 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
3352 (initialize_vtbl_ptrs): Adjust.
3353 (expand_member_init): Adjust.
3354 * cp/parser.c (cp_parser_base_specifier): Adjust.
3355 * cp/pt.c (instantiate_class_template): Adjust.
3356 (get_template_base_recursive): Adjust.
3357 * cp/rtti.c (get_pseudo_ti_init): Adjust.
3358 (get_pseudo_ti_desc): Adjust.
3359 * cp/tree.c (unshare_base_binfos): Rename to ...
3360 (copy_base_binfos): ... here, reimplement.
3361 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
3362 (reverse_path): Remove.
3363 * cp/typeck.c (get_delta_difference): Adjust error messages.
3364 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
3365 * cp/search.c (lookup_base_r): Adjust.
3366 (dynamic_cast_base_recurse): Adjust.
3367 (canonical_binfo): Remove.
3368 (dfs_canonical_queue): Remove.
3369 (dfs_assert_unmarked_p): Remove.
3370 (assert_canonical_unmarked): Remove.
3371 (shared_marked_p, shared_unmarked_p): Remove.
3372 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
3373 (dfs_access_in_type): Adjust.
3374 (access_in_type): Adjust.
3375 (dfs_accessible_queue_p): Adjust.
3376 (dfs_accessible_p): Adjust.
3377 (is_subobject_of_p_1, is_subobject_of_p): Remove.
3378 (struct lookup_field_info): Remove from_dep_base_p field.
3379 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
3380 (lookup_field_r): Remove dependent base code.
3381 (lookup_member): Likewise.
3382 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
3383 (dfs_unmarked_real_bases_queue_p): Remove.
3384 (dfs_marked_real_bases_queue_p): Remove.
3385 (dfs_skip_vbases): Remove.
3386 (dfs_get_pure_virtuals): Adjust.
3387 (markedp, unmarkedp): Adjust.
3388 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
3389 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
3390 (dfs_unmark): Adjust.
3391 (dfs_get_vbase_types):Remove.
3392 (dfs_build_inheritance_graph_order): Remove.
3393 (get_vbase_types): Remove
3394 (dfs_find_vbase_instance): Remove.
3395 (find_vbase_instance): Remove.
3396 (dfs_debug_unmarkedp): Adjust.
3397 (dependent_base_p): Remove.
3398 (dfs_push_type_decls): Adjust.
3399 (dfs_push_decls): Adjust.
3400 (dfs_no_overlap_yet): Adjust.
3401 (copied_binfo): New function.
3402 (original_binfo): New function.
3403 (binfo_for_vbase): Remove.
3405 Change base class access representation.
3406 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
3407 (add_interface_do): Likewise.
3409 2003-02-20 David Edelsohn <edelsohn@gnu.org>
3411 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3412 * config/rs6000/power4.md (power4-store,power4-vecstore): New
3414 (power4-fpstore): Compact.
3416 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
3418 * config/h8300/h8300.md (*iorsi3_w): New.
3420 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
3422 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
3423 * rtl.c (reg_note_name): Likewise.
3424 * rtl.h (enum reg_note): Likewise.
3425 * doc/invoke.texi: Likewise.
3426 * doc/rtl.texi: Likewise.
3428 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
3430 * bb-reorder.c (find_traces_1_round): Fix comment typo.
3432 2003-02-19 Roger Sayle <roger@eyesopen.com>
3434 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
3435 addition in the presence of signaling NaNs.
3437 2003-02-19 Krister Walfridsson <cato@df.lth.se>
3439 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
3441 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
3443 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
3444 ORing with 0xffff??00 with the highest bit of the ?? part set.
3445 (compute_logical_op_length): Update.
3446 (compute_logical_op_cc): Likewise.
3448 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
3450 * bb-reorder.c (find_traces_1_round): Fixed condition for small
3451 destination block with multiple predecessors.
3452 (connect_traces): Check whether the block is a start of trace.
3454 Wed Feb 19 19:00:24 CET 2003 Jan Hubicka <jh@suse.cz>
3456 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
3457 * function.c (assign_params): Likewise.
3458 * arm-protos.h (arm_init_cumulative_args): Update prototype.
3459 * arm.c (arm_init_cumulative_args): Update function.
3460 * arm.h (INIT_CUMULATIVE_ARGS): Update.
3461 * avr-protos.h (init_cumulative_args): Update prototype.
3462 * avr.c (init_cumulative_args): Update function.
3463 * avr.h (INIT_CUMULATIVE_ARGS): Update.
3464 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
3465 * d30v.c (d30v_init_cumulative_args): Update function.
3466 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
3467 * frv-protos.h (frv_init_cumulative_args): Update prototype.
3468 * frv.c (frv_init_cumulative_args): Update function.
3469 * frv.h (INIT_CUMULATIVE_ARGS): Update.
3470 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
3471 * pa.h (INIT_CUMULATIVE_ARGS): Update.
3472 * sparc-protos.h (init_cumulative_args): Update prototype.
3473 * sparc.c (init_cumulative_args): Update function.
3474 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
3475 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
3477 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
3479 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
3480 (*ashiftsi_sextqi_7): Likewise.
3482 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3484 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
3487 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
3488 for C++ on IRIX 6.5.1[89].
3489 * fixinc/tests/base/internal/sgimacros.h: New file.
3491 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
3492 * fixinc/tests/base/internal/wchar_core.h: New file.
3494 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
3495 socklen_t definition.
3496 * fixinc/fixincl.x: Regenerate.
3497 * fixinc/tests/base/sys/socket.h: New file.
3498 Fixes PR libgcj/9652.
3500 Wed Feb 19 17:22:51 CET 2003 Jan Hubicka <jh@suse.cz>
3502 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
3504 2003-02-19 David Edelsohn <edelsohn@gnu.org>
3506 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
3507 align_jumps_max_skip and align_loops_max_skip.
3509 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
3511 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
3512 test size if named section.
3514 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
3516 * expr.c (expand_expr): Use gen_int_mode for the argument
3519 Wed Feb 19 14:22:42 CET 2003 Jan Hubicka <jh@suse.cz>
3521 * i386.md (cosxf2): Fix conditional.
3523 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
3525 * config/h8300/h8300.md (extendqisi2): Change to an expander.
3526 (*extendqisi2_h8300): New.
3527 (*extendqisi2_h8300hs): Likewise.
3529 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
3531 * config/h8300/h8300-protos.h: Update the prototype for
3532 split_adds_subs. Remove the prototypes for
3533 const_int_le_2_operand and const_int_le_6_operand.
3534 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
3535 (const_int_le_2_operand): Remove.
3536 (const_int_le_6_operand): Likewise.
3537 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
3538 for const_int_le_2_operand and const_int_le_6_operand.
3539 * config/h8300/h8300.md: Update all uses of split_adds_subs.
3542 Tue Feb 18 23:50:59 CET 2003 Jan Hubicka <jh@suse.cz>
3544 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
3545 (cgraph_expand_function): Rewrite.
3547 2003-02-18 Matt Austern <austern@apple.com>
3549 * toplev.c, langhooks.c, langhooks-def.h: Move
3550 write_global_declarations from toplev.c to langhooks.c.
3552 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
3554 * config/h8300/h8300.c (general_operand_src): Always check
3556 (general_operand_dst): Likewise.
3558 2003-02-18 Roger Sayle <roger@eyesopen.com>
3560 * convert.c (convert_to_real): Also optimize (float)log(x) into
3561 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
3563 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
3565 * config/sh/sh.c (unspec_caller_rtx_p): New.
3566 (sh_cannot_copy_insn_p): New.
3567 (TARGET_CANNOT_COPY_INSN_P): New.
3569 2003-02-18 Richard Henderson <rth@redhat.com>
3571 * c-common.c (handle_used_attribute): Accept static data too.
3573 2003-02-18 Nick Clifton <nickc@redhat.com>
3574 Aldy Hernandez <aldyh@redhat.com>
3576 * testsuite/gcc.dg/20030218-1.c: New.
3578 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
3580 * target-def.h (TARGET_INITIALIZER): Add
3581 TARGET_VECTOR_TYPES_COMPATIBLE.
3582 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
3584 * target.h (struct gcc_target): Add field vector_types_compatible.
3586 * c-typeck.c (comptypes): Take into account
3587 TARGET_VECTOR_TYPES_COMPATIBLE.
3588 (convert_for_assignment): Same.
3590 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
3591 (rs6000_spe_vector_types_compatible): New.
3592 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
3594 2003-02-19 Andreas Schwab <schwab@suse.de>
3596 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
3597 * toplev.c: Include langhooks-def.h.
3599 2003-02-18 Chris Demetriou <cgd@broadcom.com>
3601 * config/mips/mips.h (enum processor_type): Sort entries
3603 * config/mips/mips.md (define_attr cpu): Sync with processor_type
3604 enum values, including adding entries that were missing.
3606 Tue Feb 18 20:15:54 2003 J"orn Rennecke <joern.rennecke@superh.com>
3608 * sh.c (calc_live_regs): Also check GET_CODE when checking if
3609 initial value for PR_REG is still the PR_REG register.
3611 2003-02-18 Jim Wilson <wilson@redhat.com>
3613 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
3614 instruction in output template.
3615 (bsp_value): Change output template from string to C code, add %,
3616 before actual instruction.
3617 (flushrs): Mark as not predicable.
3619 2003-02-18 Krister Walfridsson <cato@df.lth.se>
3621 * inclhack.def (netbsd_bogus_semicolon): New fix.
3622 * fixincl.x: Rebuilt.
3623 * tests/base/ctype.h: Update.
3625 2003-02-18 Roger Sayle <roger@eyesopen.com>
3627 * fold-const.c (negate_expr_p): New function to determine whether
3628 an expression can be negated cheaply.
3629 (fold) [MINUS_EXPR]: Use it to determine whether to transform
3630 -A - B into -B - A for floating point types.
3632 2003-02-18 Roger Sayle <roger@eyesopen.com>
3634 * sbitmap.c (sbitmap_resize): New function.
3635 * sbitmap.h (sbitmap_resize): Prototype here.
3636 * recog.c (split_all_insns): Use sbitmap_resize.
3638 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
3640 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
3642 (extendqisi2): Likewise.
3643 (*extendhisi2_h8300): Likewise.
3645 2003-02-18 Matt Austern <austern@apple.com>
3647 * langhooks.h, langhooks-def.h: introduce new langhook,
3648 final_write_globals, with write_global_declarations as default.
3649 * toplev.c: Move invocation of wrapup_global_declarations from
3650 compile_file to new function, write_global_declarations. Change
3651 compile_file to use final_write_globals hook. Change
3652 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
3655 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3657 * pa.md: Correct and enhance comment.
3659 2003-02-18 Geoffrey Keating <geoffk@apple.com>
3661 * gcc.c (validate_switches): Don't scan past closing '}'.
3663 2003-02-18 Ben Elliston <bje@redhat.com>
3666 * doc/extend.texi (Function Attributes): Document the effect of
3667 the C++ "this" parameter on the counting of arguments for the
3668 "format" and "format_arg" attributes.
3670 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
3672 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
3676 Mon Feb 17 16:16:54 CET 2003 Jan Hubicka <jh@suse.cz>
3678 * recog.c (split_all_insns): Fix memory overflow.
3680 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
3682 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
3684 (*cmphi_h8300): Likewise.
3685 (*cmphi_h8300hs): Likewise.
3687 (7 peephole2): Likewise.
3689 Sun Feb 16 23:07:52 CET 2003 Jan Hubicka <jh@suse.cz>
3691 * c-typeck.c (build_c_cast): Fold constant variables into
3694 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3696 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
3697 (Binaries): Ditto for Sinix/Reliant Unix.
3699 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
3701 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
3702 not overlap the final result register.
3704 2003-02-16 Arend Bayer <arend.bayer@web.de>
3705 Richard Henderson <rth@redhat.com>
3708 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
3709 rearrange mult arguments for less recursion.
3710 (extract_muldiv): New. Prevent runaway recursion.
3712 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
3714 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
3717 2003-02-15 Roger Sayle <roger@eyesopen.com>
3719 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
3720 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
3721 (ext_80387_constants_table): Global table of 80387 special constants
3722 guarded by ext_80387_constants_init flag when not initialized.
3723 (init_ext_80387_constants): New function to initialize this table.
3724 (standard_80387_constant_p): Extend to recognize extra 80387
3725 constants, in XFmode, on processors where this is a win.
3726 (standard_80387_constant_opcode): New function to return the
3727 opcode associated with standard_80387_constant_p.
3728 (standard_80387_constant_rtx): New function to return the XFmode
3729 CONST_DOUBLE associated with standard_80387_constant_p.
3730 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
3732 * config/i386/i386-protos.h (standard_80387_constant_opcode):
3734 (standard_80387_constant_rtx): Likewise.
3736 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
3737 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
3738 *movtf_integer): Simplify using new standard_80387_constant_opcode.
3740 2003-02-15 Geoffrey Keating <geoffk@apple.com>
3742 * doc/invoke.texi (Optimize Options): Correct @option syntax.
3744 2003-02-15 Richard Henderson <rth@redhat.com>
3746 * Makefile.in (cfglayout.o): Depend on TARGET_H.
3747 * cfglayout.c: Include target.h.
3748 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
3749 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
3750 * target.h (struct gcc_target): Add cannot_copy_insn_p.
3752 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
3753 (TARGET_CANNOT_COPY_INSN_P): New.
3754 (override_options): Revert 2003-02-08 hack.
3756 2003-02-15 Richard Henderson <rth@redhat.com>
3758 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
3759 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
3761 2003-02-15 David Edelsohn <edelsohn@gnu.org>
3763 * config/rs6000/rs6000.h (processor_type): Add PPC440.
3764 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3765 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3766 TARGET_SCHED_VARIABLE_ISSUE): Define.
3767 (rs6000_use_dfa_pipeline_interface): New function.
3768 (rs6000_multipass_dfa_lookahead): New Function.
3769 (rs6000_variable_issue): New function.
3770 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
3771 (rs6000_issue_rate): Add PPC440.
3772 * config/rs6000/rs6000.md (unspec list): Correct typo.
3773 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
3774 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
3775 cmp, delayed_cr, mfcr, mtcr.
3776 (automata_option): Set "ndfa".
3777 (extendMMNN2): Update attributes.
3778 (movcc_internal1): Discourage move to non-cr0. Update
3780 (movMM_update): Update attributes.
3781 (cmpMM_internal): Update attributes.
3782 (sCC CR materialization): Update attributes.
3783 (branch patterns): Do not discourage non-cr0.
3784 (cr logical patterns): Prefer destructive register allocation.
3786 (movesi_from_cr): Update attribute.
3787 (mtcrf_operation): Update attribute.
3788 (mtcrfsi): Update attribute.
3789 * config/rs6000/40x.md: New file.
3790 * config/rs6000/603.md: New file.
3791 * config/rs6000/6xx.md: New file.
3792 * config/rs6000/7450.md: New file.
3793 * config/rs6000/7xx.md: New file.
3794 * config/rs6000/mpc.md: New file.
3795 * config/rs6000/power4.md: New file.
3796 * config/rs6000/rios1.md: New file.
3797 * config/rs6000/rios2.md: New file.
3798 * config/rs6000/rs64.md: New file.
3799 [Some DFA descriptions based on work by Michael Hayes]
3801 2003-02-15 Richard Henderson <rth@redhat.com>
3803 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
3804 successors with multiple predecessors.
3805 (connect_traces): Try harder to copy traces of length 1.
3807 * function.h (struct function): Add computed_goto_common_label,
3808 computed_goto_common_reg.
3809 * function.c (free_after_compilation): Zap them.
3810 * stmt.c (expand_computed_goto): Use them to produce one
3811 indirect branch per function.
3813 2003-02-15 Richard Henderson <rth@redhat.com>
3815 * cfgcleanup.c: Include params.h.
3816 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
3817 too many outgoing edges from a block.
3818 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
3819 * params.def (max-crossjump-edges): New.
3820 * doc/invoke.texi: Document it.
3822 2003-02-15 Richard Henderson <rth@redhat.com>
3824 * recog.c (split_all_insns): Include new blocks in life update;
3825 do a global life update.
3827 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
3829 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
3831 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
3834 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3836 PR optimization/7702
3837 * reload1.c (reload_cse_simplify_set): Honor
3838 CANNOT_CHANGE_MODE_CLASS.
3840 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
3842 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
3844 * config/mn10300/mn10300-protos.h: Declare it.
3845 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
3846 attribute cc of instructions that may use clr.
3848 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
3850 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
3851 (x - (x & y)) is found.
3853 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3855 * configure.in: Fix typo.
3856 * configure: Regenerate.
3858 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
3860 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
3862 2003-02-13 Adam Nemet <anemet@lnxw.com>
3865 * combine.c: Fix spelling in comment.
3866 (cached_nonzero_bits): New function.
3867 (cached_num_sign_bit_copies): New function.
3868 (nonzero_bits_with_known): New macro.
3869 (num_sign_bit_copies_with_known): New macro.
3870 (nonzero_bits1): Rename from nonzero_bits. Add three new
3871 arguments. Change calls from nonzero_bits to
3872 nonzero_bits_with_known.
3873 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
3874 three new arguments. Change calls from num_sign_bit_copies to
3875 num_sign_bit_copies_with_known.
3876 (nonzero_bits): New macro.
3877 (num_sign_bit_copies): New macro.
3878 (update_table_tick): Don't traverse identical subexpression more
3880 (get_last_value_validate): Likewise.
3882 2003-02-13 Zack Weinberg <zack@codesourcery.com>
3884 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
3885 * function.h (struct emit_status): Length of regno_pointer_align
3886 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
3887 not regno_pointer_align_length (i.e. length actually used, not
3888 length as allocated)
3890 * config/i386/i386.c (struct stack_local_entry): New.
3891 (struct machine_function): Replace huge array with alist.
3892 (assign_386_stack_local): Change to match.
3894 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
3896 * inclhack.def (hpux_long_double): Tighten select and add bypass
3898 * fixincl.x: Rebuilt.
3900 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
3902 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
3903 edge and block ends with a jump insn it must be simple jump.
3905 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
3907 * Makefile.in (PREPROCESSOR_DEFINES): Add
3908 @TARGET_SYSTEM_ROOT_DEFINE@.
3909 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
3910 is specified or if building a cross compiler.
3911 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
3912 if the sysroot is under $exec_prefix.
3913 * configure: Regenerated.
3914 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
3916 (struct default_include): Add add_sysroot field.
3917 (cpp_SYSROOT): Declare.
3918 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
3920 (cpp_SYSROOT): New variable.
3921 * cppinit.c (cpp_create_reader): Initialize
3922 CPP_OPTION (pfile, sysroot).
3923 (init_standard_includes): Handle add_sysroot. Do not
3924 add unrelocated copies of relocated directories.
3925 (COMMAND_LINE_OPTIONS): Add -isysroot.
3926 (cpp_handle_option): Handle -isysroot.
3927 * cpplib.h (struct cpp_options): Add sysroot member.
3928 * gcc.c (The Specs Language): Update description of %I.
3929 (target_system_root_changed): New variable.
3930 (process_command): Conditionalize make_relative_prefix call
3931 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
3932 target_system_root_changed.
3933 (do_spec_1): Add -isysroot to %I.
3934 * doc/invoke.texi (Spec Files): Update description of %I.
3935 * doc/install.texi (--with-sysroot): Update comment about
3938 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
3940 * config/h8300/h8300.md (a peephole2): New.
3942 2003-02-13 Robert Lipe <robertlipe@usa.net>
3943 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3945 * doc/install.texi (Specific): Update three SCO-related URLs.
3947 2003-02-13 Andreas Schwab <schwab@suse.de>
3949 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
3950 Parenthesize properly.
3951 (NPREDECESORS): Parenthesize properly.
3953 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
3955 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
3957 2003-02-12 Roger Sayle <roger@eyesopen.com>
3959 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
3960 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
3962 * reg-stack.c (subst_stack_regs_pat): Add support for binary
3963 UNSPEC instructions (e.g. "fpatan").
3965 2003-02-12 Mike Stump <mrs@apple.com>
3967 * varray.c (element_size): Remove.
3970 (varray_init): Use new interface.
3971 (varray_grow): Use new interface.
3972 (varray_clear): Use new interface.
3974 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
3976 * config/rs6000/spe.h: Add casts to the arguments of the following
3977 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
3978 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
3979 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
3980 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
3981 __ev_get_u16, __ev_get_s16.
3983 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3985 * config/h8300/h8300.md (a peephole2): New.
3987 Wed Feb 12 22:47:18 CET 2003 Jan Hubicka <jh@suse.cz>
3989 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
3990 (OBJS): Add callgraph.o
3992 * c-decl.c (expand_body_1): Break out from ...
3993 (expand_body): This one; change calling convention
3994 (finish_function): Move some of expand_body logic here.
3995 (c_expand_deferred_function): Update call of expand_body
3996 (c_expand_stmt): Use c_expand_body_1.
3997 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
3998 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
3999 * c-tree.h (c_expand_body): Declare.
4000 * callgraph.c: New file.
4001 * flags.h (flag_unit_at_a_time): Declare.
4002 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
4003 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
4004 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
4005 * langhooks.h (struct lang_hooks_for_callgraph): New.
4006 (struct lang_hooks): Add callgraph field.
4007 * toplev.c (flag_unit_at_a_time): New.
4008 (lang_independent_options): Add flag_unit_at_a_time.
4009 (process_options): Disable unit-at-a-time mode for frontends not
4010 supporting callgraph.
4011 * tree-inline.c (typedef struct inline_data): Add "decl"
4012 (expand_call_inline): Update callgraph.
4013 (optimize_inline_calls): Set id.decl.
4014 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
4015 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
4016 cgraph_calls_p): Declare.
4017 * invoke.texi (-funit-at-a-time): Document
4019 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
4021 * config/rs6000/spe.h: Fix misc formatting.
4022 (__ev_create_ufix32_fs): Cast ev argument.
4023 (__ev_create_sfix32_fs): Same.
4024 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
4025 (__ev_get_ufix32_fs_internal): Same.
4027 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
4029 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
4030 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
4032 2003-02-12 Zack Weinberg <zack@codesourcery.com>
4034 * cpplib.c (do_include_common): Move warnings for
4035 #include_next and #import out to callers. Use early-return
4036 instead of nested ifs. Don't do check_eol here.
4037 (parse_include): Do check_eol here with the rest of the
4039 (do_include_next, do_import): Now handle warnings.
4041 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4043 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
4045 Wed Feb 12 15:19:42 CET 2003 Jan Hubicka <jh@suse.cz>
4047 * predict.c (estimate_probability): Fix roundoff error.
4049 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
4051 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
4052 (two peephole2): New.
4054 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
4056 * config/h8300/h8300.md (several peephole2): Replace
4057 find_regno_note with peep2_reg_dead_p.
4059 2003-02-11 Richard Henderson <rth@redhat.com>
4061 * gcse.c (lookup_set): Remove unused argument PAT. Update
4064 2003-02-11 Geoffrey Keating <geoffk@apple.com>
4066 * diagnostic.c (real_abort): New.
4067 (diagnostic_report_diagnostic): Call real_abort on error.
4068 * diagnostic.h (diagnostic_abort_on_error): New.
4069 (struct diagnostic_context): Add abort_on_error field.
4070 * toplev.c (setup_core_dumping): New.
4071 (decode_d_option): Handle 'H' case.
4072 * doc/invoke.texi (Debugging Options): Document -dH.
4074 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
4076 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
4077 which refers to obsolete directories.
4079 2003-02-11 Richard Henderson <rth@redhat.com>
4081 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
4083 Mon Oct 21 17:07:47 CEST 2002 Jan Hubicka <jh@suse.cz>