1 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
3 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
4 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
5 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
8 * config/v850/lib1funcs.asm, config/v850/rtems.h,
9 config/v850/v850-c.c, config/v850/v850-protos.h,
10 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
13 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
15 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
16 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
19 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
21 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
23 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
25 * fixinc/fixinc.interix: Remove dead code (most of it).
26 * fixinc/fixinc.dgux: Remove.
28 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
29 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
31 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33 * pa.c (pa_init_builtins): Fix warning.
35 2003-03-12 Steve Ellcey <sje@cup.hp.com>
37 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
38 (ASM_OUTPUT_XDATA_SHORT): Remove.
39 (ASM_OUTPUT_XDATA_INT): Remove.
40 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
41 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
42 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
43 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
45 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
48 * expr.c (store_expr): Don't attempt to store void-typed trees,
49 just evaluate them for side effects.
51 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
53 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
54 * cppinit.c (push_include): Move with changes to cppfiles.c.
55 (cpp_read_main_file): Mark named operators here...
56 (cpp_finish_options): ...not here. Update.
57 (_cpp_maybe_push_include_file): Update.
58 * cpplib.h (cpp_push_include, cpp_rename_file): New.
60 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
62 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
63 _gcc_COMPUTE_GAS_VERSION.
64 * configure.in: Use them.
65 * configure: Regenerate.
67 2003-03-12 Bob Wilson <bob.wilson@acm.org>
69 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
71 (subdi3): Reorder emitted instructions.
73 2003-03-12 Andreas Jaeger <aj@suse.de>
75 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
76 NETBSD_OS_CPP_BUILTINS_LP64.
78 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
80 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
81 Rearrange. Reorganize.
82 * configure.in: Rearrange.
83 * configure: Regenerate.
85 2003-03-12 Andreas Jaeger <aj@suse.de>
87 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
90 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
93 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
95 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
97 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
98 NETBSD_OS_CPP_BUILTINS_LP64.
99 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
100 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
102 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
104 Wed Mar 12 19:04:39 CET 2003 Jan Hubicka <jh@suse.cz>
106 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
108 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
110 Fix PR target/9797 and PR c/9853.
111 * stmt.c (expand_decl_init): Call push_temp_slots () and
114 Wed Mar 12 16:30:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
116 * sh.c: Include basic-block.h.
117 (sh_output_mi_thunk, emit_load_ptr): New functions.
118 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
120 2003-03-12 Nick Clifton <nickc@redhat.com>
122 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
123 (CALL_USED_REGISTERS): Likewise.
124 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
125 describing how this value is calculated.
127 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
129 * configure.in (rlim_t): Define to long if no valid definition
130 found in sys/resource.h.
131 * config.in, configure: Regenerate.
133 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
135 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
136 TARGET_OS_CPP_BUILTINS.
137 * config/mcore/mcore-pe.h: Similarly.
138 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
139 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
141 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
144 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
145 only if it is a VAR_DECL.
147 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
150 * config/i386/i386.md (jcc_1): Fix range.
153 (doloop_end_internal): Likewise.
155 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
157 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
158 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
159 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
160 DLL_IMPORT_EXPORT_PREFIX and "i."
161 (i386_pe_dllexport_name_p): Here.
162 (i386_pe_dllimport_name_p): Here.
163 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
164 not 9 chars when getting identifier name.
165 (i386_pe_mark_dllimport): Here.
166 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
167 not 9 chars when getting identifier name. Correct comment.
168 (i386_pe_strip_name_encoding): Here. Add comments for different
170 (gen_fastcall_suffix): Break down xmalloc() argument to
172 (gen_stdcall_suffix): Likewise.
173 Update copyright year.
175 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
178 * config/i386/i386.md (movsi_1): Remove special alternatives
180 (movsi_1_nointernunit): Likewise.
182 * config/i386/i386.c (memory_address_length): Do not use
183 short displacement when there is no base.
184 (ix86_attr_length_address_default): Handle LEA instructions.
186 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
188 * c-cppbuiltin.c (builtin_define_std): Make non-static.
190 2003-03-11 Loren James Rittle <ljrittle@acm.org>
192 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
193 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
194 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
195 * config/freebsd.h (CPP_PREDEFINES): Remove.
196 (TARGET_OS_CPP_BUILTINS): New.
197 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
198 instead of TARGET_OS_CPP_BUILTINS.
199 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
201 2003-03-11 Geoffrey Keating <geoffk@apple.com>
203 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
205 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
207 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
208 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
210 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
212 Tue Mar 11 21:19:03 2003 Alexandre Oliva <aoliva@redhat.com>
214 * toplev.c (independent_decode_option): Return success for --help,
215 --target-help and --version.
217 Tue Mar 11 20:20:14 2003 Alexandre Oliva <aoliva@redhat.com>
219 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
220 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
222 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
224 (LINK_SPEC): Let endian options affect the linker emulation name.
226 Tue Mar 11 22:35:39 2003 J"orn Rennecke <joern.rennecke@superh.com>
228 * sh.md (reload_inqi): Fix mode for source in second set.
230 Tue Mar 11 22:48:03 CET 2003 Jan Hubicka <jh@suse.cz>
232 * cselib.c (cselib_invalidate_mem_1): Move too ...
233 (cselib_invalidate_mem): ... here; use new list
234 (dummy_val, first_containing_mem): New static variables.
235 (clear_table): Initialize first_containing_mem.
236 (discard_useless_values): Compact the containing_mem list.
237 (add_mem_for_addr): Add to the list.
238 * cselib.h (cselib_val): Add next_containing_mem.
240 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
242 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
243 instructions for e500.
245 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
247 * Makefile.in: Update.
248 * c-cppbuiltin.c: Include tm_p.h.
250 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
252 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
254 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
255 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
256 (_Unwind_SetGR): Same.
257 (_Unwind_GetGRPtr): New.
258 (_Unwind_SetGRPtr): New.
259 (uw_update_context_1): Use accesor functions instead of accessing
260 context->reg[] directly.
261 (uw_install_context_1): Same.
262 (execute_cfa_program): Same.
263 (__frame_state_for): Same.
265 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
266 the synthetic register offset.
268 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
270 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
272 * config/cris/cris.md: Remove lingering EGCS reference.
273 ("*extopqihi_side_biap"): For HI operation, match
274 cris_additive_operand_extend_operator, not
275 cris_operand_extend_operator. Adjust condition.
276 ("*extopqihi_side", "*extopqihi"): Ditto.
277 ("*extopqisi_side_biap"): Correct operand numbers in condition.
278 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
279 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
280 ("*extophisi_swap"): Ditto.
281 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
282 PLUS, not cris_operand_extend_operator. Adjust condition and
284 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
285 * config/cris/cris.h (PREDICATE_CODES): Add
286 cris_additive_operand_extend_operator.
287 * config/cris/cris.c (cris_additive_operand_extend_operator):
290 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
292 * df.c (read_modify_subreg_p): Change from static to global.
293 * df.h (read_modify_subreg_p): Add prototype.
294 * sched-deps.c (sched_analyze_1): Generate true dependency for
295 strict_low_part, certain subregs and zero/sign_extract.
297 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
299 * Makefile.in: Update.
300 * c-common.c: Don't include real.h or except.h.
301 (REGISTER_PREFIX): Remove.
302 (builtin_define_std, builtin_define_with_value,
303 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
304 builtin_define_type_max, builtin_define_type_precision,
305 builtin_define_float_constants): Move to c-cppbuiltin.c.
306 (c_stddef_cpp_builtins): New.
307 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
308 * c-cppbuiltin.c: New, extracted from c-common.c.
309 (define__GNUC__): New.
310 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
311 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
312 (cpp_unique_options): Don't support no-gcc.
313 (do_spec_1): Remove support of version specs.
314 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
315 * doc/passes.texi: Update.
316 * doc/tm.texi: Update.
318 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
320 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
322 2003-03-10 Andrew Pinski <apinski@apple.com>
324 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
325 is on should not get here.
326 (machopic_indirect_data_reference): If dynamic-no-pic is on just
327 generate high/low parts of the address.
328 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
329 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
330 symbol and labels with a new reg. Dynamic-no-pic does not have a
331 pic_offset_table_rtx.
332 (machopic_select_section): Change references of flag_pic to
334 (machopic_asm_out_destructor): Likewise.
335 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
336 reference of flag_pic to MACHOPIC_INDIRECT.
337 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
338 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
339 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
340 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
341 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
342 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
343 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
344 (TARGET_DYNAMIC_NO_PIC): Define.
345 (SUBTARGET_SWITCHES): Define, have sub-target switches for
347 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
348 rs6000_override_options to here. Dynamic-no-pic overrides
350 (CC1_SPEC): Change from not static then pic to not static and not
351 dynamic-no-pic then pic.
352 * config/rs6000/rs6000.c (rs6000_override_options): Move the
353 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
354 (rs6000_legitimize_reload_address): Add case for loading floating in
356 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
357 of flag_pic to MACHOPIC_INDIRECT.
358 (secondary_reload_class): Conditional change the reference of
359 flag_pic to MACHOPIC_INDIRECT.
360 (rs6000_output_mi_thunk): Change reference of flag_pic to
362 (output_profile_hook): Likewise.
363 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
364 * config/rs6000/rs6000.md (movdf_low): Add the case for
365 MACHO_DYNAMIC_NO_PIC_P.
366 (call): Change references for flag_pic in TARGET_MACHO to
368 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
369 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
370 * doc/invoke.texi (-mdynamic-no-pic): Document.
372 2003-03-10 Devang Patel <dpatel@apple.com>
375 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
376 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
377 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
378 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
379 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
380 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
382 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
385 * toplev.c (rest_of_compilation): Move
386 check_function_return_warnings up to just after
387 delete_unreachable_blocks.
389 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
391 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
392 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
394 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
395 for reg rename optimization to avoid using Z and Y registers.
397 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
399 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
400 when adding to X and Y since leax/leay are fast.
401 ("*addhi3"): Accept 'I' constraint when adding to address register.
402 ("rotlhi3"): Operand 1 must be a register_operand.
403 (peephole2): New peephole to optimize some adds.
404 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
405 to represent -2 .. 2 small integer range.
407 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
409 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
410 each 16-bit rotation.
412 2003-03-10 Zack Weinberg <zack@codesourcery.com>
414 * c-opts.c (add_prefixed_path): Don't use concat. When
415 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
416 cpp_GCC_INCLUDE_DIR_len characters.
418 2003-03-10 Segher Boessenkool <segher@koffie.nl>
420 * testsuite/gcc.dg/altivec-9.c: New file.
422 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
423 (rs6000_emit_prologue): Use rs6000_frame_related instead.
425 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
427 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
429 (__ev_convert_u64): Remove macro. Define as inline.
430 (__ev_convert_s64): Same.
432 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
434 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
435 (rs6000_stack_t): Add spe_64bit_regs_used.
437 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
438 spe_64bit_regs_used, and use it to determine the size of the
440 (spe_func_has_64bit_regs_p): New.
441 (spe_synthesize_frame_save): New.
442 (rs6000_frame_related): Handle SPE synthetic registers.
443 (rs6000_emit_prologue): Only save in 64-bits if the function used
444 any registers in 64-bit mode.
445 (rs6000_emit_epilogue): Same, but for restore.
447 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
449 * arm.h (enum floating_point_type): Delete. Replace with...
450 (enum fputype): ... new.
451 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
452 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
453 * arm.md (attr fpu): Reworked for new underlying enum values.
454 * arm.c (arm_fpu_arch): Now enum fputype.
455 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
456 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
457 Update uses of arm_fpu_arch and arm_fpu_tune.
459 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
461 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
462 (try_crossjump_to_edge): Replace refereces to one jump table by
463 references to identical jump table.
464 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
465 (replace_label): Moved to rtlanal.c.
466 (struct rtx_pair): Moved to rtl.h.
467 * rtl.h (struct rtx_pair): Moved from loop.c.
468 (replace_label): New extern function.
469 (subrtx_p): New extern function.
470 (tablejump_p): New extern function.
471 * rtlanal.c (replace_label): Moved from loop.c.
472 (subrtx_p_1): New static function.
473 (subrtx_p): New function.
474 (tablejump_p): New function.
476 Mon Mar 10 15:30:36 CET 2003 Jan Hubicka <jh@suse.cz>
478 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
480 * cfgcleanup.c (merge_blocks): Return where to iterate next.
481 (try_optimize_cfg): Use return value of merge_blocks
483 2003-03-10 Michael Matz <matz@suse.de>
485 * cfg.c (unchecked_make_edge): New.
486 (cached_make_edge): Use it.
487 * basic-block.h (unchecked_make_edge): Declare.
488 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
490 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
492 * fpa.md: New file. Move all patterns relating to FPA co-processor
494 * arm.md: ... from here.
495 (cirrus.md, fpa.md): Include at end of description.
496 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
497 (pic_load_addr_based): Remove register constraint from expander.
498 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
499 (sordered, sungt, sunle, sunge, sunlt): Likewise.
500 (eh_epilogue, tablejump): Likewise.
502 2003-03-09 David Edelsohn <edelsohn@gnu.org>
505 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
508 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
510 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
511 * config/ip2k/ip2k.h: Similarly.
512 * config/m32r/m32r.h: Similarly.
513 * config/m68hc11/m68hc11.h: Similarly.
514 * config/mn10200/mn10200.h: Similarly.
515 * config/mn10300/mn10300.h: Similarly.
516 * config/pdp11/pdp11.h: Similarly.
517 * config/v850/v850.h: Similarly.
518 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
519 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
520 * config/mips/iris3.h: Remove #if 0 block.
522 2003-03-09 Roger Sayle <roger@eyesopen.com>
523 Joern Rennecke <joern.rennecke@superh.com>
525 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
526 pending argument upon return from handle_braces here.
527 (do_spec_2): Instead handle it upon return from do_spec_1 here.
529 2003-03-09 Roger Sayle <roger@eyesopen.com>
530 Joern Rennecke <joern.rennecke@superh.com>
532 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
533 pending argument upon return from handle_braces here.
534 (do_spec_2): Instead handle it upon return from do_spec_1 here.
536 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
538 * varasm.c (make_decl_one_only): Use declare_weak().
540 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
543 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
544 after the common builtins.
545 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
546 * pa.c (TARGET_INIT_BUILTINS): Define.
547 (pa_init_builtins): New function.
549 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
550 space has been allocated for the outgoing arguments, set the arg
551 pointer for a call emitted after virtuals have been instantiated
552 using the stack pointer offset, otherwise abort.
554 2003-03-09 DJ Delorie <dj@redhat.com>
556 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
558 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
560 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
561 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
562 conversion to integer.
563 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
565 2003-03-09 Roger Sayle <roger@eyesopen.com>
567 * builtins.def: Fix typo and improve grammar.
568 * loop-unroll.c (decide_peel_completely): Tidy log message.
570 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
572 * config/h8300/h8300.md (*tstsi_upper_bit): New.
573 (*iorsi3_e2f): Likewise.
575 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
577 * config/h8300/h8300.c (h8300_and_costs): Return the number of
578 assembly instructions needed.
579 (h8300_shift_costs): Likewise.
581 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
583 * config/cris/aout.h (ENDFILE_SPEC): Undef.
585 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
587 * expr.c (emit_move_insn_1): ... to here.
589 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
590 (TARGET_OS_CPP_BUILTINS): New macro.
591 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
592 (TARGET_OS_CPP_BUILTINS): New macro.
593 (CPP_PREDEFINES): Don't define. Move old definitions and...
594 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
595 (TARGET_CPU_CPP_BUILTINS): New macro.
596 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
597 definitions and the optional __PIC__, __pic__ and
598 __NO_UNDERSCORES__ definitions to...
599 (TARGET_OS_CPP_BUILTINS): New macro.
601 * flags.h (flag_leading_underscore): Declare.
603 * c-opts.c (c_common_post_options): On fopen failure, return
606 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
608 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
610 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
611 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
613 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
615 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
617 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
620 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
622 * c-common.h (c_common_init, c_common_post_options): Update.
623 * c-objc-common.c (c_objc_common_init): Update for new prototype.
624 * c-opts.c (saved_lineno): New.
625 (c_common_post_options, c_common_init): Update prototypes,
626 move call to cpp_read_main_file from latter to former.
627 * c-tree.h (c_ojbc_common_init): Update.
628 * langhooks-def.h (lhd_post_options): New.
629 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
630 * langhooks.c (lhd_post_options): New.
631 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
632 * toplev.c (no_backend): New.
633 (process_options): Call post_options hook and set main_input_filename
634 and input_filename here.
635 (lang_dependent_init, do_compile): post_options hook moved to
637 * objc/objc-act.c (objc_init): Update prototype.
638 * objc/objc-act.h (objc_init): Update prototype.
640 2003-03-08 Roger Sayle <roger@eyesopen.com>
642 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
643 a complex or vector type, using a load in the original mode.
645 Sat Mar 8 19:22:30 CET 2003 Jan Hubicka <jh@suse.cz>
647 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
648 * gt-cgraph.h: New GC file.
649 * cgraph.c (known_fns): New static variable.
650 (cgraph_node): Add the decl into varray.
652 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
654 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
656 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
658 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
659 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
660 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
661 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
663 * arm.md, arm.h, arm-protos.h: Updated.
665 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
666 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
667 * arm.c (arm_regno_class, f_register_operand): Updated.
669 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
671 * config/cris/cris.h: Remove EGCS references.
672 (CPP_SPEC): Remove "-$".
673 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
675 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
677 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
678 preference to CPP_PREDEFINES.
680 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
682 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
684 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
686 * config/h8300/h8300.md (*extzv_16_8): New.
688 Sat Mar 8 14:13:35 CET 2003 Jan Hubicka <jh@suse.cz>
690 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
691 * cgraph.h: (cgraph_local_info): Add can_inline_once
692 (cgraph_global_info): Add inline_once.
693 (cgraph_node): Add previous.
694 (cgraph_remove_node): New.
695 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
697 (cgraph_optimize): Call it.
698 (cgraph_finalize_function): Set inlinable flags.
699 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
700 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
701 (cgraph_expand_function): Likewise.
703 (cgraph_node): Put nodes into doubly linked chain.
704 (cgraph_remove_node): New function.
705 * flags.h (flag_inline_functions_called_once): Declare.
706 * tree-inline.c: Include cgraph.h
707 (inlinable_functions_p): Add extra argument to bypass limits.
708 (expand_call_inline): Obey cgraph flag.
709 * tree-inline.h (tree_inlinable_function_p): Update prototype.
711 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
713 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
716 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
717 loops info correctly.
719 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
722 * unroll.c (calculate_giv_inc): Handle constants being
723 loaded with LSHIFTRT.
725 2003-03-07 David Edelsohn <edelsohn@gnu.org>
727 * config/rs6000/rs6000.c (processor_target_table): Do not disable
728 GP optional instructions on Power3, Power4, 620, and 630.
730 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
732 * calls.c: Fix comment formatting.
733 * cfgloopanal.c: Likewise.
734 * cfgloopmanip.c: Likewise.
735 * combine.c: Likewise.
736 * dwarf2out.c: Likewise.
737 * ggc-common.c: Likewise.
738 * langhooks.c: Likewise.
739 * loop-unroll.c: Likewise.
741 * ra-build.c: Likewise.
742 * sbitmap.c: Likewise.
743 * toplev.c: Likewise.
745 2003-03-07 James E Wilson <wilson@tuliptree.org>
747 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
749 2003-03-07 Geoffrey Keating <geoffk@apple.com>
751 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
752 support -no-integrated-cpp.
754 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
757 2003-03-07 Michael Matz <matz@suse.de>
759 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
760 (DF_FOR_REGALLOC): New.
761 * df.c (df_ref_record): Set DF_REF_STRIPPED.
762 (read_modify_subreg_p): Simplify.
763 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
765 * ra.h (struct web): New member subreg_stripped.
766 (invalid_mode_change_regs): Declare.
767 * ra.c (invalid_mode_change_regs): New.
768 (init_ra): Initialize it.
769 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
770 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
771 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
772 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
773 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
775 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
777 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
778 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
779 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
780 machine description file from ...
781 * cirrus.md: ... here.
783 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
785 * config/h8300/h8300.md (a peephole2): Don't use
786 reg_overlap_mentioned_p.
788 2003-03-06 Geoffrey Keating <geoffk@apple.com>
790 * c-pch.c: Include langhooks.h.
794 (pch_init): Use get_ident, IDENT_LENGTH.
795 (c_common_valid_pch): Likewise. Also, use actual language
797 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
799 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
801 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
803 (gt-objc-objc-act.h): New rule.
804 * objc/lang-specs.h: Support PCH.
805 * objc/objc-act.c: Include gt-objc-objc-act.h.
806 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
807 (build_selector_reference_decl): Move idx out, mark for PCH.
808 (build_class_reference_decl): Likewise.
809 (build_objc_string_decl): Move *_idx out, mark for PCH.
810 (build_tmp_function_decl): Move xxx out, mark for PCH.
812 2003-03-06 Dale Johannesen <dalej@apple.com>
814 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
815 global functions for inlining on Darwin.
817 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
819 * haifa-sched.c (schedule_block): Don't call reorder when sorting
822 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
824 * Makefile.in (c-ppoutput.o): Update.
825 * c-common.h (init_pp_output): New.
826 (preprocess_file): Update.
827 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
829 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
830 Make call to cpp_read_main_file common to whether preprocessing
831 or not. Don't register builtins.
832 * c-ppoutput.c: Include c-pragma.h.
833 (setup_callbacks): Rename init_pp_output.
834 (preprocess_file): No longer setup callbacks or call
836 * cpphash.h (_cpp_init_mbchar): New.
837 * cppinit.c (init_library): Call _cpp_init_mbchar.
838 * cpplex.c (_cpp_init_mbchar): New.
840 2003-03-06 Roger Sayle <roger@eyesopen.com>
842 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
843 MEM, try loading the MEM into a register and taking the low-part
844 of that, to help CSE see the use of the MEM in its true mode.
846 2002-03-05 Tom Tromey <tromey@redhat.com>
848 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
851 2002-03-05 Nick Clifton <nickc@cambridge.redhat.com>
853 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
855 ("*ineqbranchsi"): Likewise.
857 2002-03-05 Andrew Haley <aph@cambridge.redhat.com>
859 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
860 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
861 register store followed by a stack increment.
863 2002-03-05 Chris Moller <cmoller@redhat.com>
865 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
866 to inhibit saving CARRY_REGS.
868 * config/stormy16/stormy16.c (xs_hi_general_operand):
869 added predicate to detect and error-out on out-of-range
870 const_ints for movhi.
871 * config/stormy16/stormy16.md (movhi): use
872 xs_hi_general_operand.
874 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
875 added a check for local vbl size overflow.
876 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
877 added predicate to detect and error-out on out-of-range
878 const_ints for addhi and subhi.
879 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
880 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
882 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
883 add a term to accept PRE_MODIFY addresses.
884 * config/stormy16/stormy16.c (xstormy16_expand_move):
885 add code to expand PRE_MODIFY addresses to an add followed
888 2003-03-06 Jason Merrill <jason@redhat.com>
890 * tree-inline.c (inlinable_function_p): Revert earlier change
891 pending investigation.
893 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
895 * config/h8300/h8300.md (a new peephole2): New.
897 Thu Mar 6 14:20:15 CET 2003 Jan Hubicka <jh@suse.cz>
899 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
901 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
903 * dwarf2out.c (size_of_die): Compute size of external reference to
906 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
908 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
909 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
912 2003-03-05 Roger Sayle <roger@eyesopen.com>
914 * expr.h (lang_expand_expr): Delete obsolete prototype.
916 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
918 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
920 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
922 * config/h8300/h8300.md (a peephole2): Generalize to
923 accept a memory operand.
925 Wed Mar 5 19:34:18 2003 Olivier Hainque <hainque@act-europe.fr>
927 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
928 * config/alpha/alpha.c (print_operand, case '+'): New.
929 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
930 (call_value_osf_1_noreturn): Likewise.
932 Wed Mar 5 18:55:02 2003 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
934 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
935 (expand_end_bindings): Likewise.
937 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
939 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
940 (epilogue): Don't generate return_external_pic when emitting PA 2.0
943 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
945 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
947 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
949 * hooks.c (hook_rtx_rtx_null): New.
951 * hooks.h (hook_rtx_rtx_null): Protoize.
953 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
954 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
956 * target.h (struct gcc_target): Add dwarf_register_span.
958 * dwarf2out.c (multiple_reg_loc_descriptor): New.
959 (one_reg_loc_descriptor): New.
960 (reg_loc_descriptor): Add support for values that span more than
963 Wed Mar 5 23:16:57 CET 2003 Jan Hubicka <jh@suse.cz>
965 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
966 * alias.c: Include cgraph.h
967 (mark_constant_function): Use cgraph_rtl_info.
968 * calls.c: Include cgraph.h
969 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
971 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
972 * cgraph.c (cgraph_rtl_info): New function.
973 * cgraph.h (cgraph_rtl_info): Declare
974 (cgraph_rtl_info): Likewise.
975 * function.h (struct function): Add recursive_call_emit.
976 * toplev.c: Include cgraph.h.
977 (rest_of_compilation): Set preferred_incoming_stack_boundary.
979 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
981 * config/h8300/h8300.c (output_simode_bld): Clear the
982 destination first if possible.
983 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
985 (extzv_1_r_inv_h8300hs): Likewise.
987 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
989 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
990 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
991 * cfgloop.c (flow_loop_free): Made global.
992 (establish_preds): New static function.
993 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
994 (get_loop_exit_edges): New.
995 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
996 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
997 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
999 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
1000 removability of an edge.
1001 (fix_irreducible_loops): New static function.
1002 (find_path, remove_path): Add ability to remove enclosing loops.
1004 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
1006 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
1007 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
1009 (decide_peel_completely, peel_loops_completely): Allow complete peeling
1010 of non-duplicable once rolling loops.
1011 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
1013 Wed Mar 5 21:40:57 2003 J"orn Rennecke <joern.rennecke@superh.com>
1015 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
1016 for align_jumps is 4.
1018 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
1021 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
1023 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
1024 according to va_arg type.
1025 (EXPAND_BUILTIN_VA_ARG): Remove.
1026 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
1027 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
1029 2003-03-05 David Edelsohn <edelsohn@gnu.org>
1031 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
1034 2003-03-05 Michael Matz <matz@suse.de>
1036 * i386/i386.c (ix86_save_reg): Also test
1037 current_function_uses_const_pool.
1039 2003-03-05 Michael Matz <matz@suse.de>
1041 * unwind.h: Add the GPL exception.
1042 * Makefile.in (USER_H): Add unwind.h.
1044 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1047 * c-typeck.c (push_init_level): Add sanity check.
1049 Wed Mar 5 02:04:04 CET 2003 Jan Hubicka <jh@suse.cz>
1051 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
1052 RTL inlining is done.
1054 * cgraphunit.c (cgraph_mark_local_functions): New local function.
1055 (cgraph_optimize): Mark local functions.
1056 * i386-protos.h (init_cumulative_args): Update prototype.
1057 * i386.c (init_cumulative_args): Use register passing convention for
1060 * cgraph.c (cgraph_global_info_ready): New global variable
1061 (cgraph_local_info, cgraph_global_info): New functions.
1062 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
1064 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
1066 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
1067 (cgraph_mark_functions_to_output): Use inline_many.
1068 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
1069 (cgraph_expand_functions): Expand inline functions last.
1070 (cgraph_optimize): Do not emit uneeded functions.
1072 2003-03-04 Steve Ellcey <sje@cup.hp.com>
1074 * expr.c (convert_modes): Check for legal hard register.
1076 2003-03-04 Tom Tromey <tromey@redhat.com>
1078 * doc/sourcebuild.texi (Front End Directory): Document tags.
1079 * configure: Rebuilt.
1080 * configure.in (target_list): Added tags.
1081 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
1082 TAGS files by reference.
1083 * objc/Make-lang.in (objc.tags): New target.
1085 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1087 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
1088 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
1089 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
1090 gcov_read_string, gcov_write_length): Modified to enable reading/
1091 writing of whole .da file just once.
1092 (da_file_open, da_file_close, da_file_eof, da_file_error,
1093 da_file_position, da_file_seek, da_file_write, da_file_read): New
1095 (actual_da_file, actual_da_file_position, actual_da_file_length,
1096 actual_da_file_buffer, actual_da_file_buffer_size): New static
1098 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
1102 2003-03-04 Andreas Schwab <schwab@suse.de>
1104 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
1105 offset without frame pointer.
1107 2003-03-04 Steve Ellcey <sje@cup.hp.com>
1109 * expr.c (expand_expr): Call promote_mode to set unsignedp.
1111 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
1113 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
1114 * configure: Regenerated.
1115 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
1117 2003-03-04 Andreas Jaeger <aj@suse.de>
1119 * configure.in: Check for <memcheck.h>.
1120 * configure: Regenerated.
1122 * config.in: Define HAVE_MEMCHECK_H.
1124 * ggc-common.c: Use <memcheck.h> if available instead of
1126 * ggc-page.c: Likewise.
1127 * cppfiles.c: Likewise.
1129 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1131 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
1133 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1136 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
1137 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
1139 Tue Mar 4 11:30:04 CET 2003 Jan Hubicka <jh@suse.cz>
1141 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
1142 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
1145 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
1147 * configure.in: Delete three unused variables. Move a variable
1148 definition closer to its use. Simplify use_collect2 logic. Start to
1149 organize. Simplify tests for in-tree gas and ld.
1150 * configure: Regenerate.
1152 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
1154 * Makefile.in: Update.
1155 * c-common.c (flag_no_line_commands, flag_no_output,
1156 flag_dump_macros, flag_dump_includes): New.
1157 * c-common.h (flag_no_line_commands, flag_no_output,
1158 flag_dump_macros, flag_dump_includes, preprocess_file): New.
1159 (init_c_lex): Update prototype.
1160 * c-lex.c (init_c_lex): Update prototype; move some code to
1162 * c-opts.c (preprocess_file): Subsume into c_common_init.
1163 (c_common_decode_option): Update flags.
1164 (c_common_init): Move code from preprocess_file and init_c_lex.
1165 (sanitize_cpp_opts): Update.
1166 * c-ppoutput.c: New, cppmain.c almost verbatim.
1167 * cpphash.h (struct printer): Remove.
1168 (struct cpp_reader): Remove print.
1169 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
1170 cpp_preprocess_file): Remove.
1171 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
1173 * cppmain.c: Remove.
1174 * doc/passes.texi: Update.
1176 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1178 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
1179 (assign_stack_local_1): Perform overall stack alignment only when
1180 STACK_ALIGNMENT_NEEDED is non-zero.
1181 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
1183 * pa.c (compute_frame_size): Rename fsize to size. Account for
1184 alignment to a word boundary before general register save block. Only
1185 account for double-word alignment before floating point register save
1186 block if one or more are saved. Don't allocate space for %r3 when
1187 frame pointer is needed.
1188 (hppa_expand_prologue): Include alignment to word boundary in local
1190 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
1191 (STACK_ALIGNMENT_NEEDED): Define.
1193 2003-03-04 Kevin Buettner <kevinb@redhat.com>
1195 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
1196 global register variables.
1198 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
1200 * reload.c (reload_adjust_reg_for_mode): New function.
1201 (subst_reloads): Call it.
1202 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
1203 * reload.h (reload_adjust_reg_for_mode): Declare.
1204 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
1207 2003-03-03 James E Wilson <wilson@tuliptree.org>
1209 * optabs.c (add_equal_note): Delete SUBREG_REG use.
1212 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1214 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
1215 (*ixorsi3_lshiftrt_16): New.
1216 (*iorsi3_ashift_16): Remove.
1218 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1220 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
1223 2003-03-03 Geoffrey Keating <geoffk@apple.com>
1225 * doc/install.texi (Specific): Update entry for powerpc-darwin.
1227 2003-03-03 Richard Henderson <rth@redhat.com>
1229 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
1231 2003-03-03 David Edelsohn <edelsohn@gnu.org>
1233 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
1234 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
1235 (rs6000_variable_issue): Do not return negative value.
1236 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
1239 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1241 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
1242 prune_unused_types calls.
1244 2003-03-03 Jason Merrill <jason@redhat.com>
1246 * tree-inline.c (find_builtin_longjmp_call): Save and restore
1247 lineno and input_filename.
1248 (find_alloca_call): Likewise.
1249 (inlinable_function_p): Run the langhook earlier.
1251 * calls.c (compute_argument_addresses): Give the new MEMs a
1252 minimum alignment of PARM_BOUNDARY.
1254 Mon Mar 3 20:45:25 2003 J"orn Rennecke <joern.rennecke@superh.com>
1256 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
1257 subtarget_asm_isa_spec.
1258 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
1259 (ASM_SPEC): Define as SH_ASM_SPEC.
1260 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
1261 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
1262 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
1263 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
1265 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
1266 and align_jumps if not set.
1267 Force align_jumps to be at least 2.
1268 When relaxing, force align_functions to be at least the maximum of
1269 align_loops, align_jumps and 4.
1270 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
1271 (sh_loop_align): Honour align_loops_log.
1273 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
1274 to check for indirect_jump_scratch.
1275 (indirect_jump_scratch): Add second set.
1276 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
1277 when looking for indirect_jump_scratch.
1278 Extract scratch register taking new structure of indirect_jump_scratch
1280 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
1282 Mon Mar 3 19:07:21 CET 2003 Jan Hubicka <jh@suse.cz>
1284 * calls.c (rtx_for_function_call): Take the address as an argument
1285 (expand_call): Do not modify the expression.
1287 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
1290 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1292 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
1293 TARGET_H8300H and TARGET_H8300S.
1295 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1297 * config/h8300/h8300.md (a peephole2): New.
1299 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1301 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
1302 operands[0] and operands[1] are different.
1304 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
1306 * reload1.c (reload_cse_move2add): Remove variable success.
1308 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1310 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
1313 2003-03-02 Richard Henderson <rth@redhat.com>
1315 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
1316 * config.in, configure: Rebuild.
1317 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
1318 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
1319 paired ldtoffx and ldxmov annotations.
1320 (load_symptr_internal1): Remove.
1321 (load_symptr_high, load_symptr_low): New.
1323 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
1325 * c-incpath.c (add_path): Fix sysp assignment.
1327 2003-03-02 Kurt Garloff <garloff@suse.de>
1329 * params.def: Introduce parameter max-inline-insns-rtl for
1330 a separate limit for the RTL inliner.
1331 * params.h: Likewise.
1332 * integrate.c (function_cannot_inline_p): Use it.
1333 * toplev.c (decode_f_option): Set multiple parameters
1334 controlling inlining with -finline-limit.
1335 * params.def: Fix orthographic and typographic errors.
1336 * doc/invoke.texi: Document parameters controlling inlining
1337 and the way -finline-limit sets multiple of them.
1339 * tree.h (struct tree_decl): Introduce inlined_function_flag,
1340 recording whether the function became eligible for inlining
1341 by a compiler flag rather than the declaration.
1342 Provide DID_INLINE_FUNC macro to access it.
1343 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
1344 * cp/decl.c (grokfndecl): Likewise.
1345 * toplev.c (rest_of_compilation): Likewise.
1346 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
1347 * print-tree.c (print_node): Report it.
1348 * params.def: Introduce new max-inline-insns-auto limit.
1349 * params.h: Likewise.
1350 * tree-inline.c (inlinable_function_p): Apply it to functions
1351 with DID_INLINE_FUNC set.
1352 * toplev.c (decode_f_option): Initialize it from -finline-limit
1354 * doc/invoke.texi: Document new parameter.
1356 2003-03-02 Geoffrey Keating <geoffk@apple.com>
1358 * fix-header.c (read_scan_file): Don't reference simplify_path.
1360 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1362 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
1363 min/max instructions by default as may result in reload errors.
1365 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1367 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
1368 avoid reload problems; define split for it.
1370 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1372 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
1373 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
1374 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
1375 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
1376 rotatert and rotate.
1377 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
1378 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
1379 ("*rotrhi3_addr"): New split for shift insns on address register.
1380 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
1381 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
1382 (___rotrhi3): Likewise.
1383 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
1385 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
1387 * toplev.c (aux_base_name): Moved from toplev.h.
1388 (filename): Constify.
1389 (lang_dependent_init): Don't duplicate name.
1390 (process_options): Set aux_base_name here, not...
1391 (do_compile): ...here. Change protoype.
1392 (toplev_main): Move some code from do_compile.
1393 * toplev.h: Remove aux_base_name.
1395 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
1397 * config/h8300/h8300-protos.h: Add a prototype for
1399 * config/h8300/h8300.c (print_operand): Handle 'c'.
1400 (iorxor_operator): New.
1401 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
1402 * config/h8300/h8300.md (*iorhi3_zext): Remove.
1403 (*iorsi3_zexthi): Likewise.
1404 (*iorsi3_zextsi): Likewise.
1405 (*xorhi3_zextqi): Likewise.
1406 (*xorsi3_zexthi): Likewise.
1407 (*xorsi3_zextsi): Likewise.
1408 (*ixorhi3_zext): New.
1409 (*ixorsi3_zext_qi): Likewise.
1410 (*ixorsi3_zext_hi): Likewise.
1412 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
1414 * c-incpath.c (remove_component_p, simplify_path): Move back to
1416 (remove_duplicates): Use cpp_simplify_path.
1417 * c-incpath.h (simplify_path): Remove.
1418 * c-lex.c: Don't include c-incpath.h.
1419 (init_c_lex): Remove simplify_path.
1420 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
1421 (find_or_create_entry, validate_pch): Revert.
1423 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
1425 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
1426 an external cpp during compilation.
1427 (option_map): Likewise.
1428 * objc/lang-specs.h (default_compilers): Similarly.
1429 * doc/invoke.texi: Document -no-integrated-cpp flag.
1431 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
1433 * config/h8300/h8300.md (zero_extendqisi2): Change to an
1435 (*zero_extendqisi2_h8300): New.
1436 (*zero_extendqisi2_h8300hs): New.
1437 (two splitters): New.
1439 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1441 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
1443 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1445 * config/h8300/h8300.md (a peephole2): Remove dead code.
1447 2003-03-01 Roger Sayle <roger@eyesopen.com>
1450 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
1451 (BT_FN_INT_CONST_STRING_VALIST_ARG,
1452 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
1453 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
1454 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
1455 BT_FN_INT_STRING_CONST_STRING_VAR,
1456 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
1457 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
1458 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
1459 ATTR_NONNULL_3): Also include the nothrow attribute.
1460 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
1461 vsnprintf, vscanf, vsscanf): Don't define attributes here.
1462 * builtins.def (putchar, puts): Make full C89 built-ins.
1463 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
1464 vsscanf, vsnprintf, vsprintf): New built-ins.
1465 * c-common.c (c_common_nodes_and_builtins): Handle new macro
1466 DEF_FUNCTION_TYPE_VAR_3.
1468 * doc/extend.texi: Document these new built-in functions.
1470 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1472 * config/h8300/h8300.md (a peephole2): New.
1474 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
1476 * predict.c (estimate_bb_frequencies): Correctly set
1477 real_values_initialized after initialization.
1479 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
1481 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
1482 cppinit.o, cppdefault.o, fix-header): Update.
1483 * c-incpath.c: New file.
1484 * c-incpath.h: New file.
1485 * c-lex.c: Include c-incpath.h.
1486 (init_c_lex): Register path simplifier.
1487 * c-opts.c: Include cppdefault.h and c-incpath.h.
1488 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
1489 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
1490 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
1491 (missing_arg, c_common_decode_option): Handle them.
1492 (c_common_post_options): Register include chains.
1493 (print_help): Update.
1494 * cppdefault.h (struct default include): Update.
1495 Move some macros to ...
1496 * cppdefault.c: ... here.
1497 (cpp_include_defaults): Add extra field add_sysroot.
1498 * cppfiles.c (include_file, search_from, find_or_create_entry,
1499 cpp_included, find_include_file, remap_filename): Update for
1500 renaming of search_path to cpp_path, and of the chain headers.
1501 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
1502 * cpphash.h (struct search_path): Move to cpplib.h.
1503 (struct cpp_buffer, struct cpp_reader): Update.
1504 (_cpp_simplify_pathname): Remove.
1505 * cppinit.c: Don't include prefix.h and cppdefault.h.
1506 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
1507 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
1508 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
1509 no_pth, cpp_handle_options): Remove.
1510 (struct pending_option): Remove chain members.
1511 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
1512 cpp_handle_option): Update.
1513 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
1514 (struct cpp_options): Remove quote_include, bracket_include,
1515 include_prefix, include_prefix_len, verbose, ignore_srcdir,
1516 no_standard_includes, no_standard_cplusplus_includes.
1517 (struct cpp_callbacks): Add simplify_path.
1518 (cpp_handle_options): Remove.
1519 * fix-header.c: Include c-incpath.h.
1520 (read_scan_file): Update to use c-incpath functionality.
1521 * doc/passes.texi: Update.
1523 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1525 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
1526 satisfies EXTRA_CONSTRAINT 'U'.
1528 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
1530 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
1532 (*tst_extzv_memqi_1_n): Change to a splitter.
1533 (a peephole2): Update.
1535 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
1537 * predict.c (estimate_bb_frequencies): Initialize the sreal
1538 constants once per compilation.
1540 2003-02-28 Richard Henderson <rth@redhat.com>
1542 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
1544 2003-02-28 scott snyder <snyder@fnal.gov>
1546 * flags.h: Add flag_eliminate_unused_debug_types.
1547 * toplev.c: Add flag_eliminate_unused_debug_types.
1548 (f_options): Add -feliminate-unused-debug-types.
1549 * dwarf2out.c (struct file_table): Add emitted member.
1550 (splice_child_die): Fix the parent pointer for the child being
1552 (lookup_filename): Maintain file_table.emitted array. Don't
1553 output .file directive here.
1554 (maybe_emit_file): (new)
1555 (init_file_table): Set up file_table.emitted.
1556 (dwarf2out_source_line): Use maybe_emit_file.
1557 (dwarf2out_start_source_file): Use maybe_emit_file.
1558 (dwarf2out_init): Use maybe_emit_file.
1559 (prune_unused_types_walk_attribs): (new)
1560 (prune_unused_types_mark): (new)
1561 (prune_unused_types_walk): (new)
1562 (prune_unused_types_prune): (new)
1563 (prune_unused_types): (new)
1564 (dwarf2out_finish): Call prune_unused_types if
1565 flag_eliminate_unused_debug_types is set.
1566 * doc/invoke.texi (Option Summary): Add
1567 -feliminate-unused-debug-types.
1568 (Debugging Options): Likewise.
1570 2003-02-28 Geoffrey Keating <geoffk@apple.com>
1572 * doc/invoke.texi: Change .pch to .gch.
1573 * cppfiles.c (open_file_pch): Likewise.
1574 * gcc.c (default_compilers): Likewise.
1576 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
1578 * floatlib.c: Remove.
1580 2003-02-28 Jason Merrill <jason@redhat.com>
1582 * stor-layout.c (variable_size): Leave a "minus 1" outside the
1585 2003-02-28 David Edelsohn <edelsohn@gnu.org>
1587 * config/rs6000/power4.md: Add compare bypass.
1589 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
1591 * config/netbsd.h: Update copyright years.
1592 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
1593 -pthread is specified on the command line.
1595 2003-02-28 Dale Johannesen <dalej@apple.com>
1597 * loop.c (struct movable): Add insert_temp, shrink savemode.
1598 (scan_loop): Accept invariants that require copying; mark as
1600 (combine_movables): Don't combine insert_temp movables.
1601 (move_movables): Insert copies for insert_temp movables.
1602 Don't record the info based on regno for insert_temp's.
1604 2003-02-28 Joel Sherrill <joel@OARcorp.com>
1607 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
1608 this constant defaults to 1.
1610 2003-02-28 Bob Wilson <bob.wilson@acm.org>
1612 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
1614 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
1616 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
1617 ARMv5e processor, not just for XScale. Instructions are predicable.
1618 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
1620 2003-02-28 Nick Clifton <nickc@redhat.com>
1622 * config/arm/arm.c (note_invalid_constants): Change parameter type
1625 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
1627 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
1629 (*tst_extzv_memqi_1_n): Likewise.
1632 2002-02-28 Richard Sandiford <rsandifo@redhat.com>
1634 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
1637 Fri Feb 28 11:09:14 CET 2003 Jan Hubicka <jh@suse.cz>
1639 * combine.c (gen_lowpart_for_combine): Update handling of
1641 * flow.c (life_analysis, mark_used_regs): Likewise.
1642 * regclass.c (subregs_of_mode): Turn into single bitmap.
1643 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
1644 dealing with subregs_of_mode
1645 * regs.h (subregs_of_mode): Update prototype.
1647 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
1649 * emit-rtl.c (set_reg_attrs_for_parm): New function.
1650 * rtl.h (set_reg_attrs_for_parm): New exported function.
1651 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
1652 set_reg_attrs_from_mem.
1654 2003-02-27 Roger Sayle <roger@eyesopen.com>
1655 Zack Weinberg <zack@codesourcery.com>
1657 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
1659 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
1661 * reload1.c (sext_for_mode): Remove.
1662 (reload_cse_move2add): Use trunc_int_for_mode instead of
1664 (move2add_note_store): Likewise.
1665 Reset register information if we see a set in non-integer
1668 2003-02-27 David Edelsohn <edelsohn@gnu.org>
1670 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
1672 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
1673 * config/rs6000/aix51.h: Same.
1674 * config/rs6000/aix52.h: Same.
1675 * config/rs6000/power4.md: Additional VMX bypasses.
1677 2003-02-27 Geert Bosch <bosch@gnat.com>
1679 * toplev.c (print_version): Add indentation for GGC heuristics and
1680 output after printing version information.
1682 2003-02-27 James E Wilson <wilson@tuliptree.org>
1684 * combine.c (simplify_comparison): Require integral mode when
1685 permuting SUBREG with AND.
1687 2003-02-27 Steve Ellcey <sje@cup.hp.com>
1689 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
1691 2003-02-27 Nick Clifton <nickc@redhat.com>
1693 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
1694 deleted when cirrus instructions were added.
1696 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
1698 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
1699 POSIX thread support by default.
1701 2003-02-27 Roger Sayle <roger@eyesopen.com>
1703 * config/i386/cygwin.h: Don't include any other files directly.
1704 * config/i386/mingw32.h: Don't include cygwin.h directly.
1705 * config.gcc (cygwin, mingw32, uwin): Instead make these files
1706 explicit in the tm_files variable.
1708 2003-02-27 Alan Modra <amodra@bigpond.net.au>
1710 * config/rs6000/rs6000.md: Add TI constant splitter.
1712 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
1714 * builtins.c (purge_builtin_constant_p): Handle subreg of
1717 * function.c (assign_stack_local_1): Truncate constant added to
1718 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
1720 2003-02-26 David Edelsohn <edelsohn@gnu.org>
1722 * config.gcc: Add power4 to PowerPC with_cpu list.
1724 Wed Feb 26 19:46:25 CET 2003 Jan Hubicka <jh@suse.cz>
1726 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
1728 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1730 * gcov-dump.c (print_prefix): Fix signedness warning.
1731 * gcov-io.h (struct counter_section, struct counter_section_data): New.
1732 (struct function_info): n_arc_counts field removed, n_counter_sections,
1733 counter_sections fields added.
1734 (struct gcov_info): arc_counts, n_arc_counts fields removed,
1735 n_counter_sections, counter_sections fields added.
1736 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
1738 * profile.h (MAX_COUNTER_SECTIONS): New.
1739 (struct section_info): New.
1740 (struct profile_info): count_instrumented_edges,
1741 count_edges_instrumented_now fields removed, n_sections, section_info
1743 (find_counters_section): Declare.
1744 * profile.c (struct function_list): count_edges field removed,
1745 n_counter_sections, counter_sections fields added.
1746 (set_purpose, label_for_tag, build_counter_section_fields,
1747 build_counter_section_value, build_counter_section_data_fields,
1748 build_counter_section_data_value, build_function_info_fields,
1749 build_function_info_value, build_gcov_info_fields,
1750 build_gcov_info_value): New static functions.
1751 (find_counters_section): New function.
1752 (instrument_edges, get_exec_counts, compute_branch_probabilities,
1753 branch_prob, create_profiler): Modified to support multiple profile
1756 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1758 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
1759 is 8 * STACK_BOUNDARY.
1760 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
1762 2003-02-26 Michael Matz <matz@suse.de>
1764 * ra-colorize.c (merge_moves): Fix list handling.
1766 2003-02-26 Nick Clifton <nickc@redhat.com>
1768 * config/arm/arm.c (is_load_address): Rename to...
1769 (arm_memory_load_p) ... this and make it check for SUBREGs and
1770 constant loads that will be converted into loads from the
1772 (is_cirrus_insn): Rename to ...
1773 (arm_cirrus_insn_p): ... this, for consistency. Replace test
1774 of CIRRUS_NO with CIRRUS_NOT.
1775 (cirrus_reorg): Use renamed functions.
1776 (note_invalid_constants): Change from a void function to bool.
1777 Add an extra parameter, saying whether the fixups should be
1778 pushed. Return true if fixups are needed.
1779 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
1780 of CIRRUS_NO with CIRRUS_NOT.
1781 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
1782 other floating point co-processors can also affect this.
1783 * config/arm/arm.md ("type" attribute): Add mav_farith and
1784 mav_dmult. Replace references to "cirrus_type" attribute with
1786 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
1787 ("cirrus_type" attribute): Delete - use "type" instead.
1788 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
1791 Tue Feb 25 22:46:27 CET 2003 Jan Hubicka <jh@suse.cz>
1793 * objc-act.c: Include cgraph.h
1794 (mark_referenced_methods): New function.
1795 (objc_init): Call it.
1796 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
1798 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
1801 * optabs.c (expand_fix): Do not widen the input operand.
1803 * expr.c (emit_group_store): Fix crash when converting single
1804 register into complex register.
1806 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
1807 * alias.c: Include timevar.h
1808 (init_alias_analysis): Set timevar
1809 * jump.c: Include timevar.h
1810 (rebuild_jump_labels): Set timevar
1811 * regcalss.c: Include timevar.h
1812 (reg_scan): Set timevar
1813 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
1815 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1817 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
1819 * Makefile.in (loop-unroll.o): New.
1820 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
1821 (unroll_and_peel_loops): Declare.
1822 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
1823 flag_old_unroll_loops.
1824 * loop.c (loop_invariant_p): Ditto.
1825 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
1826 flag_old_unroll_all_loops.
1827 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
1828 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
1829 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
1830 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
1831 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
1832 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
1833 PARAM_MAX_ONCE_PEELED_INSNS): New.
1834 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
1835 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
1837 (flag_peel_loops): New.
1838 (lang_independent_options): The new flags added.
1839 (rest_of_compilation): Call new unroller.
1840 (process_options): Setup flags for coexistence of old and new unroller.
1841 * doc/invoke.texi: Document new options.
1842 * doc/passes.texi: Document new unroller pass.
1844 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
1846 * fixinc/fixincl.x: Regenerate
1848 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
1850 * function.c (assign_parms): Set reg_attrs for parameters passed in
1853 2003-02-26 Alan Modra <amodra@bigpond.net.au>
1856 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
1858 2003-02-25 David Edelsohn <edelsohn@gnu.org>
1860 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
1863 2003-02-25 Roger Sayle <roger@eyesopen.com>
1865 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
1866 * cse.c (invalidate_skipped_set): Likewise.
1867 * integrate.c (subst_constants): Likewise.
1868 * jump.c (reversed_comparison_code_parts): Likewise.
1869 * loop.c (canonicalize_condition): Likewise.
1870 * simplify-rtx.c (simplify_relational_operation): Likewise.
1872 2003-02-25 Roger Sayle <roger@eyesopen.com>
1874 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
1875 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
1876 the appropriate macro to define built-in function.
1877 (fmod,fmodf,fmodl): New built-in functions.
1879 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
1881 2003-02-25 Richard Henderson <rth@redhat.com>
1883 * config/i386/i386.c (function_arg): Pass variable sized
1884 structures correctly on the stack.
1886 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
1888 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
1889 does not reduce the cost of SET.
1891 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1894 * config/rs6000/rs6000.c (first_reg_to_save): Handle
1895 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
1896 (rs6000_emit_prologue): Likewise.
1897 (rs6000_emit_epilogue): Likewise.
1898 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
1899 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
1901 2003-02-25 Richard Henderson <rth@redhat.com>
1903 * real.c (real_to_integer2): Force overflow result only for
1906 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
1908 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
1910 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
1911 Richard Henderson <rth@redhat.com>
1913 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
1914 there is no similar load.
1916 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
1917 Richard Henderson <rth@redhat.com>
1919 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
1921 (add_forward_dependence): New function prototype.
1923 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
1925 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
1926 them to haifa-sched.c.
1928 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
1929 haifa_classify_insn): Move them from sched-rgn.c.
1931 * sched-deps.c (add_dependence): Return flag of creating a new
1933 (add_forward_dependence): New function.
1934 (compute_forward_dependences): Use the function.
1936 * sched-ebb.c (earliest_block_with_similiar_load): New function.
1937 (add_deps_for_risky_insns): New function.
1938 (schedule_ebb): Call the function.
1940 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
1942 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
1943 TARGET_VECTOR_OPAQUE_P. Document accordingly.
1945 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
1948 * c-typeck.c (comptypes): Change call to vector_types_compatible
1950 (convert_for_assignment): Call vector_opaque_p instead of
1951 vector_types_compatible.
1952 (really_start_incremental_init): Disallow initialization of opaque
1955 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
1956 Define TARGET_VECTOR_OPAQUE_P.
1957 (TARGET_INITIALIZER): Same.
1959 * target.h (struct gcc_target): Remove vector_types_compatible.
1960 Add vector_opaque_p.
1962 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
1964 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
1965 a vector type. Change return type to bool.
1966 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
1967 (TARGET_VECTOR_OPAQUE_P): Define.
1969 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
1972 (cp_parser_init_declarator): Fix typo in function comments.
1974 Tue Feb 25 12:35:34 CET 2003 Jan Hubicka <jh@suse.cz>
1976 * Makefile.in (lcm.o): Add dependency on function.h
1977 * lcm.c (function.h): Include.
1978 * i386.c (machine_function, ix86_stack_locals,
1979 * ix86_save_varrargs_registers) : Move to
1981 * i386.h (machine_function, ix86_stack_locals,
1982 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
1983 (ix86_optimize_mode_switching): New.
1984 * i386.md (fix patterns): Set ix86_optimize_mode_switching
1986 2003-02-25 Nick Clifton <nickc@redhat.com>
1988 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
1989 of fourth arg is 'fndecl' not 'indirect'. Update comment
1990 describing the function's parameters.
1992 Mon Feb 24 22:08:22 CET 2003 Jan Hubicka <jh@suse.cz>
1994 * combine.c (simplify_shift_const): Fix previous patch.
1996 2003-02-24 Jeff Law <law@redhat.com>
1998 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
2000 (testsi_1, testhi_1, testqi_1): Likewise.
2002 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2004 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
2005 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
2006 * doc/extend.texi (Tru64 Pragmas): Reflect this.
2008 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
2009 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
2010 * fixinc/fixincl.x: Regenerate.
2011 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
2013 Fixes PR c/5059, c/6126, other/9671.
2015 2003-02-24 Roger Sayle <roger@eyesopen.com>
2017 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
2018 from handle_braces in "%{...}".
2020 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
2022 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
2023 (prepare_move_operands): Handle TLS operands.
2024 (tls_symbolic_operand): New.
2025 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
2026 (legitimize_pic_address): Do nothing for the TLS symbol.
2027 (sh_encode_section_info): Handle TLS case.
2028 (sh_strip_name_encoding): Drop TLS encoding.
2029 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
2030 * config/sh/sh.h (SH_TLS_ENCODING): Define.
2031 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
2032 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
2033 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
2034 * config/sh/sh.md: Define TLS UNSPEC constants.
2035 (type): Add tls_load.
2036 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
2037 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
2038 ("tls_initial_exec"): New insn.
2039 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
2040 ("load_gbr"): New insn.
2042 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
2043 * configure: Regenerate.
2045 2003-02-24 Alan Modra <amodra@bigpond.net.au>
2048 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
2049 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
2050 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
2051 (enum block_op_methods): Reorder for better store_expr optimization.
2052 * expr.c (store_expr): Test bit 1 of "want_value" for call param
2053 stores, test bit 0 for original want_value meaning. Pass
2054 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
2055 recursive calls, and calls to expand_param.
2056 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
2057 expected, set target to 0 rather than to subtarget. Formatting.
2059 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
2061 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
2063 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2065 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
2066 new default behavior.
2067 * ggc-common.c: Include sys/resource.h.
2068 (ggc_rlimit_bound): New function.
2069 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
2070 defaults to account for rlimits.
2072 2003-02-22 Richard Henderson <rth@redhat.com>
2074 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
2076 2003-02-22 Kelley Cook <kelley@dwhoops.info>
2078 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
2079 (ix86_tune_string): Rename from ix86_cpu_string.
2081 2003-02-22 Kelley Cook <kelleycook@comcast.net>
2083 * config/i386/i386.c: Replace "mcpu" with "mtune".
2084 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
2085 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
2086 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
2087 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
2089 2003-02-23 Andreas Schwab <schwab@suse.de>
2091 * config.gcc: Delete references to m68k/t-linux and
2093 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
2095 Sat Feb 22 20:22:19 CET 2003 Jan Hubicka <jh@suse.cz>
2097 * toplev.c (rest_of_compilation): Apply fotgotten hunk
2098 of track scheduling patch.
2100 Sat Feb 22 19:29:28 CET 2003 Jan Hubicka <jh@suse.cz>
2102 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
2103 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
2105 Sat Feb 22 12:42:16 CET 2003 Jan Hubicka <jh@suse.cz>
2107 * c-decl.c (c_expand_body_1): Fix.
2109 Sat Feb 22 03:13:36 CET 2003 Jan Hubicka <jh@suse.cz>
2111 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
2113 * cfgcleanup.c (try_forward_edges): Don't check loop structures
2114 when not optimizing.
2115 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
2117 * toplev.c (rest_of_compilation): Duplicate loop headers only when
2118 optimizing; Delete trivially dead insns early; fix optimize check.
2120 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
2121 dependency on cgraph.h
2122 * c-decl.c: Include cgraph.h
2123 (finish_function): Update call of tree_inlinable_function_p.
2124 * c-objc-common.c: Include cgraph.h
2125 * cgraph.h: New file.
2126 * cgraphunit.c: New file.
2127 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
2128 (cgraph_nodes, cgraph_n_nodes): Globalize.
2129 (cgraph_finalize_function, cgraph_finalize_compilation_unit
2130 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
2131 Move into cgraphunit.c
2132 * tree-inline.c: Include cgraph.h
2133 * tree-inline.c: Include cgraph.h
2135 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
2137 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
2138 for copying a register.
2140 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
2143 * toplev.c (process_options): If flag_detailed_statistics is set,
2144 then set time_report as well.
2147 * jump.c (never_reached_warning): Don't fall through BARRRIER
2148 insns. Update comments to reflect what the function really does.
2150 2003-02-21 Roger Sayle <roger@eyesopen.com>
2152 * fold-const.c (omit_one_operand): No longer static.
2153 * tree.h (omit_one_operand): Prototype here.
2154 (div_and_round_double): Keep fold-const.c prototypes together.
2155 * builtins.c (builtin_mathfn_code): Handle binary built-in
2156 funtions, such as "pow" and "atan2".
2157 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
2158 Simplify optimizations using "type" the builtin's return type.
2160 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
2162 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
2163 Fix functionalization typo.
2165 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
2168 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2170 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
2171 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
2173 * ggc-common.c: Include params.h
2174 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
2175 init_ggc_heuristics): New functions.
2176 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
2177 init_ggc_heuristics): Prototype.
2178 * toplev.c (print_version): Output GGC heuristics.
2179 (parse_options_and_default_flags): Call init_ggc_heuristics.
2181 Sat Feb 22 02:35:07 CET 2003 Jan Hubicka <jh@suse.cz>
2183 * i386.c (def_builtin): Special case 64bit builtins.
2184 (MASK_SSE164, MASK_SSE264): New constants.
2185 (builtin_description): Add 64bit builtins.
2186 (ix86_init_mmx_sse_builtins): Likewise.
2187 * i386.h (enum ix86_builtins): Likewise.
2188 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
2189 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
2190 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
2191 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
2192 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
2193 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
2194 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
2196 Sat Feb 22 00:48:22 CET 2003 Jan Hubicka <jh@suse.cz>
2198 * i386.c (builtin_description): Add __builtin_ia32_paddq and
2199 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
2200 and __builtin_ia32_psubq128.
2201 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
2202 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
2203 (mmx_adddi3, mmx_subdi3): New.
2204 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
2205 * xmmintrin.h (_mm_movepi64_pi64): New.
2206 (_mm_add_epi64, _mm_sub_epi64): fix.
2207 (_mm_mul_pu16): Rename to...
2208 (_mm_mul_su32): ... this one.
2210 * builtins.c (expand_builtin_expect): Do not predict
2211 flag_guess_branch_prob is not set.
2212 * c-semantics.c (expand_stmt): Likewise.
2213 * predict.c (predict_insn): Likewise.
2214 * stmt.c (expand_continue_loop): Likewise.
2215 * toplev.c (rest_of_compilation): Do not call
2216 note_prediction_to_br_prob and note_prediction_to_br_prob
2217 when not optimizing.
2219 Fri Feb 21 23:10:13 CET 2003 Jan Hubicka <jh@suse.cz>
2221 * cfgrtl.c (commit_edge_insertions): Call
2222 find_many_sub_basic_block only when some code has been emitted.
2223 (commit_edge_insertions_watch_calls): Bring into sync with
2224 commit_edge_insertions
2226 Fri Feb 21 20:41:29 2003 J"orn Rennecke <joern.rennecke@superh.com>
2228 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
2230 * sh.md (binary_sf_op): Use extra constant operand instead of
2231 negating constant operand 4.
2232 * sh.c (sh_expand_binop_v2sf): Supply it.
2234 2003-02-21 Zack Weinberg <zack@codesourcery.com>
2236 * cpphash.h (struct lexer_state): Add directive_wants_padding.
2237 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
2238 for directives of type INCL.
2239 (glue_header_name, parse_include): Use get_token_no_padding.
2240 * cppmacro.c (replace_args): If directive_wants_padding,
2241 provide padding tokens.
2243 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
2245 * config/h8300/h8300.md (a peephole2): New.
2247 Fri Feb 21 11:05:44 CET 2003 Jan Hubicka <jh@suse.cz>
2249 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
2250 (commit_edge_insertions): Call find_many_sub_basic_blocks
2252 * reg-stack.c (convert_regs): Cleax aux for blocks.
2254 Fri Feb 21 10:29:52 CET 2003 Jan Hubicka <jh@suse.cz>
2256 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
2258 2003-02-21 Glen Nakamura <glen@imodulo.com>
2260 PR optimization/8613
2261 * builtins.c (expand_builtin): Emit postincrements before expanding
2264 2003-02-21 Ben Elliston <bje@redhat.com>
2267 * doc/install.texi (Configuration): Explain using $HOME instead of
2268 the ~ metacharacter when referring to home directories.
2270 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
2272 * configure.in (TARGET_SYSTEM_ROOT): Set default to
2273 ${exec_prefix}/${target_alias}/sys-root. Match explicit
2274 '${exec_prefix}' (in addition to the expansion thereof) as
2276 * configure: Rebuilt.
2278 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
2280 * config/h8300/h8300.md (addhi3_incdec): Change the name to
2282 (addsi3_incdec): Change the name to *addsi3_incdec.
2284 2003-02-20 Roger Sayle <roger@eyesopen.com>
2286 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
2288 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
2291 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
2292 options to be ignored.
2293 (c_common_decode_option): Ignore them when preprocessing.
2295 Thu Feb 20 21:41:19 CET 2003 Jan Hubicka <jh@suse.cz>
2297 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
2299 (lang_independent_options): Add -fsched2-use-superblocks
2301 (rest_of_compilation): Deal with it.
2302 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
2303 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
2305 * rtl.h (reg_to_stack): Update prototype.
2306 * reg-stack.c (reg_to_stack): Return when something has changed;
2307 update liveness when executing after superblock scheduling.
2309 * combine.c (simplify_shift_const): Simplify few special cases
2312 2003-02-20 David Edelsohn <edelsohn@gnu.org>
2314 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
2315 (add.,subf.,neg.): Change attribute to fast_compare.
2316 All DFA descriptions updated.
2318 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
2320 Change base class access representation.
2321 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
2322 TREE_VIA_PRIVATE): Remove.
2323 (BINFO_BASEACCESSES): New binfo elt.
2324 (BINFO_BASEACCESS): New accessor.
2325 (BINFO_ELTS): Increase.
2326 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
2327 (access_public_node, access_protected_node,
2328 access_private_node): New global nodes.
2329 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
2330 * dbxout.c (dbxout_type): Adjust.
2331 * dwarf2out.c (gen_inheritance_die): Add access parameter.
2332 (gen_member_die): Adjust.
2333 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
2334 (output_type): Adjust.
2335 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
2337 Change base class access representation. Share virtual base
2339 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
2341 * cp/class.c (build_base_path): Likewise.
2342 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
2343 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
2344 (make_new_vtable): Adjust.
2345 (force_canonical_binfo_r): Delete.
2346 (force_canonical_binfo): Delete.
2347 (mark_primary_virtual_base): Delete.
2348 (dfs_unshared_virtual_bases): Delete.
2349 (mark_primary_bases): Adjust.
2350 (maybe_warn_about_overly_private_class): Adjust.
2351 (dfs_base_derived_from): Delete.
2352 (base_derived_from): Follow the inheritance chain.
2353 (struct find_final_overrider_data): Add vpath member.
2354 (dfs_find_final_overrider): Adjust.
2355 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
2356 (find_final_overrider): Adjust.
2357 (update_vtable_entry_for_fn): Adjust.
2358 (modify_all_vtables): Adjust.
2359 (walk_subobject_offsets): Adjust.
2360 (layout_nonempty_base_or_field): Adjust.
2361 (layout_empty_base): Remove last parameter. Adjust.
2362 (build_base_field): Adjust.
2363 (build_base_fields): Adjust.
2364 (propagate_binfo_offsets): Remove last parameter. Adjust.
2365 (dfs_set_offset_for_unshared_vbases): Delete.
2366 (layout_virtual_bases): Adjust.
2367 (finish_struct_1): Adjust.
2368 (init_class_processing): Don't init access nodes.
2369 (dfs_get_primary_binfo): Delete.
2370 (get_primary_binfo): Adjust.
2371 (dump_class_hierarchy_r): Remove most derived arg, add IGO
2373 (dump_class_hierarchy): Adjust.
2374 (finish_vtbls): Adjust.
2375 (get_original_base): Delete.
2376 (build_vtt_inits): Adjust.
2377 (dfs_build_secondary_vptr_vtt_inits): Adjust.
2378 (dfs_ctor_vtable_bases_queue_p): Adjust.
2379 (build_ctor_vtbl_group): Adjust.
2380 (dfs_accumulate_vtbl_inits): Adjust.
2381 (build_vtbl_initializer): Adjust.
2382 (build_vbase_offset_vtbl_entries): Adjust.
2383 (add_vcall_offset_vtbl_entries_1): Adjust.
2384 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
2385 (access_*_node): Remove.
2386 (CANONICAL_BINFO): Delete.
2387 (BINFO_UNSHARED_MARKED): Remove.
2388 (BINFO_MARKED): Set LANG_FLAG_0 directly.
2389 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
2390 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
2391 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
2393 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
2394 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
2395 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
2397 (BINFO_DEPENDENT_BASE_P): New.
2398 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
2400 (markedp, unmarkedp): Adjust.
2401 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
2402 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
2403 find_vbase_instance, binfo_for_vbase): Delete.
2404 (copied_binfo, original_binfo): Declare.
2405 (finish_base_specifier): Add virtual_p arg.
2406 (unshare_base_binfos): Delete.
2407 (copy_base_binfos): Declare.
2408 (reverse_path): Delete.
2409 * cp/decl.c (xref_basetypes): Access and virtuality passed
2410 differently. Don't copy direct base binfos here. Call
2412 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
2413 (initialize_vtbl_ptrs): Adjust.
2414 (expand_member_init): Adjust.
2415 * cp/parser.c (cp_parser_base_specifier): Adjust.
2416 * cp/pt.c (instantiate_class_template): Adjust.
2417 (get_template_base_recursive): Adjust.
2418 * cp/rtti.c (get_pseudo_ti_init): Adjust.
2419 (get_pseudo_ti_desc): Adjust.
2420 * cp/tree.c (unshare_base_binfos): Rename to ...
2421 (copy_base_binfos): ... here, reimplement.
2422 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
2423 (reverse_path): Remove.
2424 * cp/typeck.c (get_delta_difference): Adjust error messages.
2425 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
2426 * cp/search.c (lookup_base_r): Adjust.
2427 (dynamic_cast_base_recurse): Adjust.
2428 (canonical_binfo): Remove.
2429 (dfs_canonical_queue): Remove.
2430 (dfs_assert_unmarked_p): Remove.
2431 (assert_canonical_unmarked): Remove.
2432 (shared_marked_p, shared_unmarked_p): Remove.
2433 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
2434 (dfs_access_in_type): Adjust.
2435 (access_in_type): Adjust.
2436 (dfs_accessible_queue_p): Adjust.
2437 (dfs_accessible_p): Adjust.
2438 (is_subobject_of_p_1, is_subobject_of_p): Remove.
2439 (struct lookup_field_info): Remove from_dep_base_p field.
2440 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
2441 (lookup_field_r): Remove dependent base code.
2442 (lookup_member): Likewise.
2443 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
2444 (dfs_unmarked_real_bases_queue_p): Remove.
2445 (dfs_marked_real_bases_queue_p): Remove.
2446 (dfs_skip_vbases): Remove.
2447 (dfs_get_pure_virtuals): Adjust.
2448 (markedp, unmarkedp): Adjust.
2449 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
2450 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
2451 (dfs_unmark): Adjust.
2452 (dfs_get_vbase_types):Remove.
2453 (dfs_build_inheritance_graph_order): Remove.
2454 (get_vbase_types): Remove
2455 (dfs_find_vbase_instance): Remove.
2456 (find_vbase_instance): Remove.
2457 (dfs_debug_unmarkedp): Adjust.
2458 (dependent_base_p): Remove.
2459 (dfs_push_type_decls): Adjust.
2460 (dfs_push_decls): Adjust.
2461 (dfs_no_overlap_yet): Adjust.
2462 (copied_binfo): New function.
2463 (original_binfo): New function.
2464 (binfo_for_vbase): Remove.
2466 Change base class access representation.
2467 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
2468 (add_interface_do): Likewise.
2470 2003-02-20 David Edelsohn <edelsohn@gnu.org>
2472 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2473 * config/rs6000/power4.md (power4-store,power4-vecstore): New
2475 (power4-fpstore): Compact.
2477 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
2479 * config/h8300/h8300.md (*iorsi3_w): New.
2481 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
2483 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
2484 * rtl.c (reg_note_name): Likewise.
2485 * rtl.h (enum reg_note): Likewise.
2486 * doc/invoke.texi: Likewise.
2487 * doc/rtl.texi: Likewise.
2489 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
2491 * bb-reorder.c (find_traces_1_round): Fix comment typo.
2493 2003-02-19 Roger Sayle <roger@eyesopen.com>
2495 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
2496 addition in the presence of signaling NaNs.
2498 2003-02-19 Krister Walfridsson <cato@df.lth.se>
2500 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
2502 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2504 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
2505 ORing with 0xffff??00 with the highest bit of the ?? part set.
2506 (compute_logical_op_length): Update.
2507 (compute_logical_op_cc): Likewise.
2509 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
2511 * bb-reorder.c (find_traces_1_round): Fixed condition for small
2512 destination block with multiple predecessors.
2513 (connect_traces): Check whether the block is a start of trace.
2515 Wed Feb 19 19:00:24 CET 2003 Jan Hubicka <jh@suse.cz>
2517 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
2518 * function.c (assign_params): Likewise.
2519 * arm-protos.h (arm_init_cumulative_args): Update prototype.
2520 * arm.c (arm_init_cumulative_args): Update function.
2521 * arm.h (INIT_CUMULATIVE_ARGS): Update.
2522 * avr-protos.h (init_cumulative_args): Update prototype.
2523 * avr.c (init_cumulative_args): Update function.
2524 * avr.h (INIT_CUMULATIVE_ARGS): Update.
2525 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
2526 * d30v.c (d30v_init_cumulative_args): Update function.
2527 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
2528 * frv-protos.h (frv_init_cumulative_args): Update prototype.
2529 * frv.c (frv_init_cumulative_args): Update function.
2530 * frv.h (INIT_CUMULATIVE_ARGS): Update.
2531 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
2532 * pa.h (INIT_CUMULATIVE_ARGS): Update.
2533 * sparc-protos.h (init_cumulative_args): Update prototype.
2534 * sparc.c (init_cumulative_args): Update function.
2535 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
2536 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
2538 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2540 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
2541 (*ashiftsi_sextqi_7): Likewise.
2543 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2545 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
2548 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
2549 for C++ on IRIX 6.5.1[89].
2550 * fixinc/tests/base/internal/sgimacros.h: New file.
2552 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
2553 * fixinc/tests/base/internal/wchar_core.h: New file.
2555 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
2556 socklen_t definition.
2557 * fixinc/fixincl.x: Regenerate.
2558 * fixinc/tests/base/sys/socket.h: New file.
2559 Fixes PR libgcj/9652.
2561 Wed Feb 19 17:22:51 CET 2003 Jan Hubicka <jh@suse.cz>
2563 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
2565 2003-02-19 David Edelsohn <edelsohn@gnu.org>
2567 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
2568 align_jumps_max_skip and align_loops_max_skip.
2570 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
2572 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
2573 test size if named section.
2575 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
2577 * expr.c (expand_expr): Use gen_int_mode for the argument
2580 Wed Feb 19 14:22:42 CET 2003 Jan Hubicka <jh@suse.cz>
2582 * i386.md (cosxf2): Fix conditional.
2584 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2586 * config/h8300/h8300.md (extendqisi2): Change to an expander.
2587 (*extendqisi2_h8300): New.
2588 (*extendqisi2_h8300hs): Likewise.
2590 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
2592 * config/h8300/h8300-protos.h: Update the prototype for
2593 split_adds_subs. Remove the prototypes for
2594 const_int_le_2_operand and const_int_le_6_operand.
2595 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
2596 (const_int_le_2_operand): Remove.
2597 (const_int_le_6_operand): Likewise.
2598 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
2599 for const_int_le_2_operand and const_int_le_6_operand.
2600 * config/h8300/h8300.md: Update all uses of split_adds_subs.
2603 Tue Feb 18 23:50:59 CET 2003 Jan Hubicka <jh@suse.cz>
2605 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
2606 (cgraph_expand_function): Rewrite.
2608 2003-02-18 Matt Austern <austern@apple.com>
2610 * toplev.c, langhooks.c, langhooks-def.h: Move
2611 write_global_declarations from toplev.c to langhooks.c.
2613 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
2615 * config/h8300/h8300.c (general_operand_src): Always check
2617 (general_operand_dst): Likewise.
2619 2003-02-18 Roger Sayle <roger@eyesopen.com>
2621 * convert.c (convert_to_real): Also optimize (float)log(x) into
2622 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
2624 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
2626 * config/sh/sh.c (unspec_caller_rtx_p): New.
2627 (sh_cannot_copy_insn_p): New.
2628 (TARGET_CANNOT_COPY_INSN_P): New.
2630 2003-02-18 Richard Henderson <rth@redhat.com>
2632 * c-common.c (handle_used_attribute): Accept static data too.
2634 2003-02-18 Nick Clifton <nickc@redhat.com>
2635 Aldy Hernandez <aldyh@redhat.com>
2637 * testsuite/gcc.dg/20030218-1.c: New.
2639 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
2641 * target-def.h (TARGET_INITIALIZER): Add
2642 TARGET_VECTOR_TYPES_COMPATIBLE.
2643 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
2645 * target.h (struct gcc_target): Add field vector_types_compatible.
2647 * c-typeck.c (comptypes): Take into account
2648 TARGET_VECTOR_TYPES_COMPATIBLE.
2649 (convert_for_assignment): Same.
2651 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
2652 (rs6000_spe_vector_types_compatible): New.
2653 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
2655 2003-02-19 Andreas Schwab <schwab@suse.de>
2657 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
2658 * toplev.c: Include langhooks-def.h.
2660 2003-02-18 Chris Demetriou <cgd@broadcom.com>
2662 * config/mips/mips.h (enum processor_type): Sort entries
2664 * config/mips/mips.md (define_attr cpu): Sync with processor_type
2665 enum values, including adding entries that were missing.
2667 Tue Feb 18 20:15:54 2003 J"orn Rennecke <joern.rennecke@superh.com>
2669 * sh.c (calc_live_regs): Also check GET_CODE when checking if
2670 initial value for PR_REG is still the PR_REG register.
2672 2003-02-18 Jim Wilson <wilson@redhat.com>
2674 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
2675 instruction in output template.
2676 (bsp_value): Change output template from string to C code, add %,
2677 before actual instruction.
2678 (flushrs): Mark as not predicable.
2680 2003-02-18 Krister Walfridsson <cato@df.lth.se>
2682 * inclhack.def (netbsd_bogus_semicolon): New fix.
2683 * fixincl.x: Rebuilt.
2684 * tests/base/ctype.h: Update.
2686 2003-02-18 Roger Sayle <roger@eyesopen.com>
2688 * fold-const.c (negate_expr_p): New function to determine whether
2689 an expression can be negated cheaply.
2690 (fold) [MINUS_EXPR]: Use it to determine whether to transform
2691 -A - B into -B - A for floating point types.
2693 2003-02-18 Roger Sayle <roger@eyesopen.com>
2695 * sbitmap.c (sbitmap_resize): New function.
2696 * sbitmap.h (sbitmap_resize): Prototype here.
2697 * recog.c (split_all_insns): Use sbitmap_resize.
2699 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
2701 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
2703 (extendqisi2): Likewise.
2704 (*extendhisi2_h8300): Likewise.
2706 2003-02-18 Matt Austern <austern@apple.com>
2708 * langhooks.h, langhooks-def.h: introduce new langhook,
2709 final_write_globals, with write_global_declarations as default.
2710 * toplev.c: Move invocation of wrapup_global_declarations from
2711 compile_file to new function, write_global_declarations. Change
2712 compile_file to use final_write_globals hook. Change
2713 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
2716 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2718 * pa.md: Correct and enhance comment.
2720 2003-02-18 Geoffrey Keating <geoffk@apple.com>
2722 * gcc.c (validate_switches): Don't scan past closing '}'.
2724 2003-02-18 Ben Elliston <bje@redhat.com>
2727 * doc/extend.texi (Function Attributes): Document the effect of
2728 the C++ "this" parameter on the counting of arguments for the
2729 "format" and "format_arg" attributes.
2731 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
2733 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
2737 Mon Feb 17 16:16:54 CET 2003 Jan Hubicka <jh@suse.cz>
2739 * recog.c (split_all_insns): Fix memory overflow.
2741 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
2743 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
2745 (*cmphi_h8300): Likewise.
2746 (*cmphi_h8300hs): Likewise.
2748 (7 peephole2): Likewise.
2750 Sun Feb 16 23:07:52 CET 2003 Jan Hubicka <jh@suse.cz>
2752 * c-typeck.c (build_c_cast): Fold constant variables into
2755 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2757 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
2758 (Binaries): Ditto for Sinix/Reliant Unix.
2760 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
2762 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
2763 not overlap the final result register.
2765 2003-02-16 Arend Bayer <arend.bayer@web.de>
2766 Richard Henderson <rth@redhat.com>
2769 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
2770 rearrange mult arguments for less recursion.
2771 (extract_muldiv): New. Prevent runaway recursion.
2773 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
2775 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
2778 2003-02-15 Roger Sayle <roger@eyesopen.com>
2780 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
2781 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
2782 (ext_80387_constants_table): Global table of 80387 special constants
2783 guarded by ext_80387_constants_init flag when not initialized.
2784 (init_ext_80387_constants): New function to initialize this table.
2785 (standard_80387_constant_p): Extend to recognize extra 80387
2786 constants, in XFmode, on processors where this is a win.
2787 (standard_80387_constant_opcode): New function to return the
2788 opcode associated with standard_80387_constant_p.
2789 (standard_80387_constant_rtx): New function to return the XFmode
2790 CONST_DOUBLE associated with standard_80387_constant_p.
2791 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
2793 * config/i386/i386-protos.h (standard_80387_constant_opcode):
2795 (standard_80387_constant_rtx): Likewise.
2797 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
2798 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
2799 *movtf_integer): Simplify using new standard_80387_constant_opcode.
2801 2003-02-15 Geoffrey Keating <geoffk@apple.com>
2803 * doc/invoke.texi (Optimize Options): Correct @option syntax.
2805 2003-02-15 Richard Henderson <rth@redhat.com>
2807 * Makefile.in (cfglayout.o): Depend on TARGET_H.
2808 * cfglayout.c: Include target.h.
2809 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
2810 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
2811 * target.h (struct gcc_target): Add cannot_copy_insn_p.
2813 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
2814 (TARGET_CANNOT_COPY_INSN_P): New.
2815 (override_options): Revert 2003-02-08 hack.
2817 2003-02-15 Richard Henderson <rth@redhat.com>
2819 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
2820 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
2822 2003-02-15 David Edelsohn <edelsohn@gnu.org>
2824 * config/rs6000/rs6000.h (processor_type): Add PPC440.
2825 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2826 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2827 TARGET_SCHED_VARIABLE_ISSUE): Define.
2828 (rs6000_use_dfa_pipeline_interface): New function.
2829 (rs6000_multipass_dfa_lookahead): New Function.
2830 (rs6000_variable_issue): New function.
2831 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
2832 (rs6000_issue_rate): Add PPC440.
2833 * config/rs6000/rs6000.md (unspec list): Correct typo.
2834 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
2835 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
2836 cmp, delayed_cr, mfcr, mtcr.
2837 (automata_option): Set "ndfa".
2838 (extendMMNN2): Update attributes.
2839 (movcc_internal1): Discourage move to non-cr0. Update
2841 (movMM_update): Update attributes.
2842 (cmpMM_internal): Update attributes.
2843 (sCC CR materialization): Update attributes.
2844 (branch patterns): Do not discourage non-cr0.
2845 (cr logical patterns): Prefer destructive register allocation.
2847 (movesi_from_cr): Update attribute.
2848 (mtcrf_operation): Update attribute.
2849 (mtcrfsi): Update attribute.
2850 * config/rs6000/40x.md: New file.
2851 * config/rs6000/603.md: New file.
2852 * config/rs6000/6xx.md: New file.
2853 * config/rs6000/7450.md: New file.
2854 * config/rs6000/7xx.md: New file.
2855 * config/rs6000/mpc.md: New file.
2856 * config/rs6000/power4.md: New file.
2857 * config/rs6000/rios1.md: New file.
2858 * config/rs6000/rios2.md: New file.
2859 * config/rs6000/rs64.md: New file.
2860 [Some DFA descriptions based on work by Michael Hayes]
2862 2003-02-15 Richard Henderson <rth@redhat.com>
2864 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
2865 successors with multiple predecessors.
2866 (connect_traces): Try harder to copy traces of length 1.
2868 * function.h (struct function): Add computed_goto_common_label,
2869 computed_goto_common_reg.
2870 * function.c (free_after_compilation): Zap them.
2871 * stmt.c (expand_computed_goto): Use them to produce one
2872 indirect branch per function.
2874 2003-02-15 Richard Henderson <rth@redhat.com>
2876 * cfgcleanup.c: Include params.h.
2877 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
2878 too many outgoing edges from a block.
2879 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
2880 * params.def (max-crossjump-edges): New.
2881 * doc/invoke.texi: Document it.
2883 2003-02-15 Richard Henderson <rth@redhat.com>
2885 * recog.c (split_all_insns): Include new blocks in life update;
2886 do a global life update.
2888 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
2890 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
2892 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
2895 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2897 PR optimization/7702
2898 * reload1.c (reload_cse_simplify_set): Honor
2899 CANNOT_CHANGE_MODE_CLASS.
2901 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
2903 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
2905 * config/mn10300/mn10300-protos.h: Declare it.
2906 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
2907 attribute cc of instructions that may use clr.
2909 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
2911 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
2912 (x - (x & y)) is found.
2914 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2916 * configure.in: Fix typo.
2917 * configure: Regenerate.
2919 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
2921 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
2923 2003-02-13 Adam Nemet <anemet@lnxw.com>
2926 * combine.c: Fix spelling in comment.
2927 (cached_nonzero_bits): New function.
2928 (cached_num_sign_bit_copies): New function.
2929 (nonzero_bits_with_known): New macro.
2930 (num_sign_bit_copies_with_known): New macro.
2931 (nonzero_bits1): Rename from nonzero_bits. Add three new
2932 arguments. Change calls from nonzero_bits to
2933 nonzero_bits_with_known.
2934 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
2935 three new arguments. Change calls from num_sign_bit_copies to
2936 num_sign_bit_copies_with_known.
2937 (nonzero_bits): New macro.
2938 (num_sign_bit_copies): New macro.
2939 (update_table_tick): Don't traverse identical subexpression more
2941 (get_last_value_validate): Likewise.
2943 2003-02-13 Zack Weinberg <zack@codesourcery.com>
2945 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
2946 * function.h (struct emit_status): Length of regno_pointer_align
2947 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
2948 not regno_pointer_align_length (i.e. length actually used, not
2949 length as allocated)
2951 * config/i386/i386.c (struct stack_local_entry): New.
2952 (struct machine_function): Replace huge array with alist.
2953 (assign_386_stack_local): Change to match.
2955 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
2957 * inclhack.def (hpux_long_double): Tighten select and add bypass
2959 * fixincl.x: Rebuilt.
2961 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
2963 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
2964 edge and block ends with a jump insn it must be simple jump.
2966 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
2968 * Makefile.in (PREPROCESSOR_DEFINES): Add
2969 @TARGET_SYSTEM_ROOT_DEFINE@.
2970 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
2971 is specified or if building a cross compiler.
2972 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
2973 if the sysroot is under $exec_prefix.
2974 * configure: Regenerated.
2975 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
2977 (struct default_include): Add add_sysroot field.
2978 (cpp_SYSROOT): Declare.
2979 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
2981 (cpp_SYSROOT): New variable.
2982 * cppinit.c (cpp_create_reader): Initialize
2983 CPP_OPTION (pfile, sysroot).
2984 (init_standard_includes): Handle add_sysroot. Do not
2985 add unrelocated copies of relocated directories.
2986 (COMMAND_LINE_OPTIONS): Add -isysroot.
2987 (cpp_handle_option): Handle -isysroot.
2988 * cpplib.h (struct cpp_options): Add sysroot member.
2989 * gcc.c (The Specs Language): Update description of %I.
2990 (target_system_root_changed): New variable.
2991 (process_command): Conditionalize make_relative_prefix call
2992 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
2993 target_system_root_changed.
2994 (do_spec_1): Add -isysroot to %I.
2995 * doc/invoke.texi (Spec Files): Update description of %I.
2996 * doc/install.texi (--with-sysroot): Update comment about
2999 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
3001 * config/h8300/h8300.md (a peephole2): New.
3003 2003-02-13 Robert Lipe <robertlipe@usa.net>
3004 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3006 * doc/install.texi (Specific): Update three SCO-related URLs.
3008 2003-02-13 Andreas Schwab <schwab@suse.de>
3010 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
3011 Parenthesize properly.
3012 (NPREDECESORS): Parenthesize properly.
3014 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
3016 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
3018 2003-02-12 Roger Sayle <roger@eyesopen.com>
3020 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
3021 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
3023 * reg-stack.c (subst_stack_regs_pat): Add support for binary
3024 UNSPEC instructions (e.g. "fpatan").
3026 2003-02-12 Mike Stump <mrs@apple.com>
3028 * varray.c (element_size): Remove.
3031 (varray_init): Use new interface.
3032 (varray_grow): Use new interface.
3033 (varray_clear): Use new interface.
3035 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
3037 * config/rs6000/spe.h: Add casts to the arguments of the following
3038 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
3039 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
3040 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
3041 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
3042 __ev_get_u16, __ev_get_s16.
3044 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3046 * config/h8300/h8300.md (a peephole2): New.
3048 Wed Feb 12 22:47:18 CET 2003 Jan Hubicka <jh@suse.cz>
3050 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
3051 (OBJS): Add callgraph.o
3053 * c-decl.c (expand_body_1): Break out from ...
3054 (expand_body): This one; change calling convention
3055 (finish_function): Move some of expand_body logic here.
3056 (c_expand_deferred_function): Update call of expand_body
3057 (c_expand_stmt): Use c_expand_body_1.
3058 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
3059 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
3060 * c-tree.h (c_expand_body): Declare.
3061 * callgraph.c: New file.
3062 * flags.h (flag_unit_at_a_time): Declare.
3063 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
3064 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
3065 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
3066 * langhooks.h (struct lang_hooks_for_callgraph): New.
3067 (struct lang_hooks): Add callgraph field.
3068 * toplev.c (flag_unit_at_a_time): New.
3069 (lang_independent_options): Add flag_unit_at_a_time.
3070 (process_options): Disable unit-at-a-time mode for frontends not
3071 supporting callgraph.
3072 * tree-inline.c (typedef struct inline_data): Add "decl"
3073 (expand_call_inline): Update callgraph.
3074 (optimize_inline_calls): Set id.decl.
3075 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
3076 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
3077 cgraph_calls_p): Declare.
3078 * invoke.texi (-funit-at-a-time): Document
3080 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
3082 * config/rs6000/spe.h: Fix misc formatting.
3083 (__ev_create_ufix32_fs): Cast ev argument.
3084 (__ev_create_sfix32_fs): Same.
3085 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
3086 (__ev_get_ufix32_fs_internal): Same.
3088 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
3090 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
3091 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
3093 2003-02-12 Zack Weinberg <zack@codesourcery.com>
3095 * cpplib.c (do_include_common): Move warnings for
3096 #include_next and #import out to callers. Use early-return
3097 instead of nested ifs. Don't do check_eol here.
3098 (parse_include): Do check_eol here with the rest of the
3100 (do_include_next, do_import): Now handle warnings.
3102 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3104 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
3106 Wed Feb 12 15:19:42 CET 2003 Jan Hubicka <jh@suse.cz>
3108 * predict.c (estimate_probability): Fix roundoff error.
3110 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3112 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
3113 (two peephole2): New.
3115 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
3117 * config/h8300/h8300.md (several peephole2): Replace
3118 find_regno_note with peep2_reg_dead_p.
3120 2003-02-11 Richard Henderson <rth@redhat.com>
3122 * gcse.c (lookup_set): Remove unused argument PAT. Update
3125 2003-02-11 Geoffrey Keating <geoffk@apple.com>
3127 * diagnostic.c (real_abort): New.
3128 (diagnostic_report_diagnostic): Call real_abort on error.
3129 * diagnostic.h (diagnostic_abort_on_error): New.
3130 (struct diagnostic_context): Add abort_on_error field.
3131 * toplev.c (setup_core_dumping): New.
3132 (decode_d_option): Handle 'H' case.
3133 * doc/invoke.texi (Debugging Options): Document -dH.
3135 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
3137 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
3138 which refers to obsolete directories.
3140 2003-02-11 Richard Henderson <rth@redhat.com>
3142 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
3144 Mon Oct 21 17:07:47 CEST 2002 Jan Hubicka <jh@suse.cz>
3146 * i386.c (contains_128bit_aligned_vector_p): New function.
3147 (ix86_function_arg_boundary): Properly align vector modes.
3149 2003-02-11 Bob Wilson <bob.wilson@acm.org>
3151 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
3152 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
3155 2003-02-11 Roger Sayle <roger@eyesopen.com>
3157 * builtins.c: Fix failure caused by commiting wrong patch.
3159 2003-02-11 Dale Johannesen <dalej@apple.com>
3160 * ra-build.c (compare_and_free_webs): Relax checking.
3161 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
3162 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3164 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3166 PR optimization/9651
3167 * rtlanal.c (may_trap_p): Handle FIX.
3169 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
3171 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
3172 * doc/invoke.texi: Extra alias.
3174 2003-02-11 Geoffrey Keating <geoffk@apple.com>
3176 * config/rs6000/host-darwin.c: Fix comment.
3178 2003-02-11 David Edelsohn <edelsohn@gnu.org>
3180 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
3181 predicate for mod result.
3183 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3185 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
3186 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
3187 * fixincl.x: Rebuilt.
3188 * tests/base/stdlib.h: Update.
3189 * tests/base/ctype.h: New file.
3191 Tue Feb 11 20:44:45 CET 2003 Jan Hubicka <jh@suse.cz>
3193 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
3195 2003-02-11 Richard Henderson <rth@redhat.com>
3197 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
3198 appropriated as globals.
3199 (ix86_expand_clrstr): Similarly.
3200 * config/i386/i386.md (cmpstrsi): Similarly.
3202 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
3204 * config/h8300/h8300.md (a peephole2): Add a case of 255.
3206 2003-02-11 Roger Sayle <roger@eyesopen.com>
3208 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
3209 (pow_optab, atan2_optab): Define corresponding macros.
3210 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
3211 * genopinit.c (optabs): Implement pow_optab and atan2_optab
3212 using pow?f3 and atan2?f3 patterns.
3213 * builtins.c (expand_errno_check): New function to update errno
3214 if necessary, split out from expand_builtin_mathfn.
3215 (expand_builtin_mathfn): Use expand_errno_check.
3216 (expand_builtin_mathfn_2): New function to handle expanding binary
3217 math functions, reusing the code in expand_errno_check.
3218 (expand_builtin): Handle the pow and atan2 math built-ins,
3219 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
3220 expand_builtin_mathfn_2.
3222 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
3224 Tue Feb 11 19:03:22 MET 2003 Jan Hubicka <jh@suse.cz>
3226 * combine.c (combine_simplify_rtx): Fix folding of
3227 nested float_truncates.
3229 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
3231 * config/h8300/h8300.md (a peephole2): Fix a typo.
3233 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
3235 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
3238 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
3240 * config/h8300/h8300-protos.h: Add a prototype for
3242 * config/h8300/h8300.c (gtuleu_operator): New.
3243 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
3244 * config/h8300/h8300.md (a peephole2): New.
3246 Tue Feb 11 13:32:12 CET 2003 Jan Hubicka <jh@suse.cz>
3248 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
3250 Tue Feb 11 10:02:54 CET 2003 Jan Hubicka <jh@suse.cz>
3252 * predict.c (choose_function_section): Choose sections correctly.
3254 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3256 * reload1.c (first_label_num): New.
3257 (reload): Index offsets_known_at and offsets_at using difference of
3258 label number and first label number. Don't use offset pointers.
3259 (set_label_offsets, set_initial_label_offsets): Likewise.
3261 2003-02-10 Roger Sayle <roger@eyesopen.com>
3263 * mips-tfile.c (init_file): Add missing initializers in the
3264 "#ifdef __alpha" case.
3265 (file_offset, max_file_offset): Declare as unsigned long.
3266 (write_varray): Cast to "unsigned long" in comparisons against
3267 either file_offset or max_file_offset.
3268 (write_object): Likewise.
3269 (read_seek): Likewise.
3270 (copy_object): Likewise. Declare "ifd" as int to match its use
3271 in add_ext_symbol, and avoid signed/unsigned conditional warning.
3273 2003-02-10 Nick Clifton <nickc@redhat.com>
3274 Aldy Hernandez <aldyh@redhat.com>
3276 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
3277 override options which have been specified on the command line.
3279 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
3281 * config/h8300/h8300.md (abssf2): New.
3282 (*abssf2_h8300): Likewise.
3283 (*abssf2_h8300hs): Likewise.
3285 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
3287 * tree.c (build_tree_list): Fix parameter names in comment.
3289 2003-02-10 Janis Johnson <janis187@us.ibm.com>
3291 * config/rs6000/ppc64-fp.c: New file.
3292 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
3294 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
3296 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3297 * bb-reorder.c (make_reorder_chain): Deleted.
3298 (make_reorder_chain_1): Deleted.
3299 (find_traces): New function.
3300 (rotate_loop): New function.
3301 (mark_bb_visited): New function.
3302 (find_traces_1_round): New function.
3303 (copy_bb): New function.
3304 (bb_to_key): New function.
3305 (better_edge_p): New function.
3306 (connect_traces): New function.
3307 (copy_bb_p): New function.
3308 (get_uncond_jump_length): New function.
3309 (reorder_basic_blocks): Use new functions (Software Trace Cache).
3310 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
3313 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
3315 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
3317 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3319 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3320 (DECL_LIVE_RANGE_RTL): Remove.
3322 2003-02-10 Nick Clifton <nickc@redhat.com>
3324 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
3325 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
3326 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
3327 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
3328 config/arm/freebsd.h, config/arm/linux-elf.h,
3329 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
3330 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
3331 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
3332 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
3333 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
3334 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
3335 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
3336 and reformat as appropriate.
3338 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
3340 * config/h8300/clzsi2.c: Remove.
3341 * config/h8300/ctzsi2.c: Likewise.
3342 * config/h8300/paritysi2.c: Likewise.
3343 * config/h8300/popcountsi2.c: Likewise.
3344 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
3345 ctzsi2, paritysi2, and popcountsi2.
3347 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3348 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
3351 * c-decl.c (duplicate_decls): Discard the initializer of the
3352 new decl when the types are conflicting.
3354 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
3356 * Makefile.in (sreal.o): Added.
3357 (predict.o): Depends on sreal.h instead of real.h.
3358 * sreal.c: New file.
3359 * sreal.h: New file.
3360 * predict.c: Use sreal.c instead of real.c.
3362 2003-02-10 Nick Clifton <nickc@redhat.com>
3364 * Contributed support for the Cirrus EP9312 "Maverick"
3365 floating point co-processor. Written by Aldy Hernandez
3367 (config/arm/arm.c): Add Cirrus support.
3368 (config/arm/arm.h): Likewise.
3369 (config/arm/aout.h): Likewise.
3370 (config/arm/arm.md): Likewise.
3371 (config/arm/arm-protos.h): Likewise.
3372 (config.gcc): Likewise.
3373 (doc/invoke.texi): Describe new -mcpu value and new
3374 -mcirrus-fix-invalid-insns switch,
3375 (cirrus.md): New file.
3377 Mon Feb 10 11:40:18 CET 2003 Jan Hubicka <jh@suse.cz>
3379 * combine.c (combine_simplify_rtx): Simplify using
3380 (float_truncate (float x)) is (float x)
3381 (float_extend (float_extend x)) is (float_extend x).
3383 2003-02-10 Alan Modra <amodra@bigpond.net.au>
3385 * calls.c (try_to_integrate): Tidy stack_usage_map access.
3386 (emit_library_call_value_1): Likewise. Formatting.
3387 (store_one_arg): Likewise.
3389 2003-02-09 Nick Clifton <nickc@redhat.com>
3390 Aldy Hernandez <aldyh@redhat.com>
3392 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
3393 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
3394 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
3395 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
3396 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
3397 docs. Add range test for immediate value.
3399 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
3401 Rename spe_evxor to xorv2si3.
3405 2003-02-10 Glen Nakamura <glen@imodulo.com>
3407 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
3410 Mon Feb 10 00:29:17 CET 2003 Jan Hubicka <jh@suse.cz>
3412 * i386.c (vector_move_operand): New predicate.
3413 (ix86_expand_vector_move): Be happy about 0.
3414 * i386.h (PREDICATE_CODES): Add sse-move_operand.
3415 * i386.md (mov*_internal): Add 'C' alternative.
3417 Sun Feb 9 23:58:33 CET 2003 Jan Hubicka <jh@suse.cz>
3419 * i386.md (floathi*): Deal with SSE.
3421 Sun Feb 9 23:54:59 CET 2003 Jan Hubicka <jh@suse.cz>
3423 * simplify-rtx.c (simplify_unary_operation,
3424 simplify_binary_operation): Deal with vector modes
3425 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
3427 2002-02-09 Richard Sandiford <rsandifo@redhat.com>
3429 * toplev.c (rest_of_compilation): Recompute register usage after
3432 2003-02-09 Richard Henderson <rth@redhat.com>
3434 * libgcc-std.ver (__clztf2): New.
3435 (__ctztf2, __popcounttf2, __paritytf2): New.
3436 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
3437 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
3438 adjust code to match the different type sizes.
3439 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
3440 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
3442 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
3443 TImode; select word_mode and twice that.
3444 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
3445 select the modes from float, double, and long double.
3446 (init_optabs): Remove duplicate initializations.
3448 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
3450 * doc/install.texi: Squeeze and streamline section on
3451 testing and regression checking.
3453 Sun Feb 9 13:33:34 CET 2003 Jan Hubicka <jh@suse.cz>
3455 * i386.md (ahi?v*3): Set third operand type to TImode.
3456 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
3458 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
3461 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
3462 Change code so they are arithmetic expressions now.
3463 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
3464 simplify_ternary_operation): Deal with VEC_* expressions.
3466 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
3468 Sat Feb 8 00:21:22 CET 2003 Jan Hubicka <jh@suse.cz>
3470 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
3471 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
3472 possibly got duplicated.
3474 2003-02-08 Richard Henderson <rth@redhat.com>
3476 * config/alpha/alpha.c (override_options): Turn off explicit
3477 relocs until post-peep2 code duplication resolved.
3479 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
3481 * optabs.c (expand_unop): Widen clz properly when clz is done
3484 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
3486 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
3487 * config/h8300/crti.asm: Likewise.
3488 * config/h8300/crtn.asm: Likewise.
3489 * config/h8300/ctzsi2.c: Likewise.
3490 * config/h8300/fixunssfsi.c: Likewise.
3491 * config/h8300/h8300-protos.h: Likewise.
3492 * config/h8300/h8300.c: Likewise.
3493 * config/h8300/h8300.h: Likewise.
3494 * config/h8300/h8300.md: Likewise.
3495 * config/h8300/paritysi2.c: Likewise.
3496 * config/h8300/popcountsi2.c: Likewise.
3497 * config/h8300/rtems.h: Likewise.
3499 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3501 * doc/invoke.texi: Documentation for my previous commit.
3502 * doc/passes.texi: Ditto.
3504 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3506 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
3507 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3509 (DLTHE_FLAG_UPDATE_FREQ): New.
3510 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
3511 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
3512 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
3513 fix_bb_placement, fix_bb_placements, place_new_loop,
3514 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
3515 New static functions.
3516 (fix_loop_placement, can_duplicate_loop_p,
3517 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3520 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
3521 unswitch_loops): Declare.
3522 * loop-init.c: New file.
3523 * loop-unswitch.c: New file.
3524 * Makefile.in (loop-init.o, loop-unswitch.o): New.
3525 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
3526 * toplev.c (DFI_loop2): New dump.
3527 (flag_unswitch_loops): New.
3528 (lang_independent_options): Add it.
3529 (rest_of_compilation): Call new loop optimizer.
3530 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
3532 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
3534 * config/h8300/clzsi2.c: New.
3535 * config/h8300/ctzsi2.c: Likewise.
3536 * config/h8300/paritysi2.c: Likewise.
3537 * config/h8300/popcountsi2.c: Likewise.
3538 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
3540 2003-02-07 David Edelsohn <edelsohn@gnu.org>
3542 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3543 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
3544 (ctzsi2): New pattern.
3545 (ffssi2): Use clz instead of unspec.
3546 (clzdi2): Rename from cntlzd2.
3547 (ctzdi2): New pattern.
3548 (ffsdi2): Use clz instead of unspec.
3550 2003-02-07 Loren James Rittle <ljrittle@acm.org>
3552 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
3553 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
3554 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3555 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
3557 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
3559 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
3561 2003-02-07 Richard Henderson <rth@redhat.com>
3564 * gcse.c (local_cprop_find_used_regs): New.
3565 (local_cprop_pass): Use it.
3567 2003-02-07 Fred Fish <fnf@intrinsity.com>
3569 * mips-tfile.c (parse_def): Parenthesize assignments to fix
3572 2003-02-07 Segher Boessenkool <segher@koffie.nl>
3574 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
3576 2003-02-07 Roger Sayle <roger@eyesopen.com>
3578 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
3579 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
3580 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
3581 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
3582 builtin functions (and their __builtin_* variants).
3583 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
3584 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
3585 when not optimizing.
3587 * doc/extend.texi: Document new pow and atan2 builtins, and
3588 their float and long double variants. Realphabetize builtins.
3590 Fri Feb 7 23:24:28 CET 2003 Jan Hubicka <jh@suse.cz>
3592 * i386.md (sse2_nandv2di3): Fix.
3594 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
3596 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
3597 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
3599 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
3600 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
3602 Fri Feb 7 22:22:40 CET 2003 Jan Hubicka <jh@suse.cz>
3604 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
3606 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
3608 * cfg.c (dump_flow_info): Add back accidently deleted line.
3610 2003-02-07 Andrey Petrov <petrov@netbsd.org>
3612 * optabs.c (expand_float): Search wider integer modes first.
3614 2003-02-07 Bob Wilson <bob.wilson@acm.org>
3616 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
3617 based on preprocessor flag.
3619 2003-02-07 Roger Sayle <roger@eyesopen.com>
3620 Richard Henderson <rth@redhat.com>
3622 * gcse.c (implicit_sets): New.
3623 (compute_hash_table_work): Include them in hash table.
3624 (find_implicit_sets, fis_get_condition): New.
3625 (one_cprop_pass): Allocate and free implicit_sets; call
3626 find_implicit_sets before building hash table.
3628 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
3630 * config/t-netbsd (USER_H): Revert previous change.
3632 2003-02-07 Gabor Greif <ggreif@lucent.com>
3634 * doc/c-tree.texi (Namespaces): Fix typo.
3636 Fri Feb 7 02:18:57 CET 2003 Jan Hubicka <jh@suse.cz>
3638 * regrename.c (do_replace, find_oldest_value_reg,
3639 copyprop_hardreg_forward_1): Update register attributes.
3641 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
3643 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
3644 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
3645 variables starting with underscore.
3646 (struct unit_usage): New structure.
3647 (unit_usages, cycle_alt_unit_usages): New global variables.
3648 (check_unit_distribution_in_reserv): Remove it.
3649 (store_alt_unit_usage): New function.
3650 (check_regexp_units_distribution): Rewrite it.
3652 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3654 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
3656 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
3657 if not MASK_NO_SPACE_REGS.
3658 (output_call): Adjust return pointer, don't load new space register
3659 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
3660 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
3661 TARGET_NO_SPACE_REGS is true.
3662 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
3664 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
3665 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
3666 true. Use bve when TARGET_64BIT is true.
3668 2003-02-06 Richard Henderson <rth@redhat.com>
3670 * combine.c (nonzero_bits): Fix double break.
3672 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3673 Richard Henderson <rth@redhat.com>
3676 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
3677 from functions that return a float to functions that don't.
3679 Thu Feb 6 00:18:38 CET 2003 Jan Hubicka <jh@suse.cz>
3681 * i386.c (x86_inter_unit_moves): New variable.
3682 (ix86_secondary_memory_needed): Fix 64bit case, honor
3683 TARGET_INTER_UNIT_MOVES
3684 * i386.h (x86_inter_unit_moves): Declare.
3685 (TARGET_INTER_UNIT_MOVES): New macro.
3686 * i386.md (movsi_1): Cleanup constraints; disable
3687 when not doing inter-unit moves.
3688 (movsi_1_nointernunit): New.
3689 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
3690 (movdi_1_rex64_nointerunit): New.
3691 (mivsf_1): disable when not doing inter-unit moves.
3692 (movsf_1_nointerunit): New.
3694 * basic-block.h (inside_basic_block_p): Declare.
3695 * cfgbuild.c (inside_basic_block_p): Make global.
3696 * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
3697 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
3699 (fix_basic_block_boundaries, add_missing_bbs): New.
3700 (rank): Use profile.
3701 (scheudle_ebbs): Rely on CFG; update coments.
3703 2003-02-05 Geoffrey Keating <geoffk@apple.com>
3705 * Makefile.in (host_hook_obj): New.
3706 (OBJS): Add $(host_hook_obj).
3707 (host_default.o): New rule.
3708 * config.gcc (host_hook_obj): New, default to host-default.o.
3709 (powerpc-*-darwin*): Use host-darwin.o.
3710 (out_host_hook_obj): New.
3711 * configure: Regenerate.
3712 * configure.in: Print information about out_host_hook_obj, substitute
3714 * host-default.c: New file.
3715 * hosthooks.h: New file.
3716 * toplev.c (general_init): Call host_hooks.extra_signals.
3717 * config/rs6000/host-darwin.c: New file.
3718 * config/rs6000/x-darwin: New file.
3719 * doc/hostconfig.texi: Add documentation for new host hook.
3720 Rearrange existing documentation.
3722 2003-02-05 Roger Sayle <roger@eyesopen.com>
3724 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
3725 with *targetm.delegitimize_address.
3726 (rtl_for_decl_location): Likewise.
3727 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
3728 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
3730 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3731 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
3733 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
3734 i386_simplify_dwarf_addr. Made static. Prototyped.
3735 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
3736 i386_simplify_dwarf_addr to ix86_delegitimize_address.
3737 (ix86_find_base_term): Likewise.
3738 (maybe_get_pool_constant): Likewise.
3740 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3741 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
3743 * config/s390/s390.c (s390_delegitimize_address): Renamed from
3744 s390_simplify_dwarf_addr. Made static. Prototyped.
3745 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
3747 2003-02-05 Richard Henderson <rth@redhat.com>
3750 * integrate.c (output_inline_function): Reset input_filename
3751 and lineno from the decl before rest_of_compilation.
3753 2003-02-05 Richard Henderson <rth@redhat.com>
3755 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3756 (CTZ_DEFINED_VALUE_AT_ZERO): New.
3757 * doc/rtl.texi, doc/tm.texi: Document them.
3759 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
3760 of the value at zero properly.
3761 * fold-const.c (tree_expr_nonnegative_p): Likewise.
3762 * simplify-rtx.c (simplify_unary_operation): Likewise.
3764 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3765 (CTZ_DEFINED_VALUE_AT_ZERO): New.
3767 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
3768 (TARGET_EXPAND_BUILTIN): Remove.
3769 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
3770 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3771 (enum arm_builtins): Remove.
3772 * config/arm/arm.md (UNSPEC_CLZ): Remove.
3773 (clzsi2): Rename from clz; use clz instead of unspec.
3775 * config/arm/arm-protos.h: Update.
3777 Wed Feb 5 23:12:57 CET 2003 Jan Hubicka <jh@suse.cz>
3779 * i386-protos.h (x86_emit_floatuns): Declare.
3780 * i386.c (x86_emit_floatuns): New global function.
3781 * i386.md (floatunssisf2, floatunsdisf2,
3782 floatunsdidf2): New patterns.
3784 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3786 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
3788 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
3790 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
3793 2002-02-05 Roger Sayle <roger@eyesopen.com>
3795 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
3797 2003-02-05 Jakub Jelinek <jakub@redhat.com>
3799 PR optimization/8555
3800 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
3801 instead of aborting.
3803 2003-02-04 Richard Henderson <rth@redhat.com>
3805 * config/i386/i386.md (UNSPEC_BSF): Remove.
3806 (ffssi2): Split into cmove and no_cmove insns and splitters;
3807 lose pentium float trick for now.
3808 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
3809 (ctzsi2, clzsi2, bsr): New.
3811 2003-02-04 Richard Henderson <rth@redhat.com>
3813 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
3814 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
3815 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
3816 (ffsdi2): Use popcount instead of unspec.
3817 (popcountdi2): Rename from *popcnt.
3818 (ctzdi2, clzdi2, getf_exp_tf): New.
3820 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
3822 * genconfig.c (main): Generate CC0_P.
3823 * rtl.h (CC0_P): Remove.
3825 2003-02-04 Richard Henderson <rth@redhat.com>
3827 * libgcc2.h, libgcc2.c (__ffsSI2): New.
3828 (__ffsDI2): Rename from __ffsdi2.
3829 * mklibgcc.in (lib2funcs): Add _ffssi2.
3831 2003-02-04 Richard Henderson <rth@redhat.com>
3833 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
3834 rounds with a "bit table" lookup.
3836 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
3838 * reload.c (find_reloads): Do not use the mode specified in the insn
3839 pattern as reload mode for address operands. Do not generate optional
3840 reloads for operands where a mandatory reload was already pushed.
3842 2003-02-04 Richard Henderson <rth@redhat.com>
3844 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
3845 builtins instead of inline assembly.
3847 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3850 * libgcc2.c (__subvdi3): Fix typo.
3852 Tue Feb 4 21:46:05 CET 2003 Jan Hubicka <jh@suse.cz>
3854 * i386.md (movti_rex64): Fix constraint.
3856 Tue Feb 4 18:40:42 CET 2003 Jan Hubicka <jh@suse.cz>
3858 * i386.md (vector push splitters): Fix typo in resolving conflict.
3860 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
3862 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
3864 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
3866 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
3867 for recent libstdc++. Remove formatting cruft.
3869 2003-02-04 Jakub Jelinek <jakub@redhat.com>
3871 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
3872 attribute even if input file name is absolute, but one of the
3873 includes is relative.
3875 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
3877 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
3878 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
3879 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
3881 2003-02-03 Richard Henderson <rth@redhat.com>
3883 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3884 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
3885 return type to "int". Shuffle declarations and undef int trap.
3886 * libgcc2.h: Remove their declarations.
3887 * optabs.c (expand_unop): Force outmode to int for bitops.
3889 2003-02-03 Bob Wilson <bob.wilson@acm.org>
3891 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
3892 coprocessor registers before floating-point registers.
3893 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
3894 to account for a previously removed register.
3895 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
3896 Delete unused macros.
3898 Mon Feb 3 21:19:11 CET 2003 Jan Hubicka <jh@suse.cz>
3900 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
3901 (mov*_internal): Fix predicates; require one of operands to not be
3903 (SSE?MMX move expanders): Fix predicates; force one of operands to
3905 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
3906 (movups/movupd/movdqu patterns): Force one of operands to not be
3909 2002-02-03 Roger Sayle <roger@eyesopen.com>
3911 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
3912 takes a single rtx and returns it unmodified.
3913 * hooks.h (hook_rtx_rtx_identity): Prototype here.
3914 * target.h (struct gcc_target): Add "delegitimize_address"
3915 field to target structure.
3916 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
3917 for delegitimize_address target using hook_rtx_rtx_identity.
3918 (TARGET_INITIALIZER): Initialize delegitimize_address field
3919 using TARGET_DELEGITIMIZE_ADDRESS macro.
3920 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
3921 extensions of constant pool references. Use delegitimize_address
3922 to undo the obfuscation of "-fpic".
3923 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
3925 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
3926 i386_simplify_dwarf_addr.
3927 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
3928 (maybe_get_pool_constant): Likewise.
3930 Mon Feb 3 16:01:17 CET 2003 Jan Hubicka <jh@suse.cz>
3932 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
3934 Mon Feb 3 01:30:11 CET 2003 Jan Hubicka <jh@suse.cz>
3936 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
3938 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3940 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
3941 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
3943 2003-02-02 Andreas Schwab <schwab@suse.de>
3945 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
3947 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
3949 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
3950 (epilogue_insns): Likewise.
3952 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3954 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
3956 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3958 * pa-protos.h (attr_length_millicode_call): Remove second argument.
3959 (attr_length_indirect_call, attr_length_indirect_call,
3960 attr_length_save_restore_dltp): New prototypes.
3961 * pa.c (attr_length_millicode_call): Remove second argument. Check
3962 INSN_ADDRESSES_SET_P in distance calculation.
3963 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
3965 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
3966 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
3967 Call attr_length_call directly.
3968 (attr_length_indirect_call, output_indirect_call,
3969 attr_length_save_restore_dltp): New functions.
3970 * pa.md (attr_length_millicode_call): Drop second argument from all
3972 (return_internal_pic): Delete.
3973 (return_external_pic): Remove use of PIC register and pic operand and
3975 (epilogue): Use return_internal for both normal and pic code.
3976 (call, call_value): Emit new 32-bit pic patterns for symref and
3977 indirect calls. Remove uses for arg pointer and pic register.
3978 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
3979 call_reg_pic_post_reload, call_val_symref_pic,
3980 call_val_symref_pic_post_reload, call_val_reg_pic,
3981 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
3982 Implement define_split and define_peephole2 patterns for pre reload
3984 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
3985 call_value_internal_reg_64bit): Shorten names.
3986 (all call patterns): Explicitly indicate registers used and clobbered.
3987 Use attr_length_indirect_call and attr_length_save_restore_dltp for
3988 attribute length calculation. Move code generation for indirect calls
3989 to output_indirect_call.
3990 (sibcall, sibcall_value): Don't restore PIC register.
3991 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
3994 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3996 * doc/install.texi (Testing): Simplify and compress instructions
3999 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4001 * collect2.c (pexecute_pid): Rename to pid.
4002 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
4005 2003-02-01 Geoffrey Keating <geoffk@apple.com>
4007 * doc/extend.texi (Function Attributes): Remove documentation
4008 for PowerPC Windows NT function attributes..
4010 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
4012 * dwarf2out.c (gen_type_die): Check for typedefs before calling
4013 for TYPE_MAIN_VARIANT.
4015 2003-02-01 Richard Henderson <rth@redhat.com>
4017 * libgcc2.c: Include auto-host.h.
4018 (ATTRIBUTE_HIDDEN): New.
4019 (__clz_tab): Don't declare here for clz and ctz.
4020 (__clzsi2, __clzdi2): Use count_leading_zeros.
4021 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
4022 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
4023 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
4024 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
4026 2003-02-01 Richard Henderson <rth@redhat.com>
4028 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
4030 (ashlsi3_1_zext splitter): Likewise.
4032 2003-02-01 Richard Henderson <rth@redhat.com>
4034 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
4035 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4036 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
4037 return type to Wtype.
4039 * libgcc-std.ver (GCC_3.4): Fix inheritance.
4041 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
4042 expander input constraint.
4044 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4046 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
4048 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
4049 * optabs.c (widen_clz, expand_parity): New.
4050 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
4051 for libcalls to clz, ctz, popcount, and parity.
4052 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
4053 parity_optab, and set up libfunc handlers.
4054 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4055 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
4056 __popcount_tab): New.
4057 * libgcc2.h: Declare them.
4058 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
4059 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
4061 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
4062 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
4063 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
4064 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
4065 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
4066 BUILT_IN_PARITYLL): New.
4067 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
4068 and add optab argument.
4069 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
4070 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
4071 * expr.c (expand_expr): Handle them.
4072 * fold-const.c (tree_expr_nonnegative_p): Likewise.
4073 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
4074 * reload1.c (eliminate_regs): Handle them.
4075 (elimination_effects): Likewise.
4076 * function.c (instantiate_virtual_regs_1): Likewise
4077 * genattrtab.c (check_attr_value): Likewise.
4078 * simplify-rtx.c (simplify_unary_operation): Likewise.
4079 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
4080 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
4081 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
4082 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
4083 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
4085 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
4086 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
4087 * doc/extend.texi (Other Builtins): Add new builtins.
4088 * doc/md.texi (Standard Names): Add new patterns.
4090 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
4092 * reload.c: Revert 2003-01-31 change.
4094 Sat Feb 1 14:14:40 CET 2003 Jan Hubicka <jh@suse.cz>
4096 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
4098 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
4100 * flags.h (flag_volatile): Remove declaration.
4101 (flag_volatile_global, flag_volatile_static): Likewise.
4102 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
4103 * toplev.c (flag_volatile): Remove definition.
4104 (flag_volatile_global, flag_volatile_static): Likewise.
4105 (f_options): Remove corresponding entries here.
4106 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
4107 or flag_volatile_static.
4108 * doc/invoke.texi: Remove documentation of -fvolatile,
4109 -fvolatile-global and -fvolatile-static.
4111 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4113 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
4114 updating of total_code_bytes from prologue to epilogue.
4116 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
4118 * reload.c (find_reloads): Do not use the mode specified in the insn
4119 pattern as reload mode for address operands. Do not generate optional
4120 reloads for operands where a mandatory reload was already pushed.
4121 Generate optional reloads only in the final pass though find_reloads.
4122 (have_replacement_p): New function.
4124 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4126 * doc/install.texi (Testing): Remove a reference to our obsolete
4127 /testresults web pages and strip redundant information concerning
4129 (Binaries): Refer to Microsoft Windows instead of listing all
4132 Sat Feb 1 00:28:30 CET 2003 Jan Hubicka <jh@suse.cz>
4134 * loop.c (emit_prefetch_instructions): Do conversion at right place in
4137 * combine.c (simplify_set): Reverse order of ragumetns to
4138 REG_CANNOT_CHANGE_MODE_P
4139 * df.c (df_def_record_1): Likewise.
4140 * recog.c (register_operand): Likewise.
4141 * simplify-rtx.c (simplify_subreg): Likewise.
4142 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
4143 CANNOT_CHANGE_MODE_CLASS.
4144 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
4146 * reload.c (push_reload): Likewise.
4147 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4148 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4149 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4150 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
4151 * mips.c (mips_cannot_change_mode_class): Update.
4152 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4153 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4154 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4155 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4156 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
4157 * sh.c (sh_cannot_change_mode_class): Update.
4158 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
4159 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
4161 2003-01-31 Geoffrey Keating <geoffk@apple.com>
4163 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
4164 change to LINK_COMMAND_SPEC in gcc.c.
4166 2003-01-31 Jan Hubicka <jh@suse.cz>
4169 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
4171 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4173 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
4176 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
4178 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
4179 (BINFO_ELTS): New #define.
4180 * stor-layout.c (finalize_record_size): Don't set them.
4181 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
4182 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
4183 (BINFO_LANG_ELTS): New #define.
4184 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
4185 * java/class.c (make_class): Use BINFO_ELTS.
4186 (set_super_info): Likewse.
4187 (add_interface_do): Likewise.
4188 * objc/objc-act.c (start_class): Use BINFO_ELTS.
4190 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4192 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
4193 (times): Don't ever declare if not HAVE_TIMES.
4194 (clock): Don't ever declare if not HAVE_CLOCK.
4196 2003-01-30 Richard Henderson <rth@redhat.com>
4198 * flow.c (update_life_info): Zap life info after cleanup_cfg.
4199 (regno_uninitialized): Use correct live at function entry set.
4200 (regno_clobbered_at_setjmp): Likewise.
4202 * expr.c (store_expr): Promote all MEM intermediates to regs.
4204 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4206 * config/arm/arm.c: Fix comment typos.
4207 * config/arm/arm.h: Likewise.
4208 * config/arm/netbsd-elf.h: Likewise.
4209 * config/arm/netbsd.h: Likewise.
4211 2003-01-30 Geoffrey Keating <geoffk@apple.com>
4213 * gengtype.c (struct walk_type_data): Add needs_cast_p.
4214 (walk_type): Set needs_cast_p in walk_type_data.
4215 (write_types_process_field): Supply casts when required to suppress
4217 (write_root): Cast gt_pch_n_S to suppress warning.
4218 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
4219 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
4220 when they might exist.
4221 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
4222 insn-conditions.o, and rs6000.o.
4224 2003-01-30 Richard Henderson <rth@redhat.com>
4226 * ggc-page.c (G.context_depth_allocations): New.
4227 (G.context_depth_collections): New.
4228 (alloc_page): Set G.context_depth_allocations.
4229 (ggc_collect): Set G.context_depth_collections.
4230 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
4231 (ggc_pop_context): Early exit for no allocations or collections.
4233 2003-01-30 Richard Henderson <rth@redhat.com>
4235 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
4237 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
4239 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
4240 size, the link register is always saved if any other register is
4243 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4245 * config/h8300/h8300-protos.h: Update the prototype for
4247 (cpp_reader): Declare before it is used.
4248 * config/h8300/h8300.c (compute_plussi_cc): Change the return
4250 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
4251 see an unknown H8 variant.
4253 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
4256 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
4257 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
4258 * config/rs6000/t-rtems: New file. multilib variants to match OS.
4259 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
4260 rs6000/t-ppcgas so we get the desired multilibs.
4262 2003-01-30 Nick Clifton <nickc@redhat.com>
4264 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
4265 when popping saved IP register off the stack.
4267 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4269 * config/rs6000/aix43.h: Fix comment typos.
4270 * config/rs6000/aix51.h: Likewise.
4271 * config/rs6000/aix52.h: Likewise.
4272 * config/rs6000/altivec.h: Likewise.
4273 * config/rs6000/rs6000.c: Likewise.
4274 * config/rs6000/rs6000.h: Likewise.
4275 * config/rs6000/rs6000.md: Likewise.
4276 * config/rs6000/spe.md: Likewise.
4278 2003-01-29 Mark Mitchell <mark@codesourcery.com>
4280 * c-common.c (builtin_define_float_constants): Define
4281 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
4283 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
4285 * config/sh/lib1funcs.asm: Fix comment typos.
4286 * config/sh/linux.h: Likewise.
4287 * config/sh/sh.c: Likewise.
4288 * config/sh/sh.md: Likewise.
4290 2003-01-30 Loren James Rittle <ljrittle@acm.org>
4292 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
4294 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
4296 * config/fp-bit.h (__make_dp): Declare if TMODES.
4298 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
4300 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
4301 general_operand_src and general_operand_dst.
4303 2003-01-29 David Edelsohn <edelsohn@gnu.org>
4305 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
4306 Return true for variable sized types.
4307 (rs6000_va_arg): Handle variable sized types passed by reference
4310 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
4312 * arm.c (arm_legtimize_address): New function.
4313 * arm-protos.h (arm_legtimize_address): Add prototype.
4314 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
4315 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
4318 2003-01-29 Joel Sherrill <joel@OARcorp.com>
4321 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
4322 depended on it being defined until now.
4324 2003-01-29 Joel Sherrill <joel@OARcorp.com>
4327 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
4328 RTEMS code knows which C++ initialization style the toolset
4329 configuration is using.
4331 2003-01-29 Joel Sherrill <joel@OARcorp.com>
4334 * config/m68k/t-crtstuff: Replace spaces with tabs, add
4335 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
4337 2003-01-29 Joel Sherrill <joel@OARcorp.com>
4340 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
4342 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
4344 2003-01-29 Nick Clifton <nickc@redhat.com>
4346 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
4349 2003-01-29 Andrew Haley <aph@redhat.com>
4351 * tree-inline.c (walk_tree): Add CHAR_TYPE.
4353 Wed Jan 29 10:26:12 CET 2003 Jan Hubicka <jh@suse.cz>
4355 * i386.md (subdi3_carry_rex64): Fix typo.
4357 2003-01-28 Stan Shebs <shebs@apple.com>
4359 * coretypes.h (cpp_reader): Forward declare struct.
4360 * c-pragma.h (cpp_reader): Remove forward declaration.
4361 * hashtable.h (cpp_reader): Likewise.
4362 * scan.h (cpp_reader): Likewise.
4363 * tree.h (cpp_reader): Likewise.
4364 * config/darwin-protos.h (cpp_reader): Likewise.
4365 * config/arm/arm-protos.h (cpp_reader): Likewise.
4366 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
4367 struct cpp_reader in prototypes.
4369 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
4371 * doc/install.texi: Add documentation for installation into
4372 tooldirs and with DESTDIR.
4374 2003-01-28 Richard Henderson <rth@redhat.com>
4376 * config.gcc (ia64*-*-aix*): Remove.
4377 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
4378 * config/ia64/unwind-aix.c: Remove file.
4380 2003-01-28 Andreas Schwab <schwab@suse.de>
4382 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
4384 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
4385 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
4386 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
4387 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4388 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
4389 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4390 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
4392 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
4394 * combine.c (nonzero_bits): Fix check for negative divide operands.
4396 2003-01-28 Richard Henderson <rth@redhat.com>
4398 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
4399 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
4401 2003-01-28 Richard Henderson <rth@redhat.com>
4403 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
4405 * config/cris/cris.c (cris_address_cost): Make static.
4406 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
4407 * config/cris/cris.h (ADDRESS_COST): Remove.
4408 * config/cris/cris-protos.h: Update.
4410 2003-01-23 Mike Stump <mrs@apple.com>
4412 * regclass.c (init_reg_autoinc): New function.
4413 (regclass): Move initialization of forbidden_inc_dec_class from
4415 (init_regs): to here. Avoids reinitialization for each function,
4416 saving compilation time.
4418 2003-01-28 Jason Merrill <jason@redhat.com>
4420 * cpplib.h (struct cpp_options): Add warn_deprecated field.
4421 * cppinit.c (cpp_create_reader): Turn it on by default.
4422 * c-opts.c (c_common_decode_option): Set it.
4423 * cpplib.c (do_pragma_once): Only complain about #pragma once
4424 if warn_deprecated is set.
4426 2003-01-28 Dale Johannesen <dalej@apple.com>
4428 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
4429 * loop.c (scan_loop): Move movables on -Os rich-register targets.
4430 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
4432 2003-01-28 Richard Henderson <rth@redhat.com>
4434 * target.h (targetm.address_cost): New.
4435 * target-def.h (TARGET_ADDRESS_COST): New.
4436 (TARGET_RTX_COSTS): Uncomment. Oops.
4437 * cse.c (address_cost): Use new target hook.
4438 (default_address_cost): New.
4439 * output.h (default_address_cost): Declare.
4440 * hooks.c (hook_int_rtx_0): New.
4441 * hooks.h (hook_int_rtx_0): Declare.
4442 * loop.c (combine_givs_p): Remove if 0 code.
4443 * system.h (ADDRESS_COST): Poison.
4445 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
4446 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
4447 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
4448 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
4449 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
4450 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
4451 config/xtensa/xtensa.c, config/xtensa/xtensa.h
4452 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
4453 (ADDRESS_COST): Remove.
4455 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
4456 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4457 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4458 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
4459 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
4460 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
4461 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
4462 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
4463 config/mips/mips.c, config/mips/mips.h,
4464 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4465 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
4466 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
4467 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
4468 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
4469 config/vax/vax.c, config/vax/vax.h
4470 (foo_address_cost): Make static.
4471 (TARGET_ADDRESS_COST): New.
4472 (ADDRESS_COST): Remove.
4474 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
4475 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
4476 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
4477 config/stormy16/stormy16.h
4478 (ADDRESS_COST): Move code ...
4479 (foo_address_cost): ... here.
4480 (TARGET_ADDRESS_COST): New.
4482 * config/m32r/m32r.c (m32r_address_cost): Remove.
4483 * config/m32r/m32r-protos.h: Update.
4485 * config/mmix/mmix.c (mmix_address_cost): Remove.
4486 * config/mmix/mmix-protos.h: Update.
4488 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
4489 mn10300_address_cost; move unsig allocation ...
4490 (mn10300_address_cost): ... here.
4491 (TARGET_ADDRESS_COST): New.
4492 * config/mn10300/mn10300-protos.h: Update.
4493 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
4495 * doc/tm.texi: Update.
4497 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
4499 * haifa-sched.c (schedule_insn): Return necessary cycle advance
4500 after issuing the insn.
4501 (rank_for_schedule): Make a insn with /S the highest priority
4503 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
4504 (choose_ready): Check SCHED_GROUP_P.
4505 (schedule_block): Advance cycle after issuing insn if it is
4506 necessary. Don't reorder insns if there is an insn with /S.
4507 (set_priorities): Ignore schedule groups.
4509 * sched-deps.c (remove_dependence, group_leader): Remove the
4511 (add_dependence): Ignore schedule groups.
4512 (set_sched_group_p): Don't make copy of dependencies from previous
4513 insn of the schedule group. Add anti-dependency to the previous
4514 insn of the schedule group.
4515 (compute_forward_dependences): Ignore schedule groups.
4517 * sched-ebb.c (init_ready_list): Ignore schedule groups.
4519 * sched-rgn.c (init_ready_list): Ditto.
4520 (can_schedule_ready_p): Ditto.
4522 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
4524 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
4525 register to another one.
4527 2003-01-28 Richard Henderson <rth@redhat.com>
4529 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
4531 2003-01-28 Roger Sayle <roger@eyesopen.com>
4533 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
4535 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
4537 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
4538 class contains a floating-point register, return the size of the
4541 Tue Jan 28 12:15:13 CET 2003 Jan Hubicka <jh@suse.cz>
4543 * i386.c (ix86_carry_flag_operator): New predicate.
4544 (fcmov_operator): Fix whitespace.
4545 (ix86_expand_carry_flag_compare): Deal with floating point.
4546 (ix86_expand_int_movcc): Deal with fp; update insn expansion
4547 (ix86_expand_int_addcc): Likewise.
4548 (ix86_expand_strlensi_unroll_1): likewsie.
4549 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
4550 * i386.md (add?i_carry_rex64): Use new predicate.
4551 (sub?i3_carry_rex64): Likewise.
4552 (x86_mov?icc_0_m1*): Likewise.
4554 2003-01-28 Andreas Schwab <schwab@suse.de>
4556 * cfgloopmanip.c (create_preheader): Initialize src to avoid
4559 * expmed.c (emit_store_flag): Fix cast to avoid sign
4562 * combine.c (force_to_mode): Add cast to fix warning when
4563 STORE_FLAG_VALUE is negative.
4565 2003-01-27 Richard Henderson <rth@redhat.com>
4567 * Makefile.in (cse.o): Depend on TARGET_H.
4568 * cse.c (rtx_cost): Use targetm.rtx_costs.
4569 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
4570 * doc/tm.texi: Update.
4572 * target.h (targetm.rtx_costs): New.
4573 * target-def.h (TARGET_RTX_COSTS): New.
4574 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
4577 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
4578 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
4579 * config/alpha/alpha.h (PROCESSOR_MAX): New.
4580 (CONST_COSTS, RTX_COSTS): Remove.
4582 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
4583 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
4584 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
4585 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
4586 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4587 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
4588 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
4589 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
4590 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
4591 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
4592 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
4593 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
4594 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
4595 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
4596 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
4597 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
4598 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4599 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
4600 config/v850/v850.c, config/v850/v850.h,
4601 config/xtensa/xtensa.c, config/xtensa/xtensa.h
4602 (CONST_COSTS, RTX_COSTS): Move code ...
4603 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
4605 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
4606 (arm_rtx_costs, TARGET_RTX_COSTS): New.
4607 * config/arm/arm-protos.h: Update.
4608 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
4610 * config/avr/avr.h (CONST_COSTS): Move code ...
4611 * config/avr/avr.c (avr_rtx_costs): ... here.
4612 (default_rtx_costs): Make static.
4613 * config/avr/avr-protos.h: Update.
4615 * config/h8300/h8300.c (const_costs): Make static.
4616 (h8300_and_costs, h8300_shift_costs): Likewise.
4617 * config/h8300/h8300-protos.h: Update.
4619 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
4620 (CONST_COSTS): Move code ...
4621 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
4622 default_rtx_costs; update for signature change.
4623 * config/ip2k/ip2k-protos.h: Update.
4625 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
4626 (CONST_COSTS): Move code ...
4627 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
4628 (TARGET_RTX_COSTS): New.
4629 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
4630 * config/m68hc11/m68hc11-protos.h: Update.
4632 * config/m68k/m68k.c (const_int_cost): Make static.
4633 * config/m68k/m68k-protos.h: Update.
4635 * config/mcore/mcore.c (mcore_const_costs): Make static.
4636 (mcore_and_cost, mcore_ior_cost): Likewise.
4637 * config/mcore/mcore-protos.h: Update.
4639 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
4640 (mmix_rtx_cost_recalculated): Remove.
4641 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
4642 * config/mmix/mmix-protos.h: Update.
4644 * config/sh/sh.c (shiftcosts): Make static.
4645 (addsubcosts, andcosts, multcosts): Likewise.
4646 * config/sh/sh-protos.h: Update.
4648 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
4649 (sparc_rtx_costs): Make static; update for change in signature.
4650 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
4651 * config/sparc/sparc-protos.h: Update.
4653 * config/v850/v850.c (const_costs): Make static.
4654 * config/v850/v850-protos.h: Update.
4656 * config/vax/vax.h (RTX_COSTS): Remove.
4657 (CONST_COSTS): Move code ...
4658 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
4660 (vax_rtx_costs, TARGET_RTX_COSTS): New.
4662 2003-01-27 Richard Henderson <rth@redhat.com>
4664 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
4665 * config/vax/vax-protos.h: Update. Really.
4667 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
4669 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
4670 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
4671 zero if no hardware floating point.
4672 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
4673 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
4674 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
4675 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
4676 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
4677 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
4678 even FP registers on N32 and N64.
4679 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
4680 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
4681 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
4682 even-register-like alignment to 128-bit arguments.
4683 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
4684 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
4686 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
4687 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
4688 (TPBIT): Set to tp-bit.c.
4689 (tp-bit.c): Create out of fp-bit.c.
4691 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
4693 * c-parse.in: Remove '%expect 32' directive in objc mode.
4695 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
4697 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
4698 (LIBGCOV): New variable.
4699 (libgcc.mk): Add LIBGCOV.
4700 (LIBGCC_DEPS): Add libgcov.c.
4701 (libgcov.a): New target.
4702 (clean): Remove libgcov.a.
4703 (install-libgcc): Do libgcov too.
4704 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
4706 * libgcc2.c (L_gcov): Move into ...
4707 * libgcov.c: ... here. New file.
4708 * mklibgcc.in: Add libgcov rules.
4709 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
4711 * doc/invoke.texi (profile-arcs, test-coverage): Update and
4714 * profile.c (index_counts_file): Remove duplicate check for open file.
4716 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
4718 * gcc/doc/invoke.texi (Optimization Options): Group together
4719 optional and experimental flags. Move trapv and bounds-check
4720 out of this section. Group floating point flags together.
4721 (Code Gen Options): Move trapv and bounds-check to here.
4723 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
4725 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
4727 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
4729 PR optimization/9090
4730 * function.c (purge_addressof_1): After pushing an addressed register
4731 onto the stack, simplify the result.
4733 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4735 * doc/extend.texi: Fix typo.
4737 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4739 * doc/cppopts.texi: Fix typo.
4740 * doc/objc.texi: Likewise.
4741 * doc/passes.texi: Likewise.
4743 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
4745 * real.c (ibm_extended_format): Add 53 to minimum exponent.
4746 (encode_ibm_extended): Adjust.
4748 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
4750 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
4751 timevar_id enumerations.
4753 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4755 * combine.c: Fix formatting.
4757 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4759 * doc/gccint.texi: Update the copyright.
4761 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4763 * doc/cpp.texi: Fix typos.
4764 * doc/extend.texi: Likewise.
4765 * doc/gty.texi: Likewise.
4766 * doc/install.texi: Likewise.
4767 * doc/passes.texi: Likewise.
4768 * doc/rtl.texi: Likewise.
4769 * doc/tm.texi: Likewise.
4771 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4773 * config/ia64/fde-glibc.c: Fix comment typos.
4774 * config/ia64/hpux.h: Likewise.
4775 * config/ia64/ia64.c: Likewise.
4776 * config/ia64/ia64.h: Likewise.
4777 * config/ia64/unwind-ia64.c: Likewise.
4779 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
4781 * config/i386/i386-modes.def: Fix comment typos.
4782 * config/i386/i386.c: Likewise.
4783 * config/i386/i386.md: Likewise.
4785 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
4787 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
4788 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
4789 ASM_FINISH_DECLARE_OBJECT before defining it.
4790 * toplev.c (rest_of_decl_compilation): Don't define
4791 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
4792 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
4793 parameters for DWARF2 targets because they _are_ used.
4795 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
4797 * fp-bit.h: Define macros for TFmode floating-point constants
4798 in IBM-extended TFmode types.
4799 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
4801 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
4804 * config/fp-bit.h: Define macros for TFmode floating-point
4805 constants in IEEE quad TFmode type. Declare functions according
4807 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
4808 (TFtype, TItype, UTItype): Define if TMODES is defined.
4809 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
4810 (F_T_BITOFF, D_T_BITOFF): Define.
4811 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
4812 guaranteed to be wide enough.
4813 * config/fp-bit.c: Check for L_ macros for tf functions.
4816 (pack_d, unpack_d): Support IEEE 854 quad type.
4817 (_fpmul_parts): Support TFmode. Compute exponent adjustment
4818 from FRAC_NBITS, FRAC_BITS and NGARDS.
4819 (usi_to_float): Cast constants to be shifted to fractype
4820 instead of assuming long long is wide enough.
4821 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
4823 2003-01-26 Andreas Jaeger <aj@suse.de>
4825 * df.c: Remove prototype of unused function df_regno_rtl_debug.
4827 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
4829 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
4830 (DBBIT_FUNCS): Added _df_to_tf.
4832 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
4833 (LIBGCC_DEPS): Added TPBIT.
4834 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
4836 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
4837 been able to move the result to target.
4839 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
4840 for the appropriate mode.
4842 * calls.c (emit_library_call_value_1): Handle return values
4845 * rtl.c (get_mode_alignment): Moved to...
4846 * stor-layout.c: ... here.
4848 * print-rtl.c (print_rtx): Don't print MEM details in
4851 2003-01-26 Michael Hayes <mph@paradise.net.nz>
4853 * df.h: Update comments, tidy formatting.
4854 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
4855 REVERSE, UNION, INTERSECTION. All uses updated.
4856 (OLD_DF_INTERFACE): Remove.
4857 (struct insn_info): Remove commented out insn field.
4858 * df.c: Update comments, tidy formatting.
4859 (df_def_table_realloc): Remove.
4862 2003-01-26 Alan Modra <amodra@bigpond.net.au>
4864 * calls.c (save_fixed_argument_area): Tidy.
4865 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
4866 (expand_call): Comment typo fixes. Don't init low_to_save. Start
4867 call chain loop at 1 if !try_tail_call. Formatting.
4868 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
4869 Use save_fixed_argument_area and restore_fixed_argument_area.
4871 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4873 * df.c (df_uses_record): Handle CC0.
4875 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
4877 * reload.c (maybe_memory_address_p): New function.
4878 (find_reloads_address): Use it instead of memory_address_p.
4880 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
4882 * final.c (shorten_branches): Align the address of code label
4883 when computing initial lengths and addresses.
4885 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
4887 * config/m68hc11/m68hc11.md: Fix a comment typo.
4889 2003-01-25 Andreas Jaeger <aj@suse.de>
4891 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
4894 2003-01-25 Roger Sayle <roger@eyesopen.com>
4896 * gcse.c (bypass_last_basic_block): New global variable.
4897 (bypass_block): Use redirect_edge_and_branch_force to redirect
4898 fall-through edges. Use bypass_last_basic_block to determine
4899 which blocks have valid PRE information.
4900 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
4902 Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
4904 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
4906 Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
4907 Eric Botcazou <ebotcazou@libertysurf.fr>
4909 * gcse.c (one_cprop_pass): Delete unreachable blocks.
4911 2003-01-25 Richard Henderson <rth@redhat.com>
4913 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
4914 from ia64_aix_select_rtx_section.
4915 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
4916 instead of saving and restoring flag_pic.
4917 (ia64_rwreloc_unique_section): Similarly.
4918 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
4919 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
4920 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
4921 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
4923 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
4925 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
4928 2002-01-25 Richard Henderson <rth@redhat.com>
4930 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
4932 2002-01-25 Kelley Cook <kelleycook@comcast.net>
4934 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
4936 2003-01-25 Segher Boessenkool <segher@koffie.nl>
4938 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
4939 type for bitmaps. Use unsigned long.
4940 (nBITMAP_WORD_BITS): New macro.
4941 (BITMAP_WORD_BITS): New macro.
4942 (rest of file): Use it.
4945 2003-01-25 Richard Henderson <rth@redhat.com>
4947 2002-02-19 Robert Lipe <robertlipe@usa.net>
4948 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
4950 2002-01-25 Roger Sayle <roger@eyesopen.com>
4952 * builtins.c (purge_builtin_constant_p): Scan insn stream
4953 sequentially rather than by basic block.
4954 * function.c (purge_addressof): Simplify test with INSN_P.
4956 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
4958 * combine.c (simplify_comparison, case AND): Remove a redundant test.
4960 2002-01-25 Roger Sayle <roger@eyesopen.com>
4962 * function.h (struct function): New field calls_constant_p.
4963 (current_function_calls_constant_p): New macro for above.
4964 * function.c (prepare_function_start): Initialize calls_eh_return
4965 and calls_constant_p.
4966 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
4967 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
4968 when the current_function_calls_constant_p.
4969 * integrate.c (expand_inline_function): Set calls_constant_p if
4970 the function being inlined has calls_constant_p set.
4972 2002-01-25 Roger Sayle <roger@eyesopen.com>
4974 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
4975 optimizing, even if flag_gcse is true.
4976 * toplev.c (rest_of_compilation): purge_builtin_constant_p
4977 only needs to be called when "optimize > 0 && flag_gcse".
4979 2003-01-25 Roger Sayle <roger@eyesopen.com>
4981 * stmt.c (emit_case_bit_tests): New routine to implement suitable
4982 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
4983 (case_bit_test_cmp): New comparison function for "qsort" to order
4984 case_bit_tests by decreasing number of destination nodes.
4985 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
4986 (expand_end_case_type): Use emit_case_bit_tests to implement
4987 suitable switch statments.
4988 (CASE_USE_BIT_TESTS): New target macro to disable the above.
4989 * Makefile.in (stmt.o): Add dependency on optab.h.
4990 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
4992 2003-01-23 Andreas Schwab <schwab@suse.de>
4994 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
4995 __do_global_ctors_aux hidden global and don't put it in
4997 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
4998 instead so that it comes first.
5000 Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
5002 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
5003 subreg is read/modify.
5005 Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
5007 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
5008 do libcall for large blocks.
5009 * i386.md (comi patterns): Set type to ssecomi.
5010 (sse2_unpck?pd): Fix mode of vec_select.
5012 * cse.c: Include except.h
5013 (cse_set_around_loop): Do not create new basic blocks.
5014 * Makefile.in (cse.o): Add dependnecy on except.h
5016 Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
5018 * builtins.c (fold_trunc_transparent_mathfn): New function.
5019 (fold_builtin): Use it.
5020 * convert.c (convert_to_real): Re-enable code to convert
5021 math functions; add support for floor familly functions.
5023 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5025 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
5026 dependencies on coretypes.h and $(TM_H).
5028 Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
5030 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
5032 2002-01-24 Stuart Hastings <stuart@apple.com>
5034 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
5036 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5038 * config/c4x/c4x.md (UNSPEC_BU): New constants.
5039 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
5040 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
5041 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
5042 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
5043 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
5044 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
5045 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
5047 Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
5049 * emit-rtl.c (reg_attrs_htab): New static variable.
5050 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
5052 (reg_rtx): Do not maintain regno_decl.
5053 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
5054 set_mem_attrs_from_reg): New global function.
5055 (init_emit): Do not initialize regno_decl.
5056 (init_emit_once): initialize reg_attrs_htab.
5057 * final.c (alter_subreg): Do not replace REG by SUBREG.
5058 (gen_mem_expr_from_op): Improve output.
5059 (output_asm_operands): Likewise.
5060 * function.c (assign_params): Do not set REGNO_DECL.
5061 * function.h (struct function): Kill regno_decl.
5063 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
5064 * print_rtl.c (print_rtx): Output REG information.
5065 * regclass.c (reg_scan_mark_refs): Update attrs.
5066 * reload1.c (alter_reg): Likewise.
5067 * simplify_rtx.c (simplify_subreg): Likewise.
5068 * stmt.c (expand_decl): Likewise.
5069 * rtl.def (REG): Add new field.
5070 * rtl.h (struct reg_attrs): New.
5071 (rtunion_def): At rtreg.
5072 (X0MEMATTR): Add checking.
5073 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
5074 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
5076 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
5078 2003-01-24 Bob Wilson <bob.wilson@acm.org>
5080 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
5081 (xtensa_emit_call, print_operand): Fix printf format strings
5082 to avoid compile warnings.
5083 (xtensa_function_prologue, xtensa_function_epilogue): Change type
5084 of "size" argument to HOST_WIDE_INT to fix compile warnings.
5085 * config/xtensa/xtensa-protos.h
5086 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
5088 Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
5090 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
5091 (implicit_built_in_decls): New global array.
5092 (mathfn_built_in): New global function.
5093 (fold_trunc_transparent_mathfn): New static function
5094 (expand_builtin_strstr, expand_bultin_strchr,
5095 expand_builtin_strpbrk, expand_builtin_strcpy,
5096 expand_builtin_strncpy, expand_bultin_strcmp,
5097 expand_bultin_strncat, expand_builtin_fputs): Use
5098 implicint_built_in_decls.
5099 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
5100 * builtins.def: Fix comments.
5101 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
5102 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
5103 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
5104 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
5105 (DEF_C99_C90RES_BULTIN): New.
5106 (*f, *l builtins): Update.
5107 * c-common.c (DEF_BUILTIN): Initialize implicit array.
5108 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
5109 * convert.c (strip_float_extensions): New global function.
5110 * tree.h (DEF_BUILTIN): Accept 10 arguments.
5111 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
5113 * java/builtins.c (define_builtin): Handle implicit.
5114 (DEF_BUILTIN): Update.
5115 * tm.texi (TARGET_C99_FUNCTIONS): Document.
5116 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
5117 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
5120 2003-01-24 Bob Wilson <bob.wilson@acm.org>
5122 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
5123 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
5124 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
5125 * config/xtensa/crti.asm: New file.
5126 * config/xtensa/crtn.asm: New file.
5127 * config/xtensa/t-elf: New file.
5128 * config/xtensa/t-linux: New file.
5129 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
5130 Move various CFLAGS settings to new t-elf file.
5132 2003-01-24 Richard Henderson <rth@redhat.com>
5134 PR optimization/4382
5135 * tree-inline.c (find_builtin_longjmp_call_1): New.
5136 (find_builtin_longjmp_call): New.
5137 (inlinable_function_p): Use it.
5139 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5141 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
5142 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5143 * config/i386/i386.c (function_arg_pass_by_reference): New.
5144 (ix86_va_arg): Support arguments passed by reference.
5146 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5148 * cfgloopanal.c: New file.
5149 * cfgloopmanip.c: New file.
5150 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
5151 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
5152 cfglayout.o): Add dependency on cfgloop.h.
5153 (cfgloop.o): Add flags.h dependency.
5154 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
5155 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
5156 (struct loop, struct loops, flow_loops_find, flow_loops_update,
5157 flow_loops_free, flow_loops_dump, flow_loop_dump,
5158 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
5159 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
5160 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
5161 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
5162 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
5163 find_common_loop, verify_loop_structure): Declarations moved to ...
5164 * cfgloop.h: New file.
5165 * bb-reorder.c (reorder_basic_blocks): Modified.
5166 * cfglayout.c: Include cfgloop.h.
5167 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
5168 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
5169 (break_superblocks): New static function.
5170 (cfg_layout_finalize): Use it.
5171 (cfg_layout_split_block): New function.
5172 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
5174 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
5176 (cfg_layout_split_block): Declare.
5177 * cfgloop.c: Include cfgloop.h and flags.h.
5178 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
5179 get_loop_body): Avoid signed versus unsigned comparison warnings.
5180 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
5181 loop_latch_edge): Modified.
5182 (verify_loop_structure): Modified to use flags stored in loop structure;
5183 check irreducible loops.
5184 (cancel_loop, cancel_loop_tree): New functions.
5185 (estimate_probability): Use loop analysis code for predictions.
5186 (estimate_loops_at_level): Avoid signed versus unsigned comparison
5188 * doloop.c: Include cfgloop.h.
5189 * loop.c: Include cfgloop.h.
5190 * predict.c: Include cfgloop.h.
5191 * toplev.c: Include cfgloop.h.
5192 * unroll.c: Include cfgloop.h.
5193 * tracer.c (tracer): Modified.
5195 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
5197 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
5199 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
5201 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
5202 * configure: Regenerate.
5204 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
5205 (tls_symbolic_reference_mentioned_p): Add prototype.
5206 (s390_tls_get_offset): Add prototype.
5207 (emit_pic_move): Remove prototype, replace by ...
5208 (emit_symbolic_move): .. this new prototype.
5210 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
5211 (tls_model_chars): New global variable.
5212 (s390_encode_section_info): Encode TLS model.
5213 Use targetm.binds_local_p to check for local symbols.
5214 (s390_strip_name_encoding): New function.
5215 (TARGET_STRIP_NAME_ENCODING): Define.
5217 (get_thread_pointer): New function.
5218 (legitimize_tls_address): New function.
5219 (legitimize_address): Call it.
5220 (emit_pic_move): Remove, replace by ...
5221 (emit_symbolic_move): ... this new function.
5223 (larl_operand): Handle TLS operands.
5224 (legitimate_constant_p): Likewise.
5225 (s390_decompose_address): Likewise.
5226 (s390_cannot_force_const_mem): New function.
5227 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5229 (s390_output_symbolic_const): Handle TLS unspecs.
5230 (print_operand): New code 'J'.
5231 (machine_function): Add struct member 'some_ld_name'.
5232 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5234 (enum s390_builtin): New type.
5235 (code_for_builtin_64, code_for_builtin_31): New global variables.
5236 (s390_init_builtins, s390_expand_builtin): New functions.
5237 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5239 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
5240 (ASM_OUTPUT_LABELREF): Define.
5241 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
5243 * config/s390/s390.md: Define TLS UNSPEC constants.
5244 ("movdi", "movsi"): Handle TLS operands.
5245 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
5246 ("*tls_load_64", "*tls_load_31"): New insns.
5247 ("call_value_tls", "call_value_tls_exp"): New expanders.
5248 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
5249 "bas_tls_64", "bas_tls_31"): New insns.
5251 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5253 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
5254 spe ABI is configured, if requested.
5256 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5258 * doc/passes.texi: Fix typo.
5260 2003-01-24 Andreas Schwab <schwab@suse.de>
5262 * stor-layout.c (excess_unit_span): Only define if used.
5264 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
5266 * gcc/doc/invoke.texi (Optimization Options): List -O levels
5267 for each optimization flag.
5269 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
5271 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
5273 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5275 * doc/bugreport.texi: Use @command instead of @code for commands.
5276 * doc/collect2.texi: Likewise.
5277 * doc/headerdirs.texi: Likewise.
5278 * doc/invoke.texi: Likewise.
5279 * doc/standards.texi: Likewise.
5280 * doc/tm.texi: Likewise.
5281 * doc/trouble.texi: Likewise.
5283 2003-01-24 Nick Clifton <nickc@redhat.com>
5285 * config/arm/arm.c (use_return_insn): Do not use a single return
5286 instruction for interrupt handelrs which have to create a stack
5288 (arm_expand_prologue): Do not pre-bias the return address of
5289 interrupt handlers which create a stack frame.
5291 2003-01-24 Nick Clifton <nickc@redhat.com>
5295 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
5297 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
5298 med_cbranches. Fix logic in short_cbranches.
5300 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
5302 * config/sh/sh.md (delay for cbranch): Don't annul delay
5304 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
5305 cbranch with unfilled delay slot on SH2e.
5306 (output_branch): Fill with a nop the delay slot of a
5307 branch that required a delay slot but didn't get one.
5309 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
5311 * doc/invoke.texi (SH options): Document -m2e.
5312 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
5313 * config/sh/lib1funcs.asm: Likewise.
5314 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
5315 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
5317 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
5319 (SH3E_BIT): Renamed to...
5320 (SH_E_BIT): ... this. Replace all uses.
5321 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
5322 Replace all uses of TARGET_SH3E with TARGET_SH2E.
5323 (TARGET_SWITCHES): Added 2e.
5324 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
5325 (processor_type): Added PROCESSOR_SH2E.
5326 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
5327 TARGET_SH2E, except in sqrtsf2_i.
5328 (attribute cpu): Added sh2e.
5329 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
5330 (MULTILIB_MATCHES): Use m2e multilib for m3e.
5331 * config.gcc: Add sh2e target support.
5333 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
5335 Rename -W to -Wextra.
5336 * c-decl.c: Update comments.
5337 * c-typeck.c: Likewise.
5338 * flags.h: Likewise.
5339 * function.c: Likewise.
5341 * toplev.c: Update comments.
5342 (W_options): Add 'extra'.
5343 (display_help): Remove '-W'.
5344 (decode_W_option): Special warn_uninitialized treatment in the case
5346 * doc/invoke.texi: Update with new entries.
5348 2003-01-23 Richard Henderson <rth@redhat.com>
5350 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
5351 in no-else-block case. Add commentary.
5353 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5355 * configure.in: Revert last change.
5357 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5359 * configure.in: Don't include ansidecl.h in tconfig.h.
5360 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
5361 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
5364 * configure: Regenerate.
5366 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5369 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
5370 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
5373 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5375 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
5377 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
5379 * genattrtab.c (write_attr_get): Mark 'insn' paramter
5380 as ATTRIBUTE_UNUSED.
5382 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
5384 * arm.c (thumb_base_register_rtx_p): New function.
5385 (thumb_index_register_rtx_p): New function.
5386 (thumb_legitimate_address_p): New function.
5387 (thumb_legitimate_offset_p): New function.
5388 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
5389 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
5391 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
5392 (THUMB_LEGITIMATE_OFFSET): Delte.
5393 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
5394 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
5395 (thumb_legitimate_offset_p): Likewise.
5397 2003-01-23 Andreas Schwab <schwab@suse.de>
5399 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
5401 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5403 * fixinc/Makefile.in (FL_LIST): Revert last change.
5405 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5408 * invoke.texi (ftest-coverage): Fix broken cross-reference.
5409 Change @code to @command for gcov command.
5411 * gcc.texi: Adjust title of gcov section.
5413 * gcov.texi: Likewise.
5415 2003-01-22 Roger Sayle <roger@eyesopen.com>
5417 PR optimization/8423
5418 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
5419 its argument is constant, or 0 if !flag_gcse.
5420 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
5421 if it's argument is constant.
5422 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
5423 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
5424 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
5425 * builtins.c (purge_builtin_constant_p): New function to force
5426 instantiation of any remaining CONSTANT_P_RTX nodes.
5427 * rtl.h (purge_builtin_constant_p): Prototype here.
5428 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
5429 pass after GCSE and before loop.
5430 (flag_gcse): No longer static.
5431 * flags.h (flag_gcse): Prototype here.
5433 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
5435 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
5436 introduced by last change.
5438 2003-01-22 Andreas Schwab <schwab@suse.de>
5440 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
5442 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
5444 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
5445 request a scratch reg on H8S when the shift count is 8.
5447 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
5449 * config/s390/s390-protos.h (preferred_la_operand_p):
5450 Remove second parameter.
5451 * config/s390/s390.c (preferred_la_operand_p): Likewise.
5452 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
5453 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
5454 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
5455 Add peepholes to transform ADD to LOAD ADDRESS.
5457 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
5459 * arm.c (arm_address_register_rtx_p): New function.
5460 (arm_legitimate_address_p): New function.
5461 (arm_legitimate_index_p): New function.
5462 (legitimize_pic_address): Use arm_legitimate_index_p.
5463 * arm-protos.h (arm_legtimate_address_p): Add prototype.
5464 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
5465 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
5467 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
5469 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
5470 * config/s390/2064.md (define_bypass): Correct 'Load' and
5471 'Load-address' bypass values.
5473 2003-01-22 Andreas Schwab <schwab@suse.de>
5475 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
5477 2003-01-21 Zack Weinberg <zack@codesourcery.com>
5479 * genautomata.c (output_internal_insn_latency_func,
5480 output_print_reservation_func): Short circuit when there is no
5481 automaton to generate code for.
5483 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5485 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
5486 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
5488 2003-01-21 Geoffrey Keating <geoffk@apple.com>
5490 * config/rs6000/rs6000.md: Remove warning.
5491 (builtin_setjmp_receiver): Likewise.
5492 * config/darwin.c (update_stubs): Slightly improve terrible hack
5493 with identifiers. Add comment pointing out problems with it.
5494 (update_non_lazy_ptrs): Likewise.
5496 2003-01-21 Richard Henderson <rth@redhat.com>
5498 * dwarf2out.c (lookup_filename): Fix printf format warning.
5499 * system.h (fread_unlocked, fwrite_unlocked): Undef.
5501 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
5502 (fixincl.o-warn, gnu-regex.o-warn): New.
5503 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
5504 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
5505 * fixinc/fixincl.c (process): Fix printf format warning.
5507 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5509 * dwarf2out (output_file_names): Don't crash if called
5510 with empty file_table.
5512 2003-01-21 Zack Weinberg <zack@codesourcery.com>
5514 * genautomata.c (output_internal_insn_latency_func): Add
5515 missing break statement to generated code.
5517 2003-01-21 Roger Sayle <roger@eyesopen.com>
5519 * stmt.c (same_case_target_p): New function to determine whether
5520 two case labels branch to the same target. Split out from...
5521 (group_case_nodes): ... here. Use same_case_target_p instead.
5522 (strip_default_case_nodes): Remove explicit case nodes
5523 that branch to the default destination.
5524 (expand_end_case_type): Call strip_default_case_nodes after
5525 group_case_nodes, to simplify the case-list before we count it.
5526 Only generate table_label RTX when actually needed. Try to share
5527 thiscase->exit_label and thiscase->data.case_stmt.default_label
5528 when a switch has no explicit default case. Simplify test for
5531 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
5533 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
5535 (*negsf2_h8300hs): Likewise.
5536 (*addsi3_lshiftrt_16_zexthi): Likewise.
5537 (*iorhi3_lshiftrt_8): Likewise.
5539 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5541 * dwarf2out.c (fde_table_in_use): Mark GTY.
5542 (dwarf2out_cfi_label_num): New variable, marked GTY.
5543 (dwarf2out_cfi_label): Use it instead of static label_num.
5544 * emit-rtl.c (label_num): Mark GTY.
5546 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
5548 * config/h8300/h8300.c (output_plussi): Support H8/300.
5549 (compute_plussi_length): Likewise.
5550 (compute_plussi_cc): Likewise.
5551 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
5552 output assembly instructions.
5554 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5556 * calls.c (fix_unsafe_tree): Prototype.
5558 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
5559 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
5560 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
5561 c-parse.o-warn): Add -Wno-error.
5562 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
5564 * configure.in (--enable-werror): Add new flag.
5565 * doc/install.texi (--enable-werror): Document.
5566 * configure: Regenerate.
5568 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
5570 2003-01-21 Andreas Schwab <schwab@suse.de>
5572 * genautomata.c (output_internal_insn_latency_func): Fix missing
5573 close paren in output.
5575 2003-01-21 Zack Weinberg <zack@codesourcery.com>
5577 * genautomata.c: Space savings in generated code:
5578 (output_dfa_insn_code_func): Split out the table-enlargement
5579 path to an out-of-line static function, dfa_insn_code_enlarge.
5580 (output_internal_insn_latency_func): Use a lookup table for the
5582 (output_print_reservation_func): Use a lookup table for the
5585 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
5588 * calls.c (fix_unsafe_tree): Split out from ...
5589 (expand_call): ... here. Use it on the function address too.
5591 2003-01-20 Richard Henderson <rth@redhat.com>
5593 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
5595 2003-01-20 Richard Henderson <rth@redhat.com>
5598 * stmt.c (expand_asm_operands): Validize memory operands.
5600 2003-01-20 Richard Henderson <rth@redhat.com>
5603 * ifcvt.c (noce_process_if_block): Correct arguments to
5604 modified_between_p for no-else-block case.
5606 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5608 * config/h8300/h8300.c (const_costs): Remove a warning.
5609 (output_plussi): Likewise.
5610 (compute_plussi_length): Likewise.
5611 (compute_plussi_cc): Likewise.
5613 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5615 * config/h8300/h8300.md (addsi_h8300): Remove the last
5618 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5620 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5622 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5624 * system.h (__NO_STRING_INLINES): Define.
5626 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5628 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
5629 is not a scalar int mode.
5631 2003-01-20 Roger Sayle <roger@eyesopen.com>
5633 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
5634 insn's notes following a substitution inside a libcall.
5636 2003-01-20 Zack Weinberg <zack@codesourcery.com>
5638 * configure.in: Check for system-provided 'uchar' type.
5639 * configure, config.in: Regenerate.
5640 * cpphash.h: Only typedef 'uchar' if the system doesn't.
5642 2003-01-20 Richard Henderson <rth@redhat.com>
5644 * expr.h (MUST_PASS_IN_STACK): Move implementation...
5645 * calls.c (default_must_pass_in_stack): ... here.
5647 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
5649 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
5651 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
5653 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
5654 Wrap up definition of `insn_alts'.
5656 * genattrtab.c (main): Wrap up `insn_alts'.
5658 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5660 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
5662 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
5664 * config.in, configure: Regenerate.
5666 2003-01-20 Nick Clifton <nickc@redhat.com>
5668 * config/arm/arm.md (sibcall_epilogue): Add an
5669 UNSPEC_PROLOGUE_USE to prevent the link register from being
5672 Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
5674 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
5676 2003-01-20 Andreas Schwab <schwab@suse.de>
5678 * system.h: Don't declare strsignal if the decl test hasn't been
5681 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
5683 * config/h8300/h8300.c (notice_update_cc): Don't assume that
5684 recog_data.operands[0] is always associated with cc0.
5686 2003-01-19 David Edelsohn <edelsohn@gnu.org>
5688 * collect2.c (ldgetname): Expand declaration to prototype.
5689 * read-rtl.c (atoll): Add prototype.
5690 * system.h (strsignal): Also declare if no declaration found.
5692 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
5694 * config.gcc (mips64*-*-linux*): Added.
5695 * config/mips/linux64.h, config/mips/t-linux64: New file.
5696 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
5697 * config/mips/mips.c (override_options): Use it.
5698 * config/mips/mips.h (TARGET_SWITCHES): Added...
5699 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
5700 * Makefile.in (SPECS): New.
5701 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
5702 * gcc.c (process_command): Move self-spec processing past spec
5704 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
5705 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
5708 * doc/invoke.texi (-mabi-fake-default): Document.
5710 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
5712 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
5713 z_reg, z_reg_qi): Declare static and GTY().
5715 (create_regs_rtx): Don't create da_reg.
5716 ("gt-m68hc11.h"): Include for GTY roots.
5717 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
5719 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
5720 (m68hc11_soft_tmp_reg): Likewise.
5721 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
5723 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
5725 * basic-block.h: Fix comment formatting.
5726 * calls.c: Likewise.
5727 * combine.c: Likewise.
5728 * convert.c: Likewise.
5730 * haifa-sched.c: Likewise.
5731 * libgcc2.c: Likewise.
5733 * profile.c: Likewise.
5734 * system.h: Likewise.
5736 2003-01-18 Roger Sayle <roger@eyesopen.com>
5738 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
5740 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5742 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
5744 2003-01-17 Dale Johannesen <dalej@apple.com>
5746 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
5747 (*floatunssidf2_internal): Ditto.
5749 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
5751 * alias.c: Fix comment typos.
5752 * basic-block.h: Likewise.
5753 * c-common.c: Likewise.
5754 * c-common.h: Likewise.
5755 * c-decl.c: Likewise.
5756 * c-opts.c: Likewise.
5757 * c-pragma.c: Likewise.
5758 * c-pretty-print.h: Likewise.
5760 * cfganal.c: Likewise.
5761 * cfgbuild.c: Likewise.
5762 * cfgcleanup.c: Likewise.
5763 * cfglayout.c: Likewise.
5764 * cfgrtl.c: Likewise.
5765 * convert.c: Likewise.
5766 * cpphash.h: Likewise.
5767 * cpplex.c: Likewise.
5768 * cpplib.h: Likewise.
5770 * diagnostic.c: Likewise.
5771 * diagnostic.h: Likewise.
5772 * dwarf2.h: Likewise.
5774 2003-01-17 Stan Shebs <shebs@apple.com>
5776 * config/darwin-protos.h: Forward-declare struct cpp_reader.
5778 2003-01-17 Douglas B Rupp <rupp@gnat.com>
5780 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
5781 mistake in last checkin.
5783 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
5785 * et-forest.c: Fix comment typos.
5786 * et-forest.h: Likewise.
5787 * except.c: Likewise.
5789 * flags.h: Likewise.
5793 * genattrtab.c: Likewise.
5794 * genautomata.c: Likewise.
5795 * gengtype.c: Likewise.
5796 * genrecog.c: Likewise.
5797 * global.c: Likewise.
5798 * gthr-rtems.h: Likewise.
5800 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5802 * i386.c (x86_function_profiler): Fix format specifier.
5804 2003-01-17 Richard Henderson <rth@redhat.com>
5806 * gengtype.c (walk_type): Allow paramN_is.
5808 2003-01-17 Nick Clifton <nickc@redhat.com>
5810 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
5812 2003-01-16 Richard Henderson <rth@redhat.com>
5814 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
5816 2003-01-16 Richard Henderson <rth@redhat.com>
5818 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
5819 (alpha_next_sequence_number): Likewise.
5820 (alpha_this_literal_sequence_number): Likewise.
5821 (alpha_this_gpdisp_sequence_number): Likewise.
5822 (struct alpha_funcs, alpha_funcs_num): Likewise.
5823 (struct alpha_links): Fix branch merge error.
5824 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
5826 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
5828 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
5831 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
5833 * ifcvt.c: Fix comment typos.
5835 * libgcc2.c: Likewise.
5836 * local-alloc.c: Likewise.
5838 * predict.c: Likewise.
5839 * ra-build.c: Likewise.
5841 * ra-colorize.c: Likewise.
5843 * ra-rewrite.c: Likewise.
5844 * regmove.c: Likewise.
5845 * reload.h: Likewise.
5846 * rtlanal.c: Likewise.
5847 * toplev.c: Likewise.
5849 * unwind-dw2-fde-glibc.c: Likewise.
5850 * vmsdbgout.c: Likewise.
5852 2003-01-16 Richard Henderson <rth@redhat.com>
5854 * dwarf2out.c (struct file_table): Remove.
5855 (FILE_TABLE_INCREMENT): Remove.
5856 (file_table): Make a varray; mark for GC. Update all users.
5857 (file_table_last_lookup_index): Extract from struct file_table.
5858 (output_file_names): Fix unsigned compare warnings.
5859 (add_name_attribute): Remove inline marker.
5860 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
5861 (lookup_filename): Don't manage size of file_table.
5862 (init_file_table): Allocate file_table with GC.
5863 (dwarf2out_init): Don't record main_input_filename here.
5864 (dwarf2out_finish): Do it here instead.
5866 2003-01-16 Bruce Korb <bkorb@gnu.org>
5868 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
5870 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
5872 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
5873 instead of rotldi3_mextr.
5875 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
5877 * haifa-sched.c (move_insn): Restore moving all schedule group.
5878 (set_priorities): Restore taking SCHED_GROUP_P into account.
5880 * sched-deps.c (add_dependence): Restore processing the last group
5882 (remove_dependence, group_leader): Restore the functions.
5883 (set_sched_group_p): Restore adding dependencies from previous insn
5885 (compute_forward_dependences): Restore usage of group_leader.
5887 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
5890 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
5892 (can_schedule_ready_p): Ditto.
5893 (add_branch_dependences): Restore skipping over the group insns.
5895 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
5897 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
5898 68HC12 pre/post inc/dec side effects.
5900 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
5902 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
5904 Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
5906 * sh.md (mshflo_w_x): Fix description of operation.
5908 2003-01-16 Zack Weinberg <zack@codesourcery.com>
5910 * config/rs6000/rs6000.h: Mention Altivec registers in
5911 commentary. Fix typo.
5913 2003-01-16 David Edelsohn <edelsohn@gnu.org>
5915 * config/rs6000/rs6000.md (movti_string): Remove clobber.
5916 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
5917 generate PARALLEL with clobber for TARGET_POWER.
5919 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5921 * ra-colorize.c (colorize_one_web): Initialize variable.
5922 * regmove.c (fixup_match_1): Likewise.
5923 * reload1.c (reload_as_needed): Likewise.
5924 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
5926 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5928 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
5930 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5932 * dbxout.c (lastfile, cwd): Fix `unused' warning.
5933 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
5934 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
5935 is_main_source, file_table, decl_die_table_in_use,
5936 abbrev_die_table_in_use, line_info_table_in_use,
5937 separate_line_info_table_in_use, pubname_table_in_use,
5938 arange_table_in_use, ranges_table_in_use,
5939 current_function_has_inlines): Likewise.
5940 * flow.c (life_analysis): Likewise.
5941 * genemit.c (gen_insn): Likewise.
5942 * protoize.c (cplus_suffix): Likewise.
5944 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
5945 * arm.h (ROUND_UP_WORD): Likewise.
5947 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
5949 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
5950 init_emit_once): Likewise.
5951 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
5953 * function.c (assign_stack_temp_for_type): Likewise.
5954 * loop.c (loop_invariant_p): Likewise.
5955 * recog.c (push_operand): Likewise.
5956 * regclass.c (init_reg_sets_1): Likewise.
5957 * reload.c (update_auto_inc_notes): Likewise.
5958 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
5959 * stmt.c (expand_asm_operands): Likewise.
5960 * stor-layout.c (start_record_layout): Likewise.
5962 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5964 * config/c4x/c4x.md (epilogue): Correct last patch.
5966 2003-01-15 Richard Henderson <rth@redhat.com>
5968 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
5969 also check that GP is being used.
5970 (alpha_find_lo_sum_using_gp): New.
5971 (alpha_does_function_need_gp): Use get_attr_usegp.
5972 * config/alpha/alpha-protos.h: Update.
5973 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
5976 2003-01-15 Roger Sayle <roger@eyesopen.com>
5978 * gcse.c (one_cprop_pass): Change function arguments to take both
5979 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
5980 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
5981 (bypass_jumps): New function to perform separate jump bypassing pass.
5982 * rtl.h (bypass_jumps): Add function prototype.
5983 * timevar.def (TV_BYPASS): New timing variable.
5984 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
5985 (dump_file): New entry for the bypass RTL dump file.
5986 (rest_of_compilation): Insert new jump bypassing optimization
5988 * doc/passes.texi: Document new pass.
5990 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5992 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
5993 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
5994 * pa.h (TARGET_SOM_SDEF): Define.
5995 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
5997 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
5999 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
6000 allocate 4-bytes of locals on 68HC11.
6001 (expand_epilogue): Likewise.
6002 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
6004 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
6006 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
6007 and -mshort-double to the assembler to specify the ABI.
6008 (LINK_SPEC): Likewise.
6009 (CPP_SPEC): Pass HCS12 specific define.
6010 (MASK_M68S12): New define.
6011 (TARGET_M68S12): Likewise.
6012 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
6013 (TARGET_VERSION): Update.
6014 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
6015 (LINK_SPEC): Update.
6017 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
6018 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
6020 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
6022 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
6025 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
6027 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
6028 flag before setting it.
6030 2003-01-15 Roger Sayle <roger@eyesopen.com>
6032 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
6033 when loop condition is known true, i.e. "while (1) { ... }".
6034 (genrtl_for_stmt): Similarly for "for" statements.
6036 2003-01-15 Roger Sayle <roger@eyesopen.com>
6038 * real.c (real_sqrt): Return a bool result indicating whether
6039 a floating point exception or trap should be raised.
6040 * real.h (real_sqrt): Update function prototype.
6041 * builtins.c (fold_builtin): Only fold non-trapping square
6042 roots unless we're ignoring errno and trapping math.
6044 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
6046 * expr.h (emit_conditional_add): Add PARAMS to declaration.
6047 * gengtype-lex.l (malloc, realloc): Move defines after include of
6048 system.h. Remove duplicate include of system.h.
6050 2003-01-15 Roger Sayle <roger@eyesopen.com>
6053 * optabs.c (expand_unop): When manipulating the FP sign bit
6054 using integer operations, account for targets with different
6055 integer and FP word orders.
6056 (expand_abs): Likewise.
6058 2003-01-15 David Edelsohn <edelsohn@gnu.org>
6060 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
6061 file extension in section name.
6063 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
6065 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
6068 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
6070 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
6071 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
6072 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
6073 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
6075 Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
6078 * global.c (struct allocno): Add no_stack_reg.
6079 (global_conflicts): Set no_stack_reg.
6082 * convert.c (convert_to_real): Fold - and abs only when profitable.
6083 * fold-const.c (fold): Fold truncates in - and abs.
6085 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
6087 Segher Boessenkool <segher@koffie.nl>
6089 * predict.c (real_inv_br_prob_base): New variable.
6090 (propagate_freq): Use multiply by reciprocal instead of
6091 division. Don't divide by 1.0 at all.
6092 (estimate_bb_frequencies): Similar.
6094 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
6096 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
6097 * configure: Rebuilt.
6099 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
6101 * config/s390/s390.c (s390_safe_attr_type): New function.
6102 (s390_use_dfa_pipeline_interface): New function, return true for z900.
6103 (s390_issue_rate): New function.
6104 (s390_agen_dep_p): New function.
6105 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
6106 (s390_adjust_cost): Return 'cost' if new DFA is used.
6107 (s390_adjust_priority): Delete function.
6108 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
6109 * config/s390/s390.md (atype attribute): Attribute 'atype' default
6110 determined by 'op_type'.
6111 (type attribute): Added more type attributes.
6112 * config/s390/2064.md: New DFA description for z900 pipeline.
6114 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
6116 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
6117 forced to memory. Fixes PR bootstrap/9036.
6119 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
6120 to set $gp before the call.
6122 2003-01-14 Richard Henderson <rth@redhat.com>
6124 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
6125 for force_const_mem.
6127 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6129 * genattr.c (main): Rearrange output to avoid prototype warning.
6130 * genautomata.c (transform_3): Fix ambiguous-else warning.
6131 * local-alloc.c (requires_inout): Add parentheses around
6132 assignment used as truth-value.
6133 * timevar.c: Move system includes above local includes. Include
6135 * Makefile.in (timevar.o): Depend on toplev.h.
6137 2003-01-14 Denis Chertykov <denisc@overta.ru>
6139 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
6140 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
6142 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
6144 (TARGET_ATTRIBUTE_TABLE): New macro.
6145 (valid_machine_type_attribute): Remove.
6146 (valid_machine_decl_attribute): Remove.
6147 (ip2k_handle_progmem_attribute): New function.
6148 (ip2k_handle_fndecl_attribute): New function.
6150 2003-01-10 Andrew Haley <aph@redhat.com>
6152 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
6153 registers to be in correct order. Add rip.
6155 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
6157 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
6158 (*iorsi3_and_lshiftrt_9_sb): Likewise.
6160 Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
6162 * convert.c (strip_float_extensions): Look for narrowest type handling
6165 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
6167 * convert.c (strip_float_extensions): Make global.
6168 * tree.h (strip_float_extensions): Declare.
6170 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
6172 * timevar.def: define TV_NAME_LOOKUP.
6173 * timevar.c (timevar_pop): Be verbose when aborting.
6175 2003-01-13 Andreas Schwab <schwab@suse.de>
6177 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
6178 $(parsedir), just move the temporary file at the end.
6179 ($(parsedir)/gengtype-yacc.c): Likewise.
6181 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
6183 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
6184 ${ac_tool_prefix} to ADAC or CC. Protect them from word
6186 * configure: Rebuilt.
6188 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6190 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
6191 internal_mcount): Don't use PARAMS.
6192 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
6194 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
6196 2003-01-13 Andreas Schwab <schwab@suse.de>
6198 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
6201 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
6203 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
6204 (*iorsi3_and_lshiftrt_n_sb): Likewise.
6206 2003-01-12 Mark Mitchell <mark@codesourcery.com>
6209 * c-lex.c (c_lex): Set the token value to error_mark_node for
6210 invalid numeric constants.
6212 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6214 * c-pch.c (asm_file_startpos): Change to `long'.
6215 (pch_init): Use ftell, not ftello.
6216 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
6217 Use `long' instead of `off_t'.
6218 (c_common_read_pch): Likewise.
6219 * ggc-common.c (gt_pch_save): Use long/ftell instead of
6222 2003-01-12 Alan Modra <amodra@bigpond.net.au>
6224 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
6226 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
6228 * arm-protos.h (struct cpp_reader): Add declaration.
6230 Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
6233 * i386.c (output_fp_compare): Fix typo.
6235 2003-01-10 David Edelsohn <edelsohn@gnu.org>
6237 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
6239 2003-01-10 Geoffrey Keating <geoffk@apple.com>
6241 * Makefile.in (parsedir): New variable.
6242 (docobjdir): New variable.
6243 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
6244 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
6245 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
6246 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
6247 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
6249 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
6250 objc.maintainer-clean): Use parsedir.
6252 * varasm.c (struct constant_descriptor_rtx): Remove unused
6255 * toplev.c (documented_lang_options): Document -Winvalid-pch.
6257 2003-01-10 Richard Henderson <rth@redhat.com>
6259 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
6260 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
6262 2003-01-10 Richard Henderson <rth@redhat.com>
6264 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
6265 not INTEGRAL_MODE_P when widening extensions.
6267 2003-01-10 Richard Henderson <rth@redhat.com>
6269 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
6271 2003-01-10 Geoffrey Keating <geoffk@apple.com>
6273 * ggc-page.c (ggc_collect): Avoid overflow computing
6276 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
6277 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
6279 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
6281 Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
6283 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
6284 with weird operands.
6286 2003-01-10 Dale Johannesen <dalej@apple.com>
6288 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
6289 parameters. Call check_sibcall_argument_overlap if indicated.
6290 (check_sibcall_argument_overlap): Add mark_stored_args_map
6291 parameter. Don't mark parameter area as clobbered if not set.
6292 (expand_call): Adjust calls to above.
6294 2003-01-10 Kelley Cook <kelleycook@comcast.net>
6296 * configure.in (linker read-only and read-write section mixing):
6297 Squelch some assembler warnings.
6298 * configure: Likewise.
6300 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
6302 * doc/invoke.texi: Document -mtune, delete -mcpu
6303 option for S/390 and zSeries.
6304 * config/s390/s390.c (s390_tune_string) New variable.
6305 (s390_cpu_string) Delete variable.
6306 (override_options): Use s390_tune_string instead of
6308 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
6310 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
6312 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
6314 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
6316 * jump.c (next_nonnote_insn_in_loop): New function.
6317 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
6319 (duplicate_loop_exit_test). Likewise.
6321 2003-01-09 Geoffrey Keating <geoffk@apple.com>
6323 Merge from pch-branch:
6325 2003-01-06 Geoffrey Keating <geoffk@apple.com>
6327 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
6330 2002-12-24 Geoffrey Keating <geoffk@apple.com>
6332 * cpplib.c (count_registered_pragmas): New function.
6333 (save_registered_pragmas): New function.
6334 (_cpp_save_pragma_names): New function.
6335 (restore_registered_pragmas): New function.
6336 (_cpp_restore_pragma_names): New function.
6337 * cpphash.h (_cpp_save_pragma_names): Prototype.
6338 (_cpp_restore_pragma_names): Likewise.
6339 * cpppch.c (struct save_macro_item): Split from save_macro_data.
6340 (struct save_macro_data): New field 'saved_pragmas'.
6341 (save_macros): Update for changes to struct save_macro_data.
6342 (cpp_prepare_state): Call _cpp_save_pragma_names, update
6343 for changes to struct save_macro_data.
6344 (cpp_read_state): Call _cpp_restore_pragma_names, update
6345 for changes to struct save_macro_data.
6347 * cpppch.c (cpp_read_state): Restore the hashtable references
6350 * tree.h (built_in_decls): Mark for PCH.
6352 * dbxout.c (lastfile): Don't mark for PCH.
6354 * ggc.h: Document PCH calls into memory managers.
6356 2002-12-18 Geoffrey Keating <geoffk@apple.com>
6358 * doc/invoke.texi (Precompiled Headers): Document the
6359 directory form of PCH.
6360 * cppfiles.c (validate_pch): New function.
6361 (open_file_pch): Search suitably-named directories for PCH files.
6363 2002-12-14 Geoffrey Keating <geoffk@apple.com>
6365 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
6367 (Type Information): Mention that the information is also
6368 used to implement PCH.
6369 * doc/passes.texi (Passes): Improve documentation of
6370 language-specific files.
6372 2002-12-11 Geoffrey Keating <geoffk@apple.com>
6374 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
6375 (struct walk_type_data): Add reorder_fn field.
6376 (walk_type): Process 'reorder' option.
6377 (write_types_process_field): Reorder parameters to gt_pch_note_object,
6378 call reorder_note_routine.
6379 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
6380 (ggc_wtd): Update for change to struct write_types_data.
6381 (pch_wtd): Likewise.
6382 * ggc.h (gt_pch_note_object): Reorder parameters.
6383 (gt_handle_reorder): New definition.
6384 (gt_pch_note_reorder): New prototype.
6385 * ggc-common.c (struct ptr_data): Add reorder_fn.
6386 (gt_pch_note_object): Reorder parameters.
6387 (gt_pch_note_reorder): New.
6388 (gt_pch_save): Call reorder_fn.
6389 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
6391 * dbxout.c (cwd): Don't mark for PCH.
6393 2002-12-09 Geoffrey Keating <geoffk@apple.com>
6395 * gengtype.c (finish_root_table): Fix some warnings.
6396 (write_root): Handle TYPE_STRING.
6397 * ggc.h (gt_ggc_m_S): Add prototype.
6398 * stringpool.c (gt_ggc_m_S): New function.
6400 2002-11-30 Geoffrey Keating <geoffk@apple.com>
6402 * dwarf2out.c (dw2_string_counter): New.
6403 (AT_string_form): Use it.
6404 (same_dw_val_p): Update for removal of hashtable.h hash tables.
6406 2002-11-22 Geoffrey Keating <geoffk@apple.com>
6408 * dbxout.c: Include gt-dbxout.h.
6409 (lastfile): Mark for PCH/GGC.
6411 (struct typeinfo): Likewise.
6412 (typevec): Likewise.
6413 (typevec_len): Likewise.
6414 (next_type_number): Likewise.
6415 (struct dbx_file): Likewise.
6416 (current_file): Likewise.
6417 (next_file_number): Likewise.
6418 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
6419 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
6420 (dbxout_end_source_file): Don't free struct dbx_file.
6421 (dbxout_type): Use GGC to allocate typevec.
6422 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
6423 (GTFILES): Add dbxout.c.
6424 (gt-dbxout.h): New rule.
6426 * Makefile.in (c-pch.o): Add debug.h as dependency.
6427 * c-pch.c: Include debug.h.
6428 (pch_init): Call start_source_file to keep nesting right.
6429 (c_common_read_pch): Add orig_name parameter. Call
6430 start_source_file debug hook. Call end_source_file debug hook.
6431 * c-common.h (c_common_read_pch): Update prototype.
6432 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
6434 * cppfiles.c (struct include_file): Add new field `header_name'.
6435 (find_or_create_entry): Default it to `name'.
6436 (open_file_pch): Set it to the original header file searched for.
6437 (stack_include_file): Don't stack an empty buffer, just handle
6438 PCH files immediately. Pass header_name field to read_pch callback.
6440 2002-11-19 Geoffrey Keating <geoffk@apple.com>
6442 * function.c (funcdef_no): Mark to be saved in a PCH.
6444 2002-11-15 Geoffrey Keating <geoffk@apple.com>
6446 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
6448 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
6450 2002-11-14 Geoffrey Keating <geoffk@apple.com>
6452 * optabs.h (code_to_optab): Add GTY marker.
6454 2002-11-13 Geoffrey Keating <geoffk@apple.com>
6456 * Makefile.in (GTFILES): Add cpplib.h.
6457 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
6458 * c-decl.c (build_compound_literal): Don't use var_labelno.
6459 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
6460 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
6461 * varasm.c (const_labelno): Use gengtype to mark.
6462 (var_labelno): Likewise.
6463 (in_section): Likewise.
6464 (in_named_name): Likewise.
6465 (struct in_named_entry): Likewise.
6466 (in_named_htab): Likewise.
6467 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
6468 (init_varasm_once): Use GGC to allocate in_named_htab.
6469 * config/darwin.c (current_pic_label_num): Mark for PCH.
6471 2002-11-11 Geoffrey Keating <geoffk@apple.com>
6473 * ggc-simple.c (init_ggc_pch): New stub procedure.
6474 (ggc_pch_count_object): Likewise.
6475 (ggc_pch_total_size): Likewise.
6476 (ggc_pch_this_base): Likewise.
6477 (ggc_pch_alloc_object): Likewise.
6478 (ggc_pch_prepare_write): Likewise.
6479 (ggc_pch_write_object): Likewise
6480 (ggc_pch_finish): Likewise.
6481 (ggc_pch_read): Likewise.
6483 2002-11-08 Geoffrey Keating <geoffk@apple.com>
6485 * c-pch.c (c_common_write_pch): Write the macro definitions after
6487 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
6488 definitions after the GCed data.
6489 * cpplib.c (save_macros): New.
6491 (cpp_write_pch_deps): Split out of cpp_write_pch.
6492 (cpp_write_pch_state): Split out of cpp_write_pch.
6493 (cpp_write_pch): Delete.
6494 (struct save_macro_data): Delete.
6495 (cpp_prepare_state): New.
6496 (cpp_read_state): Erase and restore initial macro definitions.
6497 * cpplib.h (struct save_macro_data): Forward-declare.
6498 (cpp_write_pch_deps): Prototype.
6499 (cpp_write_pch_state): Prototype.
6500 (cpp_write_pch): Delete prototype.
6501 (cpp_prepare_state): Prototype.
6502 (cpp_read_state): Add fourth argument.
6504 2002-11-04 Geoffrey Keating <geoffk@apple.com>
6506 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
6507 (write_array): Remove warning.
6509 * gengtype.c (contains_scalar_p): New.
6510 (finish_root_table): Add the table to all languages, even if it's
6512 (write_roots): Output gt_pch_scalar_rtab.
6513 * ggc-common.c (gt_pch_save): Write out scalars.
6514 (gt_pch_restore): Read scalars back.
6516 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
6517 (struct page_entry): Delete pch_page field.
6518 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
6519 (clear_marks): Likewise.
6520 (sweep_pages): Likewise.
6521 (poison_pages): Likewise.
6522 (ggc_print_statistics): Likewise.
6523 (ggc_pch_read): Don't free objects read from a PCH.
6524 Properly set up in_use_p and page_tails.
6526 2002-10-25 Geoffrey Keating <geoffk@apple.com>
6528 * gengtype.c (struct write_types_data): New.
6529 (struct walk_type_data): Make `cookie' const; add extra
6530 prev_val item; add `orig_s' field.
6531 (walk_type): Update prev_val[3].
6532 (write_types_process_field): New.
6533 (write_func_for_structure): Take write_types_data structure.
6537 (write_types_local_process_field): New.
6538 (gc_mark_process_field): Delete.
6539 (write_local_func_for_structure): New.
6540 (gc_mark_func_name): Delete.
6541 (write_gc_types): Delete.
6543 (finish_root_table): Don't include 'ggc_' in PFX.
6544 (write_root): Rename from write_root. Fill pchw field of structures.
6546 (write_roots): Rename from write_gc_roots. Split out to write_array.
6547 Update to changes to other routines. Write gt_pch_cache_rtab table.
6548 (main): Write PCH walking routines.
6549 * ggc-common.c: Include toplev.h, sys/mman.h.
6550 (ggc_mark_roots): For cache hashtables, also mark the hash table
6551 and the array of entries.
6553 (struct ptr_data): New.
6554 (POINTER_HASH): New.
6555 (gt_pch_note_object): New.
6556 (saving_htab_hash): New.
6557 (saving_htab_eq): New.
6558 (struct traversal_state): New.
6561 (compare_ptr_data): New.
6562 (relocate_ptrs): New.
6563 (write_pch_globals): New.
6564 (struct mmap_info): New.
6566 (gt_pch_restore): New.
6567 * ggc-page.c (ROUND_UP_VALUE): New.
6569 (struct page_entry): Add field `pch_page'.
6570 (init_ggc): Use ROUND_UP.
6571 (struct ggc_pch_data): Declare.
6572 (init_ggc_pch): New.
6573 (ggc_pch_count_object): New.
6574 (ggc_pch_total_size): New.
6575 (ggc_pch_this_base): New.
6576 (ggc_pch_alloc_object): New.
6577 (ggc_pch_prepare_write): New.
6578 (ggc_pch_write_object): New.
6579 (ggc_pch_finish): New.
6580 (ggc_pch_read): New.
6581 * ggc.h (gt_pointer_operator): New.
6582 (gt_note_pointers): New.
6583 (gt_pch_note_object): New prototype.
6584 (gt_pointer_walker): New.
6585 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
6586 (LAST_GGC_ROOT_TAB): Update.
6587 (gt_pch_cache_rtab): Declare.
6588 (gt_pch_scalar_rtab): Declare.
6589 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
6590 (LAST_GGC_CACHE_TAB): Update.
6591 (gt_pch_save_stringpool): Declare.
6592 (gt_pch_restore_stringpool): Declare.
6593 (gt_pch_p_S): Declare.
6594 (gt_pch_n_S): Declare.
6595 (struct ggc_pch_data): Forward-declare.
6596 (init_ggc_pch): Declare.
6597 (ggc_pch_count_object): Declare.
6598 (ggc_pch_total_size): Declare.
6599 (ggc_pch_this_base): Declare.
6600 (ggc_pch_alloc_object): Declare.
6601 (ggc_pch_prepare_write): Declare.
6602 (ggc_pch_write_object): Declare.
6603 (ggc_pch_finish): Declare.
6604 (ggc_pch_read): Declare.
6605 (gt_pch_save): Declare.
6606 (gt_pch_restore): Declare.
6607 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
6608 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
6609 const_double_htab, mem_attrs_htab using GGC.
6610 * c-pch.c: Include ggc.h.
6611 (pch_init): Allow reading PCH file back.
6612 (c_common_write_pch): Call gt_pch_save.
6613 (c_common_read_pch): Call gt_pch_restore.
6614 * c-parse.in (init_reswords): Delete now-untrue comment.
6615 Allocate ridpointers using GGC.
6616 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
6617 calling expand_deferred_fns.
6618 * c-common.h (ridpointers): Mark for GTY machinery.
6619 * Makefile.in (stringpool.o): Update dependencies.
6620 (c-pch.o): Update dependencies.
6621 (ggc-common.o): Update dependencies.
6622 * stringpool.c: Include gt-stringpool.h.
6625 (struct string_pool_data): New.
6627 (gt_pch_save_stringpool): New.
6628 (gt_pch_restore_stringpool): New.
6629 * tree.c (init_ttree): Make type_hash_table allocated using GC.
6631 2002-10-04 Geoffrey Keating <geoffk@apple.com>
6633 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
6634 (output_mangled_typename): Don't pass size_t to printf.
6636 * tree.h (union tree_type_symtab): Add tag to `address' field.
6637 (union tree_decl_u2): Add tag to 'i' field.
6638 * varasm.c (union rtx_const_un): Add tags to all fields.
6639 * gengtype.c (struct walk_type_data): New.
6640 (output_escaped_param): Take struct walk_type_data parameter.
6641 (write_gc_structure_fields): Delete.
6643 (write_gc_marker_routine_for_structure): Delete.
6644 (write_func_for_structure): New.
6645 (gc_mark_process_field): New.
6646 (gc_mark_func_name): New.
6647 (gc_counter): Delete.
6648 (write_gc_types): Use write_func_for_structure.
6649 (write_gc_roots): Use walk_type.
6651 2002-10-02 Geoffrey Keating <geoffk@apple.com>
6653 * ggc-common.c (ggc_mark_roots): Delete 'x'.
6654 (ggc_splay_dont_free): Fix warning about unused 'x'.
6655 (ggc_print_common_statistics): Remove warnings.
6657 2002-10-01 Mike Stump <mrs@apple.com>
6659 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
6660 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
6662 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
6663 Catherine Moore <clm@redhat.com>
6665 * Makefile (c-pch.o): Update dependencies.
6666 (LIBCPP_OBJS): Add cpppch.o.
6668 * c-common.c (c_common_init): Don't call pch_init here.
6669 * c-common.h (c_common_read_pch): Update prototype.
6670 * c-lex.c (c_common_parse_file): Call pch_init here.
6671 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
6672 (c_common_decode_option): Handle them.
6673 * c-pch.c: Include c-pragma.h.
6674 (save_asm_offset): Delete.
6675 (pch_init): Move contents of save_asm_offset into here, call
6677 (c_common_write_pch): Call cpp_write_pch.
6678 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
6680 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
6681 * cppfiles.c (stack_include_file): Update for change to
6682 parameters of cb.read_pch.
6683 * cpphash.h (struct cpp_reader): Add `savedstate' field.
6684 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
6685 `restore_pch_deps' fields.
6686 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
6687 (cpp_save_state): Prototype.
6688 (cpp_write_pch): Prototype.
6689 (cpp_valid_state): Prototype.
6690 (cpp_read_state): Prototype.
6691 * cpppch.c: New file.
6692 * flags.h (version_flag): Remove prototype.
6693 * mkdeps.c (deps_save): New.
6694 (deps_restore): New.
6695 * mkdeps.h (deps_save): Prototype.
6696 (deps_restore): Prototype.
6697 * toplev.c (late_init_hook): Delete.
6698 (version_flag): Make static again.
6699 (compile_file): Don't call late_init_hook.
6700 * toplev.h (late_init_hook): Delete.
6701 * doc/cppopts.texi: Document -fpch-deps.
6702 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
6704 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
6706 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
6708 (c_common_valid_pch): Rename from c_valid_pch, change callers.
6709 (c_common_read_pch): Rename from c_read_pch, change callers.
6711 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
6712 a space between it and its argument.
6714 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
6716 * c-pch.c: New file.
6717 * toplev.h (late_init_hook): Declare.
6718 * toplev.c (late_init_hook): Define.
6719 (version_flag): Make globally visible.
6720 (compile_file): Call late_init_hook.
6721 (init_asm_output): Make output file seekable.
6722 * gcc.c (default_compilers): Update c-header rule.
6723 * flags.h (version_flag): Declare.
6724 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
6726 * cppfiles.c (struct include_file): Add 'pch' field.
6727 (INCLUDE_PCH_P): New.
6728 (open_file_pch): New.
6729 (stack_include_file): Handle PCH files specially.
6730 (find_include_file): Call open_file_pch instead of open_file.
6731 (_cpp_read_file): Explain why open_file is used instead of
6733 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
6734 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
6735 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
6736 in cpplib callbacks.
6737 * c-common.c (pch_file): Correct comment.
6738 (allow_pch): Define.
6739 (c_common_init): Call pch_init.
6740 * c-common.h (allow_pch): Declare.
6741 (pch_init): Declare.
6742 (c_valid_pch): Declare.
6743 (c_read_pch): Declare.
6744 (c_write_pch): Declare.
6745 * Makefile.in (c-pch.o): New.
6746 (C_AND_OBJC_OBJS): Add c-pch.o.
6747 * doc/invoke.texi (Precompiled Headers): Add index entries,
6748 complete truncated paragraph.
6750 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
6752 * c-common.c: (pch_file): Define.
6753 * c-common.h (pch_file): Declare.
6754 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
6755 (missing_arg): Require --output-pch= to have an argument.
6756 (c_common_decode_option): Handle --output-pch=.
6757 * gcc.c: Document new %V.
6758 (default_compilers): Handle compiling C header files.
6759 (do_spec_1): Implement %V.
6760 (main): Handle "gcc foo.h" without trying to run linker.
6761 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
6762 (Overall Options): Document what the driver does with header files,
6763 document new -x option possibilities.
6764 (Invoking G++): More documentation for PCH.
6765 (Precompiled Headers): New.
6767 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
6769 * ggc.h: Don't include varray.h. Rearrange functions to be more
6771 (ggc_add_root): Delete.
6772 (ggc_mark_rtx): Delete.
6773 (ggc_mark_tree): Delete.
6774 (struct ggc_statistics): Remove contents.
6775 * ggc-common.c: Remove unneeded includes.
6776 (struct ggc_root): Delete.
6778 (ggc_add_root): Delete.
6779 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
6780 (ggc_print_common_statistics): Remove most of the contents.
6781 * Makefile.in (GGC_H): No longer uses varray.h.
6782 (ggc-common.o): Update dependencies.
6783 (c-parse.o): Add varray.h to dependencies.
6784 (c-common.o): Add varray.h.
6785 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
6786 (mark_ident_hash): Rename to ggc_mark_stringpool.
6787 (init_stringpool): Don't use ggc_add_root.
6788 * c-parse.in: Include varray.h.
6789 * c-common.c: Include varray.h.
6790 * objc/Make-lang.in (objc-act.o): Add varray.h.
6791 * objc/objc-act.c: Include varray.h.
6793 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
6795 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
6796 (dw_cfi_oprnd1_desc): Likewise.
6798 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
6800 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
6802 (alpha_links): Use gengtype to mark; move out of ifdef.
6803 (mark_alpha_links_node): Delete.
6804 (mark_alpha_links): Delete.
6805 (alpha_need_linkage): Use GGC to allocate splay tree, struct
6806 alpha_links, strings. Don't use ggc_add_root.
6807 * ggc-common.c (ggc_splay_alloc): New.
6808 (ggc_splay_dont_free): New.
6809 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
6810 (ggc_mark_tree): Likewise.
6811 (splay_tree_new_ggc): New.
6812 (ggc_splay_alloc): Declare.
6813 (ggc_splay_dont_free): Declare.
6814 * dwarf2asm.c: Include gt-dwarf2asm.h.
6815 (mark_indirect_pool_entry): Delete.
6816 (mark_indirect_pool): Delete.
6817 (indirect_pool): Use gengtype to mark.
6818 (dw2_force_const_mem): Don't use ggc_add_root.
6819 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
6820 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
6821 (gt-dwarf2asm.h): Depend on s-gtype.
6823 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
6825 * tree.h (union tree_type_symtab): Mark `die' field.
6826 * Makefile.in (dwarf2out.o): Update dependencies.
6827 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
6829 (dw_cfi_oprnd1_desc): New function.
6830 (dw_cfi_oprnd2_desc): New function.
6831 (indirect_string_alloc): Delete.
6832 (debug_str_do_hash): New function.
6833 (debug_str_eq): New function.
6834 (mark_limbo_die_list): Delete.
6835 (dwarf2out_init): Don't call ggc_add_root.
6837 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
6839 The following changes are merged from itanium-sched-branch:
6841 2003-01-08 David Edelsohn <edelsohn@gnu.org>
6843 * doc/md.texi: Clarify assignment of units to automata description.
6845 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
6847 * genautomata.c (unit_decl): Remove members
6848 `the_same_automaton_unit' and
6849 `the_same_automaton_message_reported_p'.
6850 (process_unit_to_form_the_same_automaton_unit_lists,
6851 form_the_same_automaton_unit_lists_from_regexp,
6852 form_the_same_automaton_unit_lists, the_same_automaton_lists):
6854 (annotation_message_reported_p): New global variable.
6855 (check_unit_distribution_in_reserv,
6856 check_regexp_units_distribution): New functions.
6857 (check_unit_distributions_to_automata): Rewrite it.
6859 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
6861 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6862 Use continue instead of break if cycle is too big.
6864 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
6866 * genautomata.c (check_unit_distributions_to_automata): Output at
6867 most one message for a unit.
6868 (process_unit_to_form_the_same_automaton_unit_lists): Check
6869 automaton of units instead of units themself.
6871 * doc/md.texi: Describe the constraint about assigning unit to
6874 2002-12-20 Jan Hubicka <jH@suse.cz>
6875 Vladimir Makarov <vmakarov@redhat.com>
6877 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
6879 (gen_cpu_unit): Initialize the new members.
6880 (process_regexp_cycles): Calculate minimal finish cycle too. Set
6881 up `min_occ_cycle_num'.
6882 (evaluate_max_reserv_cycles): Change the function call.
6883 (CLEAR_BIT): New macro.
6884 (states_union, state_shift): Use the mask.
6885 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
6886 (form_reservs_matter): New function.
6887 (make_automaton): Call the function and use the mask.
6888 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
6891 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
6893 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
6895 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
6897 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
6900 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
6902 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
6905 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
6906 2002-10-31 Dale Johannesen <dalej@apple.com>
6908 * haifa-sched.c (find_set_reg_weight): New function.
6909 (find_insn_reg_weight): Use the new function.
6910 (schedule_block): Do sorting ready queue always
6913 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
6915 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
6917 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
6919 * haifa-sched.c (choice_entry): New structure.
6920 (choice_stack, cycle_issued_insns): New variables.
6921 (max_issue): Rewrite it.
6922 (choose_ready): Set up ready_try for unknown insns too.
6923 (schedule_block): Allocate and free choice_stack. Set up
6924 and modify cycle_issued_insns.
6926 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
6927 with and without filling the bundle.
6928 (bundling): Combine calls of issue_nops_and_insn.
6930 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
6932 * config/ia64/itanium1.md: New file.
6934 * config/ia64/itanium2.md: New file.
6936 * config/ia64/ia64.md: Move DFA descriptions into the new files.
6937 Remove the old pipeline description.
6939 * config/ia64/ia64.c (ia64_override_options): Add aliases of
6940 itanium processor names.
6942 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
6944 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
6945 (ia64_reorg): Set up queried unit codes for Itanium2 too.
6947 * config/ia64/ia64.md: Add descriptions for Itanium2.
6949 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
6951 * config/ia64/ia64.h (processor_type): New enumeration.
6952 (ia64_tune, ia64_tune_string): New external declarations.
6953 (TARGET_OPTIONS): Add option `tune='.
6955 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
6957 (ia64_override_options): Set up `ia64_tune'.
6958 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
6959 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
6960 (bundling): Add nops for MM-insns only for Itanium.
6961 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
6964 * config/ia64/ia64.md (cpu): New attribute.
6965 (DFA description): Enable it only for Itanium.
6967 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
6968 Richard Henderson <rth@redhat.com>
6970 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
6971 MASK_EARLY_STOP_BITS.
6972 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
6973 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
6976 * config/ia64/ia64.c (ia64_dfa_new_cycle,
6977 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
6978 instead of TARGET_TUNE_STOP_BITS.
6980 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
6981 `-mearly-stop-bits'.
6983 * config/ia64/ia64.c (automata_option "v"): Comment it.
6985 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
6987 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
6989 (TARGET_SWITCHES): Add entries for the new option.
6991 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
6992 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
6993 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
6995 (ia64_sched_reorder2): Set up `clocks'.
6996 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
6997 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
6998 queue when TARGET_TUNE_STOP_BITS.
6999 (bundling): Insert additional nops for MM-insns.
7000 (final_emit_insn_group_barriers): Add insertion of stop bits
7001 according `stops_p'.
7002 (ia64_reorg): Initiate the new varibales.
7004 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
7006 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
7008 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
7009 insns at the end of block insn scheduling.
7011 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
7013 * sched-deps.c (remove_dependence, group_leader): Remove it.
7014 (add_dependence): Add dependence to group leader to.
7015 (set_sched_group_p): Add dependence to the first insn of the
7017 (sched_analyze_insn): Make dependence to jump as anti-dependence.
7018 Change true dependence by anti-dependence when
7019 `reg_pending_barrier'.
7021 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
7022 add_branch_dependences): Ignore schedule groups.
7024 * sched-ebb.c (init_ready_list): Ditto.
7026 * (move_insn, set_priorities): Ditto.
7028 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
7029 flag is clear after reload.
7030 (adjust_cost): Change cost only for output dependencies.
7032 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
7034 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
7036 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
7038 * target.h (gcc_target): Add member
7039 `dependencies_evaluation_hook'.
7041 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
7043 (TARGET_SCHED): Add initiatialization of the new member.
7045 * sched-ebb.c: Include `target.h'.
7046 (schedule_ebb): Call `dependencies_evaluation_hook'.
7048 * sched-rgn.c (schedule_region): Call
7049 `dependencies_evaluation_hook'.
7051 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
7053 (ia64_dependencies_evaluation_hook): New function.
7055 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
7056 Describe the new hook.
7058 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
7060 * target.h (gcc_target): Add members
7061 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
7063 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
7064 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
7066 (TARGET_SCHED): Add initiatialization of the new members.
7068 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
7069 insn scheduling too.
7070 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
7071 initialize `ready_try'.
7072 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
7073 `dfa_new_cycle' says not to do it.
7075 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
7078 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
7080 * config/ia64/ia64.c: Include `hashtab.h'.
7081 (ia64_first_cycle_multipass_dfa_lookahead_guard,
7082 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
7083 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
7084 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
7085 bundle_state_eq_p, insert_bundle_state,
7086 initiate_bundle_state_table, finish_bundle_state_table,
7087 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
7088 get_template, get_next_important_insn, bundling): New functions.
7089 (ia64_internal_sched_reorder): Remove it.
7090 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
7091 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
7092 (ia64_safe_itanium_requires_unit0): Remove it.
7093 (group_barrier_needed_p): Place group barrier right before a real
7095 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
7097 (bundle_name): New variable.
7098 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
7099 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
7100 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
7101 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
7102 temp_dfa_state, prev_cycle_state): New global variables.
7103 (insn_matches_slot, maybe_rotate, finish_last_head,
7104 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
7105 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
7106 find_best_packet, itanium_reorder, dump_current_packet,
7107 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
7108 (sched_data, sched_ready, sched_types): Remove them.
7109 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
7110 `init_insn_group_barriers'.
7111 (ia64_sched_reorder, ia64_sched_reorder2): Call
7112 ia64_dfa_sched_reorder.
7113 (ia64_variable_issue): Rewrite it.
7114 (bundle_state): New structure.
7115 (index_to_bundle_states, bundle_states_num,
7116 allocated_bundle_states_chain, free_bundle_state_chain): New
7118 (ia64_sched_finish): Add stop bits and call `bundling' after the
7119 2nd insn scheduling.
7120 (ia64_use_dfa_pipeline_interface): Return zero always.
7121 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
7123 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
7124 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
7125 (ia64_reorg): Add bundling insns.
7128 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
7129 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
7131 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
7133 * config/ia64/ia64.md: Add Itanium1 DFA description.
7134 (itanium_class): Add `nop' and `pre_cycle'. Add
7135 define_function_unit for `nop'.
7136 (nop): Change attribute `itanium_class'.
7137 (pre_cycle): New define_insn.
7139 * config/ia64/ia64-protos.h (bundling_p): New external variable.
7140 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
7141 ia64_produce_address_p): New function prototypes.
7143 * config/ia64/ia64.c (bundling_p): New global variable.
7144 (ia64_use_dfa_pipeline_interface,
7145 ia64_first_cycle_multipass_dfa_lookahead,
7146 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
7148 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7149 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7150 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7151 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
7152 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
7153 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
7154 (dfa_pre_cycle_insn): New variable.
7156 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
7158 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
7161 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
7162 New function prototypes.
7164 * genattrtab.c (main): Process the new constructions.
7166 * genautomata.c (gen_presence_absence_set,
7167 process_presence_absence_names, process_presence_absence_patterns,
7168 add_presence_absence, check_absence_pattern_sets): Add parameter
7170 (unit_decl): Add new members `final_presence_list' and
7171 `final_absence_list'.
7172 (unit_pattern_rel_decl): Add new member `final_p'.
7173 (gen_final_presence_set, gen_final_absence_set): New functions.
7174 (process_decls): Use member `final_p'.
7175 (temp_reserv): New global variable.
7176 (reserv_sets_are_intersected): Add processing `final_presence_set'
7177 and `final_absence_set'.
7178 (initiate_states): Allocate `temp_reserv'.
7179 (unit_final_presence_set_table, unit_final_absence_set_table): New
7181 (initiate_presence_absence_pattern_sets): Initiate them.
7182 (NDFA_to_DFA): Fix typo.
7183 (output_description): Output `final_presence_set' and
7184 `final_absence_set'.
7186 * doc/md.texi (final_presence_set, final_absence_set): Describe
7189 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
7191 * genautomata.c (transform_3): Process a missing case (nothing on
7194 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
7196 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
7197 comments about queried units and the minimization.
7199 * doc/md.texi: Ditto.
7201 * genautomata.c (create_composed_state): Return nonzero if the new
7202 state has been created.
7203 (first_cycle_unit_presence): New function.
7204 (state_is_differed): Add new parameter. Use the new function.
7205 Take queried units into account.
7206 (partition_equiv_class): Pass additional parameter to
7207 `state_is_differed'.
7208 (merge_states): Process composed states too.
7209 (build_automaton, create_automata, output_min_issue_delay_table,
7210 output_tables, output_statistics): Output more information.
7211 (output_reserved_units_table): Use function
7212 `first_cycle_unit_presence'.
7213 (output_tables): Output table of queried units even if the
7214 minimization is switched on.
7215 (write_automata): Output code for querying units even if the
7216 minimization is switched on.
7218 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
7220 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
7221 syntax of the constructions.
7223 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
7224 extended syntax of the constructions.
7226 * genautomata.c (unit_rel_decl): Rename it to
7227 `unit_pattern_rel_decl'.
7228 (pattern_set_el, pattern_reserv): New structures.
7229 (pattern_set_el_t, pattern_reserv_t): New types.
7230 (gen_presence_absence_set): New function.
7231 (process_presence_absence): Remove it.
7232 (process_presence_absence_names,
7233 process_presence_absence_patterns): New functions.
7234 (get_presence_absence_set): Remove it.
7235 (initiate_presence_absence_sets): Rename it on
7236 `initiate_presence_absence_pattern_sets'. Use new function
7237 `form_reserv_sets_list'.
7238 (form_reserv_sets_list, check_presence_pattern_sets,
7239 check_absence_pattern_sets, output_pattern_set_el_list): New
7241 (unit_decl): Change types of members `presence_list' and
7243 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
7244 (decl): Change types of members `excl', `presence', and `absence'.
7245 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
7246 at the end of the vector.
7247 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7248 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
7249 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
7250 (gen_presence_set, gen_absence_set): Use new function
7251 `gen_presence_absence_set'.
7252 (add_presence_absence): Process `pattern_list' instead of
7254 (process_decls): USe new functions
7255 `process_presence_absence_names' and
7256 `process_presence_absence_patterns'.
7257 (reserv_sets_are_intersected): Use new function
7258 `check_presence_pattern_sets'.
7259 (presence_set, absence_set): Remove them.
7260 (unit_presence_set_table, unit_absence_set_table): New global
7262 (output_description): Use new function
7263 `output_pattern_set_el_list'.
7264 (generate): Use `initiate_presence_absence_pattern_sets'.
7266 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
7268 * genattr.c (main): Add output of prototype of new interface
7269 function `dfa_clean_insn_cache'.
7271 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
7272 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
7273 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
7275 (write_automata): Call the new function.
7277 Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
7279 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
7282 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
7284 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
7286 Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
7288 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
7289 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
7290 (CONSTRAINT_LEN): Provide default definition.
7291 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7292 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
7293 (EXTRA_CONSTRAINT_STR): Likewise.
7294 (REG_CLASS_FROM_CONSTRAINT): Define.
7295 * genoutput.c (check_constraint_len, constraint_len): New functions.
7296 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
7297 constraint / modifier.
7298 (gen_insn): Call check_constraint_len.
7299 * local-alloc.c (block_alloc): Update to use new macros / pass
7300 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
7301 * ra-build.c (handle_asm_insn): Likewise.
7302 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7303 (constrain_operands, peep2_find_free_register): Likewise.
7304 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
7305 * regmove.c (find_matches): Likewise.
7306 * reload.c (push_secondary_reload, find_reloads): Likewise.
7307 (alternative_allows_memconst): Likewise.
7308 * reload1.c (maybe_fix_stack_asms): Likewise.
7309 (reload_cse_simplify_operands): Likewise.
7310 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7311 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
7312 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7313 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
7314 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
7315 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
7317 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
7319 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
7321 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
7323 (*extzv_1_r_h8300hs): Likewise.
7324 (*extzv_1_r_inv_h8300): Likewise.
7325 (*extzv_1_r_inv_h8300hs): Likewise.
7327 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
7329 * config/h8300/h8300.h (PREDICATE_CODES): New.
7331 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
7333 * config/h8300/h8300.md (*addsi3_upper): New.
7334 (*iorsi3_shift): Likewise.
7335 (two splitters): Likewise.
7336 (*addsi3_shift): Likewise.
7337 (two splitters): Likewise.
7339 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7341 * Makefile.in (optabs.o): Add dependency on basic-block.h.
7342 * basic-block.h (control_flow_insn_p): Fuction was exported.
7343 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
7344 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
7345 notes only when the region is contained in a single basic block.
7347 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
7350 * tree.h (expand_asm): New prototype.
7351 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
7353 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
7355 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
7356 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
7357 (volatile_refs_p) [ASM_INPUT]: Likewise.
7358 (side_effects_p) [ASM_INPUT]: Likewise.
7360 Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
7362 * i386.md (*mul*): FIx constraints; remove confused comment; fix
7363 athlon_decode attributes
7364 (imul/k8 optimization peep2s): New.
7366 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
7367 * i386.md (type attribute): Add ssecomi.
7368 (unit, memory, prefix attributes): Handle ssecomi.
7369 (cvt?2? patterns): Fix athlon_decode attribute
7370 (comi patterns): Set attribute to ssecomi.
7373 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
7375 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
7377 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
7378 that match register_operands.
7379 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
7380 register_operand the default case.
7382 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
7385 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
7386 an empty element, do not advance the pointer to unfilled
7387 fields if there are pending initializers.
7389 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7391 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
7392 (install-gcc-tooldir, install-cpp, installdirs,
7393 install-common, install-driver, install-info, install-man,
7394 install-headers, install-include-dir, install-headers-tar,
7395 install-headers-cpio, install-headers-cp, install-mkheaders,
7396 install-collect2, uninstall): Prepend $(DESTDIR) to
7397 destination paths in all (un)installation commands.
7398 (install-driver): Rewrite $(LN) commands to support DESTDIR
7399 with "ln" as well as with "ln -s".
7400 (installdirs): Simply use mkinstalldirs.
7401 (install-libgcc, install-multilib): Also pass DESTDIR.
7402 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
7403 installation destination variable ldir.
7404 * config/alpha/t-osf4, config/arm/t-netbsd,
7405 config/ia64/t-hpux, config/mips/t-iris5-6,
7406 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
7407 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
7408 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
7409 in the definition of SHLIB_INSTALL.
7410 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
7411 $(libsubdir) in the installation commands.
7413 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
7415 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
7416 non-optimizing compile.
7417 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
7420 2003-01-08 Douglas B Rupp <rupp@gnat.com>
7422 * config/i386/i386.c (ix86_attribute_table): Add new attributes
7423 ms_struct and gcc_struct.
7424 (ix86_handle_struct_attribute): New function.
7425 (ix86_ms_bitfield_layout_p): Update to take new attributes
7427 * doc/extend.texi: Document new attributes.
7428 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
7430 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
7432 PR optimization/8750
7433 * config/i386/i386.c (ix86_expand_prologue): Don't allow
7434 scheduling pass to move insns across __alloca call.
7436 2003-01-08 Dale Johannesen <dalej@apple.com>
7438 * config/rs6000/rs6000.md: Replace *store_multiple_string
7441 2003-01-08 Jeff Sturm <jsturm@one-point.com>
7444 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
7445 Set SYMBOL_REF_FLAG on local data sym_ref.
7447 2003-01-08 Dale Johannesen <dalej@apple.com>
7449 * function.c (assign_parms): Don't set pretend_args_size if
7450 REG_PARM_STACK_SPACE.
7451 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
7454 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
7458 Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
7460 * i386.c (ix86_expand_int_addcc): Fix thinko.
7462 2003-01-08 David Edelsohn <edelsohn@gnu.org>
7464 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
7465 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
7466 as hook_bool_tree_hwi_hwi_tree_true.
7467 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
7468 (rs6000_emit_epilogue): Same.
7469 (rs6000_output_mi_thunk): Re-implement as RTL.
7470 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
7471 xcoffout_declare_function if any debugging enabled.
7473 2003-01-08 Chris Demetriou <cgd@broadcom.com>
7475 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
7476 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
7477 * config/mips/mips.h (enum processor_type): Rename
7478 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
7479 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
7481 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
7482 (ISA_MIPS32R2): New define.
7483 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
7484 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
7485 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
7486 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
7487 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
7488 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
7489 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
7490 compiling MIPS16 code.
7491 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
7493 (ISA_HAS_SEB_SEH): New define.
7494 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
7495 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
7496 processor_type value renaming. Add support for MIPS32R2.
7497 Clean up comments, and move "sb1" entry with other MIPS64 CPU
7499 (override_options): Reimplement -mipsN option handling so that
7500 it will work correctly for -mips32r2. Avoid branch-likely
7501 instructions on MIPS32R2.
7502 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
7503 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
7504 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
7505 (extendhisi2_hw, extendqisi2_hw): New.
7506 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
7507 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
7508 MIPS32R2, and MIPS64.
7509 (LINK_SPEC): Pass -mips32r2 to linker.
7510 * config/mips/t-isa3264: Built -mips32r2 multilibs.
7511 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
7512 for mips32r2 in the -march description. Alphabetically sort
7513 CPU names in the -march description. Add long-missed -mips32
7514 and -mips64 to MIPS option summary.
7516 * config.gcc: Update copyright years to include 2003.
7517 * config/mips/mips.c: Likewise.
7518 * config/mips/mips.h: Likewise.
7519 * config/mips/mips.md: Likewise.
7520 * config/mips/netbsd.h: Likewise.
7521 * doc/invoke.texi: Likewise.
7523 2003-01-08 Andreas Schwab <schwab@suse.de>
7525 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
7527 * configure: Regenerated.
7529 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
7531 * config/h8300/h8300.c (output_logical_op): Replace byte/word
7532 extraction of det with b0, b1, w0, w2, etc.
7533 (compute_logical_op_length): Likewise.
7534 (compute_logical_op_cc): Likewise.
7536 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
7538 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
7539 HIGH on all variants.
7541 Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7543 * Makefile.in (PARTITION_H): New.
7544 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
7545 * basic-block.h: Include hard-reg-set.h.
7547 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
7549 * arm.h (ENABLE_XF_PATTERNS): Delete.
7550 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
7551 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
7552 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
7553 (cmpxf_trap): Delete.
7554 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
7556 Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
7558 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
7559 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
7560 (add??cc): New expanders.
7561 * i386.c (expand_int_addcc): New function.
7562 * i386-protos.h (expand_int_addcc): Declare.
7564 * alias.c (memory_modified_1): New static function.
7565 (memory_modified): New static varaible.
7566 (memory_modified_in_insn_p): New global function.
7567 * rtl.h (memory_modified_in_insn_p): Declare.
7568 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
7571 * expr.h (emit_conditional_add): Declare.
7573 2003-01-07 Janis Johnson <janis187@us.ibm.com>
7576 * doc/invoke.texi (-malign-double): Explain that the option breaks
7577 binary compatibility.
7579 2003-01-08 Andreas Schwab <schwab@suse.de>
7581 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
7582 should come from the generic *-*-linux* entry.
7584 Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
7586 * cselib.c (cselib_current_insn_in_libcall): New static variable.
7587 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
7588 we are inside libcall.
7589 * cselib.h (elt_loc_list): Add in_libcall.
7590 * gcse.c (do_local_cprop): Do not copy propagate using insns
7593 2003-01-07 David Edelsohn <edelsohn@gnu.org>
7595 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
7596 not normally affect to issue rate.
7598 Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
7600 * genopinit.c (optabs): Add addc_optab.
7601 * ifcvt.c (noce_try_store_flag): Rename to ...
7602 (noce_try_addcc): ... this one; handle generic conditional increment.
7603 (noce_process_if_block): Update noce_try_addcc call.
7604 * optabs.c (emit_conditional_add): New.
7605 (init_obtabs): Initialize addc_optab.
7606 * optabs.h (optab_index): Add OTI_addcc.
7607 (addcc_optab): New macro.
7608 * md.texi: Document addMcc
7611 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
7612 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7613 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7615 * reload1.c (delete_output_reload): Avoid repeated attempts
7618 2003-01-07 Andreas Schwab <schwab@suse.de>
7620 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
7621 Move --enable-initfini-array check ...
7622 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
7623 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
7624 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
7625 * configure: Rebuild.
7627 2003-01-07 Richard Henderson <rth@redhat.com>
7629 * alias.c (find_base_value): Only use new_reg_base_value shortcut
7630 if the register is set once.
7632 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
7634 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
7635 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
7636 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
7638 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
7639 Sunil Davasam <sunil.k.davasam@intel.com>
7642 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
7643 DW_CFA_same_value, read next and ignore.
7645 2003-01-07 Richard Henderson <rth@redhat.com>
7647 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
7649 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
7651 * cfg.c: Include alloc-pool.h
7652 (edge_pool): New pool.
7653 (bb_pool): New pool.
7654 (first_deleted_edge): Remove.
7655 (first_deleted_block): Remove.
7656 (init_flow): Alloc/free the pools.
7657 (free_edge): Use pools.
7658 (alloc_block): Ditto.
7659 (expunge_block): Ditto.
7660 (cached_make_edge): Ditto.
7662 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
7664 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
7666 * et-forest.c: Include alloc-pool.h.
7667 (struct et_forest): Add node_pool and occur_pool.
7668 (et_forest_create): Create the new pools.
7669 (et_forest_delete): Delete them.
7670 (et_forest_add_node): Allocate and free using pools.
7671 (et_forest_add_edge): Ditto.
7672 (et_forest_remove_node): Ditto.
7673 (et_forest_remove_edge): Ditto.
7675 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
7677 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
7679 * config/h8300/h8300.c (output_logical_op): Simplify and
7680 optimize the handling of SImode.
7681 * config/h8300/h8300.c (compute_logical_op_length): Update
7683 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
7685 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
7687 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
7688 big-endian correction to indirect arguments too.
7690 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
7692 Segher Boessenkool <segher@koffie.nl>
7694 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
7695 (alt_reg_names): Ditto, fix formatting.
7696 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
7698 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
7700 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
7701 (output_logical_op): Constify intval and det.
7702 (compute_logical_length): Likewise.
7703 (compute_logical_cc): Likewise.
7704 (output_a_shift): Constify mask.
7705 (h8300_encode_label): Constify len.
7707 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
7709 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
7710 (h8300_expand_epilogue): Likewise.
7712 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
7714 Segher Boessenkool <segher@koffie.nl>
7716 * config/rs6000/altivec.md: Remove spaces from assembler
7717 instruction argument lists.
7719 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7721 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
7722 c4x_assembler_function_p.
7723 (c4x_null_epilogue_p): Complement return value, all uses updated.
7724 (c4x_insert_attributes): Add naked.
7725 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
7726 * doc/extend.texi: Update C4x function attributes.
7728 2003-01-06 Richard Henderson <rth@redhat.com>
7730 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
7731 properly when changing "local-ness".
7732 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
7734 2003-01-06 Dale Johannesen <dalej@apple.com>
7736 * config/darwin-protos.h: Add prototypes for new section functions.
7738 2003-01-06 Chris Demetriou <cgd@broadcom.com>
7740 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
7743 2003-01-06 Zack Weinberg <zack@codesourcery.com>
7745 * hwint.h: If the current compiler has no 64-bit type at all,
7746 make HOST_WIDEST_INT 32 bits.
7748 2003-01-06 Eric Christopher <echristo@redhat.com>
7750 * config/mips/mips.md (movdf_internal2): Fix constraints.
7752 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
7754 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
7756 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
7758 * config/mips/mips.md (leadi): Use dla rather than la.
7760 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
7762 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
7763 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
7765 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
7767 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
7770 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
7772 * config/h8300/h8300.md (*extzv_8_23): New.
7774 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7776 * pa64-hpux.h (JCR_SECTION_NAME): Define.
7777 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
7778 USE_EH_FRAME_REGISTRY when defining.
7780 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
7782 * config/h8300/h8300.c (output_a_shift): Do not output a
7784 * config/h8300/h8300.md (two splitters): New.
7786 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
7788 * config/mips/mips.md: Disable the movstrsi define_split.
7790 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7792 * alloc-pool.c: Don't include "libiberty.h".
7793 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
7794 * convert.c (convert_to_real): Hide unused variable.
7796 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7798 * Makefile.in (gtyp-gen.h): Const-ify.
7799 * gcov-dump.c (tag_table): Likewise.
7801 2003-01-04 Bruce Korb <bkorb@gnu.org>
7803 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
7804 of *both* the file name and the fix name.
7806 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
7808 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
7810 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
7811 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
7812 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
7813 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
7814 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
7815 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
7817 (EH_FRAME_IN_DATA_SECTION): Delete define.
7818 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
7819 (STARTFILE_SPEC): Use crtbegin.o.
7820 (ENDFILE_SPEC): Use crtend.o.
7821 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
7822 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
7823 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
7824 DTOR_LIST_BEGIN): Define.
7825 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
7826 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
7827 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
7829 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
7831 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
7832 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
7833 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
7834 Cleanup handling of replacement text.
7835 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
7837 2003-01-04 Bruce Korb <bkorb@gnu.org>
7839 * fixinc/tests/base/math.h: removed obsolete results
7840 * fixinc/tests/base/stdlib.h: ditto
7841 * fixinc/tests/base/sys/param.h: ditto
7842 * fixinc/tests/base/sys/stat.h: ditto
7843 * fixinc/tests/base/time.h: ditto
7844 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
7845 * fixinc/tests/base/sys/byteorder.h: ditto
7846 * fixinc/inclhack.def: Remove superfluous backslashes
7848 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
7850 * config/h8300/h8300-protos.h: Add prototypes for
7851 the new functions defined below.
7852 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
7854 (dosize): Emit RTL instead of assembly code.
7857 (h8300_output_function_prologue): Remove.
7858 (h8300_expand_prologue): New.
7859 (h8300_expand_epilogue): New.
7860 (h8300_output_function_epilogue): Do only the reset of
7862 * config/h8300/h8300.md (push_h8300): New.
7863 (push_h8300hs): Likewise.
7864 (pop_h8300): Likewise.
7865 (pop_h8300hs): Likewise.
7866 (*stm_h8300s_2): Change the name to stm_h8300s_2.
7867 (*stm_h8300s_3): Change the name to stm_h8300s_3.
7868 (*stm_h8300s_4): Change the name to stm_h8300s_4.
7869 (*ldm_h8300s_2): New.
7870 (*ldm_h8300s_3): Likewise.
7871 (*ldm_h8300s_4): Likewise.
7873 (*return_1): Likewise.
7874 (prologue): Likewise.
7875 (epilogue): Likewise.
7876 (monitor_prologue): Likewise.
7878 2003-01-03 Dale Johannesen <dalej@apple.com>
7880 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
7881 machopic_picsymbol_stub1.
7882 (EXTRA_SECTION_FUNCTIONS): Ditto.
7883 * rs6000/rs6000.c: Update copyright.
7884 (machopic_output_stub): Use them. Remove an insn from stub code.
7886 2003-01-02 Jason Merrill <jason@redhat.com>
7888 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
7890 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
7891 static/external decls.
7893 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
7895 * c-decl.c (c_make_fname_decl): Push the decls there, too.
7897 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
7899 * config/h8300/h8300-protos.h: Add a prototype for
7900 h8300_current_function_interrupt_function_p.
7901 * config/h8300/h8300.c (interrupt_handler): Remove.
7902 (os_task): Likewise.
7903 (monitor): Likewise.
7904 (pragma_interrupt): New.
7905 (WORD_REG_USED): Use
7906 h8300_current_function_interrupt_function_p.
7908 (h8300_output_function_prologue): Likewise.
7909 Do not set interrupt_handler, os_task, monitor.
7910 (h8300_output_function_prologue): Use
7911 h8300_current_function_interrupt_function_p.
7912 Do not set interrupt_handler, os_task, monitor.
7913 (h8300_current_function_interrupt_function_p): New.
7914 (h8300_pr_interrupt): Set pragma_interrupt.
7915 (h8300_insert_attributes): Reset pragma_interrupt.
7917 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7919 * doc/install.texi (Configuration): Fix markup for reference to
7922 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
7924 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
7925 (*iorhi3_two_qi): Likewise.
7926 (*iorsi3_zexthi): Likewise.
7927 (*xorhi3_zextqi): Likewise.
7928 (*xorsi3_zexthi): Likewise.
7929 (*xorsi3_zextqi): Likewise.
7931 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
7933 * config/h8300/h8300.c (stack_pointer_operand): New.
7934 (const_int_gt_2_operand): Likewise.
7935 (const_int_ge_8_operand): Likewise.
7936 * config/h8300/h8300.md (a splitter): Likewise.
7937 (a peephole2): Likewise.
7938 * config/h8300/h8300-protos.h: Add prototypes for the new
7941 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
7943 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
7944 objc/objc-act.h: Fix copyright years.
7946 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
7948 * doc/passes.texi: Fix documentation for -fssa-ccp
7950 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
7952 * gccbug.in: Update for new categories.
7954 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
7956 * config/h8300/h8300.md: Reorder some patterns.
7958 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
7960 * config/h8300/h8300.c (output_logical_op): Fix a warning.
7962 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
7964 * config/darwin-protos.h, config/c4x/c4x-protos.h,
7965 config/cris/cris-protos.h, config/i370/i370-protos.h,
7966 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
7967 config/v850/v850-protos.h: Use struct, and don't conditionally
7968 compile on GCC_C_PRAGMA_H.
7970 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
7972 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
7973 * config/h8300/h8300-protos.h: Likewise.
7974 * config/sh/sh-protos.h: Likewise.
7976 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
7978 * config/arm/arm-protos.h: Use struct cpp_reader instead of
7980 * config/h8300/h8300-protos.h: Likewise.
7981 * config/sh/sh-protos.h: Likewise.
7983 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
7985 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
7986 arm_pr_long_calls_off): Use struct.
7987 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
7989 Don't include cpplib.h.
7990 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
7991 sh_pr_nosave_low_regs): Similarly.
7993 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
7995 * config/h8300/h8300.c: Include cpplib.h.
7997 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
7999 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
8000 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
8001 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
8002 "GCC" in the copyright header.
8004 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
8006 * c-pragma.c (c_register_pragma): New.
8007 (init_pragma): Use it.
8008 * c-pragma.h (cpp_register_pragma): Don't declare.
8009 (c_register_pragma): New.
8010 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
8011 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
8012 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
8013 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
8014 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
8015 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
8016 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
8017 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
8018 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
8019 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
8020 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
8021 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
8023 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
8025 * config/h8300/h8300-protos.h: Update the prototypes.
8026 * config/h8300/h8300.c (const_le_2_operand): Change to
8027 const_int_le_2_operand.
8028 (const_int_le_6_operand): Change to const_int_le_6_operand.
8029 * config/h8300/h8300.md (two peepholes): Update the function
8032 2002-12-31 Tom Tromey <tromey@redhat.com>
8034 * doc/install.texi (Testing): Fixed typo.
8036 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
8038 * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
8039 (TRAMPOLINE_SIZE): Support the normal mode.
8040 (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
8042 2002-12-31 Mark Mitchell <mark@codesourcery.com>
8044 * c-common.h (pending_lang_change): Declare.
8046 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
8048 * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
8051 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
8053 * gcc/doc/invoke.texi (Optimization Options): List the options
8054 enabled by each -O flag.
8056 2002-12-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8058 * doc/install.texi (Configuration): Explicitly refer
8059 gcc/config.gcc for a list of cpu models.
8061 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
8063 * config/h8300/h8300.h: Fix comment typos.
8065 2002-12-30 David Edelsohn <edelsohn@gnu.org>
8067 * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
8069 2002-12-30 Tom Tromey <tromey@redhat.com>
8071 * doc/install.texi (Testing): Mention Jacks.
8073 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
8075 * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
8077 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
8079 * config/h8300/h8300.c (output_logical_op): Use extu.w in more
8081 (compute_logical_op_length): Update to reflect the change in
8083 (compute_logical_op_cc): Likewise.
8085 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
8087 * doc/service.texi: Uncomment and update FAQ link.
8089 2002-12-30 Andreas Jaeger <aj@suse.de>
8091 * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
8093 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
8095 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
8097 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
8099 * config/h8300/h8300.c (output_logical_op): Use extu.w if we
8100 are clearing the most significant byte.
8101 (compute_logical_op_length): Update to reflect the change in
8103 (compute_logical_op_cc): Likewise.
8105 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
8107 * config/h8300/h8300.md: Give internal names to anonymous
8110 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
8112 * config/h8300/h8300.md: Reorder some insns.
8114 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
8116 * config/h8300/h8300-protos.h: Add prototypes for
8117 const_int_qi_operand and const_int_hi_operand.
8118 * config/h8300/h8300.c (const_int_qi_operand): New.
8119 (const_int_hi_operand): Likewise.
8120 * config/h8300/h8300.md (three peepholes): New.
8122 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
8124 * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
8127 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
8129 * configure.in: Increase makeinfo version requirement to 4.[2-9].
8130 * configure: Regenerate.
8131 * doc/install.texi: Update Texinfo version requirement.
8133 2002-12-28 Andreas Jaeger <aj@suse.de>
8135 * config/i386/i386.c (x86_function_profiler): Mark labelno as
8138 * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
8141 2002-12-27 Kazu Hirata <kazu@cs.umass.edu>
8143 * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
8145 (*iorhi_lshiftrt_8): New.
8147 2002-12-27 Joseph S. Myers <jsm@polyomino.org.uk>
8149 * doc/include/texinfo.tex: Update to version 2002-12-26.16.
8151 2002-12-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8153 * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
8155 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
8157 * config/h8300/h8300-protos.h: Fix comment typos.
8159 * config/h8300/h8300.c: Fix comment typos.
8161 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
8163 * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
8165 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
8167 * config/i386/athlon.md: Fix comment typos.
8168 * config/i386/crtdll.h: Likewise.
8169 * config/i386/djgpp.h: Likewise.
8170 * config/i386/i386-interix.h: Likewise.
8171 * config/i386/i386.c: Likewise.
8172 * config/i386/i386.h: Likewise.
8173 * config/i386/i386.md: Likewise.
8174 * config/i386/k6.md: Likewise.
8175 * config/i386/mingw32.h: Likewise.
8176 * config/i386/pentium.md: Likewise.
8177 * config/i386/sco5.h: Likewise.
8178 * config/i386/winnt.c: Likewise.
8179 * config/i386/xmmintrin.h: Likewise.
8181 2002-12-26 Jose Renau <renau@cs.uiuc.edu>
8183 * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
8184 INSN_P before checking to see if it is dead.
8185 (mark_all_insn_unnecessary): Similarly.
8186 (ssa_eliminate_dead_code): Similarly.
8187 * rtl.h (struct rtx_def): Update comments for in_struct usage
8188 in dead code elimination pass.
8189 (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
8191 2002-12-26 Andreas Schwab <schwab@suse.de>
8193 * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
8195 2002-12-25 David Edelsohn <edelsohn@gnu.org>
8197 * config/rs6000/rs6000.c (rs6000_override_options): Convert to
8198 tartet_flags_explicit.
8199 * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
8200 Compact target_flags bits.
8201 (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
8202 (TARGET_SWITCHES): Delete references to *_SET flags.
8204 Wed Dec 25 20:30:53 CET 2002 Jan Hubicka <jh@suse.cz>
8206 * i386.md (memory attribute): Fix setcc attribute.
8208 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
8210 * output.h: Fix comment typos.
8211 * predict.c: Likewise.
8212 * print-tree.c: Likewise.
8213 * profile.c: Likewise.
8214 * ra-build.c: Likewise.
8215 * ra-colorize.c: Likewise.
8216 * ra-debug.c: Likewise.
8217 * ra-rewrite.c: Likewise.
8221 * recog.c: Likewise.
8222 * reg-stack.c: Likewise.
8223 * regclass.c: Likewise.
8225 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
8227 * config/h8300/h8300.c (print_operand_address): Do not negate
8228 a negative number when printing one.
8230 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
8232 * config/h8300/h8300-protos.h: Add prototypes for
8233 output_plussi, compute_plussi_length, and compute_plussi_cc.
8234 * config/h8300/h8300.c (output_plussi): New.
8235 (compute_plussi_length): Likewise.
8236 (compute_plussi_cc): Likewise.
8237 * config/h8300/h8300.md (addsi_h8300h): Call
8238 output_plussi, compute_plussi_length, and compute_plussi_cc.
8240 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
8242 * config/h8300/h8300.md (two peepholes): Use match_dup instead
8243 of match_operand in the new patterns.
8245 2002-12-24 Joseph S. Myers <jsm@polyomino.org.uk>
8247 * doc/include/texinfo.tex: Update to version 2002-11-25.11.
8249 2002-12-24 Nathan Sidwell <nathan@codesourcery.com>
8251 * configure.in (enable-coverage): Add SELF_COVERAGE.
8252 * profile.c (end_branch_prob): Use SELF_COVERAGE.
8254 2002-12-24 Jim Wilson <wilson@redhat.com>
8256 * alias.c (record_set): Handle multi-reg hard registers.
8258 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
8260 * regmove.c: Fix comment typos.
8261 * reload.c: Likewise.
8262 * reload1.c: Likewise.
8263 * resource.c: Likewise.
8264 * rtl.def: Likewise.
8266 * rtlanal.c: Likewise.
8267 * sched-deps.c: Likewise.
8268 * sched-rgn.c: Likewise.
8269 * sibcall.c: Likewise.
8270 * simplify-rtx.c: Likewise.
8271 * ssa-ccp.c: Likewise.
8274 * stor-layout.c: Likewise.
8275 * system.h: Likewise.
8276 * tlink.c: Likewise.
8277 * toplev.c: Likewise.
8278 * tracer.c: Likewise.
8279 * tree-inline.c: Likewise.
8282 * unroll.c: Likewise.
8283 * varasm.c: Likewise.
8285 2002-12-23 Larin Hennessy <larin@science.oregonstate.edu>
8287 * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
8288 m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
8289 * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
8291 * doc/md.texi: Remove AMD 29K entries.
8292 * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
8293 1.38.1, NewsOS, RT PC, WE32K entries.
8295 2002-12-23 Aldy Hernandez <aldyh@redhat.com>
8298 * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
8299 (altivec_vspltisw_v4sf): Name pattern.
8300 (altivec_vslw_v4sf): New pattern.
8302 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
8304 * doc/include/gcc-common.texi: Define DEVELOPMENT.
8306 2002-12-23 Mark Mitchell <mark@codesourcery.com>
8308 * stor-layout.c (update_alignment_for_field): Correct handling of
8309 unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
8310 * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
8311 bitfield does not affect alignment.
8313 2002-12-23 David Edelsohn <edelsohn@gnu.org>
8315 * expr.c (expand_assignment): Apply special treatment to
8318 2002-12-23 Kazu Hirata <kazu@cs.umass.edu>
8320 * config/h8300/h8300-protos.h: Update the prototype of
8322 * config/h8300/h8300.c (expand_a_shift): Change the return
8324 * config/h8300/h8300.md: Update all the uses of
8327 2002-12-22 Nathan Sidwell <nathan@codesourcery.com>
8329 * tree.c (save_expr): Allow either side of a dyadic operand to be
8332 * doc/portability.texi (portability): Update portability goals.
8334 2002-12-23 Kazu Hirata <kazu@cs.umass.edu>
8336 * config/h8300/h8300.c (output_a_shift): Remove unused code.
8338 2002-12-22 Mark Mitchell <mark@codesourcery.com>
8340 * stor-layout.c (update_alignment_for_field): Guard use of
8341 ADJUST_FIELD_ALIGN with #ifdef.
8343 * stor-layout.c (update_alignment_for_field): Use
8344 ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
8345 bitfield when PCC_BITFIELD_TYPE_MATTERS.
8347 2002-12-22 Kazu Hirata <kazu@cs.umass.edu>
8349 * genautomata.c: Fix comment typos.
8351 Sun Dec 22 18:23:44 CET 2002 Jan Hubicka <jh@suse.cz>
8353 * params.def (tracer-min-branch-probability-feedback): Fix default.
8354 * final.c (compute_alignments): Use profile to avoid code bloat.
8356 2002-12-22 Kazu Hirata <kazu@cs.umass.edu>
8358 * config/h8300/h8300.c (get_shift_alg): Make shift insn
8359 sequences end with a valid cc0 whenever possible.
8361 2002-12-22 Kazu Hirata <kazu@cs.umass.edu>
8363 * config/h8300/h8300.md (negsf2): New.
8364 (*negsf2_h8300): Likewise.
8365 (*negsf2_h8300hs): Likewise.
8367 2002-12-21 Geoffrey Keating <geoffk@apple.com>
8369 * integrate.c (output_inline_function): Don't hold private
8370 pointers to 'struct function' over GC calls.
8372 2002-12-21 Kaz kojima <kkojima@gcc.gnu.org>
8374 * config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
8376 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.
8378 2002-12-21 Kazu Hirata <kazu@cs.umass.edu>
8380 * config/h8300/h8300.md (zero_extendqisi2): Correct the
8383 2002-12-21 Kazu Hirata <kazu@cs.umass.edu>
8385 * config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
8386 second alternative "#".
8387 (*zero_extendqihi2_h8300hs): Likewise.
8388 (a define_split): New.
8390 2002-12-21 Kazu Hirata <kazu@cs.umass.edu>
8392 * config/h8300/h8300-protos.h: Update the prototype for
8394 Add prototypes for const_le_2_operand and const_le_6_operand.
8395 * config/h8300/h8300.c (split_adds_subs): Add an argument to
8396 specify whether inc/dec should be used when possible.
8397 (const_le_2_operand): New.
8398 (const_le_6_operand): Likewise.
8399 * config/h8300/h8300.md (two peepholes): New.
8401 2002-12-21 Kazu Hirata <kazu@cs.umass.edu>
8403 * config/fr30/fr30.md: Fix a comment typo.
8404 * config/i386/i386.c: Likewise.
8405 * config/ip2k/ip2k.h: Likewise.
8407 2002-12-20 Jim Wilson <wilson@redhat.com>
8409 * config/rs6000/spe.h (__ev_subifw): Reverse arguments.
8410 (__ev_subw, __ev_subiw): New.
8411 (ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
8412 ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.
8414 2002-12-20 John David Anglin <dave.anglin@nrc.gc.ca>
8416 * pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
8417 * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
8418 * pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
8419 TARGET_ELF32. Add comment on sibcall issues for TARGET_64BIT.
8421 2002-12-20 Kazu Hirata <kazu@cs.umass.edu>
8423 * config/h8300/h8300-protos.h: Add prototypes for
8424 incdec_operand and eqne_operator.
8425 * config/h8300/h8300.c (incdec_operand): New.
8426 (eqne_operator): Likewise.
8427 * config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
8428 (CONST_OK_FOR_O): Likewise.
8429 (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
8431 * config/h8300/h8300.md (UNSPEC_INCDEC): New.
8432 (addhi3_incdec): New.
8433 (addsi3_incdec): Likewise.
8434 (two peepholes): Likewise.
8436 2002-12-20 Kazu Hirata <kazu@cs.umass.edu>
8438 * config/h8300/h8300.c (dosize): Remove warnings.
8439 (print_operand): Likewise.
8441 2002-12-20 Richard Henderson <rth@redhat.com>
8443 * config/alpha/alpha.c (decl_has_samegp): New.
8444 (samegp_function_operand): Use it. Rename from
8445 current_file_function_operand.
8446 (direct_call_operand): Handle -msmall-text via symbol->jump.
8447 (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
8448 (tls_symbolic_operand_type): Likewise.
8449 (alpha_encode_section_info): Likewise. Handle -msmall-text.
8450 (alpha_function_ok_for_sibcall): Use decl_has_samegp.
8451 (alpha_end_function): Set symbol->jump for functions defined in
8453 * config/alpha/alpha-protos.h: Update.
8454 * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
8455 (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
8456 (PREDICATE_CODES): Update.
8457 * config/alpha/alpha.md (call patterns): Update for
8458 samegp_function_operand rename; use !samegp reloc if
8459 TARGET_EXPLICIT_RELOCS.
8460 * doc/invoke.text: Document -msmall-text and -mlarge-text.
8462 2002-12-20 Ian Dall <ian@sibyl.beware.dropbear.id.au>
8464 * config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
8465 all registers capable of holding a double float.
8466 (*rcond): change name of "reverse branch" insns to
8467 something more meaningful.
8468 (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
8469 comparisons properly.
8470 (*ffs): Change operand 0 from write to read-modify-write.
8471 (*ffsssi2): Drop constraints from define_expand.
8473 * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
8474 MOVE_RATIO as default for store operations.
8476 * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
8478 (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
8479 (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
8480 * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.
8482 * config/ns32k/STATUS: New File
8483 * config/ns32k/NOTES: New file.
8485 2002-12-20 Hartmut Penner <hpenner@de.ibm.com>
8487 * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
8488 option for S/390 and zSeries.
8489 * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
8490 s390_arch_string): New variables.
8491 (override_options): Checking for options and setting of
8492 appropriate target_flags, cpu and arch flags.
8493 * config/s390/s390.h: (processor_type): New enum.
8494 (TARGET_SWITCHES): New switches -mesa/zarch.
8495 * config/s390/s390.md: New attribute 'cpu'.
8497 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
8499 * c-pretty-print.h: Fix comment typos.
8500 * integrate.c: Likewise.
8501 * varasm.c: Likewise.
8502 * config/c4x/c4x.h: Likewise.
8503 * config/c4x/c4x.md: Likewise.
8504 * config/fr30/fr30.md: Likewise.
8505 * config/frv/frv.c: Likewise.
8506 * config/h8300/h8300.c: Likewise.
8507 * config/i386/i386.c: Likewise.
8508 * config/i386/i386.h: Likewise.
8509 * config/ia64/ia64.c: Likewise.
8510 * config/ia64/ia64.h: Likewise.
8511 * config/ip2k/ip2k.md: Likewise.
8512 * config/m68hc11/m68hc11-crt0.S: Likewise.
8513 * config/m68hc11/m68hc11.h: Likewise.
8514 * config/m68hc11/m68hc11.md: Likewise.
8515 * config/m68hc11/m68hc12.h: Likewise.
8516 * config/mcore/mcore.md: Likewise.
8517 * config/mips/mips.c: Likewise.
8518 * config/mips/mips.md: Likewise.
8519 * config/mmix/mmix-modes.def: Likewise.
8520 * config/pa/pa.c: Likewise.
8521 * config/rs6000/rs6000.c: Likewise.
8522 * config/rs6000/rs6000.h: Likewise.
8523 * config/rs6000/rs6000.md: Likewise.
8525 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
8527 * config/h8300/h8300.md (output_a_shift): Clean up the code to
8528 output shifts using rotation.
8530 2002-12-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8532 * flow.c (allocate_reg_life_data): Reset REG_FREQ.
8534 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
8536 * config/h8300/h8300.md (pushqi_h8300): Don't push the stack
8538 (pushqi_h8300hs): Likewise.
8539 (pushhi_h8300): Likewise.
8540 (pushhi_h8300hs): Likewise.
8542 Thu Dec 19 23:44:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
8544 * sched-rgn.c (init_regions): Update comment.
8546 2002-12-19 David Edelsohn <edelsohn@gnu.org>
8548 * config/rs6000/rs6000.md (define_attr type): Remove altivec.
8549 * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
8551 (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
8552 (get_vrsave_internal,set_vrsave_internal): Same.
8553 (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
8554 (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
8555 (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.
8557 2002-12-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
8558 Danny Smith <dannysmith@users.sourceforge.net>
8559 Eric Kohl <ekohl@rz-online.de>
8561 * config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
8562 attributes incompatible with fastcall attribute.
8563 (ix86_handle_regparm_attribute): Likewise.
8565 * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
8568 * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
8570 (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
8571 * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
8572 * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
8573 i386_pe_output_labelref rather than here.
8574 (gen_fastcall_suffix): New function. Decorates a label name with the
8575 fastcall prefix (@) and the stdcall suffix.
8576 (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
8577 has a fastcall attribute.
8578 (i386_pe_output_labelref): New function. Outputs a label reference.
8579 * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
8581 (ix86_return_pops_args): Fastcall functions pop the stack.
8582 (init_cumulative_args): Reserve registers ECX and EDX if function has
8584 (function_arg): Use registers ECX and EDX if function has fastcall
8586 * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
8587 (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
8588 (FASTCALL_PREFIX): Define as '@'.
8589 * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
8591 * doc/extend.texi: Add documentation of fastcall attribute.
8593 2002-12-19 Nathanael Nerode <neroden@gcc.gnu.org>
8595 * configure.in: FORBUILD when build!=host changed from
8596 ../$build-alias to ../build-$build_alias to match change made
8598 * configure: Regenerated.
8600 2002-12-19 Eric Botcazou <ebotcazou@libertysurf.fr>
8602 PR optimization/8988
8603 * loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
8604 the biv when eliminating.
8606 2002-12-19 Devang Patel <dpatel@apple.com>
8607 * gcc.c (struct default_compiler): Recognizes input file name with
8608 .CPP extension as C++ source files
8609 * cp/lang-spec.h: Same
8610 * doc/invoke.texi: Add documentation for .CPP support.
8612 2002-12-19 Aldy Hernandez <aldyh@redhat.com>
8615 * config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
8617 ("absv16qi2"): Same.
8620 ("altivec_abss_v16qi"): Same.
8621 ("altivec_abss_v8hi"): Same.
8622 ("altivec_abss_v4si"): Same.
8624 2002-12-19 Ulrich Weigand <uweigand@de.ibm.com>
8626 * config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
8627 "*tstqiCCT", "*tstqiCCT_cconly"): New insns.
8629 2002-12-19 Eric Botcazou <ebotcazou@libertysurf.fr>
8632 * stmt.c (expand_asm_operands): Produce an error when
8633 the PIC register is clobbered.
8635 2002-12-18 Daniel Berlin <dberlin@dberlin.org>
8637 * Makefile.in (OBJS): Add alloc-pool.o
8638 (alloc-pool.o): New object.
8640 * alloc-pool.c: New file.
8641 * alloc-pool.h: New file.
8643 2002-12-18 Loren James Rittle <ljrittle@acm.org>
8645 * gcc.c (validate_switches): Robustify against skipping past '\0'.
8647 2002-12-18 Geoffrey Keating <geoffk@apple.com>
8649 * config.gcc: Set extra_objs in the generic Darwin rule,
8650 not in the machine-specific rules.
8652 2002-12-19 Kazu Hirata <kazu@cs.umass.edu>
8654 * ChangeLog: Follow spelling conventions.
8655 * ChangeLog.2: Likewise.
8656 * ChangeLog.4: Likewise.
8657 * ChangeLog.5: Likewise.
8658 * cppexp.c: Likewise.
8661 * gengtype.c: Likewise.
8662 * reload1.c: Likewise.
8663 * sched-rgn.c: Likewise.
8665 * stor-layout.c: Likewise.
8666 * timevar.c: Likewise.
8667 * toplev.c: Likewise.
8669 * varasm.c: Likewise.
8670 * config/fr30/fr30.md: Likewise.
8671 * config/i386/i386.c: Likewise.
8672 * config/ia64/ia64.c: Likewise.
8673 * config/pa/pa.c: Likewise.
8675 2002-12-18 Roger Sayle <roger@eyesopen.com>
8677 * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
8679 2002-12-18 Aldy Hernandez <aldyh@redhat.com>
8682 * config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
8684 (vec_cmplt C++ functions): Reverse arguments.
8686 2002-12-18 Geoffrey Keating <geoffk@apple.com>
8688 * config/rs6000/t-rs6000: Move contents to t-fprules,
8689 add rules for dependencies of rs6000.o and to build rs6000-c.o
8690 * config/rs6000/t-fprules: New file from t-rs6000.
8691 * config/rs6000/t-beos: Remove soft-fp rules.
8692 * config/rs6000/t-ppccomm: Likewise.
8693 * config/rs6000/t-newas: Likewise.
8694 * config/rs6000/t-rs6000-c-rule: Delete.
8695 * config.gcc: Use t-fprules for rs6000/ ports when appropriate.
8696 Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
8697 Create generic Darwin rules.
8699 * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
8701 2002-12-18 Doug Evans <dje@sebabeach.org>
8703 * m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
8705 (move_src_operand): Remove compile-time warning.
8706 * m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
8708 2002-12-18 Jason Merrill <jason@redhat.com>
8710 * unwind-dw2-fde.c (frame_downheap): Split out from...
8711 (frame_heapsort): Here.
8713 2002-12-17 Jason Merrill <jason@redhat.com>
8715 * tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
8716 (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.
8718 * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
8720 * calls.c (expand_call): Don't try to be clever about expanding
8721 the return slot address.
8723 2002-12-18 Kaz kojima <kkojima@gcc.gnu.org>
8725 * config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
8728 2002-12-17 Jason Merrill <jason@redhat.com>
8730 * genmultilib: Use 'cd ./foo'.
8732 2002-12-17 Kazu Hirata <kazu@cs.umass.edu>
8734 * doc/c-tree.texi: Restore deliberate spelling mistakes.
8736 2002-12-17 Kazu Hirata <kazu@cs.umass.edu>
8738 * doc/c-tree.texi: Fix typos and follow spelling conventions.
8739 * doc/cpp.texi: Likewise.
8740 * doc/extend.texi: Likewise.
8741 * doc/gty.texi: Likewise.
8742 * doc/install.texi: Likewise.
8743 * doc/invoke.texi: Likewise.
8744 * doc/md.texi: Likewise.
8745 * doc/passes.texi: Likewise.
8746 * doc/rtl.texi: Likewise.
8747 * doc/sourcebuild.texi: Likewise.
8748 * doc/tm.texi: Likewise.
8750 2002-12-17 Jerry Quinn <jlquinn@optonline.net>
8752 * doc/invoke.texi: Minor spelling and grammar fixes.
8754 2002-12-17 Ulrich Weigand <uweigand@de.ibm.com>
8756 * config/s390/s390.c (s390_output_constant_pool): Replace
8757 ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).
8759 Tue Dec 17 09:47:57 CET 2002 Jan Hubicka <jh@suse.cz>
8761 * convert.c (convert_to_real): Disable function transformation for
8764 2002-12-16 Geoffrey Keating <geoffk@apple.com>
8766 * gcc.c (handle_braces): Allow '@' as a switch name.
8768 2002-12-16 Jason Merrill <jason@redhat.com>
8770 * calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
8771 with special struct-return ABIs.
8773 * c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT
8774 doesn't match the begin SCOPE_STMT in partialness.
8776 2002-12-16 Geoffrey Keating <geoffk@apple.com>
8778 * genmultilib: Create temporary files in unique subdirectory.
8780 * gcc.c (validate_switches): Allow '@' as a switch name.
8782 2002-12-16 Loren J. Rittle <ljrittle@acm.org>
8784 * Makefile.in (gcov-iov.h): Improve portability.
8786 Mon Dec 16 23:39:19 CET 2002 Jan Hubicka <jh@suse.cz>
8788 * mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not
8790 * mips.md (tablejump insn): Likewise.
8792 2002-12-16 Mark Mitchell <mark@codesourcery.com>
8794 * doc/include/gcc-common.texi: Change version number to 3.4.
8796 2002-12-16 Bruce Korb <bkorb@gnu.org>
8798 * fixinc/fixlib.h: add: #include <signal.h>
8799 * fixinc/fixincl.c: remove: #include <signal.h>
8801 Mon Dec 16 17:20:04 2002 J"orn Rennecke <joern.rennecke@superh.com>
8803 * sh.h (EXTRA_CONSTRAINT_Z): New macro.
8804 (EXTRA_CONSTRAINT): Use it.
8805 * sh.md (anddi3): Use 'Z' constraint for alternative 2.
8807 2002-12-15 Zack Weinberg <zack@codesourcery.com>
8809 * config.gcc (need_64bit_hwint): New variable.
8810 (alpha*-*-*, x86_64-*-*, ia64-*-*, mips*-*-*, powerpc*-*-*,
8811 mmix-knuth-mmixware, rs6000*-*-*, sparc64*-*-*, s390*-*-*,
8812 sh*-*-*, hppa*64*-*-linux, parisc*64*-*-linux, hppa*64*-*-hpux11*,
8813 sparcv9-*-solaris2*, sparc*-*-solaris2.[789], ultrasparc-*-freebsd*):
8815 (powerpc*-*-darwin*): Unset it.
8816 (alpha-*-interix, alpha64-dec-*vms*, i?86-*-interix3*,
8817 i?86-*-interix*, sparc64-*-openbsd*): Remove references to
8818 deleted/nonexistent xm-*.h headers.
8819 * configure.in: AC_DEFINE NEED_64BIT_HOST_WIDE_INT if the
8820 target set need_64bit_hwint in config.gcc.
8821 * configure, config.in: Regenerate.
8823 * hwint.h: Overhaul. Don't bother trying int for
8824 HOST_WIDE_INT. Do try __int64 if long is not enough. Base
8825 decision to force 64-bit HOST_WIDE_INT on
8826 NEED_64BIT_HOST_WIDE_INT, not (MAX_)LONG_TYPE_SIZE which is
8827 not visible at this point. Don't allow prior definition of
8828 any macro defined by this file.
8830 * config/alpha/xm-vms.h: Don't define HOST_WIDE_INT or
8831 HOST_BITS_PER_WIDE_INT.
8832 * config/c4x/c4x.h: Adjust redefinition of
8833 HOST_WIDE_INT_PRINT_HEX to match changes to hwint.h.
8834 * config/alpha/xm-alpha-interix.h, config/alpha/xm-vms64.h,
8835 config/i386/xm-i386-interix.h: Delete file.
8837 2002-12-14 Rodney Brown <rbrown64@csc.com.au>
8838 John David Anglin <dave@hiauly1.hia.nrc.ca>
8840 * pa.c (output_millicode_call): Convert ASM_OUTPUT_INTERNAL_LABEL.
8841 * pa64-hpux.h (ASM_OUTPUT_INTERNAL_LABEL): Delete define.
8843 2002-12-14 Zack Weinberg <zack@codesourcery.com>
8845 * mkconfig.sh: Correct comment. Add copyright boilerplate.
8847 2002-12-14 Zack Weinberg <zack@codesourcery.com>
8849 * config/t-darwin, config/arm/t-pe, config/arm/t-strongarm-pe,
8850 config/c4x/t-c4x, config/i370/t-i370, config/i386/t-cygwin,
8851 config/i386/t-interix, config/i960/t-960bare, config/ia64/t-ia64,
8852 config/rs6000/t-rs6000-c-rule, config/sparc/t-sol2,
8853 config/v850/t-v850: Correct dependencies and normalize
8854 compilation commands for files that include coretypes.h and tm.h.
8856 * config/sparc/gmon-sol2.c: Include tconfig.h and tsystem.h,
8857 not config.h and system.h.
8859 Sat Dec 14 20:43:41 CET 2002 Jan Hubicka <jh@suse.cz>
8861 * i386.c (flags_reg_operand): New function.
8862 * i386.h (PREDICATE_CODES): Add flags_reg_operand.
8863 * i386.md (cmov splitter, movqicc): Use new predicate.
8865 Sat Dec 14 17:03:17 CET 2002 Jan Hubicka <jh@suse.cz>
8867 * i386.md (movqicc splitter): Fix template.
8869 2002-12-13 Jason Merrill <jason@redhat.com>
8871 * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): New macro.
8872 * calls.c (expand_call): Handle it.
8873 * tree-inline.c (struct inline_data): Remove target_exprs field.
8874 (optimize_inline_calls): Don't initialize it.
8875 (expand_call_inline): Don't modify it. Handle
8876 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
8877 (declare_return_variable): Take return slot addr.
8878 * langhooks.h (copy_res_decl_for_inlining): Change target_exprs parm
8879 to return_slot_addr.
8880 * langhooks-def.h, langhooks.c: Adjust.
8881 * explow.c (maybe_set_unchanging): Don't set RTX_UNCHANGING_P for
8882 a decl with no DECL_INITIAL.
8884 * expr.c (expand_expr): Don't discard the target of a call which
8887 2002-12-13 Neil Booth <neil@daikokuya.co.uk>
8889 * cppinit.c (path_include): Take an environment variable name.
8891 (init_standard_includes): Simplify environment handling, and
8893 (cpp_read_main_file): ...here as -nostdinc should not affect
8894 environment variable paths.
8896 2002-12-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
8898 * pa.c (output_millicode_call): Correct typo.
8899 (output_call): Likewise.
8901 Fri Dec 13 21:07:18 2002 Alexandre Oliva <aoliva@redhat.com>
8903 * config/mn10300/mn10300.c (print_operand) <case N>: Check
8904 operand's range. Print value directly, without aid from
8907 <case S>: Make sure argument to fprintf has the right type.
8908 * config/mn10300/mn10300.h (OK_FOR_T): New macro.
8909 (EXTRA_CONSTRAINT): Adjust.
8910 * config/mn10300/mn10300.md: Add new all-QImode pattern for
8911 bclr. Use %U for immediate operands of bset and bclr.
8912 (iorqi3): New expand, with insns for AM33 and mn10300.
8914 Fri Dec 13 16:02:27 2002 J"orn Rennecke <joern.rennecke@superh.com>
8916 * sh.c (sh_register_operand): New function.
8917 (prepare_move_operands): Use it.
8918 * sh.h (PREDICATE_CODES): Add entry for sh_register_operand.
8919 * sh.md (movsi_media, movsi_media_nofpu): Allow stores of 0.
8920 (movqi_media, movhi_media, movdi_media, movdi_media_nofpu): Likewise.
8921 (movdf_media, movdf_media_nofpu, movv4sf_i, movsf_media): Likewise.
8922 (movsf_media_nofpu, movv2hi_i, movv4hi_i, movv8qi_i): Likewise.
8923 (movv2si_i): Likewise.
8925 2002-12-13 Jim Wilson <wilson@redhat.com>
8927 * doc/extend.texi (Complex Numbers): Update info on debug info.
8929 2002-12-13 Kazu Hirata <kazu@cs.umass.edu>
8931 * config/h8300/h8300.md (addhi3_h8300): Remove the last
8934 2002-12-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8936 * hooks.h (hook_tree_tree_bool_false): Declare
8937 hook_bool_tree_tree_false instead.
8939 2002-12-12 Devang Patel <dpatel@apple.com>
8941 * doc/invoke.texi: Document Darwin linker options, -bundle
8942 -bind_at_load, -all_load and -arch_errors_fatal
8944 2002-12-12 Jim Wilson <wilson@redhat.com>
8946 * dbxout.c (dbxout_fptype_value): New.
8947 (dbxout_type, case COMPLEX_TYPE): Call it. Use 'R' instead of 'r'.
8949 2002-12-12 Kazu Hirata <kazu@cs.umass.edu>
8951 * c-decl.c: Fix a comment typo.
8953 * cfgcleanup.c: Likewise.
8954 * cfglayout.c: Likewise.
8955 * cfgrtl.c: Likewise.
8956 * c-typeck.c: Likewise.
8957 * dominance.c: Likewise.
8958 * dwarf2asm.c: Likewise.
8959 * dwarfout.c: Likewise.
8960 * expmed.c: Likewise.
8962 * final.c: Likewise.
8964 * function.c: Likewise.
8966 * genautomata.c: Likewise.
8967 * integrate.c: Likewise.
8970 * output.h: Likewise.
8971 * profile.c: Likewise.
8973 * reload1.c: Likewise.
8974 * reload.c: Likewise.
8975 * sched-rgn.c: Likewise.
8978 * vmsdbgout.c: Likewise.
8980 2002-12-12 Kazu Hirata <kazu@cs.umass.edu>
8982 * config/h8300/h8300.md: Add a new peephole2.
8984 2002-12-12 Kazu Hirata <kazu@cs.umass.edu>
8986 * config/h8300/h8300.md (a peephole2): Accept a constant
8987 that's accepted by CONST_OK_FOR_J.
8989 2002-12-12 Kazu Hirata <kazu@cs.umass.edu>
8991 * config/h8300/h8300.h (CONST_OK_FOR_J): New.
8992 (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
8993 * config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
8994 (*addhi_h8300hs): Likewise.
8996 Thu Dec 12 16:24:59 2002 J"orn Rennecke <joern.rennecke@superh.com>
8998 * sh.c (reg_class_from_letter): No longer const. Add 'e' entry.
8999 (sh_register_move_cost): Add clause for SImode fp-fp moves.
9000 Increase cost for moves involving multiple general purpose registers.
9001 * sh.h (OVERRIDE_OPTIONS): Set reg_class_from_letter['e'] according to
9003 (HARD_REGNO_MODE_OK): Allow V2SFmode and V4SFmode in general purpose
9004 registers, and SImode in fp registers, for ! TARGET_SHMEDIA.
9005 (enum reg_class reg_class_from_letter): No longer const.
9006 (SECONDARY_OUTPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG /
9007 REGCLASS_HAS_GENERAL_REG.
9008 Handle SImode moves from/to fp registers.
9009 ! TARGET_SHMEDIA && TARGET_FMOVD.
9010 (SECONDARY_INPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG.
9011 * sh.md (movsi_ie): Add alternatives to move from / to fp regisyters.
9013 2002-12-12 Andreas Schwab <schwab@suse.de>
9015 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Fix typo in last
9016 change and some warnings.
9018 2002-12-12 Kazu Hirata <kazu@cs.umass.edu>
9020 * doc/md.texi (pushm): Fix a typo.
9022 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
9024 * config/mips/mips.c (mips_output_conditional_branch): Support
9025 PIC-safe out-of-range branch and branch-likely.
9026 * config/mips/mips.md (attr length): PIC-safe out-of-range
9027 branches are longer.
9028 ("jump"): Support PIC-safe out-of-range-for-branch jumps. Remove
9029 unused code to support indirect jumps.
9031 2002-12-11 Zack Weinberg <zack@codesourcery.com>
9033 * Makefile.in (GTFILES): Add $(host_xm_file_list) and
9036 2002-12-11 David Edelsohn <edelsohn@gnu.org>
9038 * config/rs6000/t-rs6000-c-rule: Add coretypes.h $(TM_H) dependencies.
9040 Wed Dec 11 15:20:45 CET 2002 Jan Hubicka <jh@suse.cz>
9042 * i386.md (cmove splitters): Avoid creation of unnecesary subregs.
9044 2002-12-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9046 * pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
9047 (MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
9049 (PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
9050 (FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.
9052 2002-12-11 Kazu Hirata <kazu@cs.umass.edu>
9054 * doc/invoke.texi: Correct dump file names.
9056 2002-12-09 Steve Ellcey <sje@cup.hp.com>
9058 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
9059 name to globalize_label or assemble_name.
9061 Wed Dec 11 20:15:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9063 * sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
9064 if not TARGET_SHMEDIA.
9066 Wed Dec 11 19:05:05 2002 J"orn Rennecke <joern.rennecke@superh.com>
9068 * sh.h (REG_CLASS_HAS_FP_REG): New.
9069 (REGISTER_MOVE_COST) Use it. Put body into a function and
9071 * sh.c (sh_register_move_cost).
9072 * sh-protos.h (sh_register_move_cost): Declare.
9074 * sh.c (sh_expand_builtin): Abort for unexpected nop values.
9075 (sh_adjust_cost): Always return a value.
9077 Wed Dec 11 18:39:52 2002 J"orn Rennecke <joern.rennecke@superh.com>
9079 * sh.h (REG_CLASS_HAS_GENERAL_REG): New.
9080 (REGISTER_MOVE_COST): Use it.
9082 2002-12-11 Richard Henderson <rth@redhat.com>
9084 * tree.h (MODULE_LOCAL_P): Kill.
9085 * varasm.c (default_binds_local_p_1): Use decl_visibility instead.
9087 2002-12-11 Kazu Hirata <kazu@cs.umass.edu>
9089 * config/h8300/h8300.md (two define_peephole2): New.
9091 2002-12-11 Kazu Hirata <kazu@cs.umass.edu>
9093 * config/h8300/h8300.h (CONST_OK_FOR_J): Remove.
9094 (CONST_OK_FOR_K): Likewise.
9095 (CONST_OK_FOR_M): Likewise.
9096 (CONST_OK_FOR_LETTER_P): Do not use the above macros.
9098 2002-12-11 Neil Booth <neil@daikokuya.co.uk>
9100 * c-common.c (builtin_define_type_max): Handle unsigned
9103 2002-12-10 David Edelsohn <edelsohn@gnu.org>
9105 * haifa-sched.c (rank_for_schedule): Correct style.
9107 2002-12-10 Per Bothner <pbothner@apple.com>
9109 * cpplib.h (struct cpp_hashnode): Split a non-portably-signed field
9110 directive_index into an unsigned field and a new is_directive field.
9111 * cppinit.c (mark_named_operators): Update to set new fields.
9112 * cpplex.c (_cpp_lex_direct): Now directive_field is unsigned.
9113 * cpplib.c [_cpp_handle_directive]: Test is_directive field.
9114 No longer need to subtract 1 from directive_index.
9115 (_cpp_init_directives): No longer need to add 1 to directive_index.
9116 * cpptrad.c (scan_out_logical_line): Use is_directive field.
9118 2002-12-10 Roger Sayle <roger@eyesopen.com>
9120 * builtins.c (fold_builtin): Remove -funsafe-math-optimizations
9121 check for evaluating sqrt of a constant at compile time.
9122 * simplify-rtx.c (simplify_unary_operation): Likewise.
9124 2002-12-10 Janis Johnson <janis187@us.ibm.com>
9127 * doc/tm.texi (PUSH_ARGS): Remove misplaced line.
9129 2002-12-10 Devang Patel <dpatel@appple.com>
9131 * config/darwin.h(LINK_SPEC): Add darwin specific linker options.
9132 * doc/invoke.texi: Add new "Darwin Options" section.
9134 2002-12-10 Jim Wilson <wilson@redhat.com>
9136 * rs6000.h (RETURN_IN_MEMORY): If ABI_V4, then TFmode is returned in
9139 2002-12-10 Andrew Haley <aph@redhat.com>
9141 * cse.c (cse_insn): Don't cse past a basic block boundary.
9143 2002-12-10 Jakub Jelinek <jakub@redhat.com>
9145 * config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
9147 * config/alpha/linux-elf.h (LIB_SPEC): Likewise.
9148 * config/alpha/linux.h (LIB_SPEC): Likewise.
9149 * config/arm/linux-elf.h (LIB_SPEC): Likewise.
9150 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9151 * config/sparc/linux.h (LIB_SPEC): Likewise.
9152 * config/sparc/linux64.h (LIB_SPEC): Likewise.
9154 2002-12-09 Larin Hennessy <larin@science.oregonstate.edu>
9156 * doc/invoke.texi: Document UltraSparc III option.
9158 2002-12-09 Richard Henderson <rth@redhat.com>
9160 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
9161 __tune_pentium2__ and __tune_pentium3__ as necessary.
9163 2002-12-09 Richard Henderson <rth@redhat.com>
9165 * target.h (gcc_target): Add cannot_force_const_mem.
9166 * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
9167 (TARGET_INITIALIZER): Add it.
9168 * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
9169 * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
9170 * reload1.c (reload): Likewise.
9171 * hooks.c (hook_bool_rtx_false): New.
9172 * hooks.h: Declare it.
9174 * config/i386/i386.c (ix86_cannot_force_const_mem): New.
9175 (TARGET_CANNOT_FORCE_CONST_MEM): New.
9176 (ix86_expand_move): Remove de-const-pooling hack.
9178 Mon Dec 9 21:33:38 CET 2002 Jan Hubicka <jh@suse.cz>
9180 * toplev.c (dump_file): Fix order to match reality.
9182 2002-12-08 Geoffrey Keating <geoffk@apple.com>
9184 * config/rs6000/rs6000.md (load_multiple): Use adjust_address_nv.
9185 (store_multiple): Likewise.
9187 2002-12-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
9189 * pa/fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize
9190 function pointers in page 0.
9192 2002-12-09 Steve Ellcey <sje@cup.hp.com>
9194 * config/ia64/hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove
9196 (MEMBER_TYPE_FORCES_BLK): Move.
9197 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL to pass
9198 aggregate arguments.
9199 (ia64_function_value): Use PARALLEL to return aggregate values.
9201 2002-12-09 Steve Ellcey <sje@cup.hp.com>
9203 * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
9204 * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
9205 * calls.c (store_unaligned_arguments_into_pseudos) Remove
9206 FUNCTION_ARG_REG_LITTLE_ENDIAN.
9207 * stmt.c (expand_return): Ditto.
9208 * expr.c (move_block_from_reg): Ditto.
9209 (copy_blkmode_from_reg): Ditto.
9210 * expmed.c (store_bit_field): Ditto.
9212 2002-12-09 Svein E. Seldal <Svein.Seldal@solidas.com>
9214 * config.gcc: Added tic4x-* target as an alias to c4x-*
9216 Sun Dec 8 14:57:39 CET 2002 Jan Hubicka <jh@suse.cz>
9218 * i386.c (ix86_expand_int_movcc): Use force_operand instead of
9219 constructing insn directly.
9221 2002-12-06 Per Bothner <pbothner@apple.com>
9223 * cpplib.h (struct cpp_hashnode): Change field directive_index from
9224 char to an int bit-field, for hosts where char is unsigned.
9226 2002-12-07 Roger Sayle <roger@eyesopen.com>
9227 Richard Henderson <rth@redhat.com>
9229 * real.c (ieee_extended_motorola_format,
9230 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9231 ieee_quad_format, vax_d_format, vax_g_format, i370_double_format):
9232 Provide appropriate values for new signbit field.
9234 2002-12-07 Roger Sayle <roger@eyesopen.com>
9236 * real.h (real_format): Add signbit field.
9237 * real.c (ieee_single_format, ieee_double_format,
9238 ieee_extended_motorola_format, ieee_extended_intel_96_format,
9239 ieee_extended_intel_128_format, ibm_extended_format,
9240 ieee_quad_format, vax_f_format, vax_d_format,
9241 vax_g_format, i370_single_format, i370_double_format,
9242 c4x_single_format, c4x_extended_format, real_internal_format):
9243 Provide suitable signbit value, or -1 to avoid bit twiddling.
9245 * optabs.c (expand_unop): Try implementing negation of
9246 floating point modes by flipping the sign bit.
9247 (expand_abs): Try implementing abs of floating point modes
9248 by clearing the sign bit.
9250 Sat Dec 7 22:29:47 CET 2002 Jan Hubicka <jh@suse.cz>
9252 * i386.c (ix86_expand_int_movcc): Use force_operand instead
9253 of constructing insn directly.
9255 2002-12-07 Kazu Hirata <kazu@cs.umass.edu>
9257 * config/h8300/h8300.md (*iorhi_shift_8): New.
9259 2002-12-06 Bernd Schmidt <bernds@redhat.com>
9261 * doc/invoke.texi: Document FRV port options.
9262 * doc/md.texi: Document FRV register classes.
9264 2002-12-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9266 * doc/install.texi (Configuration): Improve description of cases
9267 where `make distclean` may fail; clarify --with-gnu-as; fix grammar.
9269 2002-12-06 Per Bothner <pbothner@apple.com>
9271 * cpplib.h (NODE_MACRO_ARG): New flag.
9272 (struct cpp_hashnode): Give _cpp_hashnode_value tag to value union.
9273 Remove value.operator field. Move arg_index field to value union.
9274 (directive_index): Make signed, since also used for C++ operators.
9275 * cppmacro.c (_cpp_save_parameter): Use NODE_MACRO_ARG flag to
9276 check for duplicate parameter. Set NODE_MACRO_ARG flag.
9277 Save node->value, and set node->value.arg_index.
9278 (_cpp_create_definition): For each paramater, restore node->value.
9279 (lex_expansion_token): Use NODE_MACRO_ARG flag, and moved arg_index.
9280 * cpptrad.c (scan_out_logical_line): Likewise.
9281 (scan_out_logical_line): Check for directive > 0.
9282 * cpplib.c (cpp_handle_directive): Likewise.
9283 * cpplex.c (_cpp_lex_direct): Update as value.operator is replaced
9284 by negative of directive_index.
9285 * cppinit.c (mark_named_operators): Likewise.
9287 * hashtable.h (struct ht_identifier): Swap fields, for better packing.
9289 2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>
9291 * gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
9293 (push): Generate push_fpscr.
9294 (pop): Generate pop_fpscr.
9295 * gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
9296 (fpu_switch): Add alternative to push fpscr. Enable for TARGET_SH3E.
9298 Fri Dec 6 19:36:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9300 * sh.c (dump_table): DImode pool constants need only 32 bit alignment.
9301 DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.
9303 Fri Dec 6 19:17:49 2002 J"orn Rennecke <joern.rennecke@superh.com>
9305 * sh.md (movdi_i): Name. Remove inappropriate comment.
9307 Fri Dec 6 15:44:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
9308 Merged from basic improvements branch (excerpt):
9310 2002-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
9311 * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
9313 2002-12-06 Jakub Jelinek <jakub@redhat.com>
9315 * expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.
9317 Thu Dec 5 16:58:25 CET 2002 Jan Hubicka <jh@suse.cz>
9319 * i386.md (dimode peep2s): Re-add "&& 1".
9321 Thu Dec 5 14:10:15 CET 2002 Jan Hubicka <jh@suse.cz>
9323 * i386.c (ix86_expand_prologue): Add comment, do not use
9324 fast prologues for cold and normal functions.
9326 Thu Dec 5 00:52:37 CET 2002 Jan Hubicka <jh@suse.cz>
9328 * i386.c (x86_rep_movl_optimal): New variable.
9329 (ix86_expand_movstr, ix86_expand_clrstr): Use TARGET_REP_MOVL_OPTIMAL
9330 * i386.h (TARGET_REP_MOVL_OPTIMAL): New macro.
9332 * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
9333 absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
9334 neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
9335 generate unnecesary subregs.
9337 2002-12-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9339 * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
9340 * pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.
9342 2002-12-05 Dale Johannesen <dalej@apple.com>
9344 * tree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.
9346 2002-12-05 Danny Smith <dannysmith@users.sourceforge.net>
9348 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
9350 * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
9352 2002-12-05 Aldy Hernandez <aldyh@redhat.com>
9354 * config/rs6000/spe.h (__ev_mwlufi): Remove.
9355 (__ev_mwlufia): Remove.
9356 (__ev_mwlumfaaw): Remove.
9357 (__ev_mwlusfaaw): Remove.
9358 (__ev_mwlumfanw): Remove.
9359 (__ev_mwlusfanw): Remove.
9361 2002-12-05 Kazu Hirata <kazu@cs.umass.edu>
9363 * config/h8300/h8300.md (*andorsi3_shift_8): New.
9365 2002-12-05 Kazu Hirata <kazu@cs.umass.edu>
9367 * config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
9368 lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
9369 (get_shift_alg): Return optimal assembly instructions for the
9370 shifts mentioned above.
9372 Wed Dec 4 11:53:07 CET 2002 Jan Hubicka <jh@suse.cz>
9374 * i386.c (ix86_expand_int_movcc): Force operand into register for QImode
9377 2002-12-04 Kazu Hirata <kazu@cs.umass.edu>
9379 * config/h8300/h8300.c (h8300_init_once): Do not use loop to
9380 implement ashiftrt:HI by 13 bits on H8S.
9382 2002-12-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9384 * pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
9385 * pa.md (canonicalize_funcptr_for_compare): Output library call to
9386 canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
9387 * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
9388 CTOR_LIST_BEGIN): New defines.
9389 * pa/t-linux (LIB2FUNCS_EXTRA): New define.
9390 (fptr.c): Add make rules.
9392 2002-12-04 Geoffrey Keating <geoffk@apple.com>
9394 * combine.c (combine_simplify_rtx): Add new canonicalizations.
9395 * doc/md.texi (Insn Canonicalizations): Document new
9396 canonicalizations for multiply/add combinations.
9397 * config/rs6000/rs6000.md: Add and modify floating add/multiply
9398 patterns to ensure they're used whenever they can be.
9400 2002-12-04 Kazu Hirata <kazu@cs.umass.edu>
9402 * config/h8300/h8300.c: Update the comments related to shifts.
9404 2002-12-04 Chris Demetriou <cgd@broadcom.com>
9406 * config/mips/mips.md (get_fnaddr): Correct length attribute.
9408 2002-12-04 Kazu Hirata <kazu@cs.umass.edu>
9410 * config/h8300/h8300.md (*extzv_8_8): New.
9411 (*extzv_8_16): Likewise.
9413 2002-12-04 Jason Merrill <jason@redhat.com>
9415 PR c++/8461, c++/8625
9416 * integrate.c (copy_decl_for_inlining): Handle explicit invisible
9418 * tree-inline.c (initialize_inlined_parameters): Likewise.
9420 * tree.c (variably_modified_type_p): Just return an error_mark_node.
9422 2002-12-04 Chris Demetriou <cgd@broadcom.com>
9424 * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
9425 macro instruction in a branch delay slot, to avoid assembler
9428 2002-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
9431 * c-semantics (genrtl_scope_stmt): Do not output inlined
9432 nested functions that contain no code.
9434 Wed Dec 4 15:20:54 CET 2002 Jan Hubicka <jh@suse.cz>
9436 * cfgrtl.c (force_nonfallthru_and_redirect): Allow abnormal edge
9437 to be forced into nonfallthru.
9439 2002-12-03 Jason Thorpe <thorpej@wasabisystems.com>
9441 * config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
9443 2002-12-03 Aldy Hernandez <aldyh@redhat.com>
9445 * config/rs6000/spe.md (*movv1di_const0): New pattern.
9447 2002-12-03 Richard Henderson <rth@redhat.com>
9449 * libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
9451 2002-12-03 Hans-Peter Nilsson <hp@bitrange.com>
9453 * bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
9454 Initialize tmp.using_obstack to 0.
9456 2002-12-03 Andreas Schwab <schwab@suse.de>
9458 * config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
9459 (EH_RETURN_STACKADJ_RTX): Define.
9460 (EH_RETURN_HANDLER_RTX): Define.
9461 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9462 * config/m68k/m68k.c (m68k_save_reg): New function. Handle eh
9463 registers and don't save fixed registers.
9464 (m68k_output_function_prologue): Use it.
9465 (use_return_insn): Likewise.
9466 (m68k_output_function_epilogue): Likewise.
9468 2002-12-03 Kazu Hirata <kazu@cs.umass.edu>
9470 * config/h8300/h8300.c (single_one_operand): Fix a warning.
9471 (single_zero_operand): Likewise.
9473 2002-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
9475 * Makefile.in configure configure.in dummy-conditions.c fix-header.c
9476 gcov-iov.c gen-protos.c genattr.c genattrtab.c genautomata.c
9477 gencheck.c gencodes.c genconditions.c genconfig.c genconstants.c
9478 genemit.c genextract.c genflags.c gengenrtl.c gengtype-lex.l
9479 gengtype-yacc.y gengtype.c genopinit.c genoutput.c genpeep.c
9480 genpreds.c genrecog.c gensupport.c mkconfig.sh read-rtl.c
9481 scan-decls.c scan.c config/sh/sh.h doc/configfiles.texi
9482 doc/install-old.texi: Replace hconfig.h with bconfig.h.
9483 * Makefile.in: Replace HCONFIG_H with BCONFIG_H.
9485 2002-12-02 Andrew Pinski <pinskia@physics.uc.edu>
9487 * config/rs6000/rs6000.md (ffssi): Convert to expander.
9489 (cntlzw2, cntlzd2): New patterns.
9491 2002-12-02 H.J. Lu <hjl@gnu.org>
9493 * config.gcc (mips*-*-netbsd*): Remove mips/t-netbsd.
9494 (mips*-*-linux*): Remove mips/t-linux.
9496 Mon Dec 2 19:26:30 CET 2002 Jan Hubicka <jh@suse.cz>
9498 * i386.c (ix86_expand_int_movcc): Avoid overflow.
9500 2002-12-02 Kazu Hirata <kazu@cs.umass.edu>
9502 * config/h8300/h8300.c (dosize): Replace argument op with
9504 (h8300_output_function_prologue): Update the call to dosize.
9505 (h8300_output_function_epilogue): Likewise.
9507 2002-12-02 Bob Wilson <bob.wilson@acm.org>
9509 * config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
9511 2002-12-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
9513 * configure.in: Use "missing" script to generate warning if
9514 flex or bison programs not found, instead of invoking "false".
9515 * configure: Rebuilt.
9517 Mon Dec 2 20:28:48 CET 2002 Jan Hubicka <jh@suse.cz>
9519 * unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
9521 Mon Dec 2 19:42:52 CET 2002 Jan Hubicka <jh@suse.cz>
9523 * i386.c (ix86_expand_int_movcc): Avoid overflow.
9525 2002-12-02 Kazu Hirata <kazu@cs.umass.edu>
9527 * config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
9530 (h8300_output_function_prologue): Likewise.
9531 (h8300_output_function_epilogue): Likewise.
9533 Mon Dec 2 14:43:22 2002 J"orn Rennecke <joern.rennecke@superh.com>
9535 * expmed.c (store_bit_field): Use int_mode_for_mode to find
9536 corresponding mode of non-integer mode, unless it is VOIDmode.
9538 2002-12-02 Kazu Hirata <kazu@cs.umass.edu>
9540 * config/h8300/h8300.md (stm_h8300s_2): New.
9541 (stm_h8300s_3): Likewise.
9542 (stm_h8300s_4): Likewise.
9543 (five define_peephole2): Likewise.
9545 2002-12-02 Kazu Hirata <kazu@cs.umass.edu>
9547 * ra-build.c: Fix a comment typo.
9549 Sun Dec 1 16:50:47 CET 2002 Jan Hubicka <jh@suse.cz>
9551 * i386.c (ix86_expand_int_movcc): fix
9552 reversed BRANCH_COST test; be curefull about infinite recursion.
9554 2002-12-01 Kazu Hirata <kazu@cs.umass.edu>
9556 * config/h8300/h8300.c (h8300_output_function_prologue):
9557 Remove variable idx.
9558 (h8300_output_function_epilogue): Likewise.
9560 2002-12-01 Zack Weinberg <zack@codesourcery.com>
9562 * config/frv/xm-frv.h: Delete, unnecessary.
9564 2002-12-01 Kazu Hirata <kazu@cs.umass.edu>
9566 * config/h8300/h8300.md: Add comments for define_peephole2.
9568 2002-12-01 Mark Mitchell <mark@codesourcery.com>
9570 * builtin-types.def (BT_SIZE): Use size_type_node.
9571 * builtins.c (fold_builtin): Make the builtin strlen returns a
9572 size_t, not a sizetype.
9573 * c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
9575 (c_alignof_expr): Likewise.
9576 (c_common_nodes_and_builtins): Likewise.
9577 * c-common.h (CTI_C_SIZE_TYPE): Remove.
9578 (c_size_type_node): Likewise.
9579 * c-format.c (T_ST): Use size_type_node, not c_size_type_node.
9580 * tree.h (TI_SIZE_TYPE): New enumeral.
9581 (size_type_node): Likewise.
9583 2002-11-30 Zack Weinberg <zack@codesourcery.com>
9585 * configure.in: Don't put ${tm_file} into host_xm_file,
9586 build_xm_file, or xm_file. Do put tm-preds.h into tm_p_file.
9587 Take location of tm-preds.h into account when calculating
9589 * configure: Regenerate.
9590 * mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
9591 arguments. Do not provide rtx, rtvec, tree, or GTY here.
9592 Remove special case code for tm_p.h and *config.h; add new
9593 special case code for tm.h and tconfig.h. Clean up a bit.
9595 * Makefile.in (tm_file, tm_file_list): New variables set from
9597 (GCONFIG_H): Deleted.
9599 (CONFIG_H): Is now just config.h $(host_xm_file_list).
9600 (TM_P_H): Move up with the other mkconfig.sh-generated
9601 headers; don't mention tm-preds.h explicitly.
9602 (tm.h, cs-tm.h): New rule.
9603 (cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
9604 invocations of mkconfig.sh for changes to that program.
9605 (mostlyclean): Delete print-rtl1.c.
9606 (clean): Delete tm.h.
9607 Update dependencies for the files listed below.
9609 * mklibgcc.in: Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.
9611 * coretypes.h: New file.
9612 * system.h: #define malloc to xmalloc and realloc to xrealloc
9613 when FLEX_SCANNER or YYBISON is defined, independent of the
9614 value of GCC_VERSION.
9615 * alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
9616 c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
9617 c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
9618 c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
9619 c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
9620 cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
9621 cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
9622 cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9623 cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
9624 cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
9625 debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
9626 dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
9627 emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
9628 expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
9629 function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
9630 gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
9631 gencheck.c, gencodes.c, genconditions.c, genconfig.c,
9632 genconstants.c, genemit.c, genextract.c, genflags.c,
9633 gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
9634 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
9635 gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
9636 ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
9637 hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
9638 lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
9639 main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
9640 optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
9641 print-tree.c, profile.c, protoize.c, ra-build.c,
9642 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
9643 real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
9644 regrename.c, reload.c, reload1.c, reorg.c, resource.c,
9645 rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
9646 scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
9647 sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
9648 ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
9649 tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
9650 tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
9651 xcoffout.c, config/darwin-c.c, config/darwin.c,
9652 config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
9653 config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
9654 config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
9655 config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
9656 config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
9657 config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
9658 config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
9659 config/i960/i960-c.c, config/i960/i960.c,
9660 config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
9661 config/m32r/m32r.c, config/m68hc11/m68hc11.c,
9662 config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
9663 config/mips/irix6-libc-compat.c, config/mips/mips.c,
9664 config/mmix/mmix.c, config/mn10200/mn10200.c,
9665 config/mn10300/mn10300.c, config/ns32k/ns32k.c,
9666 config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
9667 config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
9668 config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
9669 config/sparc/sparc.c, config/stormy16/stormy16.c,
9670 config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
9671 config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
9672 Include coretypes.h and tm.h.
9674 * genattrtab.c, genconditions.c, genemit.c, genextract.c,
9675 gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
9676 genrecog.c: Include coretypes.h and tm.h from the file
9677 generated by this program.
9679 * unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
9680 unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
9681 coretypes.h and tm.h, and tsystem.h when not already included.
9682 No need to include stddef.h nor stdlib.h.
9684 * fixinc/fixlib.h: Include coretypes.h and tm.h. Do not
9685 include auto-host.h or ansidecl.h/
9686 * fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
9687 * fixinc/procopen.c: Include server.h after fixlib.h. Do not
9688 include auto-host.h, ansidecl.h, or system.h.
9689 * fixinc/server.c: Likewise. Also, do not include signal.h,
9690 and do not redefine volatile.
9692 Sat Nov 30 17:16:46 CET 2002 Jan Hubicka <jh@suse.cz>
9694 * i386.md (movdf_integer): Always enable in 64bit.
9695 (movdf_nointeger): Always disable in 64bit.
9697 2002-11-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
9699 * cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
9700 pseudo register number plus 1.
9702 Fri Nov 29 20:10:56 2002 J"orn Rennecke <joern.rennecke@superh.com>
9704 * expmed.c (store_bit_field): Use int_mode_for_mode to find
9705 corresponding mode of non-integer mode, unless it is VOIDmode.
9707 2002-11-29 Hans-Peter Nilsson <hp@bitrange.com>
9709 * cpplib.c (_cpp_test_assertion): Default *value to 0.
9711 * cppexp.c (num_part_mul): Initialize result.unsignedp, to 1.
9713 2002-11-29 Ulrich Weigand <uweigand@de.ibm.com>
9715 * config/s390/t-crtstuff: New target makefile fragment.
9716 * config.gcc [s390-*-linux, s390x-*-linux]: Use it.
9718 2002-11-29 Kazu Hirata <kazu@cs.umass.edu>
9720 * config/h8300/h8300.md (movsi_h8300hs): Change the order of
9721 alternatives to correct the length when the memory operand is
9722 either pre_dec or post_inc.
9724 2002-11-29 Kazu Hirata <kazu@cs.umass.edu>
9726 * config/h8300/h8300.md (an anonymous pattern): Give an
9727 internal name *tst_extzv_bitqi_1_n.
9728 Accept bit_operand instead of bit_memory_operand.
9729 Do not accept bit tests with the MSB.
9730 (*tst_extzv_memqi_1_n): New.
9732 Thu Nov 28 23:56:24 CET 2002 Jan Hubicka <jh@suse.cz>
9734 * i386.c (ix86_expand_int_movcc): Add copy_rtx to avoid invalid RTX
9735 sharing when operand is SUBREG.
9737 Thu Nov 28 08:57:26 CET 2002 Jan Hubicka <jh@suse.cz>
9739 * athlon.md (athlon-decodev): New reservation unit.
9740 (athlon-direct0): New reservation.
9741 (athlon-vector): New use athlon-decodev.
9742 (athlon-double, athlon-direct): Better model.
9743 (athlon_imul_k8): Use athlon-direct0.
9744 (athlon_movlpd_load): New insn reservation.
9746 2002-11-28 Kazu Hirata <kazu@cs.umass.edu>
9748 * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
9750 (h8300_tiny_constant_address_p): Likewise.
9752 2002-11-28 Michael Matz <matz@suse.de>
9754 * doc/passes.texi: Mention the other register allocator.
9756 2002-11-28 Kazu Hirata <kazu@cs.umass.edu>
9758 * config/h8300/h8300.md (6 new peephole2 patterns): New.
9760 2002-11-28 Jakub Jelinek <jakub@redhat.com>
9762 * config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
9763 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
9764 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.
9766 2002-11-28 Kazu Hirata <kazu@cs.umass.edu>
9768 * config/h8300/h8300.c (h8300_and_costs): New.
9769 * config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
9770 * config/h8300/h8300-protos.h: Add a prototype for
9773 Wed Nov 27 20:34:13 CET 2002 Jan Hubicka <jh@suse.cz>
9775 * i386.c (x86_sse_partial_regs_for_cvtsd2ss): New.
9776 * i386.h (x86_sse_partial_regs_for_cvtsd2ss): Declare.
9777 (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): New macro.
9778 * i386.md (truncdfsf patterns and splitters): Use
9779 TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS
9781 2002-11-27 Zack Weinberg <zack@codesourcery.com>
9783 * config/rs6000/rs6000.c (altivec_init_builtins): Make the
9784 pointer argument in the prototypes of the following builtins
9785 be (const TYPE *) rather than (TYPE *):
9786 + __builtin_altivec_ld_internal_4sf
9787 + __builtin_altivec_ld_internal_4si
9788 + __builtin_altivec_ld_internal_8hi
9789 + __builtin_altivec_ld_internal_16qi
9790 + __builtin_altivec_lvsl
9791 + __builtin_altivec_lvsr
9792 + __builtin_altivec_lvebx
9793 + __builtin_altivec_lvehx
9794 + __builtin_altivec_lvewx
9795 + __builtin_altivec_lvxl
9796 + __builtin_altivec_lvx
9797 + __builtin_altivec_dst
9798 + __builtin_altivec_dstt
9799 + __builtin_altivec_dstst
9800 + __builtin_altivec_dststt
9802 2002-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9804 * except.c (default_exception_section): Move variable into the
9805 scope where it is used.
9807 2002-11-27 Krister Walfridsson <cato@df.lth.se>
9809 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
9812 2002-11-27 Kazu Hirata <kazu@cs.umass.edu>
9814 * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
9816 2002-11-27 Kazu Hirata <kazu@cs.umass.edu>
9818 * config/h8300/h8300.c (h8300_shift_costs): New.
9819 * config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
9820 * config/h8300/h8300-protos.h: Add a prototype for
9823 2002-11-27 Jim Wilson <wilson@redhat.com>
9825 * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
9828 2002-11-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
9830 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
9831 * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
9832 DLL_IMPORT_EXPORT_PREFIX, not '@'.
9833 (i386_pe_dllimport_name_p): Likewise.
9834 (i386_pe_mark_dllexport): Likewise.
9835 (i386_pe_mark_dllimport): Likewise.
9836 (i386_pe_encode_section_info): Likewise.
9837 (i386_pe_strip_name_encoding): Likewise.
9839 2002-11-27 Richard Henderson <rth@redhat.com>
9841 * mkmap-symver.awk (BEGIN): Set sawsymbol false.
9842 (nm && NF == 3): Set sawsymbol true.
9843 (END): Exit if no symbols seen.
9844 (output): Fix map syntax error if no globals for the version.
9846 Wed Nov 27 14:45:46 CET 2002 Jan Hubicka <jh@suse.cz>
9848 * builtins.def (DEF_C99_BUILTIN): Fix.
9850 2002-11-26 Kaz Kojima <kkojima@gcc.gnu.org>
9852 * config/sh/lib1funcs.asm (FUNC, ENDFUNC0, ENDFUNC): New macros.
9853 (all): Add .size and .type information.
9855 Tue Nov 26 22:43:50 CET 2002 Jan Hubicka <jh@suse.cz>
9857 * i386.c (ix86_expand_int_movcc): Do not emit lea for short mode on
9858 partial_reg_stall target.
9860 Tue Nov 26 22:27:47 CET 2002 Jan Hubicka <jh@suse.cz>
9862 * i386.md (movhicc): Allow general operand.
9863 (movqicc): New expander.
9864 (movqicc_noc): New pattern.
9865 * i386.c (ix86_expand_carry_flag_compare): New function.
9866 (ix86_expand_int_movcc): Optimize harder using sbb; support more
9867 HImode conversion; support QImode conditional moves
9869 Tue Nov 26 16:30:59 CET 2002 Jan Hubicka <jh@suse.cz>
9871 * i386.c (FAST_PROLOGUE_INSN_COUNT): Set to 20.
9872 (ix86_expand_prologue): Multiply the count by amount of registers to be
9875 Tue Nov 26 15:55:27 CET 2002 Jan Hubicka <jh@suse.cz>
9877 * i386.c (override_options): Error about wrong -mcpu on x86-64
9880 2002-11-26 NIIBE Yutaka <gniibe@m17n.org>
9882 * config/sh/linux.h (FUNCTION_PROFILER): Implemented.
9884 Tue Nov 26 00:14:20 CET 2002 Jan Hubicka <jh@suse.cz>
9886 * i386-protos.h (x86_extended_QIreg_mentioned_p,
9887 x86_extended_reg_mentioned_p): Declare.
9888 * i386.c (extended_reg_mentioned_1): New static function.
9889 (x86_extended_QIreg_mentioned_p,
9890 x86_extended_reg_mentioned_p): New global functions.
9891 * i386.h (REX_SSE_REGNO_P): New macro.
9892 * i386.md (prefix_rex): New attribute.
9893 (length attribute): Add rex.
9895 2002-11-26 Andrew Haley <aph@redhat.com>
9897 * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
9898 from_Unwind_Find_Enclosing_Function.
9899 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
9900 * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
9901 * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
9902 _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
9903 * unwind.h (_Unwind_FindEnclosingFunction): Add.
9905 2002-11-26 Hartmut Penner <hpenner@de.ibm.com>
9907 * config/s390/s390.c (390_output_constant_pool): Set alignment
9908 before label in 64 bit mode, behind otherwise.
9910 2002-11-26 Richard Henderson <rth@redhat.com>
9912 * c-common.c (handle_visibility_attribute): Accept "default".
9913 * tree.h (enum symbol_visibility): New.
9914 (decl_visibility): Declare.
9915 * target.h (gcc_target.visibility): Take visibility arg as integer.
9916 * varasm.c (default_assemble_visibility): Likewise.
9917 (decl_visibility): New.
9918 (maybe_assemble_visibility): Use it.
9919 * output.h (default_assemble_visibility): Update prototype.
9920 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
9921 visibility arg as integer.
9922 * doc/extend.texi: Document default visibility.
9924 2002-11-26 Kazu Hirata <kazu@cs.umass.edu>
9926 * config/h8300/h8300.c: Adjust spacing.
9927 * config/h8300/h8300.h: Likewise.
9929 2002-11-26 Richard Henderson <rth@redhat.com>
9931 * hooks.c (hook_bool_void_false, hook_void_tree_int,
9932 hook_void_FILEptr_constcharptr): Rename so that the return
9934 (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
9935 hook_bool_tree_false): New.
9937 * langhooks-def.h: Update for renames.
9938 * target-def.h: Likewise.
9939 * tree.c (default_comp_type_attributes,
9940 default_set_default_type_attributes, default_insert_attributes,
9941 default_function_attribute_inlinable_p,
9942 default_ms_bitfield_layout_p): Remove.
9945 2002-11-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9947 * pa-protos.h (function_value): New prototype.
9948 * pa.c (function_value): Use a PARALLEL to return small aggregates on
9950 * pa.h (FUNCTION_VALUE): Use function_value.
9951 * pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
9952 call_value_internal_reg, sibcall_value_internal_symref,
9953 sibcall_value_internal_symref_64bit): Remove =rf constraint on return
9956 2002-11-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9958 * expr.c (gen_group_rtx, emit_group_move): New functions.
9959 * expr.h (gen_group_rtx, emit_group_move): Prototype.
9960 * function.c (expand_function_start): Use gen_group_rtx to create a
9961 PARALLEL rtx to hold the return value when the real return rtx is a
9963 (expand_function_end): Use emit_group_move to move the return value
9964 from a PARALLEL to the real return registers.
9965 * rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
9968 2002-11-26 Jason Thorpe <thorpej@wasabisystems.com>
9970 * config/t-libc-ok: Fix typo.
9972 2002-11-26 Jakub Jelinek <jakub@redhat.com>
9974 * configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
9976 * configure: Rebuilt.
9978 2002-11-26 Nathan Sidwell <nathan@codesourcery.com>
9980 * c-decl.c: (start_struct): Commonize flag setting.
9982 2002-11-26 Jason Thorpe <thorpej@wasabisystems.com>
9984 * config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
9985 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
9986 RS6000_CPU_CPP_ENDIAN_BUILTINS.
9987 * config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.
9989 2002-11-26 Hartmut Penner <hpenner@de.ibm.com>
9991 * config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
9993 * config/s390/s390.c (struct machine_function): Introduction of
9994 struct machine_function.
9995 (s390_output_symbolic_const): Use of cfun.
9996 (s390_optimize_prolog): Likewise.
9997 (s390_fixup_clobbered_return_reg): Likewise.
9998 (s390_frame_info): Likewise.
9999 (s390_emit_prologue, s390_emit_epilogue): Likewise.
10000 (s390_init_machine_status): New function.
10001 (override_options): call s390_init_machine_status.
10002 * config/s390/s390-protos.h (s390_output_constant_pool): Changed
10005 2002-11-26 Jakub Jelinek <jakub@redhat.com>
10007 * varasm.c (output_constant_pool): For pool constants in mergeable
10008 section ensure each constant is padded to multiple of entity size.
10010 2002-11-26 Jakub Jelinek <jakub@redhat.com>
10012 * varasm.c (default_exception_section): Move to...
10013 * except.c (default_exception_section): ... here. Make
10014 .gcc_except_table read-only if it is not expected to have any
10015 dynamic relocations and linker handles it.
10016 * dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
10017 if it is not expected to have any dynamic relocations and linker
10019 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
10020 when linking read-only and read-write sections together.
10021 * configure, config.in: Rebuilt.
10022 * crtstuff.c (EH_FRAME_SECTION_CONST): Define.
10023 (__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
10025 Mon Nov 25 18:32:37 CET 2002 Jan Hubicka <jh@suse.cz>
10027 * i386.md (pushsf_rex64): Fix typo.
10029 2002-11-25 Aldy Hernandez <aldyh@redhat.com>
10031 * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
10033 (__ev_create_ufix32_fs): Same.
10034 (__ev_get_sfix32_fs_internal): New.
10035 (__ev_get_sfix32_fs): Define to use function.
10036 (__ev_get_ufix32_fs_internal): New.
10037 (__ev_get_ufix32_fs): Define to use function.
10038 (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
10039 (__ev_get_lower_ufix32_fs): Same.
10040 (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
10041 (__ev_get_lower_sfix32_fs): Same.
10042 (__ev_set_sfix32_fs_internal): New.
10043 (__ev_set_ufix32_fs_internal): New.
10044 (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
10045 (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
10046 (__ev_set_upper_sfix32_fs): Call function.
10047 (__ev_set_lower_sfix32_fs): Same.
10048 (__ev_set_upper_ufix32_fs): Same.
10049 (__ev_set_lower_ufix32_fs): Same.
10051 2002-11-25 Douglas B Rupp <rupp@gnat.com>
10053 * gcc.c (do_spec_1): Reset delete_this_arg to zero.
10055 2002-11-25 Jason Thorpe <thorpej@wasabisystems.com>
10057 * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
10058 * config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
10059 * config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
10060 * config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
10061 * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
10062 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
10063 * config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
10064 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
10065 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
10066 * config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
10067 * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
10068 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
10069 * config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
10070 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
10071 * config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
10072 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
10073 * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
10074 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
10075 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
10076 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
10077 * config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
10078 * config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
10079 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
10080 * config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
10082 * config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
10083 * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
10085 2002-11-25 Dave Pitts <dpitts@cozx.com>
10087 * gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
10089 2002-11-25 Kazu Hirata <kazu@cs.umass.edu>
10091 * config/h8300/h8300.md (an anonymous pattern): New.
10093 2002-11-25 Richard Henderson <rth@redhat.com>
10095 * alias.c (find_base_value): Use new_reg_base_value if it's live.
10096 (copying_arguments): Make boolean.
10098 2002-11-25 Jason Thorpe <thorpej@wasabisystems.com>
10100 * gcc.c (static_spec_functions): Add if-exists-else spec
10102 (if_exists_else_spec_function): New function.
10103 * doc/invoke.texi: Document the if-exists-else spec function.
10105 * config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
10106 "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
10108 2002-11-25 Jason Thorpe <thorpej@wasabisystems.com>
10110 * config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
10111 "netbsd.h netbsd-elf.h" in tm_file. Set tmake_file to
10112 "${tmake_file} rs6000/t-netbsd".
10113 * config/rs6000/netbsd.h: Rewrite.
10114 * config/rs6000/t-netbsd: New file.
10116 2002-11-25 Kazu Hirata <kazu@cs.umass.edu>
10118 * config/h8300/h8300.md (an anonymous pattern): Relax the
10119 condition for the pattern.
10121 2002-11-25 Aldy Hernandez <aldyh@redhat.com>
10123 * config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
10124 evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
10125 evmwlssfanw, evmwlsmfanw.
10127 * config/rs6000/rs6000.c (bdesc_2arg): Same.
10129 * config/rs6000/spe.md: Same for patterns.
10131 2002-11-25 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
10134 * fold-const.c (extract_muldiv): Don't propagate division unless
10135 both arguments are multiples of C.
10137 2002-11-25 Andrew Haley <aph@redhat.com>
10139 * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
10140 * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
10141 * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
10142 * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
10144 Sun Nov 24 10:38:04 CET 2002 Jan Hubicka <jh@suse.cz>
10146 * i386.c (x86_use_ffreep): New global variable.
10147 * i386.h (x86_use_frfeep): Declare
10148 (TARGET_USE_FFREEP): New macro
10149 * i386.md (movs?f*): Use freep when asked for.
10150 (push?f): Remove dead code.
10152 2002-11-24 Kazu Hirata <kazu@cs.umass.edu>
10154 * config/h8300/h8300.c (h8300_init_once): Fix a typo in the
10155 target help message.
10157 2002-11-24 Jason Thorpe <thorpej@wasabisystems.com>
10159 * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
10160 extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
10162 (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
10163 (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
10164 to "" for a.out configurations.
10165 * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
10167 2002-11-24 Jason Thorpe <thorpej@wasabisystems.com>
10169 * config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
10170 NETBSD_CPP_SPEC directly.
10171 (SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec. Add
10172 netbsd_endfile_spec.
10173 (ENDFILE_SPEC): Use %(netbsd_endfile_spec).
10175 2002-11-24 Jason Thorpe <thorpej@wasabisystems.com>
10177 * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
10178 NETBSD_STARTFILE_SPEC.
10179 (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
10180 (ENDFILE_SPEC): Likewise.
10181 * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
10183 2002-11-24 Andreas Schwab <schwab@suse.de>
10185 * Makefile.in (install-driver): Remove versioned link before
10186 trying to create it.
10188 * config/m68k/m68k.c: Fix typo in last change defining
10189 TARGET_ASM_CAN_OUTPUT_MI_THUNK.
10191 2002-11-23 H.J. Lu <hjl@gnu.org>
10193 * aclocal.m4: Include ../config/accross.m4.
10194 (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
10195 (gcc_AC_C_COMPILE_ENDIAN): Removed.
10196 (gcc_AC_C_FLOAT_FORMAT): Check $ac_cv_c_bigendian
10197 instead of $ac_cv_c_compile_endian.
10199 * configure.in: Replace gcc_AC_COMPILE_CHECK_SIZEOF with
10200 AC_COMPILE_CHECK_SIZEOF.
10201 Replace gcc_AC_C_COMPILE_ENDIAN with AC_C_BIGENDIAN_CROSS.
10202 * configure: Rebuild.
10204 2002-11-23 Kazu Hirata <kazu@cs.umass.edu>
10206 * config/h8300/h8300.c (print_operand): Update the use of
10207 h8300_tiny_constant_address_p.
10208 (h8300_adjust_insn_length): Likewise.
10209 (h8300_tiny_constant_address_p): Check if the given rtx is a
10210 variable declared with __attribute__ ((tiny_data)).
10212 2002-11-22 Dale Johannesen <dalej@apple.com>
10214 * toplev.c (rest_of_compilation): Fix comments.
10216 2002-11-22 Geoffrey Keating <geoffk@apple.com>
10218 * aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
10219 allow mmap from /dev/zero. Don't make decisions for the host
10220 based on presence or absence of /dev/zero on the build machine.
10221 (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
10222 (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
10223 * configure: Regenerate.
10225 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
10227 * gcc.c (make_relative_prefix, split_directories)
10228 (free_split_directories): Removed.
10230 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
10232 * configure.in: Set insn=nop for DWARF-2 tests on ARM.
10233 * configure: Regenerated.
10235 2002-11-22 Kazu Hirata <kazu@cs.umass.edu>
10237 * config/h8300/h8300.c (compute_a_shift_length): Fix the insn
10238 length computation when xor.l is output.
10240 2002-11-21 Douglas B Rupp <rupp@gnat.com>
10242 * alpha.md (movstrdi, clrstrdi): New VMS patterns.
10243 (call_vms_1, call_value_vms_1): Cleanup syntax.
10245 Thu Nov 21 19:20:27 CET 2002 Jan Hubicka <jh@suse.cz>
10247 * athlon.md (define_atuomaton): Add athlon_load.
10248 (athlon-double): New reservation.
10249 (athlon-ieu0): New CPU unit.
10250 (athlon-load?): Use athlon_load automaton.
10251 (*_k8 reservations): New.
10252 (other insn revervations): Activate for K8.
10254 Thu Nov 21 15:07:42 CET 2002 Jan Hubicka <jh@suse.cz>
10256 * cfgrtl.c (verify_flow_info): Accept EDGE_CAN_FALLTHRU flag.
10258 2002-11-21 Jim Wilson <wilson@redhat.com>
10260 * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
10263 2002-11-21 Bob Wilson <bob.wilson@acm.org>
10265 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
10266 * config/xtensa/xtensa.c (struct machine_function): Add
10267 incoming_a7_copied flag.
10268 (xtensa_copy_incoming_a7): Define.
10269 (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
10270 * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.
10272 Thu Nov 21 23:52:04 CET 2002 Jan Hubicka <jH@suse.cz>
10274 * i386-protos.h (x86_64_sign_extended_value): Fix prototype.
10275 * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
10276 x86_64_nonmemory_operand, x86_64_movabs_operand,
10277 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
10278 ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
10279 (local_symbolic_operand): Do not care the 64bit limits.
10280 (x86_64_sign_extended_value): Remove allow_rip support.
10281 (legitimate_pic_address_disp_p): Handle all cases allowed
10282 with RIP addressing.
10283 (legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
10284 (legitimize_pic_address): Reorganize.
10285 * i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.
10287 2002-11-21 Jason Thorpe <thorpej@wasabisystems.com>
10289 * config.gcc (arm*-*-netbsdelf*): Enable configuration.
10290 * config/arm/netbsd-elf.h: New file.
10292 2002-11-21 Jason Thorpe <thorpej@wasabisystems.com>
10294 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
10295 subtarget_asm_float_spec.
10296 (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
10298 (ASM_SPEC): ...here. Use subtarget_asm_float_spec.
10300 2002-11-21 Nick Clifton <nickc@redhat.com>
10302 * config/fr30/fr30.md (movsf_constant_store): Move code to
10303 detect 0.0 into fr30.c.
10304 * config/fr30/fr30-protos.h (fr30_const_double_is_zero):
10306 * config/fr30/fr30.c (fr30_const_double_is_zero): New
10307 function. Return true if the rtx is 0.0.
10309 2002-11-21 Jason Thorpe <thorpej@wasabisystems.com>
10311 * config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
10312 if -mlittle-endian is specified.
10314 2002-11-21 Richard Earnshaw <rearnsha@arm.com>
10316 PR optimization/2903
10317 * arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
10318 (anddi_notsesidi_di): Likewise.
10320 2002-11-21 Kazu Hirata <kazu@cs.umass.edu>
10322 * config/h8300/h8300.c (print_operand): Use
10323 h8300_eightbit_constant_address_p and
10324 h8300_tiny_constant_address_p.
10325 (h8300_adjust_insn_length): Likewise.
10326 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
10327 (TINY_CONSTANT_ADDRESS_P): Likewise.
10328 (OK_FOR_U): Use eightbit_constant_address_p.
10330 2002-11-21 Ulrich Weigand <uweigand@de.ibm.com>
10332 * config/s390/libgcc-libc.ver: Add multilib support.
10333 * config/s390/linux.h (MULTILIB_DEFAULT): Define.
10334 * config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10335 MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
10336 EXTRA_MULTILIB_PARTS): Define.
10338 2002-11-21 Richard Earnshaw <rearnsha@arm.com>
10340 * arm.c (arm_get_frame_size): A leaf function does not need its
10341 stack padding to an aligned boundary if it has no frame.
10342 (thumb_get_frame_size): Likewise.
10344 Wed Nov 20 22:25:53 CET 2002 Jan Hubicka <jh@suse.cz>
10346 * x86-64.h (MCOUNT_NAME): Fix typo in my previous patch.
10347 (override_options): Likewise.
10349 Wed Nov 20 19:07:17 CET 2002 Jan Hubicka <jh@suse.cz>
10351 * config.gcc: Add k8 target alias support
10352 * i386.c (_cost): Declare costs for various variants of divides and
10355 (m_K8, m_ATHLON_K8): New macros.
10356 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
10357 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_fiop,
10358 x86_promote_QImode, x86_sub_esp_?, x86_add_esp_?,
10359 x86_integer_DFmode_moves, x86_partial_reg_dependency,
10360 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
10361 x86_prologue_using_move, x86_epilogue_using_move,
10362 x86_arch_always_fancy_math_387, x86_sse_partial_regs,
10363 x86_sse_typeless_stores): Set for K8
10364 (override_options): Add k8 support; fix athlon alignment;
10365 complain about non-x86-64 capable CPU being used in x86-64 compilation.
10366 (ix86_issue_rate): Set for K8.
10367 (ix86_adjust_cost, ia32_use_dfa_pipeline_interface,
10368 x86_machine_dependent_reorg): Handle K8 like
10370 (x86_costs): Change mult_init and divide into array.
10371 (TARGET_K8, TARGET_ATHLON): New macros.
10372 (MODE_INDEX): New macro.
10373 (RTX_COST): Use new costs.
10374 (TARGET_CPU_CPP_BUILTINS): Define __k8__ and __tune_k8__.
10375 (TARGET_CPU_DEFAULT_NAMES): Add k8
10376 (TARGET_CPU_DEFAULT_k8): New constant
10377 (enum processor_type): Add PROCESSOR_K8.
10378 * i386.md (cpu attribute): Add k8.
10380 * invoke.texi: Document -march=k8.
10382 * i386.md (type attribute): Add leave
10383 (mode attribute): Remove unknownfp.
10384 (length_immediate, modrm, memory attributes): Handle leave correctly.
10385 (fp comparison patterns): Determine FP mode.
10386 (leave, leave_rex64): Remove special cases.
10387 * ppro.md (ppro_uops, ppro_p2): Add leave
10388 * pentiun.md (pent_pop): Handle leave too.
10389 * k6.md (k6_load): Handle leave.
10390 * athlon.md (athlon_leave, athlon_pop): Fix.
10391 (athlon_decode): Handle leave.
10393 2002-11-20 Steve Ellcey <sje@cup.hp.com>
10395 * emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
10396 to component type using GET_MODE_INNER.
10397 * expr.c (emit_move_insn_1): Ditto.
10398 * optabs.c (expand_binop): Ditto.
10399 (expand_unop): Ditto.
10400 (expand_complex_abs): Ditto.
10402 2002-11-20 Douglas B Rupp <rupp@gnat.com>
10404 * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
10406 2002-11-20 DJ Delorie <dj@redhat.com>
10408 * config/stormy16/stormy16.c (s16builtins,
10409 xstormy16_init_builtins, xstormy16_expand_builtin): New.
10410 * config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.
10412 2002-11-20 Hans-Peter Nilsson <hp@bitrange.com>
10414 * Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
10415 (DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
10416 (executing gencheck, genconfigs, genconditions, genflags,
10417 gencodes, genconstants, genemit, genrecog, genopinit, genextract,
10418 genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
10419 gengtype, genprotos): Prepend $(RUN_GEN).
10420 * configure.in: Move host compiler tests before --enable-checking
10422 (--enable-checking=valgrind): New.
10423 * config.in, configure: Regenerate.
10424 * cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
10426 (read_include_file): When doing the mmap+1 trick,
10427 valgrind-annotate the byte after the mmap:ed area as readable.
10428 (purge_cache): Remove above annotation.
10429 * gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
10430 VALGRIND_PATH -q to each command.
10432 * ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
10434 (ggc_realloc): Update valgrind annotations.
10435 * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
10437 (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
10438 valgrind-annotate memory.
10440 2002-11-20 Ulrich Weigand <uweigand@de.ibm.com>
10442 * recog.c (constrain_operands): Prefer exact match over reloadable
10443 EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
10445 * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
10448 2002-11-20 Eric Botcazou <ebotcazou@libertysurf.fr>
10451 * c-decl.c (duplicate_decls): Outline the second definition
10452 of an extern inline function in all cases.
10454 2002-11-20 Richard Sandiford <rsandifo@redhat.com>
10456 * stor-layout.c (place_field): Update rli->offset as well as
10459 2002-11-20 Richard Sandiford <rsandifo@redhat.com>
10461 * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
10463 2002-11-20 Richard Sandiford <rsandifo@redhat.com>
10465 * config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
10466 into a libcall block.
10467 (divsi3): Likewise divsi3_i4_media.
10469 2002-11-20 Richard Sandiford <rsandifo@redhat.com>
10471 * global.c (find_reg): Check HARD_REGNO_NREGS before kicking
10472 out another register.
10474 2002-11-20 Jakub Jelinek <jakub@redhat.com>
10476 * combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
10477 (not just mask) are set in C.
10479 2002-11-19 Steven Bosscher <steven.bosscher@usafa.af.mil>
10481 * config/mips/vr.h (DRIVER_SELF_SPECS): Change %{<mgp32} to %<mgp32.
10483 2002-11-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10485 * profile.c (index_counts_file): Fix obvious mistake.
10487 2002-11-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10489 * Makefile.in (profile.o): Add hashtab.h dependency.
10490 * gcov-io.h (GCOV_SUMMARY_LENGTH): New.
10491 * profile.c: Include hashtab.h.
10492 (htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del,
10493 cleanup_counts_index, index_counts_file, struct section_reference,
10494 struct da_index_entry, counts_file_name, counts_file_index): New.
10495 (get_exec_counts, init_branch_prob): Modified.
10497 2002-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
10499 * config.gcc (sh*-*-linux*): Add t-slibgcc-elf-ver and t-linux
10500 to tmake_file. Remove setting gas and gnu_ld here.
10501 * config/sh/libgcc-glibc.ver: New file.
10502 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10503 (SHLIB_MAPFILES): New.
10504 * config/sh/linux.h (MD_EXEC_PREFIX): Undefine.
10505 (MD_STARTFILE_PREFIX): Likewise.
10506 (HANDLE_PRAGMA_PACK_PACK_PUSH_POP): Define.
10507 (DWARF2_UNWIND_INFO): Redefine.
10508 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10509 (LINK_EH_SPEC): Redefine.
10510 (MD_FALLBACK_FRAME_STATE_FOR): Define except for SH-media.
10511 (SH_FALLBACK_FRAME_FLOAT_STATE): Define.
10512 (SH_DWARF_FRAME_GP0, SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_XD0,
10513 SH_DWARF_FRAME_BT0, SH_DWARF_FRAME_PR, SH_DWARF_FRAME_PR_MEDIA,
10514 SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_MACL,
10515 SH_DWARF_FRAME_PC, SH_DWARF_FRAME_SR, SH_DWARF_FRAME_FPUL,
10516 SH_DWARF_FRAME_FPSCR): Likewise.
10517 * config/sh/sh-protos.h (sh_set_return_address): Declare.
10518 * config/sh/sh.c (calc_live_regs): Count EH_RETURN_DATA_REGNO
10519 registers if the current function calls EH return.
10520 (sh_expand_epilogue): Handle EH stack adjustments.
10521 (sh_set_return_address): New function.
10522 * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
10523 Don't abort even if the number is mapped to -1.
10524 (EH_RETURN_DATA_REGNO): Define.
10525 (EH_RETURN_STACKADJ_RTX): Define.
10526 * config/sh/sh.md (UNSPEC_EH_RETURN): New.
10527 (eh_return): New pattern.
10528 (eh_set_ra_di, eh_set_ra_si): Likewise.
10529 Add splitter to perform EH return after reload.
10531 Tue Nov 19 12:52:07 2002 J"orn Rennecke <joern.rennecke@superh.com>
10533 * stor-layout.c (excess_unit_span): New function.
10534 (place_field): Use it.
10536 2002-11-19 Andreas Schwab <schwab@suse.de>
10538 * unwind.h (_Unwind_GetTextRelBase): Revert last change, this is
10541 2002-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
10543 * configure.in, Makefile.in: Correct BUILD/HOST confusion.
10544 * configure: Regenerate.
10546 Tue Nov 19 00:11:44 CET 2002 Jan Hubicka <jh@suse.cz>
10548 * convert.c (strip_float_extensions): New function.
10549 (convert_to_real): Optimize some cases.
10551 2002-11-19 Andreas Jaeger <aj@suse.de>
10553 * loop.c (record_giv): Initialize not_replaceable.
10554 (check_final_value): Likewise.
10556 2002-11-19 Kazu Hirata <kazu@cs.umass.edu>
10558 * config/h8300/h8300.c (h8300_init_once): Replace 1 with
10561 2002-11-19 Vijay L. Khuspe <vijayk1@kpit.com>
10563 * config/h8300/h8300.c (h8300_init_once): Allow -mn switch
10564 only if -mh or -ms present.
10565 (h8300_eightbit_constant_address_p): Support the normal mode.
10566 (h8300_tiny_constant_address_p): Likewise.
10567 * config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
10568 (POINTER_SIZE): Add 16 bit pointer for the normal mode.
10569 (Pmode): Evaluate to HImode for the normal mode.
10570 (SIZE_TYPE): Evaluate to unsigned int for normal mode.
10571 (PTRDIFF_TYPE): Evaluate to int for the normal mode.
10572 (ASM_WORD_OP): Evaluate to word for the normal mode.
10573 * config/h8300/h8300.md (tablejump_normal_mode): New.
10574 (indirect_jump_normal_mode): New.
10575 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
10577 (MULTILIB_DIRNAMES): Create target dependent directory
10579 (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
10580 * doc/invoke.texi (gccoptlist): Describe the new switch -mn.
10582 Tue Nov 19 23:50:56 CET 2002 Jan Hubicka <jh@suse.cz>
10584 * i386.md (length_immediate): Do not refer to insn address.
10585 (jcc*, jmp patterns): Compute length explicitly.
10587 2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
10590 * optabs.c (expand_binop): Convert CONST_INTs in shift
10593 2002-11-19 Roger Sayle <roger@eyesopen.com>
10595 * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
10597 2002-11-19 Kazu Hirata <kazu@cs.umass.edu>
10599 * config/h8300/h8300.md (an anonymous pattern): Relax the
10600 condition to accept the same operands and/or subregs.
10602 2002-11-19 Daniel Jacobowitz <drow@mvista.com>
10604 * config/sh/sh.c (gen_shl_and): Revert previous patch.
10605 * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
10608 2002-11-19 Kazu Hirata <kazu@cs.umass.edu>
10610 * config/h8300/h8300.c (print_operand): Update the use of
10611 EIGHTBIT_CONSTANT_ADDRESS_P.
10612 (h8300_adjust_insn_length): Likewise.
10613 (h8300_eightbit_constant_address_p): Check if the given rtx is
10614 a variable with __attribute__((eightbit_data)).
10615 * config/h8300/h8300.h (OK_FOR_U): Update the use of
10616 EIGHTBIT_CONSTANT_ADDRESS_P.
10618 2002-11-19 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10620 * doc/contrib.texi (Contributors): Add self as second contact in
10621 addition to Jeff Law.
10623 2002-11-19 Andreas Jaeger <aj@suse.de>
10625 * tree-inline.c: Move prototpyes of find_alloca_call_1 and
10626 find_alloca_call to right place.
10628 2002-11-19 Kazu Hirata <kazu@cs.umass.edu>
10630 * cppfiles.c: Fix formatting.
10632 2002-11-19 Jason Thorpe <thorpej@wasabisystems.com>
10634 * gcc.c (The Specs Language): Document spec functions.
10635 (static_spec_functions, lookup_spec_function)
10636 (eval_spec_function, handle_spec_function)
10637 (if_exists_spec_function, alloc_args): New.
10638 (execute): Abort if processing_spec_function is true.
10639 (do_spec_1): Hand off spec to handle_spec_function if %:
10640 is encountered. If processing_spec_function is true,
10641 end any pending argument when the end of the string is reached.
10642 (main): Use alloc_args to allocate the initial argument vector.
10643 * gcc.h (struct spec_function): New.
10644 (lang_specific_spec_functions): New extern.
10646 * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
10647 (ENDFILE_SPEC): Add if-exists(crtn%O%s).
10648 * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
10650 * doc/invoke.texi: Document spec functions.
10652 * cppspec.c (lang_specific_spec_functions): New.
10653 * gccspec.c: Likewise.
10655 2002-11-18 Steve Ellcey <sje@cup.hp.com>
10657 * config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
10658 (FIXUNS_TRUNCTFDI2_LIBCALL): New.
10659 (fixunstfsi_libfunc): Change.
10660 (fixunstfdi_libfunc): Change.
10661 (sdiv_optab): Don't zero out SImode handler.
10662 (udiv_optab): Don't zero out SImode handler.
10663 (smod_optab): Don't zero out SImode handler.
10664 (umod_optab): Don't zero out SImode handler.
10666 2002-11-18 Neil Booth <neil@daikokuya.co.uk>
10668 PR preprocessor/8524
10669 * cpplib.c (run_directive): Remove previous kludge to _Pragma.
10670 Add a new one in its place, which hopefully works.
10671 (skip_rest_of_line): Change test for bottom-of-context-stack.
10673 Mon Nov 18 21:29:03 CET 2002 Jan Hubicka <jh@suse.cz>
10675 * i386.md (addqi_1_slp): Fix output template.
10676 (subqi_1_slp): Fix type.
10678 Sun Nov 17 00:01:28 CET 2002 Jan Hubicka <jh@suse.cz>
10680 * calls.c (alloca_call_p): New global function.
10681 * tree.h (alloca_call_p): New.
10682 * tree-inline.c (inlinable_function_p): Do not inline when
10683 function calls alloca.
10684 (find_alloca_call, find_alloca_call_1): New functions.
10686 2002-11-18 Kazu Hirata <kazu@cs.umass.edu>
10688 * config/h8300/h8300.md (*andorqi3): Use bor between bld and
10689 bst. Update the insn length.
10690 (*andorhi3): Likewise.
10691 (*andorsi3): Likewise.
10693 2002-11-18 Richard Sandiford <rsandifo@redhat.com>
10695 * config/sh/sh-protos.h (sh_mark_label): Declare.
10696 * config/sh/sh.c (sh_mark_label): New function, taken from
10697 movdi_const, but fixing the case when the address has an addend.
10698 * config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.
10700 2002-11-18 Richard Sandiford <rsandifo@redhat.com>
10702 * config/sh/sh.c (pool_node): New field: part_of_sequence_p.
10703 (add_constant): Set it.
10704 (dump_table): Don't reorder a constant if part_of_sequence_p.
10705 (machine_dependent_reorg): Assume that float constants will
10706 stay in their original order if used as a sequence.
10708 2002-11-18 Richard Sandiford <rsandifo@redhat.com>
10710 * config/sh/sh.c (calc_live_regs): Update check for PIC liveness
10713 2002-11-18 Richard Sandiford <rsandifo@redhat.com>
10715 * config/sh/sh.md (initialize_trampoline): Do not force the
10716 trampoline address into R0_REGS here.
10718 Sun Nov 17 14:01:09 CET 2002 Jan Hubicka <jh@suse.cz>
10720 * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
10721 absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
10722 (neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
10723 generate unnecesary subregs.
10725 2002-11-17 Kazu Hirata <kazu@cs.umass.edu>
10727 * df.c: Fix formatting.
10729 2002-11-17 Kazu Hirata <kazu@cs.umass.edu>
10731 * config/h8300/h8300.md (two anonymous patterns): Fix insn
10734 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
10736 * sh.c (gen_shl_and): Don't create a zero_extend if the operand
10737 is not an arith_reg_operand.
10739 2002-11-17 Graham Stott <graham.stott@btinternet.com>
10741 * real.c (real_to_decimal): Fix buffer overrun when buffer size
10742 is smaller than representation.
10744 2002-11-17 Kazu Hirata <kazu@cs.umass.edu>
10746 * builtins.c: Fix formatting.
10748 Sat Nov 16 16:49:58 CET 2002 Jan Hubicka <jh@suse.cz>
10750 * i386.md (truncdfsf2_1_sse, truncdfsf2_1_sse_nooverlap, truncdfsf2_2,
10752 Work around regclass stupidity.
10753 (truncdfsf_2_1_sse splitter): Accept !TARGET_PARTIAL_SSE_REGS
10755 Sat Nov 16 02:17:48 CET 2002 Jan Hubicka <jh@suse.cz>
10757 * i386.md (fop_df_6): New pattern.
10758 (fop_xf_4, fop_xf_5): Handle both SF and DFmode extensions.
10759 (fop_xf_6): Rewrite
10760 (fop_xf_7): Delete.
10761 (fop_tf_4, fop_tf_5): Handle both SF and DFmode extensions.
10762 (fop_tf_6): Rewrite
10763 (fop_tf_7): Delete.
10765 2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
10767 * config/h8300/h8300.md (two anonymous patterns): Fix typos.
10769 2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
10771 * config/h8300/h8300.md: Fix formatting.
10773 2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
10775 * config/h8300/h8300.md: Replace spaces with tabs.
10776 * config/h8300/t-h8300: Remove a trailing empty line.
10778 2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
10780 * tlink.c: Fix formatting.
10782 2002-11-16 David Edelsohn <edelsohn@gnu.org>
10785 * config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
10786 * config/rs6000/rs6000.md (movti_string): Remove output modifier
10787 when scratch register never needed.
10788 (ldmsi[3-8]): New patterns.
10790 2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
10792 * hard-reg-set.h: Follow spelling conventions.
10793 * real.c: Likewise.
10794 * target.h: Likewise.
10796 2002-11-16 Jakub Jelinek <jakub@redhat.com>
10798 * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
10800 2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
10802 * optabs.c: Fix formatting.
10804 Sat Nov 16 02:06:02 CET 2002 Jan Hubicka <jh@suse.cz>
10806 * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
10807 * i386.md (attribute type): Add type shift1 and rotate1.
10808 (*_slp): Rewrite to have just two operands to avoid reload problems.
10810 2002-11-15 Kazu Hirata <kazu@cs.umass.edu>
10812 * config/h8300/h8300.md (4 anonymous patterns): New.
10814 2002-11-15 Geoffrey Keating <geoffk@apple.com>
10816 * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
10817 * doc/invoke.texi: Correct description of what needs to be done to
10818 force collection at every ggc_collect call.
10820 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
10822 * config/s390/s390.c (optimization_options): Set
10823 flag_asynchronous_unwind_tables to 1 by default.
10825 2002-11-15 Ulrich Weigand <uweigand@de.ibm.com>
10827 * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10829 Fri Nov 15 14:54:19 CET 2002 Jan Hubicka <jh@suse.cz>
10831 * i386-protos.h (x86_function_profiler): New function
10832 * i386.h (MCOUNT_NAME): New.
10833 (PROFILE_COUNT_REGISTER): New.
10834 (FUNCTION_PROFILER): Move offline to ...
10835 * i386.c (x86_function_profiler) ... here; fix 64bit support
10836 * beos-elf.h (FUNCTION_PROFILER): Kill.
10837 (MCOUNT_NAME): New.
10838 * freebsd-aout.h (FUNCTION_PROFILER): Kill.
10839 (MCOUNT_NAME): New.
10840 (PROFILE_COUNT_REGISTER): New.
10841 * linux.h (FUNCTION_PROFILER): Kill.
10842 (MCOUNT_NAME): New.
10843 * x86-64.h (FUNCTION_PROFILER): Kill.
10844 (MCOUNT_NAME): New.
10845 * freebsd.h (FUNCTION_PROFILER): Kill.
10846 (MCOUNT_NAME): New.
10848 2002-11-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10850 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG,
10851 FUNCTION_ARG_PASS_BY_REFERENCE): Define.
10852 * config/arm/arm.c (arm_va_arg,
10853 arm_function_arg_pass_by_reference): New.
10854 * config/arm/arm-protos.h: Add prototypes.
10856 2002-11-14 Kazu Hirata <kazu@cs.umass.edu>
10858 * gthr-single.h: Fix formatting.
10860 2002-11-14 Zack Weinberg <zack@codesourcery.com>
10862 * tree.c (tree_vec_elt_check_failed): New function.
10863 * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
10864 (TREE_VEC_ELT): Use it.
10866 * tree-inline.c (optimize_inline_calls): Don't copy a
10867 zero-length vector.
10869 2002-11-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
10871 * diagnostic.c (sorry): Don't repeat "sorry, unimplemented" text.
10873 2002-11-14 Jakub Jelinek <jakub@redhat.com>
10875 * varasm.c (output_addressed_constants) [MINUS_EXPR]: Clear reloc if
10876 both operands contain local relocations.
10877 (categorize_decl_for_section): Don't use mergeable sections if
10878 initializer has any relocations.
10880 2002-11-14 Kazu Hirata <kazu@cs.umass.edu>
10882 * gthr-vxworks.h: Fix formatting.
10884 2002-11-13 Janis Johnson <janis187@us.ibm.com>
10886 * doc/install.texi (Testing): Document extra Java testing.
10887 * doc/sourcebuild.texi (Test Suites): Document libgcj testing.
10889 2002-11-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
10891 * pa64-hpux.h (LINK_SPEC): Move "+Accept TypeMismatch" switch to the
10892 beginning of the spec.
10893 (LDD_SUFFIX, PARSE_LDD_OUTPUT): Delete.
10894 (LD_INIT_SWITCH, LD_FINI_SWITCH): Define but don't enable. Add comment
10895 regarding problems with global constructors when using GNU ld.
10897 2002-11-13 Kazu Hirata <kazu@cs.umass.edu>
10899 * gthr-solaris.h: Fix formatting.
10901 2002-11-13 Kazu Hirata <kazu@cs.umass.edu>
10903 * gthr-posix.h: Fix formatting.
10905 2002-11-12 Devang Patel <dpatel@apple.com>
10906 * gcc.c (display_help): Two new options -Xpreprocessor and -Xassembler.
10907 (process_command): Same.
10908 * doc/invoke.texi: Info about these two new options.
10910 2002-11-12 Kazu Hirata <kazu@cs.umass.edu>
10912 * config/h8300/h8300.md (*andorsi3): New.
10914 2002-11-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10916 * doc/install.texi (powerpc-*-linux-gnu*): Update binutils requirement.
10918 2002-11-12 Kazu Hirata <kazu@cs.umass.edu>
10920 * config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
10921 expressions appropriately.
10923 2002-11-12 Kazu Hirata <kazu@cs.umass.edu>
10925 * gthr-win32.h: Fix formatting.
10927 2002-11-12 Kazu Hirata <kazu@cs.umass.edu>
10929 * config/h8300/h8300.c (single_one_operand): Correctly compute
10930 mask when mode is SImode.
10931 (single_zero_operand): Likewise.
10932 * config/h8300/h8300.md (two new anonymous insns): New.
10934 2002-11-12 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10936 * doc/contrib.texi (Contributors): Use GCJ instead of gcj to refer
10937 to that entire project.
10939 2002-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10941 * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Restore old
10944 2002-11-11 Zack Weinberg <zack@codesourcery.com>
10946 * params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
10947 * doc/invoke.texi: Document them.
10949 * ggc-page.c: Include params.h. Remove definitions of
10950 GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED. Replace
10951 GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define.
10952 (init_gcc): Don't set G.allocated_last_gc here.
10953 (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and
10954 PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to
10955 perform collection.
10956 * ggc-simple.c: Similarly.
10957 * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to
10960 2002-11-11 Kazu Hirata <kazu@cs.umass.edu>
10962 * gthr-dce.h: Fix formatting.
10964 2002-11-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10967 * stmt.c (tail_recursion_args): Handle DECL_MODE differing from the
10968 mode of DECL_RTL case.
10970 2002-11-11 Janis Johnson <janis187@us.ibm.com>
10972 * doc/contrib.texi: Merge in the list from the libstdc++ web pages.
10974 Mon Nov 11 12:06:08 CET 2002 Jan Hubicka <jh@suse.cz>
10976 * i386.c (construct_container): Fix handling of SSE_CLASS.
10978 2002-11-10 Joel Sherrill <joel@gcc.gnu.org>
10980 * config/m68k/t-crtstuff (crti.o): Use this...
10981 ($(T)crti.o): ... instead.
10982 (crtn.o): Use this...
10983 ($(T)crtn.o): ... instead.
10985 2002-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
10988 * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
10989 if there is something new to be simplified.
10991 2002-11-10 H.J. Lu <hjl@gnu.org>
10993 * calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
10994 * expr.c (PUSH_ARGS_REVERSED): Likewise.
10996 * config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
10998 2002-11-10 Zack Weinberg <zack@codesourcery.com>
11000 * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
11001 * config/rs6000/linux.h, config/rs6000/linux64.h,
11002 config/rs6000/windiss.h: ... not here.
11004 2002-11-10 Jason Thorpe <thorpej@wasabisystems.com>
11006 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define
11007 __ABICALLS__ if TARGET_ABICALLS.
11009 Sun Nov 10 18:49:21 CET 2002 Jan Hubicka <jh@suse.cz>
11011 * i386.h (MIN_UNITS_PER_WORD): Define to 8 for x86-64 libgcc.
11013 2002-11-10 Joseph S. Myers <jsm@polyomino.org.uk>
11015 * c-decl.c (grokdeclarator): Make error for duplicate type
11016 qualifiers into a pedwarn, disabled for C99.
11018 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
11020 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
11021 as FUNCTION_ARG_PASS_BY_REFERENCE.
11023 2002-11-09 Zack Weinberg <zack@codesourcery.com>
11025 * doc/install.texi: Add *-*-vxworks* specific installation
11028 * config/vxlib.c: Rewrite using generation numbers to identify
11031 Sat Nov 9 00:10:54 CET 2002 Jan Hubicka <jh@suse.cz>
11033 * i386.c (x86_machine_dependent_reorg): Fix even more side cases.
11035 2002-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11037 * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16.
11039 * config.gcc (hppa*64*-*-linux*): Shorten lines in tm_file define.
11040 (hppa*64*-*-hpux11*): Likewise. Use elfos.h with gas.
11041 * pa.c (output_millicode_call): Use symbol difference rather than
11042 $PIC_pcrel$0 when using HP assembler.
11043 * pa64-hpux.h (TARGET_GAS): Define to 1 or 0 depending on whether or
11044 not elfos.h (i.e., gas) is being used.
11045 (ASM_FILE_START, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
11046 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON,
11047 ASM_OUTPUT_ALIGNED_LOCAL, GLOBAL_ASM_OP, ASM_DECLARE_FUNCTION_NAME,
11048 ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL,
11049 ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Define when
11051 (TARGET_ASM_GLOBALIZE_LABEL): Undefine when using elfos.h.
11052 (DWARF2_ASM_LINE_DEBUG_INFO): Delete.
11053 (ASM_FILE_START): Add standard .SPACE and .SUBSPA defines when not
11055 (TEXT_SECTION_ASM_OP, READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
11056 BSS_SECTION_ASM_OP): New HP style defines when not using elfos.h.
11057 (TARGET_ASM_NAMED_SECTION, MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL):
11058 Don't define when not using elfos.h.
11059 (ASM_DECLARE_RESULT): Don't define.
11060 * doc/install.texi (hppa*-hp-hpux*): Remove statement that HP assembler
11061 doesn't work on hppa64-hp-hpux11.
11062 (hppa*-hp-hpux11): Update.
11064 2002-11-09 Jason Thorpe <thorpej@wasabisystems.com>
11066 * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
11067 to the assembler if -mno-abicalls was specified.
11069 2002-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11071 * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
11072 ASM_OUTPUT_DEF): Delete.
11074 2002-11-09 Neil Booth <neil@daikokuya.co.uk>
11076 * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
11078 2002-11-08 Roger Sayle <roger@eyesopen.com>
11080 * real.c (real_sqrt): Update comment with bibliographic reference.
11082 Fri Nov 8 13:33:58 CET 2002 Jan Hubicka <jh@suse.cz>
11084 * i386.md (sse_loadss, sse2_loadsd): Fix expander.
11086 Fri Nov 8 13:25:41 CET 2002 Jan Hubicka <jh@suse.cz>
11088 * i386.c (x86_machine_dependent_reorg): Fix handling of empty functions.
11090 Fri Nov 8 13:01:42 CET 2002 Jan Hubicka <jh@suse.cz>
11092 * builtins.c (expand_builtin_mathfn): Handle floor/ceil/trunc/round/nearbyint
11093 (expand_builtin): Likewise.
11094 * builtins.def: Add
11095 __builtin_floor, __builtin_floorf, __builtin_floorl
11096 __builtin_ceil, __builtin_ceilf, __builtin_ceill
11097 __builtin_round, __builtin_roundf, __builtin_roundl
11098 __builtin_trunc, __builtin_truncf, __builtin_truncl
11099 __builtin_nearbyint, __builtin_nearbyintf, __builtin_nearbyintl.
11100 * genopinit.c (optabs): Initialize the new optabs.
11101 * optab.c (init_optabs): Likewise.
11102 * optabs.h (optab_index): Add OTI_floor, OTI_ceil, OTI_trunc,
11103 OTI_round, OTI_nearbyint.
11104 (floor_optab, ceil_optab, trunc_optab, round_optab, nearbyint_optab): New.
11105 * doc/md.texi: Document new named patterns.
11106 * doc/extend.texi (builtin functions) Document
11107 floor, floorf, floorl, ceil, ceilf,
11108 ceill, round, roundf, roundl, trunc,
11109 truncf, truncl, nearbyint, nearbyintf, nearbyintl.
11111 Fri Nov 8 11:36:11 CET 2002 Jan Hubicka <jh@suse.cz>
11113 * i386.md (sse_movdfcc, sse_movsfcc): Fix typo in previous patch.
11115 2002-11-08 Dale Johannesen <dalej@apple.com>
11117 * dbxout.c (dbxout_type): Fix stabs info for vector types.
11119 2002-11-08 Neil Booth <neil@daikokuya.co.uk>
11121 PR preprocessor/8497
11122 PR preprocessor/8501
11123 * cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
11124 start a directive. In assembler, #NUM is not a line directive.
11126 2002-11-08 Neil Booth <neil@daikokuya.co.uk>
11128 * cppmain.c (cpp_preprocess_file): Loop to pop any -included
11131 2002-11-08 Kazu Hirata <kazu@cs.umass.edu>
11133 * config/h8300/h8300.md (two anonymous test insns): New.
11135 Fri Nov 8 11:20:19 CET 2002 Jan Hubicka <jh@suse.cz>
11137 * jump.c (mark_jump_label): Handle subregs of label_refs.
11139 Thu Nov 7 21:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
11141 * i386.md (sse_movdfcc, sse_movsfcc): Avoid overactive matching.
11142 * i386.c (ix86_expand_fp_movcc): Match the reversed cases.
11144 2002-11-07 David Mosberger <davidm@hpl.hp.com>
11146 * config/ia64/crtend.asm: Include "auto-host.h".
11147 [HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
11148 * config/ia64/crtbegin.asm: Similarly.
11149 * config/ia64/t-ia64 (crtbegin.o): Include from current directory.
11150 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
11152 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
11153 * configure.in: Use it if --enable-initfini-array not specified.
11154 * doc/install.texi (Configuration): Document --enable-initfini-array.
11155 * configure, config.in: Rebuild.
11157 2002-11-07 Jason Thorpe <thorpej@wasabisystems.com>
11159 * config/arm/arm-protos.h (arm_get_frame_size)
11160 (thumb_get_frame_size): New prototypes.
11161 * config/arm/arm.c (arm_get_frame_size)
11162 (thumb_get_frame_size): New functions.
11163 (use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
11164 (arm_compute_initial_elimination_offset, arm_expand_prologue): Use
11165 arm_get_frame_size.
11166 (thumb_expand_prologue, thumb_expand_epilogue): Use
11167 thumb_get_frame_size.
11168 * config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
11169 (machine_function): Add frame_size member.
11170 (THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
11172 2002-11-07 Richard Earnshaw <rearnsha@arm.com>
11174 * arm.c (bit_count): Make argument unsigned long. Return unsigned.
11175 Adjust code to use portable unsigned bit manipulation.
11176 (insn_flags, tune_flags): Change type to unsigned.
11177 (struct processors): Make flags unsigned long.
11178 (arm_override_options): Change type of count and current_bit_count
11181 2002-11-07 Richard Earnshaw <rearnsha@arm.com>
11183 * arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
11185 Thu Nov 7 15:50:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
11187 * sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
11189 Thu Nov 7 11:18:01 CET 2002 Jan Hubicka <jh@suse.cz>
11191 * reg-stack.c (compensate_edge): Fix sanity check.
11193 2002-11-05 Geoffrey Keating <geoffk@apple.com>
11195 * config.gcc: Don't create crtbegin, crtend on Darwin; do create
11196 crt2.o. Rearrange t-darwin makefiles.
11197 * crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
11198 * unwind-dw2-fde-darwin.c: New.
11199 * unwind-dw2-fde-glibc.c: Correct comment.
11200 * unwind-dw2-fde.c (__register_frame_info_bases)
11201 [DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
11202 (classify_object_over_fdes): Use last_fde.
11203 (add_fdes): Likewise.
11204 (linear_search_fdes): Likewise.
11205 * unwind-dw2-fde.h (struct object)
11206 [DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
11208 * config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
11209 (ENDFILE_SPEC): No crtend.o.
11210 * config/t-darwin: New.
11211 * config/i386/t-darwin: Delete.
11212 * config/darwin-crt2.c: New.
11213 * config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
11214 or config/t-darwin.
11216 2002-11-06 Douglas B Rupp <rupp@gnat.com>
11218 * config/i386/i386-interix.h (TARGET_SUBTARGET_DEFAULT): Or
11219 MASK_MS_BITFIELD_LAYOUT
11220 (SUBTARGET_OVERRIDE_OPTIONS): Warn about and turn off
11221 MS bitfields for Objective-C.
11222 (PCC_BIT_FIELD_TYPE_TEST, GROUP_BITFIELDS_BY_ALIGN): Remove
11225 * config/i386/i386.c (ix86_ms_bitfield_layout): New function.
11226 (TARGET_MS_BITFIELD_LAYOUT_P): Define to above function.
11227 (TARGET_USE_MS_BITFIELD_LAYOUT): Define.
11229 * config/i386/i386.h (MASK_MS_BITFIELD_LAYOUT: New mask.
11230 TARGET_USE_MS_BITFIELD_LAYOUT): New macro.
11231 (TARGET_SWITCHES): Add above mask.
11233 * testsuite/gcc.dg/bf-ms-layout.c: New test case.
11234 * testsuite/gcc.dg/bf-no-ms-layout.c: New test case.
11235 * testsuite/gcc.dg/i386-bitfield1.c (dg-options): Add appropriate
11238 Wed Nov 6 18:54:47 2002 Alexandre Oliva <aoliva@redhat.com>
11240 * config/mips/mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output
11241 .gpword/.gpdword for ABI_N32 and ABI_64 too, if using the GNU
11243 * config/mips/mips.md (tablejump_internal3): Output .cpadd
11244 before jump on ABI_N32 too.
11245 (tablejump_internal4): Ditto on ABI_64. Increase maximum
11248 Wed Nov 6 17:16:48 CET 2002 Jan Hubicka <jh@.suse.cz>
11250 * i386.md (negsf splitter): Accept memory operand in second register.
11251 (abssf/absdf splitters): Simplify
11252 (sse_loadss, sse_loadsd): Turn into expander.
11254 2002-11-06 David Edelsohn <edelsohn@gnu.org>
11257 * config/rs6000/rs6000.md (movdi_internal64): Discourage
11260 2002-11-06 Janis Johnson <janis187@us.ibm.com>
11262 * doc/contrib.texi: Merge in the list from the Java web pages.
11264 2002-11-06 David O'Brien <obrien@FreeBSD.org>
11266 * config/sparc/freebsd: Fix typo.
11268 2002-11-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
11270 * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
11272 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
11274 * config/mips/mips.md (call_value_multiple_internal2): Use dla for
11275 non-SImode addresses.
11277 Tue Nov 5 14:34:36 CET 2002 Jan Hubicka <jh@suse.cz>
11279 * i386.md (float_truncate SSE splitter): Ensure that operand is not
11281 (float SSE splitters): Reorder conditional.
11283 2002-11-05 Bob Wilson <bob.wilson@acm.org>
11285 * config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
11287 2002-11-05 John David Anglin <dave2hiauly1.hia.nrc.ca>
11289 * pa64-hpux.h (LIB_SPEC): Fix p and pg options.
11290 (STARTFILE_SPEC): Remove p and pg options.
11292 2002-11-05 Andrew Haley <aph@redhat.com>
11294 * fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
11295 to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
11297 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
11299 * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
11300 * config/mips/mips.c (mips_cannot_change_mode_class): ...here.
11302 2002-11-04 Zack Weinberg <zack@codesourcery.com>
11304 * gthr-vxworks.h: Rewritten from scratch.
11305 * config/vxlib.c: New file.
11306 * config/t-vxworks: Add config/vxlib.c to LIB2FUNCS_EXTRA.
11307 * config/rs6000/t-vxworks: Add config/vxlib.c to
11308 LIB2FUNCS_EXTRA here too, because of clash with
11309 config/rs6000/t-ppccomm.
11311 2002-11-04 Dale Johannesen <dalej@apple.com>
11313 * doloop.c (doloop_modify_runtime): Fix loop count computation
11314 for unrolled loops.
11315 * loop.c (loop_invariant_p): Support calling from unroller.
11317 2002-11-04 Ulrich Weigand <uweigand@de.ibm.com>
11319 * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
11322 2002-11-04 Aldy Hernandez <aldyh@redhat.com>
11324 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
11326 * config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
11327 (CLASS_CANNOT_CHANGE_MODE): Remove.
11328 (CANNOT_CHANGE_MODE_CLASS): New.
11330 * config/alpha/alpha.h: Same.
11332 * config/ia64/ia64.h: Same.
11334 * config/mips/mips.h: Same.
11336 * config/s390/s390.h: Same.
11338 * config/sh/sh.h: Same.
11340 * config/pa/pa64-regs.h: Same.
11342 * config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
11344 * config/sh/sh.c (sh_cannot_change_mode_class): New.
11346 * config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
11349 * config/mips/mips.c (mips_cannot_change_mode_class): New.
11351 * doc/tm.texi (Register Classes): Remove
11352 CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
11353 Document CANNOT_CHANGE_MODE_CLASS.
11355 * reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
11356 (push_reload): Same.
11358 * simplify-rtx.c (simplify_subreg): Same.
11360 * reload1.c (choose_reload_regs): Same.
11362 * recog.c (register_operand): Same.
11364 * regrename.c (mode_change_ok): Change to use new
11365 CANNOT_CHANGE_MODE_CLASS infrastructure.
11367 * regclass.c (cannot_change_mode_set_regs): New.
11368 Declare subregs_of_mode.
11369 (regclass): Use subregs_of_mode.
11370 Remove references to reg_changes_mode.
11371 (init_reg_sets_1): Remove class_can_change_mode and
11372 reg_changes_mode code.
11373 (invalid_mode_change_p): New.
11374 (dump_regclass): Use invalid_mode_change_p instead of
11375 class_can_change_mode.
11377 (record_operand_costs): Do not set reg_changes_mode.
11379 * local-alloc.c (struct qty): Remove changes_mode field.
11380 (alloc_qty): Remove changes_mode initialization.
11381 (update_qty_class): Remove set of changes_mode.
11382 (find_free_reg): Use subregs_of_mode.
11384 * global.c (find_reg): Use subregs_of_mode info.
11386 * rtl.h (cannot_change_mode_set_regs): New prototype.
11387 (invalid_mode_change_p): Same.
11388 (REG_CANNOT_CHANGE_MODE_P): New macro.
11390 * flow.c (mark_used_regs): Calculate subregs_of_mode. Remove
11392 (life_analysis): Clear subregs_of_mode.
11394 * combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
11395 Remove use of CLASS_CANNOT_CHANGE_MODE.
11396 (simplify_set): Same.
11397 (gen_lowpart_for_combine): Calculate subregs_of_mode. Remove
11400 * regs.h: Add extern for subregs_of_mode;
11401 Include hard-reg-set and basic-block.
11402 (REG_CHANGES_MODE): Delete.
11404 2002-11-03 Roger Sayle <roger@eyesopen.com>
11406 * real.c (real_sqrt): New function to calculate square roots.
11407 * real.h (real_sqrt): Add function prototype.
11408 * builtins.c (fold_builtin): Fold sqrt of constant argument.
11409 * simplify-rtx.c (simplify_unary_operation): Simplify sqrt
11410 of constant argument.
11412 2002-11-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11414 * jump.c (never_reached_warning): Don't set contains_insn until the
11415 first line note is seen.
11417 2002-11-03 David Edelsohn <edelsohn@gnu.org>
11419 * config/rs6000/rs6000.md (movti_string): Use string instructions.
11421 2002-11-03 Roger Sayle <roger@eyesopen.com>
11424 * c-typeck.c (c_expand_asm_operands): Defend against
11425 error_mark_nodes in the output argument to avoid ICE.
11427 2002-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11430 * genrecog.c (preds): Handle ADDRESSOF.
11431 (validate_pattern): Mark it as an lvalue.
11433 2002-11-02 David Edelsohn <edelsohn@gnu.org>
11435 * config/rs6000/rs6000.c (rs6000_override_options): Use string
11436 instructions when optimizing for size.
11438 2002-11-02 Kazu Hirata <kazu@cs.umass.edu>
11440 * config/h8300/h8300.h: Fix comment typos.
11441 * config/h8300/h8300.md: Likewise.
11442 * config/h8300/lib1funcs.asm: Likewise.
11444 2002-11-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11446 Revert this change:
11448 *doc/install.texi (Installing GCC: Configuration): Clarify
11449 the only supported ways to configure gcc.
11451 2002-11-01 Kazu Hirata <kazu@cs.umass.edu>
11453 * config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
11454 instead of 'O' for the constraint for the second operand.
11456 2002-11-01 Mark Mitchell <mark@codesourcery.com>
11459 * toplev.c (rest_of_compilation): Do not refuse to output code for
11460 an inline function in a local class.
11462 2002-11-01 David O'Brien <obrien@FreeBSD.org>
11464 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
11465 (TRANSFER_FROM_TRAMPOLINE): Reformat.
11468 2002-11-01 Kazu Hirata <kazu@cs.umass.edu>
11470 * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
11472 2002-11-01 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11474 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
11476 2002-11-01 Steve Ellcey <sje@cup.hp.com>
11478 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
11479 (MASK_INLINE_DIV_THR): Remove.
11480 (TARGET_INLINE_DIV_LAT): Remove.
11481 (TARGET_INLINE_DIV_THR): Remove.
11482 (TARGET_INLINE_DIV): Remove.
11483 (MASK_INLINE_FLOAT_DIV_LAT): New macro.
11484 (MASK_INLINE_FLOAT_DIV_THR): New macro.
11485 (MASK_INLINE_INT_DIV_LAT): New macro.
11486 (MASK_INLINE_INT_DIV_THR): New macro.
11487 (TARGET_INLINE_FLOAT_DIV_LAT): New macro.
11488 (TARGET_INLINE_FLOAT_DIV_THR): New macro.
11489 (TARGET_INLINE_INT_DIV_LAT): New macro.
11490 (TARGET_INLINE_INT_DIV_THR): New macro.
11491 (TARGET_INLINE_FLOAT_DIV): New macro.
11492 (TARGET_INLINE_INT_DIV): New macro.
11493 * config/ia64/ia64.md (divsi3): Change to use new macros.
11497 (divsi3_internal): Ditto.
11502 (divdi3_internal_lat): Ditto.
11503 (divdi3_internal_thr): Ditto.
11505 (divsf3_internal_lat): Ditto.
11506 (divsf3_internal_thr): Ditto.
11508 (divdf3_internal_lat): Ditto.
11509 (divdf3_internal_thr): Ditto.
11511 (divtf3_internal_lat): Ditto.
11512 (divtf3_internal_thr): Ditto.
11513 * config/ia64/ia64.c (ia64_override_options): Change
11514 to check new macros for conflicts in settings.
11515 * doc/invoke.texi (-minline-divide-min-latency): Remove.
11516 (-minline-divide-max-throughput): Remove.
11517 (-minline-float-divide-min-latency): New.
11518 (-minline-float-divide-max-throughput): New.
11519 (-minline-int-divide-min-latency): New.
11520 (-minline-int-divide-max-throughput): New.
11522 2002-11-01 Richard Earnshaw (rearnsha@arm.com)
11525 * arm.c (use_return_insn): Don't use a return insn if there are
11526 saved integer regs, but LR is not one of them.
11528 Fri Nov 1 10:33:15 CET 2002 Jan Hubicka <jh@suse.cz>
11530 * expr.c (emit_move_insn): Use SCALAR_FLOAT_MODE_P
11531 * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
11533 Thu Oct 31 18:20:50 CET 2002 Jan Hubicka <jh@suse.cz>
11535 * i386.md (sse_loadss, sse_loadsd): Canonicalize; add expander
11536 (movps, movpd splitters): Use canonical form.
11537 (movv2di): Fix merge problem.
11539 Thu Oct 31 16:22:31 CET 2002 Jan Hubicka <jh@suse.cz>
11541 * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
11543 2002-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
11545 PR optimization/6162
11546 * doc/md.texi: Document restriction on commutative operand
11549 2002-10-31 Eric Christopher <echristo@redhat.com>
11551 * explow.c (convert_memory_address): Use shallow_copy_rtx.
11553 2002-10-31 Steve Ellcey <sje@cup.hp.com>
11555 * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
11557 2002-10-31 Steve Ellcey <sje@cup.hp.com>
11559 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
11561 Thu Oct 31 Dale Johannesen <dalej@apple.com>
11563 * config/rs6000/darwin.h: Correct formatting in previous.
11565 Thu Oct 31 Dale Johannesen <dalej@apple.com>
11567 * config/rs6000/darwin.h: Enable -falign-xxx options.
11569 Thu Oct 31 18:08:00 CET 2002 Jan Hubicka <jh@suse.cz>
11571 * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
11572 flag_asynchronous_unwind_tables, flag_pcc_struct_return.
11573 * i386.c (optimization_options): Set flag_omit_frame_pointer,
11574 flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
11575 Do not clear -momit-leaf-frame-pointer when profiling.
11576 (ix86_frame_pointer_required): Frame pointer is always required when
11579 Thu Oct 31 16:09:44 CET 2002 Jan Hubicka <jh@suse.cz>
11581 * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
11583 Thu Oct 31 12:45:55 2002 J"orn Rennecke <joern.rennecke@superh.com>
11585 * sh.h (binary_logical_operator): Declare.
11586 * sh.c (binary_logical_operator): New function.
11587 * sh.md (xordi3+1): New combiner splitter pattern.
11589 2002-10-31 David O'Brien <obrien@FreeBSD.org>
11591 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
11592 __enable_execute_stack function.
11594 2002-10-30 Zack Weinberg <zack@codesourcery.com>
11596 * gthr.h, gthr-dce.h, gthr-posix.h, gthr-rtems.h,
11597 gthr-solaris.h, gthr-win32.h: Remove __gthread_key_dtor.
11598 * unwind-sjlj.c (fc_key_dtor): Delete.
11599 (fc_key_init): Adjust __gthread_key_create call to match.
11601 2002-10-30 Aldy Hernandez <aldyh@redhat.com>
11603 * c-common.c: Add GTY to vector_type_node_list.
11605 2002-10-30 John David Anglin <dave@hiauly.hia.nrc.ca>
11607 * pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
11608 * pa-protos.h (attr_length_millicode_call, attr_length_call,
11609 pa_init_machine_status): Declare new global functions.
11610 * pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
11611 implement new functions.
11612 (attr_length_millicode_call, attr_length_call): Implement.
11613 (total_code_bytes): Change type to long.
11614 (pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
11615 Reset counter if flag_function_sections.
11616 (output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
11617 (output_cbranch): Move call to gen_label_rtx.
11618 (output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
11619 delay slot in all variants, shorten pc-relative calls.
11620 (output_call): Rewrite adding long TARGET_64BIT call, improved delay
11621 slot usage and exposure, various new call variants, and shortened
11622 sequences for some variants on TARGET_PA_20.
11623 Miscellaneous format changes.
11624 * pa.h (total_code_bytes): Change type to long.
11625 (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
11626 TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
11627 (TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
11628 (EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
11629 LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
11630 stores on TARGET_ELF32.
11631 *pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
11632 (unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
11633 canonicalize_funcptr_for_compare expanders): Calculate attribute length
11634 attr_length_millicode_call().
11635 (call_internal_symref, call_value_internal_symref): Clobber register 1.
11636 Calculate attribute length using attr_length_call().
11637 (call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
11639 (sibcall, sibcall_value): Rewrite.
11640 (sibcall_internal_symref, sibcall_value_internal_symref): Clobber
11641 register 1. Use attr_length_call().
11642 (sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
11644 (unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
11645 * som.h (MEMBER_TYPE_FORCES_BLK): Define.
11646 * t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
11647 * doc/invoke.texi (mlong-calls): Document.
11649 2002-10-30 Roger Sayle <roger@eyesopen.com>
11651 * fold-const.c (fold_binary_op_with_conditional_arg): Improve
11652 handling of cases where one or both branches of the conditional
11653 have void type, i.e. throw an exception or don't return.
11654 (fold): Only apply (and undo) type conversion to the non-void
11655 branches of a COND_EXPR.
11657 2002-10-30 Mark Mitchell <mark@codesourcery.com>
11660 * varasm.c (asm_output_aligned_bss): Do not call
11661 ASM_GLOBALIZE_LABEL.
11663 2002-10-30 David Edelsohn <edelsohn@gnu.org>
11664 Torbjorn Granlund <tege@swox.com>
11666 * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
11667 for addressibility.
11668 (load_toc_v4_PIC_1b): Same.
11670 2002-10-30 Kazu Hirata <kazu@cs.umass.edu>
11672 * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
11673 Truncate the addresses for H8/300 using HImode.
11675 Tue Oct 29 23:28:10 CET 2002 Jan Hubicka <jh@suse.cz>
11677 * i386.md (negdf splitter): Fix construction of the constant.
11679 Tue Oct 29 20:47:06 CET 2002 Jan Hubicka <jh@suse.cz>
11681 * i386.md (negsf, negdf): Reorganize to use vector modes
11683 (abssf, absdf): Use force_reg.
11684 (movv4sf, movv2df): New splitters.
11685 * i386.h (PREDICATE_CODES): add zero_extended_scalar_load_operand
11686 * i386.c (zero_extended_scalar_load_operand
11688 * i386-protos.h (ix86_expand_call): Update prototype.
11689 * i386.c (ix86_function_ok_for_sibcall): Handle 64bit
11690 (ix86_expand_call): Use r11 for indirect sibcalls.
11691 * i386.md (call, call_value, untyped_call, call_value_pop):
11692 update x86_expand_call call.
11693 (sibcall, sibcall_value): new patterns
11694 (call_rex64, call_value_rex64): Do not accept sibcalls.
11695 (sibcall_rex64, sibcall_value_rex64,
11696 sibcall_rex64_v, sibcall_value_rex64_v): New.
11698 Tue Oct 29 15:37:39 CET 2002 Jan Hubicka <jh@suse.cz>
11700 * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
11703 2002-10-29 Hans-Peter Nilsson <hp@bitrange.com>
11705 * toplev.c (rest_of_type_compilation): Return early in case of
11707 (check_global_declarations): Don't call debug_hooks->global_decl
11710 2002-10-28 Andreas Bauer <baueran@in.tum.de>
11712 * doc/c-tree.texi (Tree overview): Fix typos.
11714 2002-10-29 Phil Edwards <pme@gcc.gnu.org>
11716 * Makefile.in (gnucompare*): Only record bad comparisons
11717 if there really was a bad comparison.
11719 Tue Oct 29 19:32:16 CET 2002 Jan Hubicka <jh@suse.cz>
11721 * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
11722 * i386.md (movsf*, movdf*): Use 'C' instead of 'H'
11723 * md.texi (machine dependent constraints): Document 'C'
11725 * simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
11727 * i386.c (ix86_expand_vector_move): Fix.
11729 * i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
11730 * i386.md (sse2_maskmovdqu_rex64): New pattern
11733 * xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
11734 (ix86_init_mmx_sse_builtins): Fix type.
11736 2002-10-29 Jason Thorpe <thorpej@wasabisystems.com>
11738 * gthr-posix.h: Include <unistd.h> for feature tests.
11739 (sched_get_priority_max, sched_get_priority_min)
11740 (pthread_getschedparam, pthread_setschedparam): Only use
11741 if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
11742 (__gthread_objc_thread_set_priority): Don't treat all nonzero
11743 returns from sched_get_priority_max and sched_get_priority_min
11746 2002-10-29 Kazu Hirata <kazu@cs.umass.edu>
11748 * config/h8300/h8300.h (TARGET_DEFAULT): Make it
11751 2002-10-29 Kazu Hirata <kazu@cs.umass.edu>
11753 * config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
11754 (h8300_tiny_constant_address_p): Likewise.
11755 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
11756 h8300_eightbit_constant_address_p.
11757 (TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
11758 * config/h8300/h8300-protos.h: Add the prototypes for the two
11761 2002-10-29 Kazu Hirata <kazu@cs.umass.edu>
11763 * reload1.c (update_eliminables): Unconditionally check if
11764 frame_pointer_needed has changed.
11766 Tue Oct 29 15:37:39 CET 2002 Jan Hubicka <jh@suse.cz>
11768 * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
11771 2002-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
11773 PR optimization/8334
11774 * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
11775 check for zero operands explicitly.
11777 2002-10-29 Richard Sandiford <rsandifo@redhat.com>
11779 * config/mips/mips.md (extv, extzv, insv): Set size of referenced
11780 memory after adjusting to BLKmode.
11782 2002-10-29 Kazu Hirata <kazu@cs.umass.edu>
11784 * config/h8300/h8300.h (MASK_*): New.
11785 (TARGET_*): Use MASK_*.
11787 2002-10-28 Zack Weinberg <zack@codesourcery.com>
11789 * config.gcc (*-*-vxworks, powerpc-wrs-vxworks*): New stanzas.
11790 * config/t-vxworks, config/vxworks.h, config/rs6000/t-vxworks,
11791 config/rs6000/vxworks.h: New files.
11792 * config/rs6000/sysv4.h: Rip out -mvxworks and all related code.
11794 * config.gcc (alpha*-*-vxworks*, arm-*-vxworks*,
11795 i?86-wrs-vxworks*, i960-wrs-vxworks* [all],
11796 m68k-wrs-vxworks*, mips-wrs-vxworks, powerpc-wrs-vxworks*,
11797 powerpcle-wrs-vxworks*, sparc*-wrs-vxworks* [all],
11798 sparc-*-vxsim*): Delete stanzas.
11799 * gthr-vxworks.h: Rip out all substantive code and just
11800 include gthr-single.h.
11802 * config/alpha/vxworks.h, config/arm/vxarm.h,
11803 config/i386/vxi386.h, config/i960/t-vxworks960,
11804 config/i960/vx960-coff.h, config/i960/vx960.h,
11805 config/m68k/t-vxworks68, config/m68k/vxm68k.h,
11806 config/mips/vxworks.h, config/rs6000/vxppc.h,
11807 config/sparc/t-vxsparc, config/sparc/t-vxsparc64,
11808 config/sparc/vxsim.h, config/sparc/vxsparc.h,
11809 config/sparc/vxsparc64.h: Delete files.
11811 2002-10-28 Jason Thorpe <thorpej@wasabisystems.com>
11813 * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
11814 tm_defines if pthreads are enabled.
11815 * config/netbsd.h (LIB_SPEC): Only support the -pthread option
11816 if NETBSD_ENABLE_PTHREADS is defined.
11818 2002-10-28 Kazu Hirata <kazu@cs.umass.edu>
11820 * ChangeLog.1: Fix typos.
11821 * cse.c: Fix a comment typo.
11822 * reload1.c: Likewise.
11824 2002-10-27 Hans-Peter Nilsson <hp@bitrange.com>
11826 * fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
11827 * fixinc/tests/base/_G_config.h: New file.
11829 2002-10-27 Kazu Hirata <kazu@cs.umass.edu>
11831 * combine.c: Fix comment formatting.
11832 * loop.c: Likewise.
11833 * real.c: Likewise.
11834 * regclass.c: Likewise.
11835 * regmove.c: Likewise.
11836 * regrename.c: Likewise.
11837 * reg-stack.c: Likewise.
11838 * reload1.c: Likewise.
11839 * reload.c: Likewise.
11840 * reload.h: Likewise.
11841 * unroll.c: Likewise.
11843 2002-10-27 Kazu Hirata <kazu@cs.umass.edu>
11845 * reload1.c (reload): Fix a comment typo.
11847 Sun Oct 27 10:15:24 CET 2002 Jan Hubicka <jh@suse.cz>
11849 * linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define.
11851 2002-10-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11853 * Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
11854 * dwarf2out.c: Include hashtab.h.
11855 (is_main_source): New static variable.
11856 (attr_checksum, die_checksum): Modified to handle die references.
11857 (same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
11858 unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
11859 record_comdat_symbol_number): New static functions.
11860 (output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
11861 mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
11862 * toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
11863 declarations added.
11865 2002-10-26 Kazu Hirata <kazu@cs.umass.edu>
11867 * config/h8300/h8300.c (initial_offset): Change to
11868 h8300_initial_elimination_offset.
11869 * config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
11870 h8300_initial_elimination_offset.
11871 * config/h8300/h8300-protos.h: Update the prototype.
11873 2002-10-26 Hans-Peter Nilsson <hp@bitrange.com>
11875 * config/mmix/mmix.h (LIBCALL_VALUE): Use
11876 MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
11877 (FUNCTION_VALUE_REGNO_P): Similar, but move code to...
11878 * config/mmix/mmix.c (mmix_function_value_regno_p): New.
11879 * config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
11881 (mmix_function_value_regno_p): Declare.
11883 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
11884 invalid for floating point mode result, with fix.
11886 Fri Oct 25 00:04:21 2002 Alexandre Oliva <aoliva@redhat.com>
11888 * Makefile.in (GCC_FOR_TARGET): Add -L$(objdir)/../ld.
11889 (STAGE2_FLAGS_TO_PASS): Pass GCC_FOR_TARGET.
11890 (stage1_build): Likewise.
11892 2002-10-25 Mike Stump <mrs@apple.com>
11894 Fixes gcc.dg/warn-1.c.
11895 * c-typeck.c (warn_for_assignment): Don't print argument number,
11898 Sat Oct 26 01:44:46 CEST 2002 Jan Hubicka <jh@suse.cz>
11900 * toplev.c (dump_file_index): Add DFI_ce3.
11901 (dump_file_info): Likewise.
11902 (rest_of_compilation): Run first ifcvt pass before tracer.
11904 2002-10-25 Steve Ellcey <sje@cup.hp.com>
11906 * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
11908 2002-10-25 Richard Henderson <rth@redhat.com>
11910 * real.c (real_to_decimal): If the >1 tens reduction loop results
11911 in a negative exponent, fall into the <1 pten computation.
11913 2002-10-25 Zack Weinberg <zack@codesourcery.com>
11916 * c-objc-common.c (inline_forbidden_p): Can not inline
11917 functions containing structures or unions containing VLAs.
11918 * tree-inline.c (walk_tree): For all class 't' nodes, walk
11919 TYPE_SIZE and TYPE_SIZE_UNIT.
11920 (copy_tree_r): Copy types if they are variably modified.
11922 2002-10-25 Ulrich Weigand <uweigand@de.ibm.com>
11924 * config/s390/s390.md: Remove old-style peepholes.
11926 2002-10-25 Ulrich Weigand <uweigand@de.ibm.com>
11928 * config/s390/s390.c (s390_decompose_address): Do not range check the
11929 displacement if base or index is the argument pointer register.
11931 2002-10-24 Hans-Peter Nilsson <hp@bitrange.com>
11936 * fixinc/inclhack.def (libc1_G_va_list): New fix.
11937 * fixinc/fixincl.x: Regenerate.
11938 * config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
11939 ifndef IN_LIBGCC2. Wrap it together with signal.h and
11940 sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
11941 * configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
11942 * config.in, configure: Regenerate.
11944 2002-10-24 Igor Shevlyakov <igor@microunity.com>
11946 * varasm.c (struct rtx_const): Array size 16 for V16QImode.
11948 2002-10-24 Richard Henderson <rth@redhat.com>
11950 * config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
11952 2002-10-24 Kazu Hirata <kazu@cs.umass.edu>
11954 * config/h8300/h8300.c (initial_offset): Simplify by using
11957 2002-10-24 Marek Michalkiewicz <marekm@amelek.gda.pl>
11959 * doc/install.texi (avr): Update required binutils version.
11961 2002-10-24 Theodore A. Roth <troth@openavr.org>
11963 * doc/install.texi: Point avr users at more up-to-date information.
11965 2002-10-24 Ulrich Weigand <uweigand@de.ibm.com>
11967 * config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
11968 to pull operands out of the literal pool where possible.
11970 2002-10-24 Denis Chertykov <denisc@overta.ru>
11972 * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
11974 2002-10-24 Steve Ellcey <sje@cup.hp.com>
11976 * expr.c (convert_move): If unsignedp is less then zero there
11977 is no equivalent code.
11979 2002-10-24 Zack Weinberg <zack@codesourcery.com>
11981 * tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
11983 2002-10-24 Ulrich Weigand <uweigand@de.ibm.com>
11985 * config/s390/s390.h: Rework comments; re-sort target macro definitions
11986 according to the sequence they are defined in the manual.
11987 (POINTER_BOUNDARY): Remove.
11989 2002-10-24 Kazu Hirata <kazu@cs.umass.edu>
11991 * config/h8300/h8300.c (round_frame_size): Replace 8 with
11994 2002-10-24 Kazu Hirata <kazu@cs.umass.edu>
11996 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
11998 (TINY_CONSTANT_ADDRESS_P): Likewise.
12000 2002-10-24 Richard Henderson <rth@redhat.com>
12002 * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
12003 (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
12006 2002-10-24 Richard Henderson <rth@redhat.com>
12009 * reload.c (find_reloads_toplev): Mode of X is not important
12010 when simplifying subregs of constants.
12012 2002-10-24 Richard Sandiford <rsandifo@redhat.com>
12014 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
12015 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
12016 * config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
12017 (override_options): Base default setting of MASK_SOFT_FLOAT on -march
12018 if MIPS_MARCH_CONTROLS_SOFT_FLOAT.
12020 2002-10-24 Richard Sandiford <rsandifo@redhat.com>
12022 * optabs.c (expand_binop): Don't reuse the shift target in the
12023 middle of shift sequences.
12025 Wed Oct 23 22:48:44 CEST 2002 Jan Hubicka <jh@suse.cz>
12027 * i386.md (abs splitters): Do not produce nested subregs.
12029 Wed Oct 23 12:42:32 CEST 2002 Jan Hubicka <jh@suse.cz>
12031 * i386.md (movti_rex64): Fix constraints.
12033 Wed Oct 23 12:01:21 CEST 2002 Jan Hubicka <jh@suse.cz>
12035 * i386.md (abssf,absdf): Use vector operands for SSE
12036 (abssf2_ifs, absdf2_ifs, absdf2_ifs_rex64 and splitters): Update for
12039 2002-10-23 Ziemowit Laski <zlaski@apple.com>
12041 * objc/objc-act.c (get_static_reference): Remove unneeded
12042 TYPE_BINFO initialization.
12043 (get_object-reference): Likewise.
12044 (build_constructor): Tighten precondition check.
12045 (finish_message_expr): Likewise.
12047 2002-10-23 Jakub Jelinek <jakub@redhat.com>
12049 * config/i386/i386.c (local_symbolic_operand): Move LABEL_REF test
12052 2002-10-23 Steve Ellcey <sje@cup.hp.com>
12054 * config/ia64/ia64.c (hfa_element_mode): Don't allow 128 bit floats
12057 2002-10-23 Richard Henderson <rth@redhat.com>
12059 * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
12060 (alpha_output_mi_thunk_osf): Handle vcall_offset.
12062 2002-10-23 Zack Weinberg <zack@codesourcery.com>
12064 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12066 * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
12067 hook_tree_bool_false.
12069 * tree.c (variably_modified_type_p): Moved here from
12070 cp/tree.c. Use lang_hooks.tree_inlining.var_mod_type_p for
12071 language-specific cases. Due to this, must weaken some 'if
12072 and only if' checks to merely 'if'.
12073 * tree.h: Prototype variably_modified_type_p.
12075 * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end.
12077 2002-10-23 Ulrich Weigand <uweigand@de.ibm.com>
12079 * config/s390/linux.h (CC1_SPEC, CC1PLUS_SPEC): Remove.
12080 * config/s390/s390.c (optimization_options): Disable -fcaller-saves.
12082 * config/s390/s390-protos.h (fp_operand): Remove.
12083 * config/s390/s390.c (fp_operand): Remove.
12084 * config/s390/s390.md ("movdi"): Replace fp_operand by FP_REG_P.
12085 ("*movdi_lhi", "*movdi_lli", "*movdi_larl"): Likewise.
12086 ("movsi", "*movsi_lhi", "*movsi_lli"): Likewise.
12087 (movdi_31, movdf_31 splitters): Likewise.
12089 * config/s390/s390.h (IEEE_FLOAT): Remove.
12090 (TARGET_FLOAT_FORMAT): Define in terms of TARGET_IEEE_FLOAT.
12091 (INT_REGNO_P): Rename to ...
12092 (GENERAL_REGNO_P): ... this.
12093 (FLOAT_REGNO_P): Rename to ...
12094 (FP_REGNO_P): ... this.
12095 (ADDR_REGNO_P): New macro.
12096 (GENERAL_REG_P, ADDR_REG_P, FP_REG_P, CC_REG_P): New macros.
12097 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
12098 (DATA_REG_P, FP_REG_P, ADDRESS_REG_P): Likewise.
12099 (HARD_REGNO_NREGS): Adapt to macro renaming.
12100 (HARD_REGNO_MODE_OK): Likewise.
12102 2002-10-23 David Edelsohn <edelsohn@gnu.org>
12103 Geoff Keating <geoffk@apple.com>
12105 * config/rs6000/rs6000.c (rs6000_register_move_cost): New function.
12106 (rs6000_memory_move_cost): New function.
12107 * config/rs6000/rs6000-protos.h: Declare them.
12108 * config/rs6000/rs6000.h: Use them.
12110 2002-10-23 Ulrich Weigand <uweigand@de.ibm.com>
12112 * libgcc2.c (__udiv_w_sdiv): Use attribute ((always_inline)) when
12113 inlining it into other libgcc2 routines.
12114 (__udivmoddi4): Likewise.
12116 2002-10-22 Nathanael Nerode <neroden@gcc.gnu.org>
12118 * doc/sourcebuild.texi (Test Suites): Improve.
12120 2002-10-22 Stan Shebs <shebs@apple.com>
12122 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Add missing
12125 2002-10-22 Jim Wilson <wilson@redhat.com>
12127 * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
12129 Wed Oct 23 01:52:36 CEST 2002 Jan Hubicka <jh@suse.cz>
12132 * xmmintrin.h: Add const to the argument of loads.
12134 * i386.md (pushv2di): New pattern.
12136 * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
12138 2002-10-22 Richard Henderson <rth@redhat.com>
12140 * target.h (gcc_target.asm_out): Merge output_mi_thunk and
12141 output_mi_vcall_thunk into a single hook. Add can_output_mi_thunk.
12142 * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
12143 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
12144 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
12145 (TARGET_ASM_OUT): Update.
12146 * hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
12147 (hook_bool_tree_hwi_hwi_tree_true): New.
12148 (default_can_output_mi_thunk_no_vcall): New.
12149 * hooks.h: Declare them.
12150 * system.h (ASM_OUTPUT_MI_THUNK): Poison.
12152 * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
12153 (alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
12154 * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
12155 config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
12156 config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
12157 config/stormy16/stormy16.c: Similarly.
12159 * config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
12160 Handle 64-bit properly. Streamline.
12161 (x86_output_mi_vcall_thunk): Remove.
12162 (x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
12163 (x86_can_output_mi_thunk): New.
12164 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
12165 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
12166 (override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.
12168 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
12169 output_mi_thunk; make static; always use function_section.
12170 (TARGET_ASM_OUTPUT_MI_THUNK): New.
12171 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
12172 (rs6000_ra_ever_killed): Test no_new_pseudos not
12173 targetm.asm_out.output_mi_thunk in conjunction with thunks.
12174 * config/rs6000/rs6000-protos.h: Update.
12175 * config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
12176 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
12177 xcoffout_declare_function when using rs6000_output_mi_thunk.
12179 * config/s390/s390.c (s390_output_mi_thunk): Rename from
12180 s390_output_mi_vcall_thunk.
12181 (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
12182 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
12184 * config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
12185 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
12186 * config/vax/vax-protos.h: Update.
12187 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.
12189 Wed Oct 23 00:33:11 CEST 2002 Jan Hubicka <jh@suse,cz>
12191 * i386.c (standard_sse_constant_p): Accept vector and integer zeros too.
12192 * i386.h (EXTRA_CONSTRAINT): Recognize 'C'
12193 * i386.md (movti_internal): Use 'C'
12195 * xmmintrin.h (_mm_cmplt_epi*): New.
12197 2002-10-22 Ulrich Weigand <uweigand@de.ibm.com>
12199 * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
12200 ("*movdf_64"): Likewise.
12201 ("*lshrdi3_64"): Likewise.
12202 ("blockage"): Add length attribute.
12205 Tue Oct 22 23:51:34 CEST 2002 Jan Hubicka <jh@suse.cz>
12207 * i386.md: FIx typo.
12208 (sse2_cvtsi2sd, sse2_pslrdq): Fix template.
12209 (sse2_umulv2siv2di3): Fix predicate.
12210 (sse2_psadbw, ashrv8hi3, ashrv4si3, lshrv8hi3 lshrv4si3,
12211 lshrv2di3, ashlv8hi3, ashlv4si3, ashlv2di3): Likewise.
12212 * xmmintrin.h (_mm_mul_epu16): Rename to...
12213 (_mm_mul_epu32): This one.
12214 (_mm_cvtsi32_si128, _mm_cvtsi128_si32): New.
12216 (contains_128bit_aligned_vector_p): Undo accidental checkin.
12218 2002-10-22 Eric Christopher <echristo@redhat.com>
12220 * config/sparc/sparc.h: Add #error.
12222 2002-10-22 Ulrich Weigand <uweigand@de.ibm.com>
12224 * config.gcc [s390-*-linux]: Remove s390/t-linux from tmake_file.
12225 [s390x-*-linux*]: Likewise.
12226 * config/s390/t-linux: Remove.
12227 * config/s390/s390.h: Include fixdfdi.h when building libgcc2.
12229 Tue Oct 22 19:07:03 CEST 2002 Jan Hubicka <jh@suse.cz>
12231 * i386.c (builtin_description): Add IX86_BUILTIN_PUNPCKHQDQ128.
12232 (ix86_expand_builtin): Fix MASKMOVDQU expasion.
12233 * i386.h (ix86_builtins): Add IX86_BUILTIN_PUNPCKHQDQ128.
12234 * i386.md (mmx_punpck?dq): Simplify.
12235 (sse2_pubpcklqdq): Fix.
12236 (sse2_pubpckhqdq): New.
12237 * xmmintrin.h (_mm_unpackhi_epi32): New.
12239 * xmmintrin.h (_mm_cvt*, _mm_stream_pd): Fix prototypes.
12240 (_mm_shufflehi_epi16, _mm_shufflelo_epi16): Fix typo.
12242 2002-10-22 Nathan Sidwell <nathan@codesourcery.com>
12245 * fold_const.c (fold_binary_op_with_conditional_arg): Always
12246 build compound_expr if we used save_expr.
12248 2002-10-22 Alan Modra <amodra@bigpond.net.au>
12250 * output.h (SECTION_NOTYPE): Define.
12251 * varasm.c (default_section_type_flags_1): Set SECTION_NOTYPE for
12252 init array sections.
12253 (default_elf_asm_named_section): Mind SECTION_NOTYPE.
12254 * config/arm/arm.c (arm_elf_asm_named_section): Likewise. Also
12257 2002-10-21 Richard Henderson <rth@redhat.com>
12259 * config/i386/i386.c (ix86_function_ok_for_sibcall): Look at
12260 the function type, not the return type.
12262 2002-10-21 Richard Henderson <rth@redhat.com>
12264 * real.c (sticky_rshift_significand): Return inexact, don't
12265 or it in immediately.
12266 (sub_significands): Accept incomming carry.
12267 (div_significands, rtd_divmod): Update for sub_significands change.
12268 (round_for_format): Update for sticky_rshift_significand change.
12269 (do_add): Don't involve the inexact bit in addition, do give the
12270 inexact bit as the subtraction carry-in.
12271 (encode_internal, decode_internal, real_internal_format): New.
12272 * real.h (real_internal_format): Declare.
12274 2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
12276 * libgcc2.c: Fix __udiv_w_sdiv breakage on platforms that
12277 don't define sdiv_qrnnd.
12279 2002-10-21 Kazu Hirata <kazu@cs.umass.edu>
12281 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
12283 (TINY_CONSTANT_ADDRESS_P): Likewise.
12285 Tue Oct 22 00:04:20 CEST 2002 Jan Hubicka <jh@suse.cz>
12287 * i386.c (builtin_description): Add punpcklqdq and movdq2q
12288 (ix86_init_mmx_sse_builtins): Add v2di_ftype_void, di_ftype_v2di,
12289 v16qi_ftype_pchar, void_ftype_pchar_v16qi, v4si_ftype_pchar,
12290 void_ftype_pchar_v4si; Initialize __builtin_ia32_movdq2q,
12291 __builtin_ia32_loaddqa, __builtin_ia32_loaddqu, __builtin_ia32_loadd
12292 __builtin_ia32_storedqa, __builtin_ia32_storedqu, __builtin_ia32_stored
12293 __builtin_ia32_setzero128.
12294 (ix86_expand_builtin): Handle IX86_BUILTIN_CLRTI, IX86_BUILTIN_LOADDQA,
12295 IX86_BUILTIN_LOADDQU, IX86_BUILTIN_LOADD, IX86_BUILTIN_STOREDQA,
12296 IX86_BUILTIN_STOREDQU, IX86_BUILTIN_STORED, Ix86_BUILTIN_MOVQ.
12297 * i386.h (ix86_builtins): Add IX86_BUILTIN_LOADDQA, IX86_BUILTIN_LOADDQU,
12298 IX86_BUILTIN_STOREDQA, IX86_BUILTIN_STOREDQU, IX86_BUILTIN_LOADD,
12299 IX86_BUILTIN_STORED, IX86_BUILTIN_CLRTI, IX86_BUILTIN_MOVDQ2Q,
12300 IX86_BUILTIN_PUNPCKLQDQ128, Ix86_BUILTIN_MOVQ.
12301 * i386.md (sse2_punpcklqdq, sse2_movqsse2_loadd, sse2_stored,
12302 sse2_movq): New patterns.
12303 (sse2_movdqa, sse2_movdqu, sse2_movdq2q): Fix.
12304 * xmmintrin.h (_mm_load_si128, _mm_loadu_si128, _mm_loadl_epi64,
12305 _mm_store_si128, _mm_storeu_si128, _mm_storel_epi64,
12306 _mm_setzero_si128, _mm_set_epi64, _mm_set_epi32, _mm_set_epi16,
12307 _mm_set_epi8, _mm_set1_epi64, _mm_set1_epi32, _mm_set1_epi16,
12308 _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
12309 _mm_setr_epi8, _mm_unpacklo_epi64,_mm_set_moveq): New functions.
12310 (_mm_insert_epi16): Fix.
12312 2002-10-21 Dale Johannesen <dalej@apple.com>
12314 * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
12315 unsafe math reversals correctly for RTL generation.
12316 (output_cbranch): Replace rs6000_reverse_condition call
12317 by its former definition.
12319 2002-10-21 Jakub Jelinek <jakub@redhat.com>
12321 * config/i386/i386.c (x86_64_sign_extended_value): Add allow_rip
12322 argument. In CM_SMALL_PIC model consider SYMBOL_REFs binding locally or
12323 from constant pool or LABEL_REFs as sign extended if allow_rip.
12324 Change all +-1GB limits to +-16MB.
12325 (x86_64_general_operand, x86_64_szext_general_operand,
12326 x86_64_nonmemory_operand, x86_64_movabs_operand,
12327 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
12328 legitimate_address_p, ix86_expand_int_movcc): Update callers.
12329 (local_symbolic_operand): Don't allow offsets bigger than +-16MB
12330 in CM_SMALL_PIC model.
12331 (legitimate_pic_address_disp_p): Don't check offsets before
12332 calling local_symbolic_operand.
12333 (legitimize_pic_address): Force offsets bigger than +-16MB into
12335 * config/i386/i386.h (EXTRA_CONSTRAINT, CONST_COSTS): Likewise.
12336 * config/i386/i386-protos.h (x86_64_sign_extended_value): Update
12339 * configure.in: Test for @GOTNTPOFF and @INDNTPOFF on IA-32 too.
12340 Add x86-64 test. Set tls_first_minor to 14 on IA-32 and x86-64.
12341 * configure: Rebuilt.
12342 * config/i386/i386.c (x86_64_sign_extended_value): Don't allow TLS
12343 SYMBOL_REFs unless enclosed in UNSPEC. Handle UNSPEC_DTPOFF,
12344 UNSPEC_GOTNTPOFF and UNSPEC_NTPOFF.
12345 (legitimate_address_p): Allow foo@dtpoff(base) even on TARGET_64BIT
12347 (ix86_encode_section_info): Don't ever generate TLSGD or TLSLD for
12348 non-pic code if TARGET_64BIT.
12349 (legitimize_address): Generate 64-bit TLS sequences.
12350 (output_pic_addr_const): Support x86-64 TLS operators.
12351 (i386_output_dwarf_dtprel): Output 64-bit DTPOFF as .long f@DTPOFF, 0.
12352 (print_operand_address): Use %fs instead of %gs on TARGET_64BIT.
12353 Don't append (%rip) in 64-bit TLSGD and TLSLD sequences.
12354 (output_addr_const_extra): Support x86-64 TLS operators.
12355 (maybe_get_pool_constant): Handle TARGET_64BIT -fpic.
12356 (ix86_tls_get_addr): Use __tls_get_addr on TARGET_64BIT
12358 * config/i386/i386.md (*tls_global_dynamic_gnu): Renamed to...
12359 (*tls_global_dynamic_32_gnu): ..., add !TARGET_64BIT.
12360 (*tls_global_dynamic_sun): Renamed to...
12361 (*tls_global_dynamic_32_sun): ..., add !TARGET_64BIT.
12362 (tls_global_dynamic): Renamed to...
12363 (tls_global_dynamic_32): ... this.
12364 (tls_global_dynamic_64, *tls_global_dynamic_64): New.
12365 (*tls_local_dynamic_base_dynamic_gnu): Renamed to...
12366 (*tls_local_dynamic_base_dynamic_32_gnu): ..., add !TARGET_64BIT.
12367 (*tls_local_dynamic_base_dynamic_sun): Renamed to...
12368 (*tls_local_dynamic_base_dynamic_32_sun): ..., add !TARGET_64BIT.
12369 (tls_local_dynamic_base_dynamic): Renamed to...
12370 (tls_local_dynamic_base_dynamic_32): ... this.
12371 (tls_local_dynamic_base_dynamic_64,
12372 *tls_local_dynamic_base_dynamic_64): New.
12373 (*tls_local_dynamic_once): Renamed to...
12374 (*tls_local_dynamic_32_once): ... this.
12376 2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
12378 * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
12379 __divdi3, __umoddi3, or __moddi3.
12381 2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
12383 * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
12384 instead of just opt_index as switch expression.
12386 * calls.c (store_one_arg): Change type of 'excess_align'
12389 * profile.c (output_gcov_string): Change type of 'temp'
12392 2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
12394 * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
12395 (__fixunssfdi, __fixsfdi): Likewise.
12396 * config/s390/s390.c (s390_single_hi): Initialize 'value'.
12397 (s390_single_qi): Likewise.
12398 (s390_emit_epilogue): Initialize 'offset'. Remove signed vs.
12399 unsigned comparison warning.
12400 (s390_return_addr_rtx): New function.
12401 * config/s390/s390-protos.h (s390_return_addr_rtx): Declare it.
12402 * config/s390/s390.h (RETURN_ADDR_RTX): Use it.
12403 (HARD_REGNO_MODE_OK): Rewrite condition to silence warnings.
12405 2002-10-21 Ulrich Weigand <uweigand@de.ibm.com>
12407 * config/s390/s390.c (s390_output_mi_vcall_thunk): New function.
12408 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define target hook.
12409 (s390_output_mi_thunk): Remove.
12410 (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
12412 2002-10-21 Kazu Hirata <kazu@cs.umass.edu>
12414 * config/h8300/h8300.h (N_REG_CLASSES): Parenthesize.
12416 2002-10-20 Zack Weinberg <zack@codesourcery.com>
12418 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix an
12419 inverted test in the conditional determining the possibility
12420 of sibcalls in PIC mode.
12422 2002-10-20 Richard Henderson <rth@redhat.com>
12424 * target.h (struct gcc_target): Line wrap.
12426 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Static.
12427 (TARGET_ASM_OUTPUT_MI_THUNK): Define here...
12428 * config/alpha/alpha.h: ... not here.
12429 * config/alpha/alpha-protos.h: Update.
12431 * config/arm/arm.c, config/arm/arm.h, config/arm/arm-protos.h
12432 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12433 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
12434 config/i386/i386-protos.h, config/i386/i386.c, config/i386/openbsd.h,
12435 config/i386/unix.h, config/i960/i960-protos.h, config/i960/i960.c,
12436 config/i960/i960.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
12437 config/ia64/ia64.h, config/m68k/linux.h, config/m68k/m68k-protos.h,
12438 config/m68k/m68k.c, config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
12439 config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h,
12440 config/pa/pa-protos.h, config/pa/pa.c, config/pa/pa.h,
12441 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
12442 config/sparc/openbsd.h, config/sparc/sparc-protos.h,
12443 config/sparc/sparc.c, config/sparc/sparc.h,
12444 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12445 config/stormy16/stormy16.h: Similarly.
12447 * config/m68k/m68k.c (m68k_output_mi_thunk): Replicate mnemonic
12448 selection logic from call patterns.
12450 2002-10-20 Mark Mitchell <mark@codesourcery.com>
12452 * config/m68k/m68k.c (m68k_output_mi_thunk): Fix typo.
12454 2002-10-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12457 * i386.c (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Define and
12458 expand __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128.
12459 * i386.h (IX86_BUILTIN_PSLLDQI128, IX86_BUILTIN_PSRLDQI128): New.
12460 * xmmintrin.h (_mm_srli_si128, _mm_slli_si128): New.
12462 2002-10-20 Roger Sayle <roger@eyesopen.com>
12465 * toplev.c (flag_unsafe_profile_arcs): Remove.
12466 (flag_bounded_pointers): Remove.
12467 (flag_bounds_check): Correct comments.
12468 (lang_independent_options): Remove -funsafe-profile-arcs and
12469 -fbounded-pointers. Correct -fbounds-check comments.
12471 * flags.h: Correct flag_schedule_interblock comments.
12472 (flag_bounded_pointers): Remove prototype.
12473 (flag_bounds_check): Correct comments.
12475 * c-opts.c (c_common_init_options): No need to mark
12476 flag_bounds_check as unspecified.
12477 (c_common_post_options): And no need to set it from
12478 flag_bounded_pointers if its still unspecified.
12480 * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
12481 Document --version, -feliminate-dwarf-2-dups, -fno-sched-interblock,
12482 -fno-sched-spec, -fsched-spec-load, -fsched-spec-load-dangerous,
12483 -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
12485 Sat Oct 19 22:02:28 2002 Alexandre Oliva <aoliva@redhat.com>
12486 Angela Marie Thomas <angela@releasedominatrix.com>
12487 Brendan Kehoe <brendan@zen.org>
12488 Nick Clifton <nickc@redhat.com>
12489 Andrew Haley <aph@redhat.com>
12491 * configure.in (--with-sysroot): New. Don't inhibit libc if
12492 given. AC_SUBST TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE
12493 and CROSS_SYSTEM_HEADER_DIR.
12494 * configure: Rebuilt.
12495 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): Set in configure.
12496 (TARGET_SYSTEM_ROOT): New.
12497 (DRIVER_DEFINES): Define CROSS_INCLUDE_DIR from
12498 CROSS_SYSTEM_HEADER_DIR.
12499 (install-gcc-tooldir): New target.
12500 (stmp-fixinc): Do not create $(libsubdir), but rather bail out
12501 if SYSTEM_HEADER_DIR does not exist and it's not the default
12502 sys-include directory.
12503 (deduced.h, stmp-fixproto): Quote SYSTEM_HEADER_DIR properly.
12504 (install-mkheaders): Likewise.
12505 * gcc.c (target_system_root): New variable.
12506 (add_sysrooted_prefix): New function.
12507 (process_command): Recompute run-time target_system_root from
12508 gcc_exec_prefix, keeping it unchanged if the relocated sysroot
12510 (do_spec_1): Process 'R' spec.
12511 (main): Add md_exec_prefix to exec_prefixes regardless of
12512 startfile_prefix_spec. Use add_sysrooted_prefix for
12513 startfile_prefixes, and don't skip the default ones when cross
12514 compiling with sysroot enabled. Removed unused case of
12515 non-absolute standard_startfile_prefix.
12516 * config/interix.h: Remove the only potential, yet disabled,
12517 occurrence of non-absolute (empty) standard_startfile_prefix.
12518 * config/sh/linux.h (LIB_SPEC): Add -rpath-link in non-static
12520 * config/mips/linux.h (LIB_SPEC): Define as in sh/linux.h.
12521 * doc/install.texi (--with-sysroot): Document.
12522 (--with-headers, --with-libs): Deprecate.
12524 2002-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12525 Mark Mitchell <mark@codesourcery.com>
12527 * alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to
12529 * arm-protos.h, arm.c (arm_output_mi_thunk): Likewise.
12530 * cris-protos.h, cris.c (cris_asm_output_mi_thunk): Likewise.
12531 * frv-protos.h, frv.c (frv_asm_output_mi_thunk): Likewise.
12532 * i386-protos.h, i386.c (x86_output_mi_vcall_thunk,
12533 x86_output_mi_thunk): Likewise.
12534 * i960-protos.h, i960.c (i960_output_mi_thunk): Likewise.
12535 * ia64-protos.h, ia64.c (ia64_output_mi_thunk): Likewise.
12536 * m68k-protos.h, m68k.c (m68k_output_mi_thunk): Likewise.
12537 * mmix-protos.h, mmix.c (mmix_asm_output_mi_thunk): Likewise.
12538 * rs6000-protos.h, rs6000.c (output_mi_thunk): Likewise.
12539 * s390-protos.h, s390.c (s390_output_mi_thunk): Likewise.
12540 * stormy16-protos.h, stormy16.c (xstormy16_asm_output_mi_thunk):
12542 * vax-protos.h, vax.c (vax_output_mi_thunk): Likewise.
12544 * target.h (gcc_target): Update output_mi_thunk and
12545 output_mi_vcall_thunk to take a HOST_WIDE_INT delta and
12548 * config/alpha/alpha.c: Replace ASM_OUTPUT_MI_THUNK with
12549 TARGET_ASM_OUTPUT_MI_THUNK in comments.
12550 * config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): Don't #undef it.
12551 (TARGET_ASM_OUTPUT_MI_THUNK): #undef it.
12552 * config/frv/frv.h (DEFAULT_VTABLE_THUNKS): Remove definition.
12553 * config/i386/i386-protos.h (x86_output_mi_vcall_thunk): Update
12555 * config/i386/i386.c (x86_output_mi_vcall_thunk): Likewise.
12556 * config/i386/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
12557 TARGET_ASM_OUTPUT_MI_THUNK in comments.
12558 * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Don't define.
12559 (TARGET_ASM_OUTPUT_MI_THUNK): Do define.
12560 * config/m68k/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
12561 TARGET_ASM_OUTPUT_MI_THUNK in comments.
12562 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Remove #ifdef
12563 ASM_OUTPUT_MI_THUNK and replace with check of targetm.
12565 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Update signature.
12566 (TARGET_ASM_OUTPU_MI_VCALL_THUNK): Likewise.
12568 2002-10-19 Brad Lucier <lucier@math.purdue.edu>
12570 * real.c (do_add): Fix 0+0 sign corner case.
12571 (do_divide): Fix Inf/0 corner case.
12573 Sun Oct 20 00:31:31 CEST 2002 Jan Hubicka <jh@suse.cz>
12575 * i386.c (classify_argument): Pass MMX arguments in memory
12576 (ix86_expand_builtin): Expand proper address mode for cflush.
12577 * i386.md (movdqa): Fix typo.
12578 (sse2_cflush): Accept DImode addresses.
12580 * xmmintrin.h (_mm_sqrt_sd): Accept two arguments.
12581 (_mm_max_sd): Fix pasto.
12582 (_mm_storeh_pd, _mm_storel_pd): Fix.
12584 * i386.c (bdesc_comi): Fix to match specification.
12585 (ix86_expand_sse_comi): Emit the comparison properly.
12586 * i386.md (sse_comi, sse2_comi, sse_ucomi, sse2_ucomi):
12587 Do not use comparison operator.
12588 (vnmaskcmp): Fix template.
12590 * xmmintrin.h (_mm_cvtps_pi16): Fix.
12592 2002-10-19 Sebastian Pop <s.pop@laposte.net>
12594 * dependence.c : Removed.
12595 * Makefile.in : Remove dependence.o.
12597 Sat Oct 19 10:46:52 CEST 2002 Jan Hubicka <jh@suse.cz>
12599 * mmintrin.h (__m64): typedef it to v2si.
12600 (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
12601 _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
12602 _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
12603 _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
12604 _mm_or_si64, _mm_xor_si64): Add neccesary casts.
12605 * xmmintrin.h (_mm_setzero_si64): Likewise.
12607 * i386.h (ALIGN_MODE_128): Update comment; add missing modes
12608 (SSE_REG_MODE_P, MMX_REG_MODE_P): New macros.
12611 Patch by Shawn Wagner
12612 * mmintrin.h: Replace pi64 by si64.
12614 2002-10-18 David Edelsohn <edelsohn@gnu.org>
12616 * rs6000.md (movdf_hardfloat32): Order alternatives consistently.
12617 Use length of 4 not *.
12618 (movdf_hardfloat64): Same. Support DFmode moves to/from CTR/LR.
12619 (movdf_softfloat64): Likewise.
12620 (movdi_internal32): Use length of 4 not *.
12621 (movti_power): Same.
12622 (ctrsi, ctrdi): Same.
12624 2002-10-18 Zack Weinberg <zack@codesourcery.com>
12626 * c-decl.c (start_decl): Point users of the old initialized-
12627 typedef extension at __typeof__.
12629 2002-10-18 Richard Henderson <rth@redhat.com>
12631 * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
12632 (real_to_decimal): Re-implement using the logic from the
12633 gcc 3.2 etoasc. Comment heavily.
12634 (div_significands): Simplify loop startup and comparison logic.
12636 2002-10-18 Mark Mitchell <mark@codesourcery.com>
12638 * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Default to NULL.
12639 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Likewise.
12640 (TARGET_ASM_OUT): Add them.
12641 * target.h (asm_out): Add output_mi_thunk and
12642 output_mi_vcall_thunk.
12643 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12644 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12645 * config/arm/arm-protos.h (arm_output_mi_thunk): Declare.
12646 * config/arm/arm.c (arm_output_mi_thunk): Define.
12647 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12648 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12649 * config/cris/cris.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12650 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12651 * config/frv/frv.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12652 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12653 * config/i386/i386-protos.h (x86_output_mi_thunk): Adjust
12655 (x86_output_mi_vcall_thunk): Declare.
12656 * config/i386/i386.c (override_options): Clear
12657 output_mi_vcall_thunk in 64-bit mode.
12658 (ix86_fntype_regparm): New function.
12659 (ix86_return_pops_args): Use it.
12660 (ia32_this_parameter): New function.
12661 (x86_output_mi_vcall_thunk): New function.
12662 (x86_output_mi_thunk): Use it
12663 * config/i386/unix.h (TARGET_ASM_OUTPUT_MI_THUNK): Adjust.
12664 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define.
12665 * config/i960/i960-protos.h (i960_output_mi_thunk): Declare.
12666 * config/i960/i960.c (i960_output_mi_thunk): New function.
12667 * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Adjust.
12668 * config/ia64/ia64-protos.h (ia64_output_mi_thunk): Declare.
12669 * config/ia64/ia64.c (ia64_output_mi_thunk): Define.
12670 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12671 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12672 * config/m68k/m68k-protos.h (m68k_output_mi_thunk): New function.
12673 * config/m68k/linux.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12674 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12675 * config/m68k/netbsd-elf.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12676 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12677 * config/mmix/mmix.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12678 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12679 * config/pa/pa.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12680 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12681 * config/rs6000/sysv4.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12682 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12683 * config/s390/s390-protos.h (s390_output_mi_thunk): Declare.
12684 * config/s390/s390.c (s390_output_mi_thunk): Define.
12685 * config/s390/s390.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12686 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12687 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12688 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12689 * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12690 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12691 * config/vax/vax-protos.h (vax_output_mi_thunk): Declare.
12692 * config/vax/vax.c (vax_output_mi_thunk): Define.
12693 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12694 (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12695 * doc/tm.texi: Adjust documentation.
12697 2002-10-18 Jason Thorpe <thorpej@wasabisystems.com>
12699 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
12700 __enable_execute_stack function.
12701 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
12702 as NETBSD_ENABLE_EXECUTE_STACK.
12703 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12704 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12705 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12706 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12707 * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12709 2002-10-18 Jason Thorpe <thorpej@wasabisystems.com>
12711 * config/i386/i386.c (x86_initialize_trampoline): Emit a call
12712 to __enable_execute_stack with the address of the trampoline
12713 if TRANSFER_FROM_TRAMPOLINE is defined.
12714 * config/i386/i386.h (TARGET_64BIT): Expand to a compile-time
12715 constant if building libgcc2.
12717 Thu Oct 17 17:40:05 CEST 2002 Jan Hubicka <jh@suse.cz>
12719 * i386.c (pentium4_cost): Fix according to Intel recommendations.
12720 (ix86_memory_move_cost): Fix for 64bit compilation.
12722 2002-10-17 Roger Sayle <roger@eyesopen.com>
12724 * doc/c-tree.texi: Update description of COND_EXPR tree nodes.
12726 2002-10-17 Geoffrey Keating <geoffk@apple.com>
12728 * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Allow arbitrary modes
12730 * config/rs6000/rs6000.md (movcc_internal1): Support CCmode moves
12732 (movsf_hardfloat): Support SFmode moves to/from CTR/LR/MQ.
12733 (movsf_softfloat): Likewise.
12735 2002-10-17 Janis Johnson <janis187@us.ibm.com>
12737 * Makefile.in (site.exp): Add ALT_CXX_UNDER_TEST and COMPAT_OPTIONS.
12739 2002-10-17 Jason Thorpe <thorpej@wasabisystems.com>
12741 * config/alpha/alpha.c (alpha_initialize_trampoline): Use
12742 tramp, not addr, to pass the trampoline address to
12743 __enable_execute_stack.
12745 Thu Oct 17 18:40:47 CEST 2002 Jan Hubicka <jh@suse.cz>
12747 * mmintrin.h: Guard by __MMX__
12748 * xmmintrin.h: Guard by __SSE__
12751 * xmmintrin.h (_MM_SHUFFLE2): New macro.
12752 (_mm_load*_?d): New functions.
12753 (_mm_set*_?d): New functions.
12754 (_mm_store*_?d): New functions.
12756 Wed Oct 16 15:01:29 CEST 2002 Jan Hubicka <jh@suse.cz>
12758 Really commit patch announced at Oct 14
12760 * predict.c (can_predict_insn_p): New function.
12761 (estimate_probability): Avoid unnecesary work.
12762 (process_note_prediction): Likewise.
12763 * toplev.c (rest_of_compilation): Account early branch prediction pass
12767 Found by Ian Ollmann
12768 * xmmintrin.h (_mm_shuffle_pd): Fix typo.
12769 (_mm_load?_pd): Likewise.
12770 (_mm_store?_pd): Likewise.
12773 * i386.c (builtin_description):Drop cmpg[te]s[sd].
12774 * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
12775 swapped alternative.
12778 * reload1.c (reload_inner_reg_of_subreg): New argument output;
12779 (push_reload): Update call.
12781 2002-10-17 Richard Sandiford <rsandifo@redhat.com>
12783 * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
12784 if using mips/elf.h or mips/elf64.h.
12785 * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
12786 * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
12788 2002-10-16 Aldy Hernandez <aldyh@redhat.com>
12790 * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
12793 2002-10-16 Ulrich Weigand <uweigand@de.ibm.com>
12795 * config/s390/linux.h (ASM_DOUBLE, _ASM_OUTPUT_LONG): Remove.
12796 (LPREFIX): Likewise.
12797 (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, ASM_FORMAT_PRIVATE_NAME,
12798 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
12799 ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_BSS,
12800 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
12801 GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
12803 * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
12804 ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
12805 ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
12806 BSS_SECTION_ASM_OP): Move from linux.h.
12807 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12808 Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
12810 * config/s390/s390.c (s390_function_profiler): Use
12811 ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
12813 2002-10-15 Eric Christopher <echristo@redhat.com>
12815 * stor-layout.c (layout_type): Call GET_MODE_BITSIZE once.
12816 * java/parse.y (obtain_incomplete_type): Make pointer
12819 2002-10-15 Richard Henderson <rth@redhat.com>
12821 * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
12822 as arguments. Bound DIGITS by the available buffer size.
12823 (real_to_hexadecimal): Likewise.
12824 * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
12825 (REAL_VALUE_TO_DECIMAL): Remove.
12826 * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
12827 sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
12828 config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
12829 config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
12830 config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
12831 config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
12832 config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
12833 use real_to_decimal directly, and with the proper arguments.
12834 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
12836 2002-10-15 Jim Wilson <wilson@redhat.com>
12838 * reload1.c (merge_assigned_reloads): After converting overlapping
12839 reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
12841 * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
12843 Tue Oct 15 22:08:35 CEST 2002 Jan Hubicka <jh@suse.cz>
12845 * expr.c (do_tablejump): Fix typo in my previous commit.
12847 2002-10-15 Richard Sandiford <rsandifo@redhat.com>
12849 * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
12851 2002-10-15 Ulrich Weigand <uweigand@de.ibm.com>
12853 * config/s390/s390.c (s390_split_branches): Add return
12854 value. Add parameters TEMP_REG and TEMP_USED. Use unspec 104.
12856 (find_base_register_in_addr): New function.
12857 (find_base_register_ref): New function.
12858 (replace_base_register_ref): New function.
12860 (struct constant_pool): Add members pool_insn, insns, and anchor.
12861 Remove member last_insn.
12862 (s390_start_pool): Initialize them.
12863 (s390_end_pool): Emit pool placeholder insn.
12864 (s390_add_pool_insn): New function.
12865 (s390_find_pool): Use insns bitmap instead of addresses.
12866 (s390_dump_pool): Replace placeholder insn. Emit anchor.
12867 Replace unspec 104 by local-pool-relative references.
12868 (s390_output_constant_pool): Output anchor label if required.
12869 (s390_output_symbolic_const): Handle unspec 104 and 105.
12870 (s390_add_pool): Remove, replace by ...
12871 (s390_add_constant, s390_find_constant): ... these new functions.
12872 (s390_add_anchor): New function.
12874 (s390_chunkify_pool): Delete, replace by ...
12875 (s390_chunkify_start, s390_chunkify_finish,
12876 s390_chunkify_cancel): ... these new functions.
12877 (s390_optimize_prolog): Add parameter TEMP_REGNO.
12878 Recompute register live data for special registers.
12879 (s390_fixup_clobbered_return_reg): New function.
12880 (s390_machine_dependent_reorg): Rewrite to use new
12881 s390_chunkify_... routines.
12883 config/s390/s390.md ("reload_base"): Rename to ...
12884 ("reload_base_31"): ... this.
12885 ("reload_base_64"): New insn.
12886 ("reload_base2"): Remove.
12887 ("reload_anchor"): New insn.
12888 ("pool"): New insn.
12890 s390.c (s390_pool_overflow): Remove.
12891 s390.h (s390_pool_overflow): Likewise.
12892 s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
12894 Tue Oct 15 16:51:04 2002 J"orn Rennecke <joern.rennecke@superh.com>
12896 * sh.md (movv8qi_i+2): Don't split if source is -1.
12898 2002-10-15 Janis Johnson <janis187@us.ibm.com>
12900 * doc/install.texi: Formatting changes for conformance to HTML 4.01.
12902 2002-10-15 Ulrich Weigand <uweigand@de.ibm.com>
12905 * loop.c (loop_regs_scan): Mark registers used for function
12906 argument passing as MAY_NOT_OPTIMIZE.
12908 Mon Oct 14 19:22:19 CEST 2002 Jan Hubicka <jh@suse.cz>
12910 * gcov-io.h (gcov_info): Fix type.
12911 * profile.c (create_profiler): Fix type mismatch.
12913 Mon Oct 14 20:33:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12915 * i386.md (movv2di_internal): New pattern.
12916 (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
12917 (movv2di): New expander.
12918 * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
12920 * i386.c (ix86_expand_timode_binop_builtin): Delete.
12921 (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
12922 (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
12923 (ix86_expand_builtin): Likewise.
12924 * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12926 sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12928 sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
12930 sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
12932 (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
12933 sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
12934 (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
12935 *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12936 (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
12937 *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12939 * xmmintrin.h (__m128i): Define as __v2di.
12942 (expand_expr): Use DECL_RTL_SET_P.
12944 2002-10-14 Roger Sayle <roger@eyesopen.com>
12946 * combine.c (simplify_set): Treat MODE_CC registers like cc0.
12948 2002-10-14 Roger Sayle <roger@eyesopen.com>
12949 Zack Weinberg <zack@codesourcery.com>
12951 * config/i386/i386.c (k6_cost): Correct typo.
12953 2002-10-14 Mark Mitchell <mark@codesourcery.com>
12955 PR optimization/6631
12956 * alias.c (objects_must_conflict_p): Check honor_readonly when
12957 examining TYPE_READONLY.
12958 * function.c (assign_stack_temp_for_type): Likewise.
12960 2002-10-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
12962 * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
12963 Swap zero extension arguments.
12964 (umaxhi3): Fix instruction class.
12966 (prefetch): Fix prefetch instructions.
12968 (pkwb): Fix output constraint.
12970 2002-10-14 Alexandre Oliva <aoliva@redhat.com>
12972 * config/mips/mips.c (print_operand): Increase buffer size for
12975 2002-10-14 Richard Henderson <rth@redhat.com>
12978 * gcse.c (adjust_libcall_notes): Revert last change.
12979 * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
12981 2002-10-14 Andrew Haley <aph@redhat.com>
12983 * tree-inline.c (remap_block): All local class initialization
12984 flags go in the outermost scope.
12985 (expand_call_inline): Call java_inlining_map_static_initializers.
12986 (expand_call_inline): Call java_inlining_merge_static_initializers.
12987 * java/lang.c (merge_init_test_initialization): New.
12988 (java_inlining_merge_static_initializers): New.
12989 (inline_init_test_initialization): New.
12990 (java_inlining_map_static_initializers): New.
12992 * tree-inline.c (expand_call_inline): Convert retvar to expected
12995 2002-10-14 Graham Stott <graham.stott@btinternet.com>
12997 * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
12999 2002-10-14 Aldy Hernandez <aldyh@redhat.com>
13001 * stmt.c: Fix typo in comment.
13003 Mon Oct 14 11:35:49 2002 J"orn Rennecke <joern.rennecke@superh.com>
13005 * c-common.c (c_common_type_for_mode): Add V2HImode case.
13006 * tree.c (build_common_tree_nodes_2): Initialize
13007 unsigned_V2HI_type_node and V2HI_type_node.
13008 * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
13009 (unsigned_V2HI_type_node, V2HI_type_node): Define.
13011 2002-10-14 Jakub Jelinek <jakub@redhat.com>
13013 * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
13014 Handle TARGET_64BIT.
13016 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
13018 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
13019 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
13020 (MULTILIB_DIRNAMES): Remove long32.
13021 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
13022 (MULTILIB_REDUNDANT_DIRS): Remove.
13024 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
13026 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
13027 * gcc.c (driver_self_specs): New variable.
13028 (do_self_spec): New function.
13029 (main): Use it to process driver_self_specs.
13031 2002-10-13 Richard Henderson <rth@redhat.com>
13033 * config/i386/i386.c (ix86_function_ok_for_sibcall): Reject
13034 indirect sibcalls when regparm >= 3.
13036 * config/i386/i386.c (sibcall_insn_operand): New.
13037 * config/i386/i386.h (PREDICATE_CODES): Update.
13038 * config/i386/i386-protos.h: Update.
13039 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
13041 * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
13043 2002-10-12 Roger Sayle <roger@eyesopen.com>
13045 * simplify-rtx.c (simplify_binary_operation) [ASHIFTRT]: Optimize
13046 arithmetic right shifts of ~0 during RTL simplifications.
13048 2002-10-12 Neil Booth <neil@daikokuya.co.uk>
13050 PR preprocessor/7862
13051 PR preprocessor/8190
13052 * gcc.c (cpp_unique_options): Don't delete .d files.
13053 Remove stray whitespace.
13055 2002-10-12 Naohiko Shimizu <pshimizu@fa2.so-net.ne.jp>
13057 * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
13058 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
13059 * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
13060 (pdp11_output_function_epilogue, output_ascii): Likewise.
13061 (output_addr_const_pdp11): Likewise.
13062 * pdp11.md (movdi): Use offsetable memory for floating store.
13063 (lshrsi3, negsi2): Delete irrelevant comment.
13065 2002-10-11 Andreas Bauer <baueran@in.tum.de>
13067 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
13068 indirect calls to be sibcall optimized.
13069 * config/i386/i386.md (sibcall_1): New.
13070 (call_1): Add no-sibcalls condition.
13071 (sibcall_value_1): New.
13072 (call_value_1): Add no-sibcalls condition.
13074 2002-10-11 Eric Christopher <echristo@redhat.com>
13076 * output.h (default_valid_pointer_mode): Declare.
13077 * varasm.c (default_valid_pointer_mode): Define.
13078 * target-def.h (TARGET_VALID_POINTER_MODE): Use.
13080 * tree.c (build_pointer_type_for_mode): New function.
13081 (build_pointer_type): Use.
13082 (build_reference_type_for_mode): New function.
13083 (build_reference_type): Use.
13084 * tree.h: Declare new functions.
13085 * c-common.c (handle_mode_attribute): Use new functions, check
13087 * stor-layout.c (layout_type): Depend on machine mode for
13088 REFERENCE_TYPE and POINTER_TYPE.
13089 * dwarf2out.c (simple_type_size_in_bits): Move upward in file.
13090 (modified_type_die): Use instead of PTR_SIZE for POINTER_TYPE
13091 and REFERENCE_TYPE.
13092 * config/mips/mips.c (mips_valid_pointer_mode): New function.
13093 (TARGET_VALID_POINTER_MODE): Use and define.
13094 * config/mips/mips-protos.h (mips_valid_pointer_mode): Declare.
13096 2002-10-11 Geoffrey Keating <geoffk@apple.com>
13098 * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
13099 not the address of the REG.
13100 (struct cse_reg_info): Make subreg_ticked unsigned.
13102 2002-10-11 Janis Johnson <janis187@us.ibm.com>
13104 * doc/compat.texi: Add info about C++ libraries.
13106 2002-10-11 Richard Henderson <rth@redhat.com>
13109 * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
13111 2002-10-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
13113 * cfganal.c (dfs_enumerate_from): Use PARAMS.
13114 * genautomata.c (output_insn_code_cases): Likewise.
13115 * real.c (real_format): Likewise.
13116 * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
13117 ensure value is promoted before doing subtraction.
13119 Fri Oct 11 22:22:38 CEST 2002 Jan Hubicka <jh@suse.cz>
13121 * calls.c (expand_call): Simplify noreturn call.
13124 * cfgbuild.c (make_edges): Create edge cache when we do have
13126 * expr.c (do_tablejump): Note size of maximal jumptable.
13127 * function.c (prepare_function_start): Zero out size.
13128 * function.h (function): Add max_jumptable_ents.
13130 * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
13132 Fri Oct 11 12:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
13134 * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
13135 register for mperm_w operation.
13137 Fri Oct 11 10:56:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
13139 * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
13140 an integer, use simplify_gen_subreg.
13142 2002-10-10 Diego Novillo <dnovillo@redhat.com>
13144 * calls.c (flags_from_decl_or_type): Make extern.
13146 * rtl.h (ECF_*): ... here.
13147 (flags_from_decl_or_type): Declare.
13149 2002-10-10 Roger Sayle <roger@eyesopen.com>
13150 Nathan Sidwell <nathan@codesourcery.com>
13152 * fold-const.c (fold) [RSHIFT_EXPR]: Optimize arithmetic right
13153 shifts of the form -1 >> x.
13155 Thu Oct 10 16:52:55 CEST 2002 Jan Hubicka <jh@suse.cz>
13157 * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
13159 2002-10-10 Aldy Hernandez <aldyh@redhat.com>
13161 * extend.texi (Vector Extensions): Remove comment about single
13164 2002-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13166 * fold-const.c (size_htab_hash): Use htab_hash_pointer.
13167 * function.c (insns_for_mem_hash): Likewise.
13168 * varasm.c (STRHASH): Likewise.
13170 2002-10-10 Stuart Hastings <stuart@apple.com>
13172 * cse.c (struct cse_reg_info): Add subreg_ticked.
13173 (SUBREG_TICKED): New.
13174 (get_cse_reg_info): Initialize SUBREG_TICKED.
13175 (mention_regs): Use it.
13176 (invalidate): Set SUBREG_TICKED.
13177 (invalidate_for_call): Likewise.
13178 (addr_affects_sp_p): Likewise.
13180 2002-10-10 Jakub Jelinek <jakub@redhat.com>
13182 * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
13183 into proper operand.
13185 2002-10-10 Denis Chertykov <denisc@overta.ru>
13187 * config/ip2k/ip2k.c (function_epilogue): Optimize stack
13189 * config/ip2k/libgcc.S: Combine routines used by function
13192 2002-10-10 Jim Wilson <wilson@redhat.com>
13194 * cse.c (fold_rtx): Don't perform associative optimization for DIV and
13197 2002-10-10 David Edelsohn <edelsohn@gnu.org>
13199 * config/rs6000/aix52.h: New file.
13200 * config/rs6000/t-aix52: New File.
13201 * config.gcc (rs6000-ibm-aix5.1.*): New entry.
13202 (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
13204 Thu Oct 10 19:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
13207 * invoke.texi (-msse-math): Kill
13208 (-msse): Add note to mfpmath=sse.
13210 Thu Oct 10 17:08:30 CEST 2002 Jan Hubicka <jh@suse.cz>
13213 * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
13215 2002-10-10 Neil Booth <neil@daikokuya.co.uk>
13217 PR preprocessor/8179
13218 * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
13220 (default_compilers): Pass debug options when preprocessing
13223 2002-10-06 Richard Henderson <rth@redhat.com>
13225 * toplev.c (rest_of_compilation): Revert opt/2960 change.
13227 Wed Oct 9 21:18:43 CEST 2002 Jan Hubicka <jh@suse.cz>
13229 * i386.c (*_cost): Add branch costs.
13230 (override_options): set ix86_branch_cost.
13231 (ix86_expand_int_movcc): Use BRANCH_COST.
13232 * i386.h (costs): Add branch_cost.
13234 2002-10-09 Zack Weinberg <zack@codesourcery.com>
13237 * c-decl.c (start_decl): Unconditionally issue error for
13238 'typedef foo = bar'.
13239 (finish_decl): Remove special case for TYPE_DECL with initializer.
13241 * doc/extend.texi: Delete "Naming Types" section. Change all
13242 cross-references to that section to refer to "Typeof" instead.
13243 Add the useful safe-max()-macro example from "Naming Types" to
13244 "Typeof", rewritten using that extension. Add some compatibility
13247 2002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13249 * loop.c: Revert 2002-08-15 change.
13250 (LOOP_REGNO_NREGS): Ensure type is int.
13252 2002-10-09 David Edelsohn <edelsohn@gnu.org>
13254 * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
13255 which copies first FPR and clears second.
13256 (extendsftf2): Same.
13257 (floatditf2): Fix typo.
13258 (floatsitf2): Same.
13259 (fix_trunctfdi2): Same.
13260 (fix_trunctfsi2): Same.
13262 2002-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13264 * conflict.c (arc_hash): Change return type to hashval_t.
13265 * cselib.c (get_value_hash): Likewise.
13266 * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
13267 state_hash, automata_list_hash): Likewise.
13268 * read-rtl.c (def_hash): Likewise.
13269 * tree.c (type_hash_hash): Likewise.
13271 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
13273 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
13274 prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
13276 Wed Oct 9 15:54:49 2002 J"orn Rennecke <joern.rennecke@superh.com>
13278 * sh.md (ffssi2): Fix emitted code.
13280 2002-10-09 Ulrich Weigand <uweigand@de.ibm.com>
13282 * cse.c (insn_live_p): Pass insn pattern, not full insn
13285 2002-10-09 Neil Booth <neil@daikokuya.co.uk>
13287 * cppmacro.c (paste_tokens): Only allow / to paste with =.
13289 2002-10-09 David Edelsohn <edelsohn@gnu.org>
13291 * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
13293 (movtf_internal): Reference correct displacement for second value
13295 (movtf splitter): Correct generation of constants in 64-bit mode.
13297 2002-10-09 Alan Modra <amodra@bigpond.net.au>
13299 * libgcc2.c (__floatdisf): Properly cure double rounding.
13301 2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
13303 * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
13304 * doc/cpp.texi (Common Predefined Macros): Document.
13306 2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
13309 * doc/invoke.texi (Option Summary): List
13310 -Wmissing-declarations as a C only option.
13312 2002-10-08 Roger Sayle <roger@eyesopen.com>
13314 * fold-const.c (fold) [LROTATE_EXPR, RROTATE_EXPR]: Optimize
13315 left and right rotates of ~0, i.e. integer_all_onesp (arg0).
13316 [LSHIFT_EXPR, RSHIFT_EXPR]: Optimize shifts and rotates of zero.
13318 Tue Oct 8 01:24:19 CEST 2002 Jan Hubicka <jh@suse.cz>
13320 * i386.c (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
13321 x86_sse_typeless_stores, x86_sse_load0_by_pxor): New global
13323 (safe_vector_operand): Update sse_clrv4sf call.
13324 (ix86_expand_buildin): Likewise
13325 * i386.h (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
13326 x86_sse_typeless_stores, x86_sse_load0_by_pxor): Declare.
13327 (TARGET_SSE_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REGS,
13328 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_TYPELESS_LOAD0): New
13330 * i386.md (movsf*, movdf*, movti, movv4sf, movv2df, movv16qi, movv8hi,
13331 movv4si): Obey the new flags.
13332 (floatsi2sf, floatdi2sf, truncatedf2sf): Emit extra load of 0 to avoid
13333 reformating penalty.
13334 (anddf, cmov patterns): Avoid reformating by first converting.
13335 (sse_cvtsd2ss): Fix predicate.
13336 (sse2_clrti): Fix mode,
13337 (sse_clrv4sf): Avoid unspec.
13339 2002-10-08 Jakub Jelinek <jakub@redhat.com>
13341 * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
13342 mno-app-regs|mcmodel=medany.
13343 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
13344 (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
13345 (CRTSTUFF_T_CFLAGS): Define.
13347 2002-10-08 Roger Sayle <roger@eyesopen.com>
13350 * simplify-rtx.c (avoid_constant_pool_reference): Allow constant
13351 pool references that are constructed using LO_SUM.
13353 2002-10-08 Nathan Sidwell <nathan@codesourcery.com>
13355 * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
13357 * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
13359 * flags.h (warn_strict_aliasing): Declare.
13360 * toplev.c (warn_strict_aliasing): Define.
13361 (lang_independent_options): Add it.
13362 * doc/invoke.texi (-Wstrict-aliasing): Document it.
13364 2002-10-08 Zack Weinberg <zack@codesourcery.com>
13366 * system.h (GCCBUGURL): Delete.
13367 * version.c (bug_report_url): New. Add commentary about
13368 modifying both these strings in modified distributions.
13369 * version.h: Declare bug_report_url.
13371 * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
13374 2002-10-08 Nick Clifton <nickc@redhat.com>
13376 * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
13377 convert uint64_t into __ev64_opaque__.
13378 (__ev_set_acc_s64): Likewise, but using signed types.
13380 2002-10-08 Ulrich Weigand <uweigand@de.ibm.com>
13382 * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
13383 ("*doloop_di_long"): Likewise.
13385 Tue Oct 8 16:50:10 CEST 2002 Jan Hubicka <jh@suse.cz>
13387 * print-rtl.c (print_rtx): Increase buffer size for real numbers.
13389 2002-10-08 Richard Sandiford <rsandifo@redhat.com>
13391 * config/mips/mips.md (define_attr cpu): Add r4111.
13393 2002-10-08 Anthony Green <green@redhat.com>
13395 * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
13397 2002-10-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13399 * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
13400 for REAL_VALUE_TO_DECIMAL output.
13402 2002-10-07 Richard Henderson <rth@redhat.com>
13404 * cse.c (fixed_base_plus_p): Turn FIXED_BASE_PLUS_P into a
13405 function; cleanup PLUS case by using recursion. Update all users.
13406 (NONZERO_BASE_PLUS_P): Remove.
13407 (find_comparison_args): Use rtx_addr_can_trap_p instead.
13408 (fold_rtx): Use nonzero_address_p.
13409 * rtl.h (nonzero_address_p): Declare.
13410 * rtlanal.c (rtx_varies_p): Handle ADDRESSOF.
13411 (rtx_addr_can_trap_p): Likewise.
13412 (nonzero_address_p): New.
13413 * simplify-rtx.c (NONZERO_BASE_PLUS_P): Remove.
13414 (simplify_relational_operation): Use nonzero_address_p.
13416 2002-10-07 David Edelsohn <edelsohn@gnu.org>
13418 * config/rs6000/rs6000.c (rs6000_override_options): Set
13419 real_format_for_mode for IBM extended format, if enabled.
13420 (easy_fp_constant): Add TFmode.
13421 (rs6000_legitimize_address): Add TFmode.
13422 (rs6000_legitimate_address): Same.
13423 (function_arg_advance): TFmode uses two FPRs.
13424 (rs6000_emit_prologue): Fix warning.
13425 (rs6000_output_function_epilogue): Add TFmode.
13426 (output_toc): Add TFmode.
13427 * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
13428 (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
13429 * rs6000.md (movtf splitter): Load TFmode constant.
13431 2002-10-07 Dale Johannesen <dalej@apple.com>
13433 * rtl.h: Add NOTE_PRECONDITIONED.
13434 * unroll.c: Set it.
13435 * loop.c: Set loop_info->preconditioned from it.
13436 * doloop.c: Permit doloop treatment when loop_info->preconditoned.
13438 2002-10-07 Richard Henderson <rth@redhat.com>
13440 * config/i960/i960.c (i960_setup_incoming_varargs): Create a
13441 new rtx for comparing the argument pointer against zero.
13442 (i960_va_start): Similarly.
13444 2002-10-07 Richard Henderson <rth@redhat.com>
13446 * config/i960/i960.md (*): Use TFmode, not XFmode.
13447 * config/i960/i960.c (*): Likewise.
13448 (i960_arg_size_and_align): Remove XFmode alignment hack.
13449 (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
13450 * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
13451 (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
13452 (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
13454 2002-10-07 Richard Henderson <rth@redhat.com>
13456 * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
13457 entry points; use void return value and argument list.
13459 2002-10-06 Andreas Bauer <baueran@in.tum.de>
13461 * calls.c (expand_call): Fix function-is-volatile check.
13463 2002-10-05 Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
13465 * t-pdp11: Add MULTILIB support for msoft-float.
13466 * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
13468 * t-pdp11: Add LIB2FUNCS_EXTRA.
13469 * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
13470 add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
13471 'fldd' to 'ldd', rename 'fstd' to 'std'.
13472 (pdp11_output_function_epilogue): Likewise.
13473 (output_move_quad): Make the comment gas compatible.
13474 (output_ascii): Add preceding 0 to the octal constant.
13475 (print_operand_address): Add pre_modify, post_modify.
13476 (output_addr_const_pdp11): Add preceding 0 to the octal constant.
13477 * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
13478 with the indication of Paul Koning.
13479 (PRINT_OPERAND): Fix floating constant.
13480 * pdp11.md (movdi): Restrict matching pattern.
13481 (movqi): Generalize the matching pattern.
13482 (movdf): Restrict matching pattern.
13483 (zero_extendqihi2): Change constant representation.
13484 (floatsidf2): Fix wrong operands.
13485 (addqi3): Fix wrong instruction name.
13486 (subqi3): Fix wrong instruction name.
13487 (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
13488 (xorsi3): Fix wrong insn.
13489 (one_cmplqi2): Add two operand pattern.
13492 (call): Add register indirect case.
13493 (mod): Fix wrong subreg.
13495 2002-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
13496 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13499 * expr.c (expand_expr) [PLUS]: Simplify after the operands
13500 have been expanded in EXPAND_NORMAL mode.
13502 2002-10-06 Richard Henderson <rth@redhat.com>
13504 * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
13506 2002-10-06 Richard Henderson <rth@redhat.com>
13508 PR optimization/2960
13509 * toplev.c (rest_of_compilation): Don't copy_loop_headers if
13512 2002-10-06 Alexandre Oliva <aoliva@redhat.com>
13514 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
13515 previously definitions.
13517 2002-10-06 Frank Ch. Eigler <fche@redhat.com>
13519 * cppinit.c (init_standard_includes, parse_option): Use strncmp.
13520 * c-opts.c (find_opt): Similarly.
13522 Sat Oct 5 22:48:06 CEST 2002 Jan Hubicka <jh@suse.cz>
13524 * athlon.md: rewrite to DFA.
13525 * i386 (ix86_adjust_cost): Drop memory latency code.
13526 (ia32_use_dfa_pipeline_interface): Return true for Athlon.
13528 2002-10-05 Jakub Jelinek <jakub@redhat.com>
13530 * gcc.c (set_multilib_dir): Don't access *end.
13531 Use memcpy instead of strncpy. Don't write beyond malloced buffer.
13532 (print_multilib_info): Don't show paths starting with ".:".
13533 * genmultilib: Add new option, "yes" if multilibs are enabled.
13534 Update comments. If multilibs not enabled, print .:${osdirout}
13535 for each directory. If multilibs are enabled, always print
13536 ${dirout}:${osdirout}, even if the two are the same.
13537 * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
13538 Pass all MULTILIB_* variables to genmultilib even if
13539 --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
13541 2002-10-04 Zack Weinberg <zack@codesourcery.com>
13543 * gcc.c (process_command): Set .validated for -pipe. Correct
13544 grammar in comment.
13546 2002-10-04 Bruce Korb <bkorb@gnu.org>
13548 * fixinc/inclhack.def(hpux11_abs): use format fix
13549 * fixinc/fixincl.x: regenerate
13550 * fixinc/tests/base/stdlib.h: accommodate new fix test
13552 Sat Oct 5 19:42:45 CEST 2002 Jan Hubicka <jh@suse.cz>
13554 * c-common.c (cb_register_builtins): Use really_no_inline.
13556 2002-10-04 David Edelsohn <edelsohn@gnu.org>
13558 * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
13559 copied instruction if the note is not loop invariant.
13561 2002-10-04 Loren J. Rittle <ljrittle@acm.org>
13563 * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
13565 2002-10-04 Steve Ellcey <sje@cup.hp.com>
13567 * doc/invoke.texi (HPPA): Add -mlinker-opt, -mgnu-ld,
13568 and -mhp-ld options to list of options. Add -mgnu-ld
13569 and -mhp-ld option descriptions.
13571 2002-10-04 Steve Ellcey <sje@cup.hp.com>
13573 * fixinc/inclhack.def (hpux11_abs): New.
13574 (stdio_va_list): change __va_list__ to __gnuc_va_list.
13575 * fixinc/fixincl.x: Rebuild.
13577 2002-10-04 Roger Sayle <roger@eyesopen.com>
13579 * config/i386/i386.h (processor_costs): Add new fields fadd,
13580 fmul, fdiv, fabs, fchs and fsqrt to costs structure.
13581 (RTX_COSTS): Use these fields to determine the RTX costs
13582 of floating point addition/subtraction, multiplication,
13583 division, fabs, negation and square root respectively.
13584 * config/i386/i386.c (size_cost): Provide instruction sizes
13585 for these new fields.
13586 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
13587 k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
13588 counts for these new fields for all x86 processor variants.
13590 2002-10-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13592 * mips.c (mips_const_double_ok): Delete unused variable.
13594 * gengtype.c (rtx_next): Change type to int.
13596 2002-10-04 Andreas Jaeger <aj@suse.de>
13598 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
13600 2002-10-04 Richard Henderson <rth@redhat.com>
13602 * real.h (SIGNIFICAND_BITS): Add one more word.
13603 (CONST_DOUBLE_FORMAT): Accomodate 6 words.
13604 * real.c (times_pten): New.
13605 (real_to_decimal, real_from_string): Use it.
13606 (sticky_rshift_significand): Use & to find modulus.
13607 (rshift_significand, lshift_significand): Likewise.
13608 (do_divide): Apply sticky bit after normalization.
13609 (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
13611 2002-10-03 Andreas Bauer <baueran@in.tum.de>
13613 * doc/tm.texi (FUNCTION_OK_FOR_SIBCALL): Remove.
13614 (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13616 2002-10-03 Andreas Jaeger <aj@suse.de>
13618 * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
13619 to unsigned long, adjust printf format string.
13620 (output_mangled_typename): Likewise.
13622 2002-10-03 Jason Thorpe <thorpej@wasabisystems.com>
13624 * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
13625 * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
13626 (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
13627 assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
13628 (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
13629 (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
13630 * config/vax/elf.h (FUNCTION_PROFILER): Remove.
13631 (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
13633 2002-10-03 Mark Mitchell <mark@codesourcery.com>
13635 * doc/invoke.texi (-Wabi): Document mangling bug.
13637 2002-10-04 Alan Modra <amodra@bigpond.net.au>
13639 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
13640 name for the tbtab label that depends on the function asm name.
13641 Don't output tbtab label unless optional_tbtab.
13642 (output_mi_thunk): Formatting.
13644 2002-10-03 Richard Henderson <rth@redhat.com>
13646 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
13647 * config/m68k/m68k.c (override_options): ... here.
13648 * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
13649 * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
13650 * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13651 * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13653 2002-10-03 Richard Henderson <rth@redhat.com>
13655 * real.h (struct real_value): Use ENUM_BITFIELD.
13657 2002-10-03 Richard Henderson <rth@redhat.com>
13659 * config/i960/i960.md (call, call_value): Use emit_call_insn.
13661 2002-10-03 Steve Ellcey <sje@cup.hp.com>
13663 * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
13665 2002-10-03 Steve Ellcey <sje@cup.hp.com>
13667 * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
13668 * config/pa/pa.h (MASK_GNU_LD): New.
13669 (TARGET_GNU_LD): New.
13670 * config/pa/pa64-hpux.h (LINK_SPEC): Set based
13671 on gnu-ld and MASK_GNU_LD.
13672 (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
13674 Thu Oct 3 23:35:51 CEST 2002 Jan Hubicka <jh@suse.cz>
13676 * i386.c (athlon_cost): Fix the move costs.
13678 Thu Oct 3 23:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
13680 * final.c (final): Use symbol name as function name for profiling.
13681 * profile.c (get_exec_counts): Likewise.
13682 (branch_prob): Likewise.
13684 2002-10-03 Jakub Jelinek <jakub@redhat.com>
13686 * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
13688 2002-10-03 Jakub Jelinek <jakub@redhat.com>
13690 * gcc.c (print_multi_os_directory): New variable.
13691 (option_map): Support --print-multi-os-directory.
13692 (struct prefix_list): Add os_multilib field.
13693 (multilib_os_dir): New variable.
13694 (static_specs): Add multilib_options.
13695 (find_a_file): Add multilib argument. Search in GCC or OS multilib
13696 subdirs if nonzero.
13697 (read_specs, execute): Update callers.
13698 (find_file): Likewise. Don't prefix name with multilib_dir, instead
13699 pass 1 as multilib option.
13700 (display_help): Include --print-multi-os-directory.
13701 (add_prefix): Add os_multilib argument. Initialize pl->os_multilib.
13702 (process_command): Update callers. Handle --print-multi-os-directory.
13703 (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
13705 (main): Update find_a_file and add_prefix callers.
13706 Handle print_multi_os_directory.
13707 (struct mdswitchstr): New.
13708 (mdswitches, n_mdswitches): New variables.
13709 (used_arg): Add MULTILIB_DEFAULT switches too if they are not
13710 present on the command line nor their mutually incompatible
13712 (default_arg): Optimize.
13713 (set_multilib_dir): Compute multilib_os_dir. Initialize mdswitches
13715 (print_multilib_info): Only print GCC multilib dir name, not OS
13717 * genmultilib: Add osdirnames parameter. Output multilib_options
13718 variable. If osdirnames is specified, output dirnames as
13720 * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
13721 and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
13722 to compute libgcc_s soname and install path.
13723 * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
13724 SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
13725 (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
13728 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
13729 (SHLIB_SLIBDIR_SUFFIXES): Remove.
13730 * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
13731 ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
13732 (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
13734 * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
13735 (SHLIB_SLIBDIR_SUFFIXES): Remove.
13736 * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
13737 (STARTFILE_ARCH_SPEC): Remove.
13738 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
13739 (SHLIB_SLIBDIR_SUFFIXES): Remove.
13740 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
13741 * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
13742 (SHLIB_SLIBDIR_SUFFIXES): Remove.
13744 Thu Oct 3 21:42:20 CEST 2002 Jan Hubicka <jh@suse.cz>
13746 * predict.c (choose_function_section): Avoid choice for linkonce functions.
13748 Thu Oct 3 15:15:00 CEST 2002 Jan Hubicka <jh@suse.cz>
13750 * i386.md (lea to mul peep2): Fix condition.
13752 2002-10-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13754 * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
13755 * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
13757 2002-10-02 David Mosberger-Tang <David.Mosberger@acm.org>
13759 * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
13760 attribute "unused".
13762 * config/t-libunwind: Mention unwind-sjlj.c.
13763 * unwind-libunwind.c: Change #ifdef __USING_LIBUNWIND_EXCEPTIONS__
13764 to #ifndef __USING_SJLJ_EXCEPTIONS__.
13766 * configure.in: Move sjlj-exceptions and --enable-libunwind-exceptions
13767 before inclusion of config.gcc, but after configuring the compiler etc.
13768 Determine default value for --enable-libunwind-exceptions based on
13769 whether the host has a libunwind library (not guaranteed to be correct,
13770 but it's a reasonable first guess and can always be overridden with an
13771 explicit --enable/disable-libunwind-exceptions.
13772 * config.gcc: For target ia64*-*-linux*, mention t-libunwind as a
13773 tmake_file when $use_libunwind_exceptions is enabled.
13774 * Makefile.in: Update comment: LIB2ADDEH is updated not just by
13775 ia64 (e.g., config/t-linux also updates it).
13776 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS]: Mention -lunwind
13777 along with the shared version of libgcc since the latter requires
13779 * unwind-libunwind.c: New file.
13780 * config/t-libunwind: Ditto.
13782 2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
13784 * config.gcc: Remove support for vax-*-vms*.
13785 * config/vax/vms.h: Remove.
13786 * config/vax/xm-vms.h: Remove.
13787 * config/vax/vax-protos.h: Remove VMS-specific code.
13788 * config/vax/vax.c: Remove VMS-specific code.
13790 2002-10-02 Richard Henderson <rth@redhat.com>
13793 * config/i386/i386.c (ix86_register_move_cost): Increase cost
13794 for secondary_memory_needed pairs.
13796 2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
13798 * doc/vms.texi: Blow away false include file section.
13800 2002-10-02 Roger Sayle <roger@eyesopen.com>
13802 PR optimization/6627
13803 * toplev.c (force_align_functions_log): New global variable.
13804 * flags.h (force_align_functions_log): Add extern prototype.
13805 * varasm.c (assemble_start_function): Use it to force minimum
13806 function alignment.
13807 * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
13808 minimum function alignment to one byte.
13809 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
13810 the least significant bit of vtable member function pointers.
13811 * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
13812 here from cp/cp-tree.h.
13814 Wed Oct 2 17:01:36 CEST 2002 Jan Hubicka <jh@suse.cz>
13816 * i386.c (print_operand_address): Use RIP addressing for offsetted
13819 2002-09-30 David S. Miller <davem@redhat.com>
13822 * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
13823 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13825 2002-10-01 Andreas Bauer <baueran@in.tum.de>
13827 * calls.c (expand_call): Remove the `no indirect check'
13828 for sibcall optimization; use function_ok_for_sibcall
13829 target hook; refine check for `function is volatile'.
13830 (FUNCTION_OK_FOR_SIBCALL): Remove the redefinition.
13831 * hooks.c (hook_tree_tree_bool_false): New.
13832 * hooks.h (hook_tree_tree_bool_false): Declare.
13833 * target-def.h (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13834 (TARGET_INITIALIZER): Add it.
13835 * target.h (struct gcc_target): Add function_ok_for_sibcall.
13836 * config/alpha/alpha.c: (alpha_function_ok_for_sibcall): New.
13837 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13838 * config/alpha/alpha.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13839 * config/arm/arm-protos.h: (arm_function_ok_for_sibcall):
13840 Remove function declaration.
13841 * config/arm/arm.c: (arm_function_ok_for_sibcall): Make
13842 function static and accept another argument of type `tree'.
13843 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13844 * config/arm/arm.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13845 * config/frv/frv.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13846 * config/i386/i386.c: (ix86_function_ok_for_sibcall): New.
13847 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13848 * config/i386/i386.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13849 * config/pa/pa-linux.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13850 (TARGET_HAS_STUBS_AND_ELF_SECTIONS): New definition.
13851 * config/pa/pa.c: (pa_function_ok_for_sibcall): New.
13852 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13853 * config/pa/pa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13854 * config/rs6000/rs6000-protos.h: (function_ok_for_sibcall):
13855 Remove function declaration.
13856 * config/rs6000/rs6000.c: (rs6000_function_ok_for_sibcall):
13857 Rename function_ok_for_sibcall to rs6000_function_ok_for_sibcall;
13858 rename first argument to `decl'; accept another argument
13859 of type `tree'; make static.
13860 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13861 * config/rs6000/rs6000.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13862 * config/sh/sh.c: (sh_function_ok_for_sibcall): New.
13863 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13864 * config/sh/sh.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13865 * config/sparc/sparc.c: (sparc_function_ok_for_sibcall): New.
13866 (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13867 * config/sparc/sparc.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13868 * config/xtensa/xtensa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13870 2002-10-01 Roger Sayle <roger@eyesopen.com>
13872 * unroll.c (loop_iterations): Revert 2002-09-08 change.
13874 2002-10-01 Richard Henderson <rth@redhat.com>
13876 * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
13877 (real_to_hexadecimal): Likewise.
13878 * print-rtl.c (print_rtx): If we are linked with real.c, don't
13879 dump the XWINT fields of a floating point CONST_DOUBLE.
13881 2002-10-01 Jason Thorpe <thorpej@wasabisystems.com>
13883 * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
13885 2002-10-01 Richard Henderson <rth@redhat.com>
13887 * calls.c (precompute_register_parameters): Force non-legitimate
13888 constants into pseudos.
13890 2002-10-01 Nick Clifton <nickc@redhat.com>
13892 * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
13893 to assembler template.
13895 2002-10-01 Richard Henderson <rth@redhat.com>
13897 * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
13898 for TLS debug info to !DECL_EXTERNAL.
13900 2002-10-01 Matt Thomas <matt@3am-software.com>
13901 Jason Thorpe <thorpej@wasabisystems.com>
13903 * config.gcc (vax-*-netbsdelf*): Enable configuration.
13904 * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
13905 if not already defined.
13906 * config/vax/elf.h: New file.
13907 * config/vax/netbsd-elf.h: New file.
13908 * config/vax/vax.c: Include "debug.h".
13909 (vax_output_function_prologue): Add dwarf2 support. Use
13910 MAIN_NAME_P when checking for VMS_TARGET stack adjust.
13911 * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
13912 'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
13913 'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
13914 (VAX_ISTREAM_SYNC): Remove.
13915 (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
13916 (JUMP_TABLES_IN_TEXT_SECTION): Define.
13917 (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
13918 (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
13920 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13921 (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
13922 (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
13923 (INCOMING_RETURN_ADDR_RTX): Define.
13924 * config/vax/vax.md (VUNSPEC_BLOCKAGE)
13925 (VUNSPEC_SYNC_ISTREAM): Define.
13926 (blockage): Use VUNSPEC_BLOCKAGE.
13927 (sync_istream): New insn.
13929 2002-10-01 Richard Henderson <rth@redhat.com>
13931 * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
13932 (*call_value_pop, call, call_value): Add dwarf2 EH support.
13935 2002-10-01 Nathan Sidwell <nathan@codesourcery.com>
13938 * c-typeck.c (build_c_cast): Warn about type punning which breaks
13939 type based aliasing.
13941 2002-10-01 Mark Mitchell <mark@codesourcery.com>
13943 * stor-layout.c (update_alignment_for_field): New function.
13944 (place_union_field): Use it.
13945 (place_field): Likewise.
13947 2002-10-01 Nathan Sidwell <nathan@codesourcery.com>
13950 * gcc.c (cc1_options): Add space on -auxbase-strip.
13952 2002-10-01 Jim Wilson <wilson@redhat.com>
13954 * config/v850/v850.h (EPILOGUE_USES): Define.
13956 2002-09-30 Andrew Haley <aph@redhat.com>
13958 * flow.c (insn_dead_p): When using non-call-exceptions, don't
13959 eliminate insns that may trap.
13960 * cse.c (insn_live_p): Likewise.
13962 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
13964 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
13965 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
13966 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
13967 * config/mips/mips.md: Apply same renaming here.
13969 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
13971 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
13972 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
13973 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
13974 * config/mips/mips.md (define_attr cpu): Remove r4320.
13975 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
13977 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
13979 * config/mips/mips.c (mips16_strings): New variable.
13980 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
13981 symbol in mips16_strings. Free the list.
13982 (mips_encode_section_info): Keep track of local strings.
13984 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
13986 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
13987 (sordered_df, sordered_sf): Remove.
13988 * config/mips/mips.c (get_float_compare_codes): New fn.
13989 (gen_int_relational, gen_conditional_move): Use it.
13991 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
13993 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
13994 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
13995 * config/mips/mips.c (fcc_register_operand): New function.
13996 (mips_emit_fcc_reload): New function, extracted from reload_incc.
13997 (override_options): Allow TFmode values in float registers
13999 * cnfig/mips/mips.md (reload_incc): Change destination prediate
14000 to fcc_register_operand. Remove misleading source constraint.
14001 Use mips_emit_fcc_reload.
14002 (reload_outcc): Duplicate reload_incc.
14004 2002-09-30 Zack Weinberg <zack@codesourcery.com>
14006 * gcc.c (validate_switches): Handle all new forms of spec
14007 syntax introduced recently. Now returns a char *.
14008 (validate_all_switches): Repetitive logic broken out to...
14009 (validate_switches_from_spec): ...here.
14010 * mklibgcc.in: Don't @-flag commands to generate .oS files.
14012 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
14014 * longlong.h: Partially synchronize with GMP-4.1 version:
14015 Use i370 definitions also for s390.
14016 Add generic definition of umul_ppmm in terms of smul_ppmm.
14017 [s390] (umul_ppmm): Remove.
14018 [s390] (smul_ppmm): Fix incorrect assembler constraints.
14019 [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
14021 2002-09-30 Bob Wilson <bob.wilson@acm.org>
14023 * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
14024 Add new RL_REGS register class.
14025 (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
14026 Call xtensa_preferred_reload_class for both input and output reloads.
14027 * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
14028 (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
14029 instead of either AR_REGS or GR_REGS classes.
14030 (xtensa_secondary_reload_class): Use new RL_REGS class.
14031 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
14033 2002-09-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
14035 * pa.c (hppa_encode_label): Don't drop '*' from function labels.
14036 (pa_strip_name_encoding): Strip '@' and '*', in that order.
14037 * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
14038 there is a '*' prefix in NAME.
14040 Mon Sep 30 21:33:23 CEST 2002 Jan Hubicka <jh@suse.cz>
14042 * reload.c (push_reload): Handle subregs and secondary memory.
14043 * reload1.c (gen_reload): Likewise.
14045 * jump.c (reg_or_subregno): New function.
14046 * rtl.h (reg_or_subregno): Declare
14047 * unroll.c (find_splittable_givs): Handle subregs.
14049 2002-09-30 Mark Mitchell <mark@codesourcery.com>
14051 * store-layout.c (finish_record_layout): Add free_p parameter.
14052 (layout_type): Pass it.
14053 * tree.h (finish_record_layout): Update prototype.
14055 Mon Sep 30 14:57:18 CEST 2002 Jan Hubicka <jh@suse.cz>
14057 * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
14059 * gcse.c (cprop_jump): Check that the register has not
14061 (cprop_jump): Likewise.
14063 2002-09-30 Richard Earnshaw <rearnsha@arm.com>
14065 * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
14066 (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
14067 that we have a SImode access, and only then if reload hasn't completed;
14068 for all other cases, use LO_REGS.
14070 2002-09-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14072 * openbsd.h: Fix typo in last change.
14074 2002-09-29 Richard Henderson <rth@redhat.com>
14076 * real.c (real_from_string): Apply sign last. Tidy exponent handling.
14078 2002-09-29 Richard Henderson <rth@redhat.com>
14081 * combine.c (force_to_mode): Handle FLOAT_MODE destinations
14084 2002-09-29 David Edelsohn <edelsohn@gnu.org>
14086 * real.h (ibm_extended_format): Declare.
14087 * real.c (encode_ibm_extended, decode_ibm_extended): New
14090 2002-09-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14092 * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
14094 * ia64.c (ia64_hpux_asm_file_end): Const-ify.
14096 2002-09-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
14098 * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
14100 2002-09-29 Kazu Hirata <kazu@cs.umass.edu>
14102 * builtins.def: Fix comment formatting.
14103 * c-common.def: Likewise.
14104 * cfgcleanup.c: Likewise.
14105 * combine.c: Likewise.
14106 * gengtype.c: Likewise.
14107 * params.def: Likewise.
14108 * predict.def: Likewise.
14109 * rtl.def: Likewise.
14110 * stab.def: Likewise.
14111 * stor-layout.c: Likewise.
14112 * tree.def: Likewise.
14113 * config/darwin.c: Likewise.
14114 * config/darwin.h: Likewise.
14115 * config/dbxcoff.h: Likewise.
14116 * config/elfos.h: Likewise.
14117 * config/fp-bit.c: Likewise.
14118 * config/freebsd-spec.h: Likewise.
14119 * config/interix.h: Likewise.
14120 * config/libgloss.h: Likewise.
14121 * config/linux-aout.h: Likewise.
14122 * config/linux.h: Likewise.
14123 * config/lynx-ng.h: Likewise.
14124 * config/lynx.h: Likewise.
14125 * config/netbsd-aout.h: Likewise.
14126 * config/netbsd.h: Likewise.
14127 * config/netware.h: Likewise.
14128 * config/psos.h: Likewise.
14129 * config/ptx4.h: Likewise.
14131 2002-09-28 Kazu Hirata <kazu@cs.umass.edu>
14133 * ChangeLog.4: Fix typos.
14134 * ChangeLog.6: Likewise.
14135 * FSFChangeLog.10: Likewise.
14136 * genattrtab.c: Fix comment typos.
14137 * haifa-sched.c: Likewise.
14138 * real.c: Likewise.
14139 * tree.h: Likewise.
14140 * config/arm/arm.c: Likewise.
14141 * config/arm/crti.asm: Likewise.
14142 * config/arm/crtn.asm: Likewise.
14143 * config/frv/frv.c: Likewise.
14144 * config/frv/frv.md: Likewise.
14145 * config/h8300/h8300.md: Likewise.
14146 * config/i386/rtemself.h: Likewise.
14147 * config/ia64/unwind-ia64.c: Likewise.
14148 * config/ip2k/ip2k.h: Likewise.
14149 * config/m88k/m88k.c: Likewise.
14150 * config/m88k/m88k.md: Likewise.
14151 * config/mips/sr71k.md: Likewise.
14152 * config/mmix/mmix.c: Likewise.
14153 * config/rs6000/rs6000.c: Likewise.
14154 * config/sh/sh.md: Likewise.
14156 2002-09-26 Theodore A. Roth <troth@verinet.com>
14158 * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
14159 * config/avr/avr.md: Ditto.
14161 2002-09-27 Alexander N. Kabaev <ak03@gte.com>
14163 PR preprocessor/8055
14164 * cppmacro.c (stringify_arg): Do not overflow the buffer
14165 with the terminating NUL when the argument to be stringified
14168 2002-09-27 Richard Henderson <rth@redhat.com>
14170 * unroll.c (simplify_cmp_and_jump_insns): New.
14171 (unroll_loop): Use it. Use simplify_gen_foo+force_operand
14172 instead of expand_simple_foo.
14174 2002-09-27 Richard Henderson <rth@redhat.com>
14176 PR optimization/7520
14177 * cfganal.c (flow_active_insn_p): New.
14178 (forwarder_block_p): Use it.
14180 2002-09-27 Richard Henderson <rth@redhat.com>
14182 * emit-rtl.c (active_insn_p): Revert last change.
14184 2002-09-27 Jakub Jelinek <jakub@redhat.com>
14186 * doc/extend.texi (tls_model): Document.
14187 * varasm.c (decl_tls_model): New.
14188 * c-common.c (handle_tls_model_attribute): New.
14189 (c_common_attribute_table): Add tls_model.
14190 * config/alpha/alpha.c (alpha_encode_section_info): Use
14192 * flags.h (enum tls_model, flag_tls_default): Move...
14193 * tree.h (enum tls_model, flag_tls_default): ...here.
14194 (decl_tls_model): New prototype.
14195 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
14196 * config/i386/i386.c (ix86_encode_section_info): Likewise.
14197 * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
14200 2002-09-27 Kazu Hirata <kazu@cs.umass.edu>
14202 * LANGUAGES: Follow spelling conventions.
14203 * rtl.def: Likewise.
14204 * sbitmap.c: Likewise.
14205 * sched-int.h: Likewise.
14206 * sched-rgn.c: Likewise.
14207 * sibcall.c: Likewise.
14208 * simplify-rtx.c: Likewise.
14210 * stab.def: Likewise.
14211 * stmt.c: Likewise.
14212 * stor-layout.c: Likewise.
14213 * target.h: Likewise.
14214 * timevar.c: Likewise.
14215 * toplev.c: Likewise.
14216 * tree-dump.c: Likewise.
14217 * tree-inline.c: Likewise.
14218 * tree.c: Likewise.
14219 * tree.def: Likewise.
14220 * tree.h: Likewise.
14221 * unroll.c: Likewise.
14222 * varasm.c: Likewise.
14223 * vmsdbgout.c: Likewise.
14224 * treelang/treelang.texi: Likewise.
14225 * treelang/treetree.c: Likewise.
14227 2002-09-27 Kazu Hirata <kazu@cs.umass.edu>
14229 * config/h8300/h8300.c (compute_saved_regs): Use a macro
14230 instead of a hard register number.
14231 (get_shift_alg): Use an enumerated type instead of numbers.
14232 (h8300_shift_needs_scratch_p): Likewise.
14234 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
14236 * varasm.c (force_data_section): Remove.
14237 (assemble_constant_align): Likewise.
14238 * output.h: Remove corresponding prototypes.
14240 2002-09-26 Roger Sayle <roger@eyesopen.com>
14242 * stmt.c (expand_exit_loop_if_false): Expand a simple conditional
14243 jump, if the loop to exit is the top of the current nesting stack.
14245 2002-09-26 Torbjorn Granlund <tege@swox.com>
14247 * libgcc2.c (fixunsdfdi, fixunssfdi): Rewrite, avoiding `long long'
14250 2002-09-26 David S. Miller <davem@redhat.com>
14252 PR optimization/7335
14253 * calls.c (emit_library_call_value_1): Passing args by reference
14254 converts a CONST function into a PURE one.
14256 2002-09-26 David Edelsohn <edelsohn@gnu.org>
14258 * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
14260 * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
14262 * config/rs6000/rs6000.c (rs6000_override_options): Allow
14263 function-sections and data-sections functionality on AIX.
14265 2002-09-26 David Edelsohn <edelsohn@gnu.org>
14266 Dale Johannesen <dalej@apple.com>
14268 * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
14269 in RTL for sub-word loads from memory.
14271 2002-09-26 Richard Henderson <rth@redhat.com>
14274 * sched-deps.c (sched_analyze_insn): Make clobber insns depend
14277 2002-09-26 Richard Henderson <rth@redhat.com>
14279 * emit-rtl.c (const_double_htab_eq): Remove unused variable.
14281 2002-09-26 Chris Lattner <sabre@nondot.org>
14283 * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
14284 handling undefined values.
14286 2002-09-26 Richard Henderson <rth@redhat.com>
14289 * emit-rtl.c (active_insn_p): Consider a clobber of the
14290 function return value to be active even after reload.
14292 2002-09-27 Alan Modra <amodra@bigpond.net.au>
14294 * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
14295 by absolute loop increment, not loop increment.
14297 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
14299 * c-common.h: Follow spelling conventions.
14300 * cpplex.c: Likewise.
14301 * cpplib.h: Likewise.
14302 * gthr-dce.h: Likewise.
14303 * gthr-posix.h: Likewise.
14304 * optabs.c: Likewise.
14305 * output.h: Likewise.
14306 * profile.c: Likewise.
14307 * protoize.c: Likewise.
14308 * ra-rewrite.c: Likewise.
14309 * real.c: Likewise.
14310 * recog.c: Likewise.
14311 * reg-stack.c: Likewise.
14312 * regclass.c: Likewise.
14313 * regmove.c: Likewise.
14314 * reload.c: Likewise.
14315 * reload.h: Likewise.
14316 * reload1.c: Likewise.
14317 * reorg.c: Likewise.
14318 * resource.c: Likewise.
14320 * rtlanal.c: Likewise.
14322 2002-09-26 Steve Ellcey <sje@cup.hp.com>
14324 * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
14325 for symbol address.
14327 2002-09-24 Eric Christopher <echristo@redhat.com>
14329 * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
14330 * config/mips/elf64.h: Ditto.
14332 2002-09-24 Eric Christopher <echristo@redhat.com>
14334 * except.c (expand_builtin_extract_return_address): Handle case
14335 where Pmode != ptr_mode.
14337 2002-09-26 Steve Ellcey <sje@cup.hp.com>
14339 * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
14341 2002-09-26 Steve Ellcey <sje@cup.hp.com>
14343 * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
14345 2002-09-26 Igor Shevlyakov <igor@microunity.com>
14347 * combine.c (simplify_set): Don't call to force_to_mode if size
14348 of integer type is larger than HOST_BITS_PER_WIDE_INT.
14350 2002-09-26 Janis Johnson <janis187@us.ibm.com>
14352 * Makefile.in (qmtest-g++): Fix file path.
14354 2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
14356 * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
14357 A + (-const) on RTX level, even for unsigned types.
14359 2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
14361 * reload.c (dup_replacements): New function.
14362 (find_reloads): Use it to duplicate replacements at the top level
14363 of match_dup operands.
14365 2002-09-26 Miles Bader <miles@gnu.org>
14367 * v850.md ("length"): Change default value to 4.
14369 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
14371 * ChangeLog.1: Follow spelling conventions.
14372 * ChangeLog.4: Likewise.
14373 * ChangeLog.6: Likewise.
14374 * FSFChangeLog.11: Likewise.
14375 * doc/cpp.texi: Likewise.
14376 * doc/invoke.texi: Likewise.
14377 * doc/tm.texi: Likewise.
14379 2002-09-26 Nick Clifton <nickc@redhat.com>
14381 * config.gcc: Add x prefix to v850e case for handling
14384 2002-09-25 Zack Weinberg <zack@codesourcery.com>
14386 * gcc.c (input_suffix_matches, switch_matches,
14387 mark_matching_switches, process_marked_switches,
14388 process_brace_body): New functions - split from handle_braces.
14389 (handle_braces): Rewrite; handle %{S:X;T:Y;:D} syntax; accept
14390 and ignore whitespace in more places.
14391 (specs documentation comment): Document %{S:X;T:Y;:D}.
14392 Clarify other %{...} docs.
14393 * doc/invoke.texi: Document %{S:X;T:Y;:D}. Clarify other
14396 * config/arm/aof.h (LINK_SPEC): Change %{ov*,*} to %{ov*}.
14397 * config/rs6000/sysv4.h: Use N-way choice spec syntax.
14399 2002-09-25 David S. Miller <davem@redhat.com>
14402 * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
14405 2002-09-25 Richard Henderson <rth@redhat.com>
14407 * emit-rtl.c (const_double_htab_eq): Distinguish integer and
14408 fp CONST_DOUBLE; use real_identical.
14410 2002-09-25 Mark Mitchell <mark@codesourcery.com>
14412 * doc/invoke.texi: Add more -Wabi examples.
14414 2002-09-25 Richard Sandiford <rsandifo@redhat.com>
14416 * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
14418 2002-09-24 Nathan Sidwell <nathan@codesourcery.com>
14420 * profile.c (end_branch_prob): Only look for __gcov_init on
14421 weak-enabled native compilers.
14423 2002-09-24 Denis Chertykov <denisc@overta.ru>
14425 * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
14426 cases of optimizing "add sp,w" to "inc sp".
14428 2002-09-24 Adam Nemet <anemet@lnxw.com>
14430 * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
14431 epilogue for naked functions.
14433 2002-09-24 Adam Nemet <anemet@lnxw.com>
14434 Nick Clifton <nickc@redhat.com>
14436 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
14437 (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
14440 2002-09-24 Ulrich Weigand <uweigand@de.ibm.com>
14442 * config/s390/s390.c (preferred_la_operand_p): New function.
14443 * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
14444 * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
14445 ("*la_64_cc", "*la_31_cc", splitters): ... these.
14446 ("*la_31"): Deactivate for TARGET_64BIT.
14447 ("*la_31_and", "*la_31_and_cc"): New.
14449 2002-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14451 * real.h (real_value): Make `exp' explicitly signed.
14453 2002-09-24 Kazu Hirata <kazu@cs.umass.edu>
14455 * config/elfos.h: Follow spelling conventions.
14456 * config/alpha/alpha.h: Likewise.
14457 * config/arc/arc.h: Likewise.
14458 * config/arm/arm.md: Likewise.
14459 * config/avr/avr.h: Likewise.
14460 * config/cris/cris.md: Likewise.
14461 * config/d30v/d30v.h: Likewise.
14462 * config/frv/frv.c: Likewise.
14463 * config/frv/frv.h: Likewise.
14464 * config/h8300/h8300.c: Likewise.
14465 * config/h8300/h8300.h: Likewise.
14466 * config/h8300/h8300.md: Likewise.
14467 * config/i386/cygwin.h: Likewise.
14468 * config/i386/i386.h: Likewise.
14469 * config/i386/sysv3.h: Likewise.
14470 * config/i960/i960.h: Likewise.
14471 * config/ia64/ia64.h: Likewise.
14472 * config/ia64/ia64.md: Likewise.
14473 * config/ip2k/ip2k.h: Likewise.
14474 * config/m32r/m32r.h: Likewise.
14475 * config/m68k/m68k.h: Likewise.
14476 * config/m88k/m88k.h: Likewise.
14477 * config/mcore/mcore.c: Likewise.
14478 * config/mcore/mcore.h: Likewise.
14479 * config/mcore/mcore.md: Likewise.
14480 * config/mips/mips.h: Likewise.
14481 * config/mmix/mmix.h: Likewise.
14482 * config/mmix/mmix.md: Likewise.
14483 * config/ns32k/netbsd.h: Likewise.
14484 * config/ns32k/ns32k.h: Likewise.
14485 * config/ns32k/ns32k.md: Likewise.
14486 * config/pa/pa.h: Likewise.
14487 * config/romp/romp.h: Likewise.
14488 * config/rs6000/rs6000.h: Likewise.
14489 * config/rs6000/rs6000.md: Likewise.
14490 * config/sparc/sparc.h: Likewise.
14491 * config/stormy16/stormy-abi: Likewise.
14492 * config/stormy16/stormy16.h: Likewise.
14493 * config/vax/vax.h: Likewise.
14495 2002-09-23 Kazu Hirata <kazu@cs.umass.edu>
14497 * config/alpha/alpha.h: Remove commented-out macro
14498 definitions of HAVE_{POST|PRE}_{INC|DEC}REMENT.
14499 * config/avr/avr.h: Likewise.
14500 * config/d30v/d30v.h: Likewise.
14501 * config/dsp16xx/dsp16xx.h: Likewise.
14502 * config/i370/i370.h: Likewise.
14503 * config/i386/i386.h: Likewise.
14504 * config/i960/i960.h: Likewise.
14505 * config/m68k/m68k.h: Likewise.
14506 * config/m88k/m88k.h: Likewise.
14507 * config/mips/mips.h: Likewise.
14508 * config/ns32k/ns32k.h: Likewise.
14509 * config/pdp11/pdp11.h: Likewise.
14510 * config/romp/romp.h: Likewise.
14511 * config/rs6000/rs6000.h: Likewise.
14512 * config/s390/s390.h: Likewise.
14513 * config/sh/sh.h: Likewise.
14514 * config/sparc/sparc.h: Likewise.
14515 * config/stormy16/stormy16.h: Likewise.
14516 * config/vax/vax.h: Likewise.
14518 2002-09-23 Kazu Hirata <kazu@cs.umass.edu>
14520 * function.c (push_temp_slots_for_block): Remove.
14521 (push_temp_slots_for_target): Likewise.
14522 (get_target_temp_slot_level): Likewise.
14523 (set_target_temp_slot_level): Likewise.
14524 (get_first_block_beg): Likewise.
14525 * function.h: Remove corresponding prototypes.
14527 2002-09-23 Zack Weinberg <zack@codesourcery.com>
14529 * version.c (version_string): Now const char[].
14530 * version.h: Update to match.
14532 2002-09-23 Richard Henderson <rth@redhat.com>
14534 * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
14535 MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
14536 (TARGET_SWITCHES): Don't reference them.
14537 * config/i386/i386.c (override_options): Use target_flags_explicit
14538 to examine bits set by the user.
14540 2002-09-23 Dale Johannesen <dalej@apple.com>
14542 * dbxout.c (dbxout_parms): Set current_sym_code for params
14543 passed on stack by invisible reference.
14545 2002-09-23 Richard Earnshaw <rearnsha@arm.com>
14547 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
14548 at least one byte of space.
14550 2002-09-23 Mark Mitchell <mark@codesourcery.com>
14552 * c-common.h (flag_abi_version): Fix typo in comment.
14553 * doc/invoke.texi (flag_abi_version): Document default value.
14555 2002-09-23 Hans-Peter Nilsson <hp@axis.com>
14557 * doc/extend.texi (Extended Asm): Clarify that overlap between
14558 asm-declared register variables used in an asm and the asm clobber
14559 list is not allowed.
14560 * stmt.c (decl_conflicts_with_clobbers_p): New function.
14561 (expand_asm_operands): Keep track of clobbered registers. Call
14562 decl_conflicts_with_clobbers_p for each input and output operand.
14563 If no conflicts found before, also do conflict sanity check when
14566 2002-09-23 Richard Henderson <rth@redhat.com>
14568 * c-common.c (cpp_define_data_format): Remove.
14569 (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
14570 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
14571 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
14572 * doc/cpp.texi: Don't document them either.
14573 (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
14574 __LONG_LONG_MAX__): Document.
14575 (__TARGET_FLOAT_FORMAT__): Remove.
14577 2002-09-23 Richard Henderson <rth@redhat.com>
14579 * real.c (do_multiply): Normalize U before addition.
14581 2002-09-23 Mark Mitchell <mark@codesourcery.com>
14583 * c-common.c (flag_abi_version): New variable.
14584 * c-common.h (flag_abi_version): Declare it.
14585 * c-opts.c (missing_arg): Add -fabi-version.
14586 (c_common_decode_option): Process -fabi-version.
14587 * doc/invoke.texi (-fabi-version): Document it.
14588 (-Wabi): Add information about bit-fields in unions.
14590 2002-09-22 Roger Sayle <roger@eyesopen.com>
14592 * expr.c (STORE_BY_PIECES_P): New target macro.
14593 (can_store_by_pieces, store_by_pieces): Use STORE_BY_PIECES_P
14594 instead of MOVE_BY_PIECES_P.
14595 * doc/tm.texi: Document this new macro.
14597 2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
14599 * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
14600 unless -fno-pic or -fno-PIC is specified.
14602 2002-09-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
14604 * c-common.c (preprocessing_trad_p): Define.
14605 * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
14606 (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
14607 * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
14608 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
14609 * pa-linux.h (CPP_PREDEFINES): Delete.
14610 (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
14611 * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
14612 * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
14613 (TARGET_OS_CPP_BUILTINS): Define.
14614 * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
14615 (TARGET_SWITCHES): Reformat. Use N_() macro. Add SUBTARGET_SWITCHES.
14616 (SUBTARGET_SWITCHES): Provide default definition.
14617 (TARGET_OPTIONS): Reformat. Use N_() macro.
14618 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
14619 CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
14620 EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
14621 (TARGET_CPU_CPP_BUILTINS): Define.
14622 (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
14623 * doc/invoke.texi (msio, mwsio): Document new hppa options.
14624 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
14625 preprocessing_trad_p().
14627 2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
14629 * doc/install.texi: Document behavior of --with-headers and
14630 --with-libs when arguments are omitted.
14632 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>
14634 * dbxout.c: Follow spelling conventions.
14635 * defaults.h: Likewise.
14637 * diagnostic.h: Likewise.
14638 * doloop.c: Likewise.
14639 * dwarf2out.c: Likewise.
14640 * dwarfout.c: Likewise.
14641 * emit-rtl.c: Likewise.
14642 * except.c: Likewise.
14643 * explow.c: Likewise.
14644 * expmed.c: Likewise.
14645 * expr.c: Likewise.
14646 * expr.h: Likewise.
14647 * flags.h: Likewise.
14648 * flow.c: Likewise.
14649 * fold-const.c: Likewise.
14650 * function.c: Likewise.
14651 * function.h: Likewise.
14653 * gcov-io.h: Likewise.
14654 * gcov.c: Likewise.
14655 * gcse.c: Likewise.
14656 * genattrtab.c: Likewise.
14657 * genconfig.c: Likewise.
14658 * genrecog.c: Likewise.
14659 * ggc-page.c: Likewise.
14661 * global.c: Likewise.
14662 * gthr-win32.h: Likewise.
14663 * integrate.c: Likewise.
14664 * jump.c: Likewise.
14665 * langhooks.c: Likewise.
14666 * langhooks.h: Likewise.
14667 * line-map.h: Likewise.
14668 * local-alloc.c: Likewise.
14669 * longlong.h: Likewise.
14670 * loop.c: Likewise.
14671 * loop.h: Likewise.
14673 Tue Aug 27 22:26:35 CEST 2002 Jan Hubicka <jh@suse.cz>
14675 * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
14677 Tue Aug 27 20:07:01 CEST 2002 Jan Hubicka <jh@suse.cz>
14679 * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
14680 for -Os/TARGET_64BIT too.
14682 2002-09-21 Kazu Hirata <kazu@cs.umass.edu>
14684 * ChangeLog: Follow spelling conventions.
14685 * ChangeLog.0: Likewise.
14686 * ChangeLog.1: Likewise.
14687 * ChangeLog.2: Likewise.
14688 * ChangeLog.3: Likewise.
14689 * ChangeLog.4: Likewise.
14690 * ChangeLog.5: Likewise.
14691 * ChangeLog.6: Likewise.
14692 * FSFChangeLog.10: Likewise.
14693 * FSFChangeLog.11: Likewise.
14694 * alias.c: Likewise.
14695 * basic-block.h: Likewise.
14696 * c-aux-info.c: Likewise.
14697 * c-common.c: Likewise.
14698 * c-common.h: Likewise.
14699 * c-decl.c: Likewise.
14700 * c-format.c: Likewise.
14701 * c-semantics.c: Likewise.
14702 * c-typeck.c: Likewise.
14703 * calls.c: Likewise.
14704 * cfganal.c: Likewise.
14705 * cfgloop.c: Likewise.
14706 * collect2.c: Likewise.
14707 * combine.c: Likewise.
14708 * conflict.c: Likewise.
14709 * cppexp.c: Likewise.
14710 * cppfiles.c: Likewise.
14711 * cpphash.h: Likewise.
14712 * cppinit.c: Likewise.
14713 * cpplex.c: Likewise.
14714 * cpplib.c: Likewise.
14715 * cpplib.h: Likewise.
14716 * cppmacro.c: Likewise.
14719 2002-09-21 Richard Earnshaw <rearnsha@arm.com>
14721 * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
14723 (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
14724 * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
14725 (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
14727 2002-09-21 Richard Earnshaw <rearnsha@arm.com>
14730 * cse.c (fold_rtx): Calculate old_cost before we fold each
14733 2002-09-21 Richard Henderson <rth@redhat.com>
14735 * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
14736 __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
14737 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
14738 __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
14739 __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
14740 * doc/cpp.texi: Don't document them.
14742 2002-09-21 Richard Henderson <rth@redhat.com>
14744 * c-common.c (builtin_define_float_constants): Use real_format
14745 to get the floating-point parameters.
14747 2002-09-21 Richard Henderson <rth@redhat.com>
14749 * real.c (struct real_format): Move to real.h.
14750 (real_format_for_mode): Rename from fmt_for_mode; update all users;
14751 initialize with ieee defaults.
14752 (real_to_target_fmt, real_from_target_fmt): New.
14753 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
14754 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
14755 ieee_quad_format, i370_single_format, i370_double_format,
14756 c4x_single_format, c4x_extended_format): Rename from s/_format//.
14757 (ieee_quad_format): Fix emin.
14758 (format_for_size, init_real_once): Remove.
14759 * real.h (struct real_format): Move from real.c.
14760 (real_format_for_mode): Declare.
14761 (real_to_target_fmt, real_from_target_fmt): Declare.
14762 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
14763 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
14764 ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
14765 i370_single_format, i370_double_format, c4x_single_format,
14766 c4x_extended_format): Declare.
14767 * toplev.c (do_compile): Don't call init_real_once.
14769 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14770 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14772 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
14773 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
14774 * config/alpha/alpha.c (override_options): Set real_format_for_mode
14775 for VAX, if enabled.
14777 * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
14780 * config/i370/i370.h (OVERRIDE_OPTIONS): New.
14781 * config/i370/i370.c (override_options): New.
14782 * config/i370/i370-protos.h: Update.
14784 * config/i386/i386.c (override_options): Set real_format_for_mode
14785 for Intel 80-bit extended.
14786 * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14788 * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
14789 (OVERRIDE_OPTIONS): Move code...
14790 * config/i960/i960.c (i960_initialize): ... here. Set
14791 real_format_for_mode for Intel 80-bit extended.
14793 * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
14794 for Intel 80-bit extended, if enabled.
14796 * config/m68k/m68k.c (override_options): Set real_format_for_mode
14797 for Motorola 96-bit extended.
14799 * config/vax/vax.h (OVERRIDE_OPTIONS): New.
14800 * config/vax/vax.c (override_options): New.
14801 * config/vax/vax-protos.h: Update.
14803 2002-09-21 Alan Modra <amodra@bigpond.net.au>
14805 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
14808 * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
14809 insns. Supply missing clobber of scratch reg.
14811 2002-09-20 Kazu Hirata <kazu@cs.umass.edu>
14813 * config/m32r/m32r.c: Follow spelling conventions.
14814 * config/m32r/m32r.h: Likewise.
14815 * config/m32r/m32r.md: Likewise.
14816 * config/m68k/m68k.c: Likewise.
14817 * config/m88k/m88k.c: Likewise.
14818 * config/mcore/mcore.c: Likewise.
14819 * config/mips/mips.c: Likewise.
14820 * config/mips/mips.h: Likewise.
14821 * config/mmix/mmix.c: Likewise.
14822 * config/mn10200/mn10200.c: Likewise.
14823 * config/ns32k/ns32k.h: Likewise.
14824 * config/pa/pa.c: Likewise.
14825 * config/pa/pa64-linux.h: Likewise.
14826 * config/pdp11/pdp11.h: Likewise.
14827 * config/romp/romp.c: Likewise.
14828 * config/romp/romp.h: Likewise.
14829 * config/rs6000/eabi.asm: Likewise.
14830 * config/rs6000/linux64.h: Likewise.
14831 * config/rs6000/rs6000.c: Likewise.
14832 * config/rs6000/rs6000.h: Likewise.
14833 * config/rs6000/rs6000.md: Likewise.
14834 * config/rs6000/sysv4.h: Likewise.
14835 * config/rs6000/xcoff.h: Likewise.
14837 2002-09-20 Jim Wilson <wilson@redhat.com>
14839 * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
14841 2002-09-20 Jakub Jelinek <jakub@redhat.com>
14843 * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
14844 * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
14845 UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
14846 (legitimate_address_p): Likewise.
14847 (legitimize_address): Use @gotntpoff and @indntpoff.
14848 (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
14849 (output_addr_const_extra): Likewise.
14851 2002-09-20 Jim Wilson <wilson@redhat.com>
14853 * combine.c (try_combine): When split an instruction pair, where the
14854 first has a sign_extend src, verify that the src and dest modes match.
14856 2002-09-20 Richard Henderson <rth@redhat.com>
14858 * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
14859 (override_options): Do not initialize them.
14860 (mips_const_double_ok): Allow no fp constants except zero,
14861 and not even that for mips16.
14862 (const_float_1_operand): Use dconst1.
14863 * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
14864 movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
14865 Don't allow arbitrary constants; fix predicates and C constraint.
14867 2002-09-20 Neil Booth <neil@daikokuya.co.uk>
14869 * cppmacro.c: Don't warn about function-like macros without
14870 '(' during pre-expansion.
14872 2002-09-20 Jim Wilson <wilson@redhat.com>
14874 * config/v850/v850.c (current_function_anonymous_args): Delete.
14875 (expand_prologue): Use current_function_args_info.anonymous_args.
14876 (expand_epilogue): Delete use of current_function_anonymous_args.
14877 * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
14878 (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
14879 (current_function_anonymous_args): Delete extern declaration.
14880 (SETUP_INCOMING_VARARGS): Set anonymous_args field.
14882 2002-09-20 Geoffrey Keating <geoffk@apple.com>
14884 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
14885 to load_macho_picbase.
14886 * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
14887 (load_macho_picbase): Take the symbol to use as a parameter.
14888 (macho_correct_pic): New insn.
14889 (builtin_setjmp_reciever): On Darwin, restore the PIC register.
14891 * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
14892 RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
14893 (CAN_ELIMINATE): Likewise.
14894 (INITIAL_ELIMINATION_OFFSET): Likewise.
14895 (TOC_REGISTER): Likewise.
14897 2002-09-20 Richard Henderson <rth@redhat.com>
14899 * real.c (real_hash): New.
14900 * real.h: Declare it.
14901 * cse.c (canon_hash): Use it.
14902 * cselib.c (hash_rtx): Likewise.
14903 * emit-rtl.c (const_double_htab_hash): Likewise.
14904 * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
14905 * varasm.c (struct rtx_const): Reduce vector size; separate
14906 integer and fp vectors.
14907 (HASHBITS): Remove.
14908 (const_hash_1): Rename from const_hash. Use real_hash. Do not
14909 take modulus MAX_HASH_TABLE.
14910 (const_hash): New. Do take modulus MAX_HASH_TABLE.
14911 (output_constant_def): Do not take modulus MAX_HASH_TABLE.
14912 (SYMHASH): Don't use HASHBITS.
14913 (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
14914 Fix CONST_VECTOR thinko wrt fp vectors. Fix kind comparison.
14915 (simplify_subtraction): Fix kind comparison.
14916 (const_hash_rtx): Return unsigned int. Don't use HASHBITS.
14917 Use a union to pun integer array.
14918 * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
14919 only hash two words of integral CONST_DOUBLE.
14921 2002-09-20 Steve Ellcey <sje@cup.hp.com>
14923 * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
14924 (STARTFILE_PREFIX_SPEC): New.
14925 (LINK_SPEC): Modify.
14926 (LIB_SPEC): Modify.
14927 (LIBGCC_SPEC): New.
14929 2002-09-20 Jakub Jelinek <jakub@redhat.com>
14931 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14932 UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
14934 2002-09-20 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
14936 * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
14937 Add clobber of the condition code register.
14939 2002-09-20 Richard Henderson <rth@redhat.com>
14941 * real.c (do_fix_trunc): Static.
14942 (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
14943 encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
14944 encode_i370_single, encode_i370_double, encode_c4x_single,
14945 encode_c4x_extended): Add default abort case.
14947 2002-09-20 Richard Henderson <rth@redhat.com>
14949 * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
14950 MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
14951 (struct realvaluetype): Remove.
14952 (REAL_VALUE_TYPE): Use struct real_value.
14953 (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
14954 (test_real_width): New.
14955 * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
14956 (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
14957 (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
14958 real_isneg, real_isnegzero, real_identical, exact_real_inverse,
14959 real_to_integer, real_to_integer2, real_to_decimal,
14960 real_to_hexadecimal, real_from_string, real_from_integer,
14961 real_inf, real_nan, real_2expN, real_convert, real_to_target,
14962 real_from_target): Likewise.
14963 * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
14964 * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
14966 2002-09-20 Richard Henderson <rth@redhat.com>
14968 * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
14969 IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
14970 * defaults.h: ... here.
14971 * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
14972 config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
14973 config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
14974 config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
14976 2002-09-20 Hans-Peter Nilsson <hp@bitrange.com>
14978 * config/mmix/mmix.md ("negdf2"): Rewrite.
14979 ("*expanded_negdf2"): New.
14981 2002-09-19 Jim Wilson <wilson@redhat.com>
14983 * combine.c (simplify_set): When optimizing a subreg src with a
14984 cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
14986 2002-09-19 Dale Johannesen <dalej@apple.com>
14987 * combine.c (make_extraction): Don't create
14990 2002-09-19 Roger Sayle <roger@eyesopen.com>
14992 * tree.c (integer_nonzerop): New predicate for nonzero integers.
14993 * tree.h (integer_nonzerop): Add function prototype.
14994 * stmt.c (expand_end_loop): Don't rotate the loop when there
14995 are no instructions in the test, i.e. the loop is unconditional.
14996 (expand_exit_loop_if_false): Optimize RTL generation of loop
14997 tests when the condition is always true or always false.
14998 * c-semantics.c (genrtl_do_stmt): Optimize RTL generation of
14999 do-loops when the condition is always true.
15000 (genrtl_for_stmt): Optimize RTL generation of for-loops when
15001 the for-expression is empty.
15003 2002-09-19 Zack Weinberg <zack@codesourcery.com>
15005 * gcc.c (use_pipes): New flag.
15006 (process_command): Set it. Adjust check for -pipe conflicting
15007 with -time or -save-temps.
15008 (do_spec_1): Use it. Handle %|SUFFIX, %mSUFFIX, and
15009 %<SWITCH. Drop %| (without a SUFFIX).
15010 (handle_braces): Drop %{<SWITCH}, %{^SWITCH}, %{|...}.
15011 (give_switch): Third argument eliminated.
15012 (invoke_as, @assembler_with_cpp spec): Use %|.s or %m.s
15013 depending on AS_NEEDS_DASH_FOR_PIPED_INPUT.
15014 (specs documentation comment): Update.
15016 * config/netbsd-aout.h, config/openbsd.h, config/ptx4.h,
15017 config/svr4.h, config/i386/freebsd-aout.h,
15018 config/m68k/netbsd-elf.h, config/m68k/netbsd.h,
15019 config/m68k/openbsd.h, config/mips/openbsd.h,
15020 config/sparc/sparc.h: Define AS_NEEDS_DASH_FOR_PIPED_INPUT
15021 instead of putting %| into ASM_SPEC and/or ASM_FINAL_SPEC.
15022 * config/avr/avr.h: Delete do-nothing ASM_FINAL_SPEC.
15023 * config/cris/cris.h: Update comment.
15025 * ada/lang-specs.h: Use %(invoke_as). Straighten out
15026 error messages. Don't use %{^SWITCH}.
15027 * ada/misc.c (gnat_decode_option): Handle -I with a
15030 * f/lang-specs.h: Use %| and %m.
15031 * java/jvspec.c: Use %m and %(invoke_as). Change all
15032 uses of %{<SWITCH} to %<SWITCH.
15034 * doc/invoke.texi: Update documentation of specs.
15035 * doc/tm.texi: Document AS_NEEDS_DASH_FOR_PIPED_INPUT.
15037 2002-09-19 Ulrich Weigand <uweigand@de.ibm.com>
15039 * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
15040 and STRICT_LOW_PART within SET_DEST.
15041 * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
15042 splitters, replacing pre-reload splitters.
15043 ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
15044 "*zero_extendqihi2_31"): New insns.
15045 ("*zero_extendqihi2_64"): Do not clobber CC.
15047 2002-09-18 Devang Patel <dpatel@apple.com>
15049 * cp/cp-tree.h: New prototype for walk_vtables().
15050 * cp/decl.c (walk_vtables_r): New function.
15051 (struct cp_binding_level): Add new members, namespaces,
15052 names_size and vtables.
15053 (add_decl_to_level): Add decl in namespaces or vtables
15054 chain, if conditions match.
15055 (walk_vtables): New function.
15056 (walk_namespaces_r): Travers separate namespace chain
15057 for namespace decls.
15058 (wrapup_globals_for_namespace): Use names_size instead
15060 * cp/decl2.c (finish_file): Use walk_vtables() instead of
15061 walk_globals() to walk vtable decls.
15063 2002-09-19 Steve Ellcey <sje@cup.hp.com>
15065 * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
15066 (DTORS_SECTION_ASM_OP): Ditto.
15067 (READONLY_DATA_SECTION_ASM_OP): Moved.
15068 (DATA_SECTION_ASM_OP): New.
15069 (SDATA_SECTION_ASM_OP): New.
15070 (BSS_SECTION_ASM_OP): New.
15071 (SBSS_SECTION_ASM_OP): New.
15072 (TEXT_SECTION_ASM_OP): New.
15074 2002-09-19 Kazu Hirata <kazu@cs.umass.edu>
15076 * config/fp-bit.c: Follow spelling conventions.
15077 * config/d30v/d30v.c: Likewise.
15078 * config/d30v/d30v.h: Likewise.
15079 * config/fr30/fr30.c: Likewise.
15080 * config/fr30/fr30.h: Likewise.
15081 * config/fr30/fr30.md: Likewise.
15082 * config/frv/frv.c: Likewise.
15083 * config/frv/frv.h: Likewise.
15084 * config/h8300/h8300.c: Likewise.
15085 * config/h8300/lib1funcs.asm: Likewise.
15086 * config/i370/i370.c: Likewise.
15087 * config/i386/i386.h: Likewise.
15088 * config/i386/i386.md: Likewise.
15089 * config/i386/pentium.md: Likewise.
15090 * config/i386/winnt.c: Likewise.
15091 * config/i960/i960.c: Likewise.
15092 * config/ia64/ia64.h: Likewise.
15093 * config/ip2k/ip2k.c: Likewise.
15094 * config/ip2k/ip2k.h: Likewise.
15095 * config/ip2k/ip2k.md: Likewise.
15096 * config/ip2k/libgcc.S: Likewise.
15098 2002-09-19 Stephen Clarke <stephen.clarke@superh.com>
15100 * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
15101 (GOTOFF_P): Extend to allow gotoff plus constant.
15103 2002-09-18 Richard Henderson <rth@redhat.com>
15105 * ifcvt.c (noce_process_if_block): Correctly detect X modified
15106 with INSN_B before COND_EARLIEST. Don't check A and B for
15107 modification in condition range. Reorder INSN_B for A==B properly.
15108 (if_convert): Iterate until no matches for a block.
15110 2002-09-18 Richard Henderson <rth@redhat.com>
15112 * calls.c (store_one_arg): Rename default_align to parm_align;
15113 always adjust parm_align for downward padding.
15115 2002-09-18 Richard Henderson <rth@redhat.com>
15117 * toplev.c (backend_init): Move init_real_once invocation ...
15118 (do_compile): ... here.
15120 2002-09-18 Richard Henderson <rth@redhat.com>
15122 * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
15123 RTX_UNCHANGING_P markers for successful tail-recursive replacement.
15125 2002-09-18 Richard Henderson <rth@redhat.com>
15127 * real.c (round_for_format): Collect sticky as unsigned long, not bool.
15129 2002-09-19 Alan Modra <amodra@bigpond.net.au>
15131 * config/rs6000/rs6000.md: (floatdisf2): Rename to
15132 floatdisf2_internal1.
15133 (floatdisf2): New define_expand.
15134 (floatdisf2_internal2): Likewise.
15136 2002-09-18 Richard Henderson <rth@redhat.com>
15138 * real.c (sticky_rshift_significand): Collect sticky as
15139 unsigned long, not bool.
15141 2002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
15143 * config/s390/s390.c (s390_address_cost): New function.
15144 config/s390/s390-protos.h (s390_address_cost): Add prototype.
15145 config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
15146 (RTX_COST): Use COSTS_N_INSNS.
15148 2002-09-18 Douglas Rupp <rupp@gnat.com>
15149 Donn Terry <donnte@microsoft.com>
15151 * stor-layout.c (place_field): Handle alignment of whole
15152 structures when MSVC compatible bitfields are involved.
15153 Change method of computing location of MS bitfields to
15154 be compatible with #pragma pack(n).
15156 * tree.h (record_layout_info): Add new field
15157 remaining_in_alignment.
15159 * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
15160 (pragma pack): Add paragraph on MSVC bitfield packing.
15162 2002-09-18 Richard Earnshaw (reanrsha@arm.com)
15164 PR optimization/7967
15165 * arm.md (ne_zeroextractsi): Add clobber of the condition code
15168 2002-09-18 Kazu Hirata <kazu@cs.umass.edu>
15170 * config/s390/s390.c: Follow spelling conventions.
15171 * config/sh/lib1funcs.asm: Likewise.
15172 * config/sh/sh.c: Likewise.
15173 * config/sh/sh.h: Likewise.
15174 * config/sparc/sparc.c: Likewise.
15175 * config/sparc/sparc.h: Likewise.
15176 * config/sparc/sparc.md: Likewise.
15177 * config/stormy16/stormy16.c: Likewise.
15178 * config/stormy16/stormy16.h: Likewise.
15179 * config/v850/v850.c: Likewise.
15180 * config/v850/v850.h: Likewise.
15181 * config/vax/vax.c: Likewise.
15182 * config/vax/vax.h: Likewise.
15184 2002-09-18 Nick Clifton <nickc@redhat.com>
15186 * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
15187 * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
15188 * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
15190 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
15192 * function.c (max_parm_reg_num): Remove.
15193 * stmt.c (in_control_zone_p, stmt_loop_nest_empty,
15194 drop_through_at_end_p, move_cleanups_up,
15195 expand_end_case_dummy, case_index_expr_type): Likewise.
15196 * stor-layout.c (pos_from_byte): Likewise.
15197 * tree.c (chain_member_value, chain_member_purpose, listify,
15198 tree_int_cst_msb, index_type_equal): Likewise.
15199 * tree.h: Remove prototypes for unused functions.
15201 2002-09-17 Zack Weinberg <zack@codesourcery.com>
15203 * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
15204 statement that the only translation is to en_UK.
15206 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
15208 * config/alpha/alpha.c: Follow spelling conventions.
15209 * config/alpha/alpha.h: Likewise.
15210 * config/alpha/alpha.md: Likewise.
15211 * config/arc/arc.h: Likewise.
15212 * config/arm/arm.c: Likewise.
15213 * config/arm/arm.h: Likewise.
15214 * config/arm/arm.md: Likewise.
15215 * config/arm/pe.c: Likewise.
15216 * config/arm/unknown-elf.h: Likewise.
15217 * config/avr/avr.c: Likewise.
15218 * config/avr/avr.h: Likewise.
15219 * config/c4x/c4x.c: Likewise.
15220 * config/cris/cris.c: Likewise.
15221 * config/cris/cris.h: Likewise.
15223 2002-09-17 Samuel Figueroa <figueroa@apple.com>
15225 * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
15226 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
15227 * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
15229 2002-09-17 Dale Johannesen <dalej@apple.com>
15231 * cfgcleanup.c (try_forward_edges): Do not forward a
15232 branch to just after a loop exit before loop optimization;
15233 this interfered with doloop detection.
15235 2002-09-17 Nick Clifton <nickc@redhat.com>
15237 * config/arm/arm.c (output_return_instruction): Do not
15238 writeback the stack pointer when it is being loaded.
15239 (arm_output_epilogue): Likewise.
15241 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
15243 * optabs.c (prepare_cmp_insn): Let emit_library_call_value
15244 generate a pseudo reg that receives the result of a libcall.
15245 (prepare_float_lib_cmp): Likewise.
15247 2002-09-17 Steve Ellcey <sje@cup.hp.com>
15249 * config/ia64/elf.h: Remove CPP_PREDEFINES.
15251 Tue Sep 17 13:58:04 2002 Nicola Pero <n.pero@mi.flashnet.it>
15253 Fix PR/7014 and related objc bugs:
15254 * c-typeck.c (comp_target_types): Added a reflexive argument.
15255 Pass it to ObjC when/if calling objc_comptypes(). Updated all
15256 callers to provide the appropriate reflexive argument.
15257 * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
15258 typechecking for all cases of comparisons and assignments,
15259 particularly the obscure and less common ones involving protocols.
15261 2002-09-17 Nick Clifton <nickc@redhat.com>
15263 * machmode.def (V1DImode): New mode. A single element vector.
15264 * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
15265 (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
15266 * tree.c (build_common_tree_nodes_2): Build
15267 unsigned_V1DI_type_node and V1D1_type_node.
15268 * c-common.c (c_common_type_for_mode): Return
15269 unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
15270 * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
15272 Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
15274 * doc/objc.texi (Constant string objects): Extended documentation
15275 to make clear that the constant string class ivar layout is
15278 2002-09-17 Roger Sayle <roger@eyesopen.com>
15280 * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
15281 NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
15283 2002-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
15285 * config/mips/mips.c (save_restore_insns): Remove unused variable.
15286 * gcc.c (make_relative_prefix): Likewise.
15287 * loop.c (check_final_value): Likewise.
15288 * jump.c (init_label_info): Remove return value.
15289 * cse.c (prev_insn): Move variable between #ifdef HAVE_cc0 ... #endif.
15291 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15293 * dsp16xx.h (ASM_FORMAT_PRIVATE_NAME): Delete.
15294 (ASM_PN_FORMAT): Define.
15296 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15298 * alpha.h, alpha/vms.h, arc.h, arm/aof.h, arm/aout.h, avr.h,
15299 c4x.h, cris.h, d30v.h, fr30.h, frv.h, h8300.h, i370.h, i386.h,
15300 i960.h, ia64.h, ip2k.h, m32r.h, m68hc11.h, m68k/3b1.h,
15301 m68k/hp320.h, m68k.h, m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h,
15302 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15303 pa.h, pdp11.h, romp.h, rs6000.h, s390/linux.h, sh.h, sparc.h,
15304 stormy16.h, v850.h, vax.h, xtensa.h (ASM_FORMAT_PRIVATE_NAME):
15306 * alpha/vms.h, h8300.h, i370.h, ia64.h, m68k/3b1.h, m68k/hp320.h,
15307 m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h, mmix.h, mn10200.h,
15308 mn10300.h, pa.h, v850.h (ASM_PN_FORMAT): Define.
15310 * defaults.h (ASM_PN_FORMAT, ASM_FORMAT_PRIVATE_NAME): Define.
15311 * doc/tm.texi (ASM_FORMAT_PRIVATE_NAME): Update documentation.
15313 2002-09-16 Richard Henderson <rth@redhat.com>
15315 * expr.c (emit_block_move): Set memory block size as appropriate
15318 2002-09-16 Richard Henderson <rth@redhat.com>
15321 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
15323 2002-09-16 Richard Henderson <rth@redhat.com>
15325 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
15326 as well as OFFSET for BITPOS.
15328 2002-09-16 Jeff Garzik <jgarzik@mandrakesoft.com>
15330 * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
15331 * config/i386/i386.c (processor_alias_table): Add winchip-c6,
15333 * doc/invoke.texi: Mention new aliases.
15335 2002-09-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15337 * calls.c (store_one_arg): Set default alignment for BLKmode arguments
15338 to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
15340 * function.c (pad_below): Always compile.
15341 (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
15342 alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
15343 Pad below when the argument is not in a register and the padding
15344 direction is downward.
15346 * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
15347 (PAD_VARARGS_DOWN): Define.
15348 * pa.c (function_arg_padding): Revise padding directions to make them
15349 compatible with the 32 and 64-bit runtime architecture documentation.
15350 (hppa_va_arg): Add code to handle variable and size zero arguments
15351 passed by reference on TARGET_64BIT. Reformat.
15352 (function_arg): Use a PARALLEL for BLKmode and aggregates args on
15353 TARGET_64BIT. Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
15354 wide when !TARGET_64BIT. Move forward check for mode==VOIDmode.
15356 * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
15357 (RETURN_IN_MEMORY): Return size zero types in memory.
15358 (FUNCTION_VALUE): Return TFmode in general registers.
15359 (MUST_PASS_IN_STACK): Define.
15360 (FUNCTION_ARG_BOUNDARY): Simplify.
15361 (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
15363 (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
15365 2002-09-16 Richard Henderson <rth@redhat.com>
15367 * real.c (do_fix_trunc): New.
15368 (real_arithmetic): Call it.
15369 * simplify-rtx.c (simplify_unary_operation): Handle FIX
15370 with a floating-point result mode.
15372 2002-09-16 Richard Henderson <rth@redhat.com>
15374 * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
15375 (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
15376 * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
15377 (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
15378 * builtins.c (fold_builtin_nan): New.
15379 (fold_builtin): Call it.
15380 * real.c (real_nan): Parse a non-empty string.
15381 (round_for_format): Fix NaN significand truncation.
15382 * real.h (real_nan): Return bool.
15383 * doc/extend.texi: Document new builtins.
15385 2002-09-16 Jason Merrill <jason@redhat.com>
15386 Danny Smith <dannysmith@users.sourceforge.net>
15388 * config/i386/winnt.c (ix86_handle_dll_attribute): Set
15389 DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
15390 (i386_pe_mark_dllimport): Not here.
15392 2002-09-16 Nathan Sidwell <nathan@codesourcery.com>
15394 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
15396 2002-09-16 Geoffrey Keating <geoffk@redhat.com>
15398 * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
15399 warnings about unused operands when HOST_BITS_PER_WIDE_INT is
15401 (rs6000_emit_cmove): Use real_isinf not target_isinf.
15403 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
15405 * calls.c (emit_library_call_value_1): Don't refer to
15406 hard_libcall_value.
15407 * optabs.c (prepare_float_lib_cmp): Likewise.
15409 2002-09-16 Geoffrey Keating <geoffk@apple.com>
15411 * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
15414 The following changes are merged from pch-branch:
15416 * doc/gty.texi (GTY Options): Document %a.
15417 * gengtype.c (do_scalar_typedef): New function.
15418 (process_gc_options): Handle `length' option.
15419 (set_gc_used_type): A pointer to an array of structures doesn't
15420 qualify as a pointer to a structure.
15421 (output_escaped_param): Add `%a' escape.
15422 (write_gc_structure_fields): Allow 'desc' on array of unions.
15423 (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
15426 * gengtype.c (enum rtx_code): Make global.
15427 (rtx_format): Make global.
15429 (gen_rtx_next): New.
15430 (write_rtx_next): New.
15431 (adjust_field_rtx_def): Skip fields marked by chain_next.
15432 (open_base_files): Delete redundant prototype.
15433 (write_enum_defn): New.
15434 (output_mangled_typename): Correct abort call.
15435 (write_gc_marker_routine_for_structure): Handle chain_next and
15436 chain_prev options.
15437 (finish_root_table): Don't output redundant \n.
15438 (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
15439 * c-tree.h (union lang_tree_node): Add chain_next option.
15441 * gengtype.h (NUM_PARAM): New definition.
15442 (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
15443 * gengtype.c (find_param_structure): New.
15444 (adjust_field_type): Handle param<n>_is option.
15445 (process_gc_options): Detect use_params option. Update callers.
15446 (set_gc_used_type): Add 'param' parameter, update callers. Handle
15447 'use_params' option.
15448 (open_base_files): Add splay-tree.h to list of files included.
15449 (output_mangled_typename): New.
15450 (write_gc_structure_fields): Update 'param' parameter to support
15451 multiple parameters. Change name mangling. Allow parameterized
15452 fields to have an apparent scalar type. Handle param<n>_is options,
15454 (write_gc_marker_routine_for_structure): Update for change to name
15455 mangling. Better guess the output file for parameterized types.
15456 (write_gc_types): Update for change to name mangling.
15457 (write_gc_root): Update for change to name mangling. Handle (ignore)
15458 param<n>_is options.
15459 * doc/gty.texi (GTY Options): Add description of param<n>_is
15460 options, use_params option.
15461 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
15462 * gengtype-lex.l: Produce token for param<n>_is.
15463 * gengtype-yacc.y: Parse param<n>_is.
15465 * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
15467 * rtl.c: Update comment describing rtx_format.
15468 * rtl.h (union rtunion): Separate definition and typedef.
15469 (struct rtx_def): Use gengtype to mark.
15470 * Makefile.in (gengtype.o): Also depend on rtl.def.
15471 * ggc.h (ggc_mark_rtx_children): Delete prototype.
15472 (ggc_mark_rtx): Change to alias of gengtype-generated routine.
15473 * ggc-common.c (ggc_mark_rtx_children): Delete.
15474 (ggc_mark_rtx_children_1): Delete.
15475 (gt_ggc_m_rtx_def): Delete.
15476 * gengtype.c (adjust_field_rtx_def): New.
15477 (adjust_field_type): Call adjust_field_rtx_def.
15478 (write_gc_structure_fields): Add 'default' case to switch if none
15479 is specified; remove unused code.
15481 * tree.h (struct tree_exp): Update for change to meaning
15483 * gengtype.c (adjust_field_tree_exp): New function.
15484 (adjust_field_type): Handle `tree_exp' special here.
15485 (write_gc_structure_fields): Don't handle `tree_exp' special here.
15486 Handle new `dot' option.
15488 * gengtype.h: Make `info' a pointer-to-const.
15489 * gengtype-yacc.y (yacc_ids): Use xasprintf.
15491 * gengtype.c (write_gc_structure_fields): Remove implementation
15492 of `always' option, add `default' option.
15493 * doc/gty.texi (GTY Options): Remove documentation of `always',
15496 2002-09-16 Hans-Peter Nilsson <hp@bitrange.com>
15498 * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
15500 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15502 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
15504 * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
15505 instead of the *-protos.h file directly.
15506 * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
15507 * darwin.c (machopic_output_stub): Move prototype ...
15508 * darwin-protos.h (machopic_output_stub): ... here.
15509 * rs6000-protos.h (machopic_output_stub): Don't declare.
15511 2002-09-16 Richard Henderson <rth@redhat.com>
15513 * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
15515 2002-09-16 Richard Henderson <rth@redhat.com>
15517 * real.c, real.h: Rewrite from scratch.
15519 * Makefile.in (simplify-rtx.o): Depend on TREE_H.
15520 (paranoia): New target.
15521 * builtins.c (fold_builtin_inf): Use new real.h interface.
15522 * c-common.c (builtin_define_with_hex_fp_value): Likewise.
15523 * c-lex.c (interpret_float): Likewise.
15524 * emit-rtl.c (gen_lowpart_common): Likewise.
15525 * optabs.c (expand_float): Use real_2expN.
15526 * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
15527 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
15528 (FLOAT_WORDS_BIG_ENDIAN): New.
15529 * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
15530 directly to REAL_VALUE_NEGATIVE.
15531 * loop.c (canonicalize_condition): Likewise.
15532 * simplify-rtx.c: Include tree.h.
15533 (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
15534 with floating-point result modes.
15535 * toplev.c (backend_init): Call init_real_once.
15537 * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
15538 * tree.c (build_real): Likewise.
15539 * config/alpha/alpha.c, config/vax/vax.c (float_strings,
15540 float_values, inited_float_values, check_float_value): Remove.
15541 * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
15542 config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
15543 * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
15544 (VAX_HALFWORD_ORDER): Remove.
15546 2002-09-16 Ulrich Weigand <uweigand@de.ibm.com>
15548 * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
15549 (s390_load_address): ... this new function.
15550 (s390_decompose_address): Allow the argument pointer and all
15551 virtual registers as 'pointer' registers.
15552 (s390_expand_plus_operand): Use s390_load_address.
15553 config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
15554 ("force_la_31"): New insn pattern.
15555 config/s390/s390-protos.h (legitimize_la_operand): Remove.
15556 (s390_load_address): Add prototype.
15558 * config/s390/s390.c: Include "optabs.h".
15559 (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
15560 config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
15561 s390_expand_cmpstr): Add prototypes.
15562 config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
15563 ("movstrdi_short"): Rename to "movstr_short_64". Change predicates
15564 for operands 0 and 1 to "memory_operand". Add type attribute.
15565 ("movstrsi_short"): Rename to "movstr_short_31". Change predicates
15566 for operands 0 and 1 to "memory_operand". Add type attribute.
15567 ("movstrdi_long", "movstrsi_long"): Remove.
15568 ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
15569 ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
15570 ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
15571 ("clrstrsico"): Remove, replace by ...
15572 ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
15573 ("clrstrsi_64"): Rename to "clrstr_long_64".
15574 ("clrstrsi_31"): Rename to "clrstr_long_31".
15575 ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
15576 ("cmpstr_const"): Remove, replace by ...
15577 ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
15578 ("cmpstr_64"): Rename to "cmpstr_long_64".
15579 ("cmpstr_31"): Rename to "cmpstr_long_31".
15581 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
15583 * ABOUT-NLS: Follow spelling conventions.
15584 * ChangeLog: Likewise.
15585 * ChangeLog.1: Likewise.
15586 * ChangeLog.2: Likewise.
15587 * ChangeLog.3: Likewise.
15588 * ChangeLog.4: Likewise.
15589 * ChangeLog.5: Likewise.
15590 * ChangeLog.6: Likewise.
15591 * FSFChangeLog.10: Likewise.
15592 * FSFChangeLog.11: Likewise.
15593 * c-common.c: Likewise.
15594 * c-lex.c: Likewise.
15595 * c-objc-common.c: Likewise.
15596 * cppexp.c: Likewise.
15597 * cppinit.c: Likewise.
15598 * cpplex.c: Likewise.
15599 * doloop.c: Likewise.
15600 * flow.c: Likewise.
15601 * function.c: Likewise.
15602 * integrate.c: Likewise.
15603 * loop.c: Likewise.
15604 * reg-stack.c: Likewise.
15605 * reload.h: Likewise.
15608 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15610 * Makefile.in (vmsdbgout.o): Depend on $(TARGET_H)
15611 * vmsdbgout.c: Include "target.h".
15613 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
15615 * ChangeLog: Follow spelling conventions.
15616 * ChangeLog.0: Likewise.
15617 * ChangeLog.1: Likewise.
15618 * ChangeLog.2: Likewise.
15619 * ChangeLog.4: Likewise.
15620 * ChangeLog.6: Likewise.
15621 * config.gcc: Likewise.
15622 * dwarfout.c: Likewise.
15623 * reload1.c: Likewise.
15624 * simplify-rtx.c: Likewise.
15625 * unwind-sjlj.c: Likewise.
15626 * config/avr/avr.h: Likewise.
15627 * config/d30v/d30v.h: Likewise.
15628 * config/frv/frv.c: Likewise.
15629 * config/frv/frv.h: Likewise.
15630 * config/ip2k/ip2k.h: Likewise.
15631 * config/m88k/m88k-move.sh: Likewise.
15632 * config/stormy16/stormy16.c: Likewise.
15633 * config/stormy16/stormy16.h: Likewise.
15634 * doc/extend.texi: Likewise.
15635 * doc/interface.texi: Likewise.
15636 * doc/invoke.texi: Likewise.
15637 * doc/md.texi: Likewise.
15638 * doc/rtl.texi: Likewise.
15639 * doc/tm.texi: Likewise.
15640 * doc/trouble.texi: Likewise.
15641 * ginclude/float.h: Likewise.
15642 * treelang/treelang.texi: Likewise.
15644 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15646 * i386-protos.h (i386_pe_dllexport_name_p,
15647 i386_pe_dllimport_name_p, i386_pe_unique_section,
15648 i386_pe_declare_function_type, i386_pe_record_external_function,
15649 i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
15651 * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
15652 * i386/t-interix (winnt.o): Likewise.
15654 * v850-protos.h (v850_output_addr_const_extra): Prototype.
15656 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
15658 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
15659 MIPS ABI CPP macros.
15660 (TARGET_CPU_CPP_BUILTINS): Redefine.
15661 (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
15662 (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
15664 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15666 * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
15668 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
15670 * ChangeLog: Follow spelling conventions.
15671 * ChangeLog.0: Likewise.
15672 * ChangeLog.1: Likewise.
15673 * ChangeLog.2: Likewise.
15674 * ChangeLog.3: Likewise.
15675 * ChangeLog.4: Likewise.
15676 * ChangeLog.5: Likewise.
15677 * ChangeLog.6: Likewise.
15678 * FSFChangeLog.10: Likewise.
15679 * FSFChangeLog.11: Likewise.
15680 * c-common.c: Likewise.
15681 * c-common.h: Likewise.
15682 * c-format.c: Likewise.
15683 * c-opts.c: Likewise.
15684 * cpplib.c: Likewise.
15685 * langhooks.h: Likewise.
15686 * real.c: Likewise.
15687 * reg-stack.c: Likewise.
15688 * toplev.c: Likewise.
15689 * config/arm/arm.c: Likewise.
15690 * config/arm/arm.md: Likewise.
15691 * config/arm/linux-gas.h: Likewise.
15692 * config/arm/netbsd.h: Likewise.
15693 * config/c4x/c4x.c: Likewise.
15694 * config/c4x/c4x.h: Likewise.
15695 * config/c4x/c4x.md: Likewise.
15696 * config/c4x/libgcc.S: Likewise.
15697 * config/fr30/fr30.md: Likewise.
15698 * config/frv/frv.md: Likewise.
15699 * config/ia64/ia64.md: Likewise.
15700 * config/mips/mips.h: Likewise.
15701 * config/mn10300/mn10300.c: Likewise.
15702 * config/stormy16/stormy16.c: Likewise.
15703 * config/v850/v850.md: Likewise.
15704 * doc/extend.texi: Likewise.
15705 * doc/invoke.texi: Likewise.
15706 * doc/md.texi: Likewise.
15708 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
15710 * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
15711 library if -pthread is specified.
15713 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
15715 * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
15716 for --enable-threads=yes and --enable-threads=posix.
15718 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
15720 * config/sparc/cypress.md: Replace Sparc with SPARC.
15721 * config/sparc/freebsd.h: Likewise.
15722 * config/sparc/gmon-sol2.c: Likewise.
15723 * config/sparc/hypersparc.md: Likewise.
15724 * config/sparc/lb1spc.asm: Likewise.
15725 * config/sparc/lb1spl.asm: Likewise.
15726 * config/sparc/linux.h: Likewise.
15727 * config/sparc/linux64.h: Likewise.
15728 * config/sparc/lynx.h: Likewise.
15729 * config/sparc/sol2.h: Likewise.
15730 * config/sparc/sparc-modes.def: Likewise.
15731 * config/sparc/sparc.c: Likewise.
15732 * config/sparc/sparc.h: Likewise.
15733 * config/sparc/sparc.md: Likewise.
15734 * config/sparc/sparclet.md: Likewise.
15735 * config/sparc/supersparc.md: Likewise.
15736 * config/sparc/sysv4.h: Likewise.
15737 * config/sparc/vxsim.h: Likewise.
15738 * config/sparc/vxsparc64.h: Likewise.
15740 2002-09-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15742 * c-lex.c (cb_ident): Mark variable with ATTRIBUTE_UNUSED.
15743 * collect2.c (ignore_library, aix_std_libs): Move into the context
15745 * m68hc11.c (m68hc11_autoinc_compatible_p): Delete prototype.
15746 (autoinc_mode, m68hc11_make_autoinc_notes): Add prototypes.
15747 * m88k.c (output_call): Wrap variables with macro controlling use.
15748 * rs6000.md: Likewise. Const-ify variable.
15749 * sh.h (ASM_OUTPUT_LABELREF): Likewise.
15750 * final.c (only_leaf_regs_used): Likewise.
15751 * regrename.c (maybe_mode_change): Mark parameter with
15753 * reload.c (find_valid_class): Likewise. Likewise for variable.
15754 (find_reloads_address_1): Likewise.
15755 * varasm.c (weak_finish): Wrap variable with macro controlling use.
15757 2002-09-14 Marek Michalkiewicz <marekm@amelek.gda.pl>
15759 * config/avr/avr.c (output.h): Move after inclusion of tree.h.
15761 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
15763 * ChangeLog: Follow spelling conventions.
15764 * ChangeLog.0: Likewise.
15765 * ChangeLog.2: Likewise.
15766 * ChangeLog.3: Likewise.
15767 * ChangeLog.4: Likewise.
15768 * ChangeLog.5: Likewise.
15769 * ChangeLog.6: Likewise.
15770 * cppfiles.c: Likewise.
15771 * cppinit.c: Likewise.
15772 * cpplib.h: Likewise.
15774 * debug.h: Likewise.
15776 * dominance.c: Likewise.
15777 * hashtable.c: Likewise.
15778 * hashtable.h: Likewise.
15779 * loop.c: Likewise.
15780 * config/arm/README-interworking: Likewise.
15781 * config/arm/arm.c: Likewise.
15782 * config/arm/arm.h: Likewise.
15783 * config/arm/arm.md: Likewise.
15784 * config/dsp16xx/dsp16xx.h: Likewise.
15785 * config/frv/frv.c: Likewise.
15786 * config/frv/frv.h: Likewise.
15787 * config/ip2k/ip2k.h: Likewise.
15788 * config/rs6000/rs6000.c: Likewise.
15789 * config/stormy16/stormy-abi: Likewise.
15790 * config/stormy16/stormy16.h: Likewise.
15791 * config/v850/v850.c: Likewise.
15793 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
15795 * loop.c: Fix a comment typo.
15797 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
15799 * config/fr30/fr30.h: Fix comment typos.
15800 * config/frv/frv.c: Likewise.
15801 * config/i386/xmmintrin.h: Likewise.
15802 * config/mips/mips.c: Likewise.
15803 * config/sh/sh.c: Likewise.
15805 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
15807 * haifa-sched.c: Follow spelling conventions.
15808 * regclass.c: Likewise.
15809 * regrename.c: Likewise.
15810 * config/fp-bit.c: Likewise.
15811 * config/frv/frv.h: Likewise.
15812 * config/m88k/m88k.c: Likewise.
15813 * config/mcore/mcore.c: Likewise.
15814 * config/rs6000/darwin.h: Likewise.
15815 * config/rs6000/gnu.h: Likewise.
15816 * config/rs6000/linux.h: Likewise.
15817 * config/rs6000/linux64.h: Likewise.
15818 * config/rs6000/rs6000.c: Likewise.
15819 * config/rs6000/rs6000.h: Likewise.
15820 * config/sh/sh.c: Likewise.
15821 * config/sparc/sparc.c: Likewise.
15822 * config/sparc/ultra1_2.md: Likewise.
15824 2002-09-14 Stephane Carrez <stcarrez@nerim.fr>
15826 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
15827 memory operand when source is 0 (K constraint).
15828 ("movsi_internal"): Likewise.
15829 ("movdf_internal"): Likewise.
15830 ("movsf_internal"): Likewise.
15832 2002-09-14 Alan Modra <amodra@bigpond.net.au>
15834 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
15835 targetm.binds_local_p to set SYMBOL_REF_FLAG.
15836 (rs6000_xcoff_encode_section_info): Likewise.
15837 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15839 2002-09-10 Theodore A. Roth <troth@verinet.com>
15841 * gcc/config/avr/avr.h: Set default options for C++ for avr.
15843 2002-09-13 Roger Sayle <roger@eyesopen.com>
15845 * stmt.c (struct nexting): Remove unused alt_end_label field.
15846 (expand_start_loop): Delete initialization of alt_end_label.
15847 (expand_start_null_loop): Likewise.
15848 (expand_exit_loop_if_false): Delete updating of alt_end_label.
15850 2002-09-13 Richard Henderson <rth@redhat.com>
15852 * Makefile.in (toplev.o): Depend on real.h.
15853 (print-rtl.o, varasm.o, ifcvt.o): Likewise.
15855 2002-09-14 Alan Modra <amodra@bigpond.net.au>
15857 * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
15858 * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
15859 * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
15861 2002-09-13 Nathan Sidwell <nathan@codesourcery.com>
15863 * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
15865 2002-09-13 Steve Ellcey <sje@cup.hp.com>
15867 * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
15868 ia64*-*-linux*): Set extra_parts.
15869 * config/ia64/t-aix (EXTRA_PARTS): Remove.
15870 * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
15872 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
15874 * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
15875 * config/h8300/h8300.c: Likewise.
15876 * config/h8300/h8300.h: Likewise.
15877 * config/h8300/h8300.md: Likewise.
15878 * doc/invoke.texi: Likewise.
15880 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
15882 * config/h8300/h8300.c (h8300_init_once): Fix formatting.
15884 2002-09-13 Richard Henderson <rth@redhat.com>
15886 * config/alpha/alpha.md (attr type): Add callpal.
15887 (imb, trap, load_tp, set_tp): Use it.
15888 * config/alpha/ev4.md (ev4_callpal): New.
15889 * config/alpha/ev5.md (ev5_callpal): New.
15890 * config/alpha/ev6.md (ev6_ibr): Handle callpal.
15891 * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
15892 (alphaev5_insn_pipe): Likewise.
15894 2002-09-13 Andreas Jaeger <aj@suse.de>
15896 * Makefile.in (print-rtl.o): Depend on CONFIG_H.
15898 2002-09-13 Steve Ellcey <sje@cup.hp.com>
15900 * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
15901 LIB2ADDEH): New, set to NULL.
15902 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
15904 2002-09-13 Steve Ellcey <sje@cup.hp.com>
15906 * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
15907 (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
15908 (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
15910 (_U_Qfneg): Remove.
15912 2002-09-13 Dhananjay Deshpande <dhananjayd@kpit.com>
15914 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
15915 for H8/300, H8S aa:8 mode.
15916 (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
15917 * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
15918 for H8/300 aa:8 mode.
15920 2002-09-13 Hartmut Penner <hpenner@de.ibm.com>
15922 * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
15925 2002-09-12 Richard Henderson <rth@redhat.com>
15927 * Makefile.in (HOST_PRINT): Use print-rtl1.o
15928 (print-rtl.o): Don't define GENERATOR_FILE.
15929 (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
15930 * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
15931 unless GENERATOR_FILE.
15933 2002-09-12 Stan Shebs <shebs@apple.com>
15935 * config/darwin.h (USER_LABEL_PREFIX): Define here...
15936 * config/i386/darwin.h: ... instead of here.
15938 * target.h (struct gcc_target): New field
15939 terminate_dw2_eh_frame_info.
15940 * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15941 (TARGET_INITIALIZER): Add it.
15942 * dwarf2out.c (output_call_frame_info): Use target hook.
15943 * dwarf2asm.c (dw2_asm_output_delta): Use macro
15944 ASM_OUTPUT_DWARF_DELTA if defined.
15945 * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
15946 (ASM_OUTPUT_DWARF_DELTA): Ditto.
15947 (ASM_OUTPUT_DWARF_OFFSET): Ditto.
15948 (ASM_OUTPUT_DWARF_PCREL): Ditto.
15949 * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
15950 (powerpc-*-darwin*): Ditto.
15951 * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
15952 to work correctly for Darwin.
15953 * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
15954 (STARTFILE_SPEC): Add crtbegin.o.
15955 (ENDFILE_SPEC): Define.
15956 (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
15957 (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
15958 (ASM_OUTPUT_DWARF_DELTA): Define.
15959 (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15960 * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
15962 2002-09-13 Alan Modra <amodra@bigpond.net.au>
15964 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
15965 nesting. Correct test for non-PowerPC64 ELF ABI_AIX.
15966 * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
15968 2002-09-12 Zack Weinberg <zack@codesourcery.com>
15970 * toplev.c: Move default definition of USER_LABEL_PREFIX...
15971 * defaults.h: ... here.
15973 2002-09-12 Richard Henderson <rth@redhat.com>
15975 * vax.c: Include tree.h earlier.
15977 2002-09-12 Stan Shebs <shebs@apple.com>
15979 * config/darwin.c (machopic_finish): Remove #if 0 chunks.
15980 (machopic_operand_p): Ditto.
15982 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
15984 * config/arm/arm.c (arm_compute_initial_elimination_offset):
15985 Fix a comment typo.
15987 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
15989 * toplev.c (do_abort): Fix a comment typo.
15991 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
15993 * cselib.c: Fix comment formatting.
15994 * gengtype.c: Likewise.
15996 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
15998 * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
15999 (udivmodhi4): Likewise.
16001 2002-09-12 Graham Stott <graham.stott@btinternet.com>
16002 Roger Sayle <roger@eyesopen.com>
16004 * i386.c (any_fp_register_operand, fp_register_operand,
16005 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
16006 New predicate functions.
16007 * i386-protos.h: Add their prototypes.
16008 * i386.h: Add them to PREDICATE_CODES.
16009 * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
16010 "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
16011 "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
16012 "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
16013 "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
16014 "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
16015 "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
16016 "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
16017 "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
16018 "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
16019 "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
16020 Use these new predicates to simplify and correct the use of
16021 FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
16023 2002-09-12 Jason Merrill <jason@redhat.com>
16025 * diagnostic.c (output_add_identifier): New fn.
16026 * diagnostic.h: Declare it.
16028 * calls.c (store_one_arg): Use size_in_bytes to determine the
16029 amount of space to push.
16031 2002-09-12 Jakub Jelinek <jakub@redhat.com>
16033 * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
16035 2002-09-12 Ulrich Weigand <uweigand@de.ibm.com>
16037 * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
16038 * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
16039 (s390_select_ccmode): Likewise.
16040 (s390_branch_condition_mask): Likewise.
16041 (optimization_options): Do not set flag_branch_on_count.
16042 (s390_split_branches): Handle doloop branches.
16043 (s390_chunkify_pool): Likewise.
16044 * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
16045 ("doloop_end"): New expander.
16046 ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
16047 associated splitters): New.
16049 2002-09-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16051 * genattrtab.c (simplify_cond): Remove unused variable(s).
16052 * global.c (record_conflicts): Likewise.
16053 * jump.c (rebuild_jump_labels): Likewise.
16054 * loop.c (scan_loop, check_final_value): Likewise.
16055 * ra-colorize.c (colorize_one_web, assign_colors): Likewise.
16056 * reload1.c (eliminate_regs_in_insn, do_input_reload): Likewise.
16057 * rtlanal.c (reg_set_p): Likewise.
16058 * stmt.c (expand_asm_operands, expand_decl): Likewise.
16059 * genautomata.c (empty_reserv): Remove.
16060 * loop.c (max_luid): Likewise.
16061 * sched-rgn.c (bitlst_table_size): Likewise.
16063 2002-09-11 Nathan Sidwell <nathan@codesourcery.com>
16065 Reimplement gcov format.
16066 * gcov-io.h: Replace.
16067 * gcov.c: Reimplement.
16068 * gcov-iov.c: New file.
16069 * gcov-dump.c: New file.
16070 * libgcc2.c (L_bb): Replace with ...
16071 (L_gcov): ... this.
16072 (struct bb_function_info, struct bb): Remove.
16073 (inhibit_libc): Never inhibit.
16074 (gcov_list, gcov_crc): New static variables.
16075 (gcov_version_mismatch): New static function.
16076 (__bb_exit_func): Renamed to ...
16077 (__gcov_exit): ... here. Made static. Reimplement.
16078 (__gcov_init_func): Rename to ...
16079 (__gcov_init): ... here. Check version, update crc.
16080 (__bb_fork_func): Rename to ...
16081 (__gcov_flush): ... here.
16082 * libgcc2.h (struct bb, __bb_exit_func, __bb_init_func,
16083 __bb_fork_func, gcov_type, __bb_find_arc_counters): Remove.
16084 * calls.c (expand_call): Call __gcov_flush.
16085 * profile.c (bb_file, last_bb_file_name): Remove.
16086 (bbg_file_name): New global variable.
16087 (output_gcov_string): Remove.
16088 (get_exec_counts): Reimplement.
16089 (branch_prob): Reimplement gcov file writing.
16090 (init_branch_prob): Create bbg_file_name, don't create
16092 (end_branch_prob): Adjust. Don't remove counter file when
16093 instrumenting ourselves.
16094 (create_profiler): Adjust.
16095 * doc/gcov.texi (Gcov Data Files): Remove detailed specification,
16096 point to gcov-io.h.
16097 * Makefile.in (LANGUAGES): Add gcov-dump.
16098 (coverageexts): Remove .bb.
16099 (STAGESTUFF): Add gcov-dump.
16100 (LIB2FUNCS_ST): Replace _bb with _gcov.
16101 (profile.o): Depend on gcov-iov.h.
16102 (final.o): Don't depend on profile.h, gcov.h.
16103 (gcov.o): Depend on gcov-iov.h.
16104 (gcov-iov.o): New target.
16105 (gcov-iov): New target.
16106 (gcov-iov.h): New target.
16107 (gcov-dump.o): New target.
16108 (GCOV_DUMP_OBJS): New variable.
16109 (gcov-dump): New target.
16110 (distclean): Remove coverageexts.
16111 (stage1): Remove coverageexts.
16113 2002-09-11 Hartmut Penner <hpenner@de.ibm.com>
16115 * fold-const.c (make_range): Only narrow to signed range if
16116 the signed range is smaller than the unsigned range.
16118 2002-09-12 Alan Modra <amodra@bigpond.net.au>
16120 * emit-rtl.c (set_mem_size): New function.
16121 * expr.h (set_mem_size): Declare.
16122 * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
16123 (expand_block_move): Instead, use adjust_address and
16124 replace_equiv_address to generate proper aliasing info.
16125 Move common code out of conditionals. Localize vars.
16127 2002-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
16129 * optabs.c (expand_binop): Minor cleanup.
16130 (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
16132 2002-09-11 Dan Nicolaescu <dann@ics.uci.edu>
16134 * print-tree.c (print_node): Print the restrict qualifier.
16136 2002-09-11 Janis Johnson <janis187@us.ibm.com>
16138 * doc/install.texi: Fix typos.
16140 2002-09-11 Zack Weinberg <zack@codesourcery.com>
16142 * Makefile.in: Remove all references to s-under and underscore.c.
16143 * collect2.c, tlink.c: Change all uses of prepends_underscore
16144 to look directly at USER_LABEL_PREFIX.
16146 2002-09-11 David Edelsohn <edelsohn@gnu.org>
16148 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
16149 alignment to csect.
16150 (rs6000_xcoff_unique_section): Only set section name for public
16152 (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
16153 * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
16154 duplicate definition.
16156 2002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
16158 * pa.md (extzv): Check predicates before emitting extzv_32.
16161 2002-09-10 Ulrich Weigand <uweigand@de.ibm.com>
16163 * config/s390/s390.h (MOVE_MAX): Define to correct value.
16164 (MAX_MOVE_MAX): Define.
16165 (MOVE_BY_PIECES_P): Define.
16166 (CLEAR_BY_PIECES_P): Define.
16168 2002-09-10 Denis Chertykov <denisc@overta.ru>
16170 * config/avr/avr.md (movstrhi): Use right operands for conversion.
16172 2002-09-10 Richard Earnshaw <rearnsha@arm.com>
16175 * arm.md (insv): Use reg_or_int_operand for operand[3].
16177 2002-09-10 David Edelsohn <edelsohn@gnu.org>
16179 * rs6000.c (rs6000_assemble_visibility): Protect declaration
16180 inside macro. Correct function definition typo.
16181 (rs6000_xcoff_section_type_flags): New function.
16182 (TARGET_SECTION_TYPE_FLAGS): Remove definition.
16183 (rs6000_elf_section_type_flags): Call default_section_type_flags_1
16184 with appropriate PIC test.
16185 (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
16186 determine readonly.
16187 (rs6000_binds_local_p): Combine PIC flags.
16188 * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
16189 * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
16191 2002-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16193 * h8300.md: Fix signed/unsigned warnings.
16194 * mcore.md: Likewise.
16195 * mn10300.c (mask_ok_for_mem_btst): Likewise.
16197 2002-09-09 Per Bothner <per@bothner.com>
16199 * print-tree.c (print_node): In a STRING_CST, escape non-ascii
16200 characters, and only print TREE_STRING_LENGTH chars.
16202 2002-09-09 Steve Ellcey <sje@cup.hp.com>
16204 * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
16205 (ASM_FILE_END) New.
16206 * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
16207 * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
16208 * config/ia64/ia64.c (ia64_asm_output_external): Create list
16209 of external functions if TARGET_HPUX_LD is true.
16210 (ia64_hpux_add_extern_decl): New, routine to put names on
16211 list of external functions.
16212 (ia64_hpux_asm_file_end): Put out declarations for external
16213 functions if and only if they are used.
16215 2002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16217 * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
16218 on TARGET_64BIT before pic register restore.
16220 2002-09-09 David Edelsohn <edelsohn@gnu.org>
16222 * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
16223 (TARGET_HAVE_TLS): New description.
16225 2002-09-09 Janis Johnson <janis187@us.ibm.com>
16227 * doc/extend.texi (Statement Exprs): Fix broken link.
16229 2002-09-09 Denis Chertykov <denisc@overta.ru>
16231 * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
16232 right conversion of operands[1].
16234 2002-09-09 Ulrich Weigand <uweigand@de.ibm.com>
16236 * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
16237 commutative. Use "nonimmediate_operand" instead of "register_operand"
16238 as predicate for operand 0. Move to after the "*tmXX_mem" insns.
16240 ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
16243 ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
16244 mark as commutative. Use "nonimmediate_operand" instead of
16245 "register_operand" as predicate for operand 1.
16247 ("movstrictsi"): Fix typo in insn name.
16249 2002-09-09 Jan Hubicka <jh@suse.cz>
16251 * i386.c (index_register_operand): New.
16252 * i386.h (predicate_codes): Add new predicate.
16253 * i386.md (lea_general_*): Use index_register_operand
16254 (ashift to lea splitter): Do not produce invalid leas
16255 (ashift to mov+ashift split): New.
16257 2002-09-09 Nick Clifton <nickc@redhat.com>
16259 * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
16262 2002-09-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
16263 J"orn Rennecke <joern.rennecke@superh.com>
16265 * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
16267 2002-09-09 Alan Modra <amodra@bigpond.net.au>
16269 * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
16270 (function_ok_for_sibcall): Use binds_local_p. Respect longcall
16273 2002-09-08 Nathan Sidwell <nathan@codesourcery.com>
16275 * basic_block.h (gcov_type): Explain why it is signed.
16276 * final.c: Don't include profile.h.
16277 (struct function_list, functions_head, functions_tail,
16278 end_final): Moved to profile.c
16279 (final): Move arc chaining code to profile.c.
16280 * function.c (prepare_function_start): Remove duplicate line.
16281 * output.h (end_final): Remove prototype.
16282 * predict.c (estimate_loops_at_level): Use gcov_type.
16283 * profile.c (struct function_list, functions_head,
16284 functions_tail): Moved from final.c
16285 (need_func_profiler): Remove.
16286 (instrument_edges): Don't set need_func_profiler.
16287 (get_exec_counts): Avoid signed/unsigned warning.
16288 (compute_checksum): Use crc32.
16289 (branch_prob): Adjust. Chain onto functions_head.
16290 (init_branch_prob): Absorb init_edge_profiler.
16291 (init_edge_profiler): Remove.
16292 (create_profiler): Moved and renamed from final.c:end_final.
16293 Emit data and constructor.
16294 (output_func_start_profiler): Remove.
16295 * profile.h (struct profile_info): checksum is unsigned.
16296 * rtl.h (output_func_start_profiler): Remove prototype.
16297 (create_profiler): Declare.
16298 * toplev.c (compile_file): Call create_profiler, if instrumenting
16299 arcs. Don't call end_final.
16301 2002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16303 * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
16305 2002-09-08 Richard Henderson <rth@redhat.com>
16307 * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
16308 (DW_OP_GNU_push_tls_address): New.
16309 (DW_OP_lo_user): Fix.
16310 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
16311 (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
16312 (size_of_loc_descr): Likewise.
16313 (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
16314 (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
16315 (loc_descriptor_from_tree): Handle TLS variables.
16316 (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
16317 (add_location_or_const_value_attribute): ... not here. Defer
16318 to loc_descriptor_from_tree for TLS variables.
16320 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
16321 * config/i386/i386.c (i386_output_dwarf_dtprel): New.
16322 * config/i386/i386-protos.h: Update.
16324 2002-09-08 Roger Sayle <roger@eyesopen.com>
16326 PR optimization/6405
16327 * unroll.c (loop_iterations): last_loop_insn should be the previous
16328 non-note instruction before loop->end.
16329 * loop.c (strength_reduce): The conditional jump is the last
16330 non-note instruction before loop->end (as above).
16332 2002-09-08 Roger Sayle <roger@eyesopen.com>
16334 * combine.c (try_combine): Handle the case that undobuf.other_insn
16335 has been turned into a return or unconditional jump, by inserting
16336 a BARRIER if necessary.
16337 (simplify_set): Test if a condition code setter has a constant
16338 comparison at compile time, if so convert this insn to a no-op move
16339 and update/simplify the condition code user (undobuf.other_insn).
16341 2002-09-08 Krister Walfridsson <cato@df.lth.se>
16343 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
16344 (CLEAR_INSN_CACHE): Define.
16346 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
16348 * basic-block.h: Fix comment formatting.
16349 * c-common.c: Likewise.
16350 * c-common.h: Likewise.
16351 * c-lex.c: Likewise.
16352 * c-pretty-print.c: Likewise.
16353 * cfglayout.c: Likewise.
16354 * cfgloop.c: Likewise.
16355 * defaults.h: Likewise.
16356 * et-forest.c: Likewise.
16357 * explow.c: Likewise.
16358 * function.h: Likewise.
16359 * gcov.c: Likewise.
16360 * genattrtab.c: Likewise.
16361 * gengtype.c: Likewise.
16362 * ifcvt.c: Likewise.
16363 * libgcc2.c: Likewise.
16364 * loop.c: Likewise.
16365 * profile.c: Likewise.
16366 * ra-build.c: Likewise.
16367 * real.c: Likewise.
16369 * tracer.c: Likewise.
16370 * tree-inline.c: Likewise.
16371 * varasm.c: Likewise.
16373 2002-09-08 Jan Hubicka <jh@suse.cz>
16375 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
16378 * loop.c (loop_givs_reduce): Emit addition after.
16380 2002-09-08 Alan Modra <amodra@bigpond.net.au>
16382 * varasm.c (default_assemble_visibility): Rename from
16383 assemble_visibility.
16384 * output.h: Here too.
16385 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
16386 * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
16388 2002-09-08 Alan Modra <amodra@bigpond.net.au>
16390 * reload.c (find_reloads <p constraint>): Pass operand_mode to
16391 find_reloads_address.
16393 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
16395 * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
16396 (anonymous pattern): Likewise.
16398 2002-09-07 Igor Shevlyakov <igor@microunity.com>
16400 * machmode.def: Add modes for half-float vectors.
16402 2002-09-07 Scott Snyder <snyder@fnal.gov>
16405 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
16407 2002-09-07 Roger Sayle <roger@eyesopen.com>
16409 * basic-block.h (struct loop): Remove unused cont_dominator field.
16411 2002-09-07 Igor Shevlyakov <igor@microunity.com>
16413 * varasm.c (decode_rtx_const): Don't check undefined field for
16416 2002-09-07 Glen Nakamura <glen@imodulo.com>
16419 * sched-deps.c (sched_analyze_insn): Make sure to add insn
16420 to reg_last->sets after flushing the dependency lists to guarantee
16421 that subsequent clobbers will be dependent on it.
16423 2002-09-07 Igor Shevlyakov <igor@microunity.com>
16425 * combine.c (simplify_shift_const): Calculate rotate count
16426 correctly for vector operands.
16428 2002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de>
16430 * c-typeck.c (c_tree_expr_nonnegative_p): New function.
16431 (build_binary_op): Call c_tree_expr_nonnegative_p rather than
16432 tree_expr_nonnegative_p.
16433 (build_conditional_expr): Likewise.
16434 * c-tree.h (c_tree_expr_nonnegative_p): Declare.
16436 2002-09-07 Richard Henderson <rth@redhat.com>
16438 * builtins.def (inf, inff, infl): Mark const.
16439 (huge_val, huge_valf, huge_vall): Likewise.
16440 (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
16442 * real.c (ereal_inf): Clear E before use.
16444 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
16446 * config/h8300/h8300.md (udivmodqi4): Split the pattern into
16447 an expander and an anonymous pattern. Zero out the upper half
16448 of the dividend in the expander.
16449 (udivmodqi4): Likewise.
16451 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
16453 * config/h8300/h8300.c: Fix formatting.
16454 * config/h8300/h8300.h: Likewise.
16455 * config/h8300/h8300.md: Likewise.
16457 2002-09-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16459 * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
16462 2002-09-07 Graham Stott <graham.stott@btinternet.com>
16464 * rtlanal.c (dead_or_set_regno_p): Fix typo.
16466 2002-09-07 Alan Modra <amodra@bigpond.net.au>
16468 * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16470 * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
16471 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
16472 (TARGET_ASM_OUT): Add the above here.
16473 * target.h (struct gcc_target): Add "visibility" field.
16474 * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
16475 * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
16476 (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
16477 (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
16479 2002-09-06 Ziemowit Laski <zlaski@apple.com>
16481 * c-lang.c (objc_is_id): New stub.
16482 * c-tree.h (objc_is_id): New forward declaration.
16483 * c-typeck.c (build_c_cast): Do not strip protocol
16484 qualifiers from 'id' type.
16485 * objc/objc-act.c (objc_comptypes): Correct handling
16486 of protocol qualifiers.
16489 Fri Sep 6 13:10:08 2002 Jeffrey A Law (law@redhat.com)
16491 * pentium.md (pentium-firstvboth): Fix typo.
16493 2002-09-06 Dhananjay Deshpande <dhananjayd@kpit.com>
16495 * h8300.c (enum shift_alg): Move to earlier in h8300.c.
16496 (enum shift_type, enum h8_cpu): Likewise.
16497 (INL, ROT, LOP, SPC macros): Likewise.
16498 (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise. Lose
16500 (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
16501 space efficient algorithms when optimize for codesize.
16503 Fri Sep 6 16:35:32 2002 Nicola Pero <n.pero@mi.flashnet.it>
16505 Fix PR/1727 and long-standing failing testcase
16506 objc/formal-protocol-6.m.
16507 * objc-act.c (build_protocol_expr): If compiling for the GNU
16508 runtime, create a list of Protocol statically allocated instances
16509 if it doesn't exist, then add the Protocol object to this same
16511 (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
16512 instead of TREE_CHAIN.
16514 Fri Sep 6 16:17:33 2002 Nicola Pero <n.pero@mi.flashnet.it>
16516 * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
16517 10k. Fixed category dumping - print out category names with the
16518 proper syntax. Print '@end\n' and not '\n@end' at the end of the
16520 (finish_objc): Fixed the -gen-decls option. It was printing out
16521 only the last class. Dump an interface declaration of all classes
16522 being compiled instead.
16524 2002-09-06 Jason Thorpe <thorpej@wasabisystems.com>
16526 * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
16528 * config/arm/arm.c (arm_gen_return_addr_mask): New function.
16529 * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
16530 if not APCS26 and not Thumb or ARMv4-or-higher. Use gen_int_mode
16531 rather than GEN_INT.
16532 * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
16533 (return_addr_mask, *check_arch2): New.
16535 2002-09-06 Ulrich Weigand <uweigand@de.ibm.com>
16537 * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
16538 "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
16539 "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
16540 "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
16541 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
16542 "adddf3", "*adddf3", "*adddf3_ibm",
16543 "addsf3", "*addsf3", "*addsf3_ibm",
16544 "muldi3", "mulsi3", "mulsidi3",
16545 "muldf3", "*muldf3", "*muldf3_ibm",
16546 "mulsf3", "*mulsf3", "*mulsf3_ibm",
16547 "*anddi3_cc", "*anddi3_cconly", "anddi3",
16548 "*andsi3_cc", "*andsi3_cconly", "andsi3",
16549 "*iordi3_cc", "*iordi3_cconly", "iordi3",
16550 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
16551 "*xordi3_cc", "*xordi3_cconly", "xordi3",
16552 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
16553 instead of "register_operand" as predicate for "%0" operand.
16555 2002-09-06 Jakub Jelinek <jakub@redhat.com>
16557 * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
16558 unconditionally when gcc_cv_as_flags64 checks are gone.
16559 * configure: Rebuilt.
16561 2002-09-06 Alan Modra <amodra@bigpond.net.au>
16563 * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
16564 2002-07-26 change. Comment.
16566 2002-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16568 * frv.c (frv_unique_section, frv_select_section,
16569 frv_select_rtx_section): Delete.
16570 (frv_in_small_data_p): New.
16571 (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
16572 TARGET_ASM_SELECT_RTX_SECTION): Delete.
16573 (TARGET_IN_SMALL_DATA_P): Define.
16575 2002-09-05 Dale Johannesen <dalej@apple.com>
16577 * reload1.c (reload): Retain only those memory clobbers
16578 added for variable-array handling.
16580 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
16582 * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
16583 return-in-memory rules.
16584 * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
16586 2002-09-05 David Edelsohn <edelsohn@gnu.org>
16588 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
16589 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
16591 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
16593 * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
16594 not a compile-time constant for the non-IBM case.
16595 * config/arm/arm-protos.h (arm_float_words_big_endian): New
16597 * config/arm/arm.c (arm_float_words_big_endian): New function.
16598 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
16599 if TARGET_VFP and not TARGET_HARD_FLOAT.
16600 (ARM_FLAG_VFP, TARGET_VFP): Define.
16601 (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
16603 2002-09-05 David Edelsohn <edelsohn@gnu.org>
16605 * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
16606 URLs. Fix AIX wording.
16608 2002-09-05 Stan Shebs <shebs@apple.com>
16610 * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
16611 -fPIC equivalent on Darwin.
16613 Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
16615 * sh.c (sh_expand_builtin): Return early if encountering an
16616 error_mark for a type.
16618 2002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
16620 * config/s390/s390.c (s390_expand_plus_operand): Do not require
16621 double-word scratch register.
16622 config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
16624 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
16625 "*cli"): Replace s_operand by memory_operand.
16626 ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
16628 2002-09-05 Kazu Hirata <kazu@cs.umass.edu>
16630 * config/h8300/h8300.c (asm_file_start): Add a missing
16633 2002-09-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16635 * c-typeck.c (build_function_call): Remove unused variable(s).
16636 (build_c_cast): Likewise.
16637 * calls.c (rtx_for_function_call): Likewise.
16638 * cfglayout.c (duplicate_insn_chain): Likewise.
16639 * cfgloop.c (flow_loop_nodes_find): Likewise.
16640 * cfgrtl.c (split_edge): Likewise.
16641 * df.c (df_ref_create): Likewise.
16642 * except.c (expand_end_catch): Likewise.
16643 * expr.c (emit_push_insn, store_constructor, expand_expr): Likewise.
16644 * function.c (emit_return_into_block): Likewise.
16645 (reposition_prologue_and_epilogue_notes): Likewise.
16646 * gengtype.c (get_file_basename, write_gc_structure_fields): Likewise.
16647 * combine.c (subst_prev_insn, need_refresh): Remove.
16648 * dwarf2out.c (primary_filename): Remove.
16649 * final.c (new_block): Remove.
16650 * gcse.c (orig_bb_count): Remove.
16652 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16654 * dsp16xx-protos.h (dsp16xx_compare_gen): Change to bool.
16655 * dsp16xx.c (dsp16xx_compare_gen): Likewise.
16656 * dsp16xx.md: Treat dsp16xx_compare_gen as a bool. Call functions
16657 directly instead of using a function pointer.
16659 2002-09-04 Krister Walfridsson <cato@df.lth.se>
16661 * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
16662 * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
16663 (ix86_output_addr_diff_elt) Likewise.
16664 (x86_output_mi_thunk) Likewise.
16665 * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
16667 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16669 * frv.c (frv_encode_section_info): Fix error in last change.
16671 2002-09-04 David Edelsohn <edelsohn@gnu.org>
16673 * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
16674 (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
16675 (TARGET_BINDS_LOCAL_P): Define.
16676 (rs6000_override_options): Save original flag_pic value.
16677 (rs6000_elf_select_section): Call default_elf_select_section_1.
16678 (rs6000_elf_unique_section): Call default_unique_section_1.
16679 (rs6000_elf_in_small_data_p): New function.
16680 (rs6000_xcoff_asm_named_section): Determine storage mapping class.
16681 (rs6000_xcoff_select_section): Update based on defaults.
16682 (rs6000_xcoff_unique_section): Set to basic name if not common.
16683 (rs6000_binds_local_p): New function.
16684 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
16685 targetm.have_srodata_section if SDATA_EABI.
16686 (TARGET_IN_SMALL_DATA_P): Define.
16688 2002-09-04 Dale Johannesen <dalej@apple.com>
16690 * varasm.c (struct rtx_const, decode_rtx_const):
16691 Make veclo and vechi fields not share storage.
16693 Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
16695 * loop.c (scan_loop): Don't mark separate insns out of a libcall
16697 (move_movables): Abort if we see the first insn of a libcall.
16699 2002-09-04 Richard Henderson <rth@redhat.com>
16701 * builtin-types.def (BT_FN_FLOAT): New.
16702 (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
16703 * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
16704 BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
16705 * builtins.c (fold_builtin_inf): New.
16706 (fold_builtin): Call it.
16707 * real.c (ereal_inf): New.
16708 * real.h: Declare it.
16709 * doc/extend.texi: Document new builtins.
16711 2002-09-04 Richard Henderson <rth@redhat.com>
16713 * cse.c (cse_insn): Avoid subreg games if the equivalence
16714 is already in the proper mode.
16716 2002-09-04 Eric Botcazou <ebotcazou@multimania.com>
16719 * optabs.c (expand_binop): Convert CONST_INTs in all cases.
16721 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16723 * pa.md (setccfp0, setccfp1): New patterns.
16725 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16727 * frv-protos.h (frv_init_builtins, frv_expand_builtin,
16728 frv_select_section, frv_select_rtx_section,
16729 frv_encode_section_info, frv_unique_section): Delete.
16730 * frv.c: Update for target hooks.
16731 * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
16732 SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
16733 EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
16735 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16737 * ip2k-protos.h (function_prologue, function_epilogue,
16738 encode_section_info): Update to match target hook specification.
16739 * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
16740 (function_prologue, function_epilogue, encode_section_info):
16741 Update to match target hook specification.
16742 * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
16743 ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
16744 (NOTICE_UPDATE_CC): Cast to void.
16745 * ip2k.md: Add defaults in switch statements.
16747 2002-09-04 Janis Johnson <janis187@us.ibm.com>
16749 * doc/trouble.texi (Interoperation): Update information about C++ ABI
16752 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
16754 * config/sparc/t-netbsd64: Disable multilib for now.
16756 2002-09-04 David Edelsohn <edelsohn@gnu.org>
16758 * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
16759 * target.h (gcc_target): Add have_srodata_section member.
16760 * varasm.c (section_category): Add SECCAT_SRODATA.
16761 (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
16762 READONLY_SDATA_SECTION defined.
16763 (decl_readonly_section_1): True for SECCAT_SRODATA also.
16764 (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
16765 (default_unique_section_1): Likewise.
16767 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16769 * expr.c (emit_group_load): Revise to allow splitting TCmode source
16770 into DImode pieces.
16772 * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
16773 * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
16774 for floating-point register class.
16775 * pa.c (function_arg): Fix handling of modes wider than one word for
16778 Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
16780 * combine.c (make_compound_operation): Don't generate zero / sign
16781 extensions in floating point modes.
16783 2002-09-04 Janis Johnson <janis187@us.ibm.com>
16785 * doc/c-tree.texi: Fix overfull hboxes.
16786 * doc/cppopts.texi: Ditto.
16787 * doc/extend.texi: Ditto.
16788 * doc/gty.texi: Ditto.
16789 * doc/invoke.texi: Ditto.
16790 * doc/makefile.texi: Ditto.
16791 * doc/rtl.texi: Ditto.
16792 * doc/standards.texi: Ditto.
16793 * doc/tm.texi: Ditto.
16795 2002-09-04 Richard Henderson <rth@redhat.com>
16797 * c-common.c (builtin_define_with_hex_fp_value): New.
16798 (builtin_define_float_constants): Use it. Fix H_FLOAT mant_dig.
16800 2002-09-04 Janis Johnson <janis187@us.ibm.com>
16802 * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
16803 (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
16804 -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
16805 Warn that these options can break ABI compatibility.
16807 2002-09-04 Richard Henderson <rth@redhat.com>
16809 * real.c (ereal_to_decimal): Add digits parameter.
16810 * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
16811 * c-pretty-print.c (pp_c_real_literal): Update call.
16812 * print-rtl.c (print_rtx): Likewise.
16813 * print-tree.c (print_node_brief, print_node): Likewise.
16814 * sched-vis.c (print_value): Likewise.
16815 * config/arc/arc.c (arc_print_operand): Likewise.
16816 * config/c4x/c4x.c (c4x_print_operand): Likewise.
16817 * config/i370/i370.h (PRINT_OPERAND): Likewise.
16818 * config/i386/i386.c (print_operand): Likewise.
16819 * config/i960/i960.c (i960_print_operand): Likewise.
16820 * config/ip2k/ip2k.c (asm_output_float): Likewise.
16821 * config/m32r/m32r.c (m32r_print_operand): Likewise.
16822 * config/m68hc11/m68hc11.c (print_operand): Likewise.
16823 * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
16824 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
16825 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
16826 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
16827 * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
16828 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
16829 * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
16830 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
16831 * config/mips/mips.c (print_operand): Likewise.
16832 * config/ns32k/ns32k.c (print_operand): Likewise.
16833 * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
16834 * config/vax/vax.h (PRINT_OPERAND): Likewise.
16835 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
16837 2002-09-04 Bob Wilson <bob.wilson@acm.org>
16839 * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
16840 xtensa_multibss_section_type_flags.
16841 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
16843 2002-09-04 Richard Henderson <rth@redhat.com>
16845 * doc/install-old.texi: Don't mention enquire.
16846 * doc/sourcebuild.texi: Update float.h description.
16848 Wed Sep 4 11:22:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
16850 * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
16852 2002-09-03 Roger Sayle <roger@eyesopen.com>
16854 * builtins.c (build_function_call_expr): Remove prototype, export
16855 as non-static and add a comment above function definition.
16856 (builtin_mathfn_code): New function to check for math builtins.
16857 (fold_builtin): Optimize sqrt(0.0) as 0.0, sqrt(1.0) as 1.0,
16858 exp(0.0) as 1.0, and log(1.0) as 0.0. Optimize exp(log(x)) and
16859 log(exp(x)) as x. Optimize sqrt(exp(x)) as exp(x/2.0) and
16860 log(sqrt(x)) as log(x)/2.0.
16862 * tree.h: Prototype build_function_call_expr and builtin_mathfn_code
16863 in new "builtins.c" section. Place the build_range_type prototype
16864 with the other prototypes from "tree.c".
16866 * fold-const.c (fold) [ABS_EXPR]: Fold fabs(sqrt(x)) as sqrt(x)
16867 and fabs(exp(x)) as exp(x). [MULT_EXPR]: Fold sqrt(x)*sqrt(y)
16868 as sqrt(x*y) and exp(x)*exp(y) as exp(x+y). [RDIV_EXPR]: Fold
16869 x/exp(y) as x*exp(-y).
16871 2002-09-03 David Edelsohn <edelsohn@gnu.org>
16873 * varasm.c (default_section_type_flags): Append _1 to name with
16874 shlib parameter. Use original name to call new function with
16876 (decl_readonly_section): Likewise.
16877 (default_elf_select_section): Likewise.
16878 (default_unique_section): Likewise.
16879 (default_bind_local_p): Likewise.
16880 (categorize_decl_for_section): Add shlib parameter to use in place
16881 of implicit flag_pic.
16882 * output.h: Declare new functions with _1 and shlib argument.
16884 2002-09-03 Janis Johnson <janis187@us.ibm.com>
16886 * doc/install.texi: Fix typos, formatting problems, and obvious
16887 overfull/underfull boxes.
16889 * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
16890 * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
16891 include its file, compat.texi.
16892 * doc/compat.texi: New file with new chapter, Binary Compatibility.
16894 2002-09-03 Neil Booth <neil@daikokuya.co.uk>
16896 Debian BTS Bug #157416
16897 * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
16898 * cpplib.c (destringize_and_run): Kludge around getting
16899 tokens from in-progress macros.
16900 (_cpp_do__Pragma): Simplify.
16902 2002-09-03 Steve Ellcey <sje@cup.hp.com>
16904 * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
16905 (CPP_CPU_SPEC): Remove.
16906 (TARGET_CPU_CPP_BUILTINS): New.
16907 * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
16908 (CPP_SPEC): Remove.
16909 (TARGET_OS_CPP_BUILTINS): New.
16910 * config/ia64/linux.h (CPP_PREDEFINES): Remove.
16911 (TARGET_OS_CPP_BUILTINS): New.
16912 * config/ia64/aix.h (CPP_SPEC): Move some stuff to
16913 TARGET_OS_CPP_BUILTINS.
16914 (CPP_PREDEFINES): Remove.
16915 (CPLUSPLUS_CPP_SPEC): Remove.
16916 (TARGET_OS_CPP_BUILTINS): New.
16918 2002-09-03 Richard Henderson <rth@redhat.com>
16920 * Makefile.in (USER_H): Add ginclude/float.h.
16922 (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
16923 (mostlyclean): Don't remove float.h intermediate files.
16924 (distclean): Don't remove float.h.
16925 * config.gcc: Remove all float_format references.
16926 * configure.in (float_format, float_h_file): Remove.
16928 * c-common.c: Include tree-inline.h.
16929 (builtin_define_with_int_value): New.
16930 (builtin_define_type_precision): Use it.
16931 (builtin_define_float_constants): New.
16932 (cb_register_builtins): Use it. Define __FLT_RADIX__ and
16933 __FLT_EVAL_METHOD__.
16934 * defaults.h (TARGET_FLT_EVAL_METHOD): New.
16935 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
16936 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
16937 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
16938 (TARGET_FLT_EVAL_METHOD): New.
16940 * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
16941 config/float-i386.h, config/float-i64.h, config/float-m68k.h,
16942 config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
16943 * ginclude/float.h: New.
16945 2002-09-03 Stan Shebs <shebs@apple.com>
16947 * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
16948 (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
16949 (PREFERRED_DEBUGGING_TYPE): Ditto.
16950 (ASM_OUTPUT_IDENT): Remove empty definition.
16952 2002-09-03 Steve Ellcey <sje@cup.hp.com>
16954 * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
16956 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
16957 handling routine for builtin pragma.
16958 * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
16959 Registered pragma handling routine.
16960 * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
16961 (ia64_hpux_add_pragma_builtin) New subroutine used by above.
16962 If builtin pragma seen for math routine and C89 conformance is
16963 requested use different math function in order to set errno.
16964 * t-ia64 (ia64-c.o): Add new rule for new file.
16966 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
16968 * config/s390/s390.md ("movti"): Add Q->Q alternative.
16969 ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
16970 "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
16972 ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
16973 "*movsf_ss"): Remove.
16975 2002-09-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16977 * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
16980 2002-09-03 Arati Dikey <aratid@kpit.com>
16982 * h8300.c (asm_file_start): Corrected optimization comment.
16984 2002-09-03 Stan Shebs <shebs@apple.com>
16986 * c-lang.c (recognize_objc_keyword): Remove, no longer used.
16987 * c-tree.h (recognize_objc_keyword): Remove decl.
16988 * c-typeck.c (comp_target_types): Update a comment.
16990 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
16992 * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
16993 and register validity checks.
16994 (general_s_operand): Adapt to s390_decompose_address interface change.
16995 (q_constraint): Likewise.
16996 (s390_expand_plus_operand): Likewise.
16997 (legitimiate_address_p): Likewise.
16998 (legitimate_la_operand_p): Likewise.
16999 (legitimize_la_operand): Likewise.
17000 (print_operand_address): Likewise.
17001 (print_operand): Likewise.
17003 Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it>
17006 * objc/objc-act.c (build_typed_selector_reference): Fix typo which
17007 was causing the new selector never to match the existing ones
17008 (Patch by Alexander Malmberg <alexander@malmberg.org>).
17010 2002-09-03 Graham Stott <graham.stott@btinternet.com>
17012 * config/i386/i386.md ("femms"): Add "memory" attr "none".
17014 2002-09-03 Graham Stott <graham.stott@btinternet.com>
17016 * expr.c (expand_expr): Remove extraneous comment and code.
17018 2002-09-02 Nathan Sidwell <nathan@codesourcery.com>
17020 * stor-layout (finish_builtin_struct): Renamed and moved from c++
17021 frontend. Take chain of fields. Allow NULL alignment type.
17022 * tree.h (finish_builtin_struct): Declare.
17024 2002-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17026 * config/alpha/alpha.c config/alpha/alpha.h config/alpha/alpha.md
17027 config/alpha/elf.h config/alpha/unicosmk.h config/alpha/vms.h
17028 config/arc/arc.c config/arc/arc.h config/arm/aout.h
17029 config/arm/arm.c config/arm/arm.h config/arm/arm.md
17030 config/avr/avr.h config/d30v/d30v.h config/dbxcoff.h
17031 config/dbxelf.h config/elfos.h config/fr30/fr30.h config/frv/frv.h
17032 config/i386/i386.c config/i386/i386.md config/i386/sco5.h
17033 config/ia64/ia64.h config/ip2k/ip2k.h config/m68hc11/m68hc11.md
17034 config/m68k/hp320.h config/m68k/m68k.c config/m68k/m68k.md
17035 config/m68k/mot3300.h config/m68k/sgs.h config/m68k/tower-as.h
17036 config/m88k/m88k.c config/m88k/m88k.h config/mcore/mcore-pe.h
17037 config/mcore/mcore.c config/mips/mips.c config/mips/mips.h
17038 config/ns32k/ns32k.md config/pa/pa-linux.h config/pa/pa.c
17039 config/pa/pa.h config/pa/pa.md config/romp/romp.h
17040 config/rs6000/linux64.h config/rs6000/lynx.h
17041 config/rs6000/rs6000.c config/rs6000/sysv4.h config/rs6000/xcoff.h
17042 config/s390/s390.c config/s390/s390.md config/sh/sh.c
17043 config/sparc/sparc.c config/sparc/sysv4.h
17044 config/stormy16/stormy16.h dbxout.c defaults.h dwarf2out.c
17045 dwarfout.c except.c final.c varasm.c vmsdbgout.c: Replace
17046 ASM_OUTPUT_INTERNAL_LABEL macro with a call to the target hook.
17048 * doc/tm.texi: Update docs.
17049 * default.h (ASM_OUTPUT_INTERNAL_LABEL): Don't define.
17050 * system.h (ASM_OUTPUT_INTERNAL_LABEL): Poison.
17052 2002-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17054 * Makefile.in (sdbout.o, insn-output.o): Depend on $(TARGET_H).
17055 * arc.c (arc_internal_label): New function.
17056 (TARGET_ASM_INTERNAL_LABEL): Set.
17057 * arc.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17058 * arm.c (arm_internal_label): New function.
17059 (TARGET_ASM_INTERNAL_LABEL): Set.
17060 * arm.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17061 * arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17062 * i370.c (i370_internal_label): New function.
17063 (TARGET_ASM_INTERNAL_LABEL): Set.
17064 * i370.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17065 * m68k/hp320.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17066 * m68k.c (m68k_hp320_internal_label): New function.
17067 (TARGET_ASM_INTERNAL_LABEL): Set.
17068 * m88k.c (m88k_internal_label): New function.
17069 (TARGET_ASM_INTERNAL_LABEL): Set.
17070 * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17071 * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Set to target hook.
17072 * genoutput.c (output_prologue): Include target.h in output file.
17073 * output.h (default_internal_label): Declare.
17074 * sdbout.c: Include target.h.
17075 * target-def.h (TARGET_ASM_INTERNAL_LABEL): Set and add to
17077 * target.h (internal_label): Add to struct gcc_target.
17078 * varasm.c (default_internal_label): New function.
17080 2002-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17082 * alpha.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
17083 * avr.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17084 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17085 * cris.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17086 * d30v.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17087 * darwin.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17088 * dsp16xx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17089 * elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17090 * h8300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17091 * i386/att.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17092 * i386/bsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17093 * i386/i386-coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17094 * i386/lynx-ng.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17095 * i386/lynx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17096 * i386/sco5.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17097 * i960/i960.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17098 * m68k/3b1.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17099 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17100 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17101 * m68k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17102 * m68k/mot3300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17103 * m68k/tower-as.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17104 * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17105 * mcore.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17106 * mips.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17107 * mmix-protos.h (mmix_asm_output_internal_label): Likewise.
17108 * mmix.c (mmix_asm_output_internal_label): Likewise.
17109 * mmix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17110 * ns32k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17111 * pa.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17112 * pdp11.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17113 * romp.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17114 * rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17115 * sh/coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17116 * sh/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17117 * sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17118 * sparc/linux.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17119 * sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17120 * sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17121 * sparc/pbd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17122 * sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17123 * sparc.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17124 * sparc/vxsim.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17125 * stormy16.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17126 * svr3.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17127 * vax.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17129 * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Define.
17131 2002-08-31 Richard Henderson <rth@redhat.com>
17133 * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
17135 2002-08-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
17137 * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
17139 2002-08-30 Richard Henderson <rth@redhat.com>
17142 * c-objc-common.c: Include target.h.
17143 (c_cannot_inline_tree_fn): Don't auto-inline functions that
17144 don't bind locally. Factor setting DECL_UNINLINABLE.
17145 * Makefile.in (c-objc-common.o): Update.
17147 2002-08-30 Janis Johnson <janis187@us.ibm.com>
17149 * doc/install.texi (Configuration, Building): Fix a typo and
17150 some formatting directives.
17152 2002-08-30 Paul Koning <pkoning@equallogic.com>
17154 * doc/c-tree.texi (RDIV_EXPR): Fix typo.
17155 * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
17157 * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
17158 for alphabetic order.
17159 * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
17160 VAX_FLOAT_FORMAT. Remove reference to HOST_FLOAT_FORMAT.
17161 (VAX_HALFWORD_ORDER): Document.
17162 (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
17164 (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
17165 (ASM_OUTPUT_LABEL_REF): Fix font.
17166 (CASE_VECTOR_SHORTEN_MODE): Ditto.
17168 2002-08-30 Denis Chertykov <denisc@overta.ru>
17170 * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
17172 (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
17173 CONST_DOUBLE constants.
17175 2002-08-30 Jason Thorpe <thorpej@wasabisystems.com>
17177 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
17178 related defines to...
17179 (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
17180 * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
17183 2002-08-30 Krister Walfridsson <cato@df.lth.se>
17185 * config/arm/arm.c (arm_asm_output_labelref): New function.
17186 * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
17187 * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
17189 2002-08-29 Rodney Brown <rbrown64@csc.com.au>
17191 * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
17192 memory exhausted" workarounds.
17194 2002-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
17196 * diagnostic.c (fancy_abort): Don't repeat "internal error".
17197 * toplev.c (crash_signal): Likewise.
17199 Fri Aug 30 00:33:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
17201 * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
17202 * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
17203 Extended, updated documentation.
17204 (-Wundeclared-selector): Documented.
17206 2002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
17208 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
17209 the value 1. Do not undef before defining.
17210 * config/darwin.h: Likewise.
17211 * config/dbx.h: Likewise.
17212 * config/dbxcoff.h: Likewise.
17213 * config/dbxelf.h: Likewise.
17214 * config/elfos.h: Likewise.
17215 * config/interix.h: Likewise.
17216 * config/lynx-ng.h: Likewise.
17217 * config/lynx.h: Likewise.
17218 * config/netware.h: Likewise.
17219 * config/psos.h: Likewise.
17220 * config/svr3.h: Likewise.
17221 * config/alpha/alpha.h: Likewise.
17222 * config/alpha/elf.h: Likewise.
17223 * config/alpha/vms.h: Likewise.
17224 * config/arc/arc.h: Likewise.
17225 * config/arm/aout.h: Likewise.
17226 * config/arm/coff.h: Likewise.
17227 * config/c4x/c4x.h: Likewise.
17228 * config/h8300/h8300.h: Likewise.
17229 * config/i386/cygwin.h: Likewise.
17230 * config/i386/djgpp.h: Likewise.
17231 * config/i386/gas.h: Likewise.
17232 * config/i386/gstabs.h: Likewise.
17233 * config/i386/i386-coff.h: Likewise.
17234 * config/i386/i386-interix.h: Likewise.
17235 * config/i386/sco5.h: Likewise.
17236 * config/i386/svr3dbx.h: Likewise.
17237 * config/i386/sysv3.h: Likewise.
17238 * config/i386/win32.h: Likewise.
17239 * config/i386/x86-64.h: Likewise.
17240 * config/i960/i960.h: Likewise.
17241 * config/ia64/ia64.h: Likewise.
17242 * config/ip2k/ip2k.h: Likewise.
17243 * config/m32r/m32r.h: Likewise.
17244 * config/m68k/3b1.h: Likewise.
17245 * config/m68k/3b1g.h: Likewise.
17246 * config/m68k/ccur-GAS.h: Likewise.
17247 * config/m68k/coff.h: Likewise.
17248 * config/m68k/hp2bsd.h: Likewise.
17249 * config/m68k/hp310g.h: Likewise.
17250 * config/m68k/hp320g.h: Likewise.
17251 * config/m68k/hp3bsd.h: Likewise.
17252 * config/m68k/hp3bsd44.h: Likewise.
17253 * config/m68k/linux-aout.h: Likewise.
17254 * config/m68k/m68k-aout.h: Likewise.
17255 * config/m68k/mot3300.h: Likewise.
17256 * config/m68k/netbsd.h: Likewise.
17257 * config/m68k/openbsd.h: Likewise.
17258 * config/m68k/pbb.h: Likewise.
17259 * config/m68k/plexus.h: Likewise.
17260 * config/m68k/sun2.h: Likewise.
17261 * config/m68k/sun3.h: Likewise.
17262 * config/m68k/tower-as.h: Likewise.
17263 * config/m68k/vxm68k.h: Likewise.
17264 * config/m88k/aout-dbx.h: Likewise.
17265 * config/m88k/m88k-aout.h: Likewise.
17266 * config/mcore/mcore-elf.h: Likewise.
17267 * config/mcore/mcore-pe.h: Likewise.
17268 * config/mips/elf.h: Likewise.
17269 * config/mips/elf64.h: Likewise.
17270 * config/mips/iris5gas.h: Likewise.
17271 * config/mips/iris6.h: Likewise.
17272 * config/mips/mips.h: Likewise.
17273 * config/mips/sni-gas.h: Likewise.
17274 * config/mmix/mmix.h: Likewise.
17275 * config/ns32k/netbsd.h: Likewise.
17276 * config/pa/pa64-hpux.h: Likewise.
17277 * config/romp/romp.h: Likewise.
17278 * config/rs6000/sysv4.h: Likewise.
17279 * config/rs6000/xcoff.h: Likewise.
17280 * config/sh/coff.h: Likewise.
17281 * config/sh/elf.h: Likewise.
17282 * config/sparc/linux64.h: Likewise.
17283 * config/sparc/liteelf.h: Likewise.
17284 * config/sparc/netbsd.h: Likewise.
17285 * config/sparc/openbsd.h: Likewise.
17286 * config/sparc/pbd.h: Likewise.
17287 * config/sparc/sp64-elf.h: Likewise.
17288 * config/sparc/sp86x-elf.h: Likewise.
17289 * config/sparc/sparc.h: Likewise.
17290 * config/vax/vax.h: Likewise.
17291 * config/vax/vaxv.h: Likewise.
17293 2002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
17295 * h8300.c (shift_alg_hi): Various tweaks to improve performance
17297 (get_shift_alg): Corresponding changes.
17299 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
17301 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
17303 2002-08-29 Richard Henderson <rth@redhat.com>
17305 * expr.h (enum block_op_methods): New.
17306 (emit_block_move): Update prototype.
17307 * expr.c (block_move_libcall_safe_for_call_parm): New.
17308 (emit_block_move_via_loop): New.
17309 (emit_block_move): Use them. New argument METHOD.
17310 (emit_push_insn): Always respect the given alignment.
17311 (expand_assignment): Update call to emit_block_move.
17312 (store_expr, store_field, expand_expr): Likewise.
17313 * builtins.c (expand_builtin_apply): Likewise.
17314 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
17315 * function.c (expand_function_end): Likewise.
17316 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
17317 * config/sparc/sparc.c (sparc_va_arg): Likewise.
17318 * calls.c (expand_call, emit_library_call_value_1): Likewise.
17319 (save_fixed_argument_area): Use emit_block_move with
17320 BLOCK_OP_CALL_PARM instead of move_by_pieces.
17321 (restore_fixed_argument_area): Likewise.
17322 (store_one_arg): Fix alignment parameter to emit_push_insn.
17324 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
17326 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
17328 2002-08-29 Catherine Moore <clm@redhat.com>
17330 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
17331 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
17332 (PREDICATE_CODES): Include new predicates.
17333 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
17334 (TARGET_SWITCHES): Add strict-align.
17335 (TARGET_STRICT_ALIGN): New.
17336 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
17337 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
17339 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
17341 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
17342 L_callt_save_r2_r31, L_return_r2_r31,
17343 L_save_all_interrupt): Change addi to add.
17344 (L_save_interrupt, L_return_interrupt): Rework.
17345 (__return_r31): Correct .size directive.
17346 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
17347 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
17349 * config/v850/v850.c (expand_prologue): Call
17350 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
17351 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
17352 (reg_or_int9_operand): New predicate.
17353 (reg_or_const_operand): New routine.
17354 * config/v850/v850.md (return_interrupt): Changed from
17356 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
17357 (callt_save_interrupt): Change save sequence.
17358 (callt_return_interrupt): New.
17359 (save_interrupt): Don't use runtime function for LONG_CALLS
17360 and TARGET_PROLOG_FUNCTION.
17361 (save_all_interrupt): Likewise.
17362 (mulsi3): Use new predicate.
17363 (moviscc): Disallow some combination of constants.
17364 Fix define_split for sasf insns, so that it will not generate bad
17365 code if operand0 and operand5 are the same.
17366 * config/v850/v850-protos.h: Prototype new predicates.
17368 2002-08-29 Zack Weinberg <zack@codesourcery.com>
17370 * config/rs6000/rs6000.c (processor_target_table): Add 405f.
17371 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Likewise.
17373 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
17375 * c-common.c (builtin_define_type_precision): New function.
17376 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
17377 wchar_t is unsigned in C++.
17378 * doc/cpp.texi (Common Predefined Macros): Document
17379 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
17380 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
17381 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
17383 2002-08-28 Sylvain Pion <pion@cs.nyu.edu>
17385 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
17386 section. Mention that it is enabled by -Wall.
17387 (-Wall): Mention that there can be language-specific warnings as well.
17388 (-Wctor-dtor-privacy): Mention that it is enabled by default.
17389 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
17391 Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
17393 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
17394 if it is ever live.
17396 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
17397 attribute for SHCOMPACT.
17399 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
17401 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
17404 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
17406 2002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
17408 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
17409 "MASK_GAS|MASK_ABICALLS".
17410 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
17411 (TARGET_DEFAULT): Remove.
17412 (MACHINE_TYPE): Undefine before defining.
17413 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
17415 2002-08-27 Mark Mitchell <mark@codesourcery.com>
17417 * c-common.c (warn_abi): New variable.
17418 * c-common.h (warn_abi): Likewise.
17419 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
17420 (c_common_decode_option): Handle it.
17421 * doc/invoke.texi: Document -Wabi.
17423 Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
17425 * c-common.c (warn_undeclared_selector): New variable.
17426 * c-common.h (warn_undeclared_selector): Idem.
17427 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
17428 to on when -Wundeclared-selector is found.
17429 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
17430 * objc/objc-act.c (build_selector_expr): If
17431 warn_undeclared_selector is set, check that the selector has
17432 already been defined, and emit a warning if not.
17434 2002-08-27 Nick Clifton <nickc@redhat.com>
17435 Catherine Moore <clm@redhat.com>
17436 Jim Wilson <wilson@cygnus.com>
17438 * config.gcc: Add v850e-*-* target.
17439 Add --with-cpu= support for v850.
17440 * config/v850/lib1funcs.asm: Add v850e callt functions.
17441 * config/v850/v850.h: Add support for v850e target.
17442 * config/v850/v850.c: Add functions to support v850e target.
17443 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
17444 * config/v850/v850.md: Add patterns for v850e instructions.
17445 * doc/invoke.texi: Document new v850e command line switches.
17447 Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
17448 Aldy Hernandez <aldyh at redhat dot com>
17450 * doc/tm.texi: Applied numerous fixes to the automaton based
17451 scheduler descrition.
17453 Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
17455 * i386.c (classify_argument): Handle variable sized objects.
17457 Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
17459 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
17461 Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
17463 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
17465 Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
17467 * i386.c (classify_argument): Properly compute word size of the analyzed object.
17469 Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
17471 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
17472 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
17474 (attribute insn_class): Provide default definitions based on type.
17475 Remove all insn-specific settings.
17476 (various function units): Remove old SH4 scheduling.
17477 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
17478 New attributes. Set them where appropriate.
17479 (cpu unit FS): Don't define / use.
17480 (F3, load_store): New cpu units.
17481 (F01): New reservation.
17482 (all insn_reservations): Make dependent on sh4 pipeline model.
17484 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
17485 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
17486 (mt insn_reservation): Use type mt_group.
17487 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
17488 sh4_fload and sh4_store.
17489 (insn_reservation branch_zero and branch): Replace with sh4_branch.
17490 (insn_reservation branch_far): Replace with sh4_return.
17491 (insn_reservation return_from_exp): Rename to:
17492 (sh4_return_from_exp). Change to be just d_lock*5.
17493 (insn_reservation lds_to_pr): Rename to:
17494 (sh4_lds_to_pr). Change to be just d_lock*2.
17495 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
17497 (insn_reservation prload_mem): Rename to:
17498 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
17499 (insn_reservation fpscr_store): Rename to:
17500 (fpscr_load). Change to d_lock,nothing,F1*3.
17501 (insn_reservation fpscr_store_mem): Rename to:
17502 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
17503 (insn_reservation multi): Change to
17504 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
17505 (insn_reservation fp_arith): Change to issue,F01,F2.
17506 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
17507 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
17508 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
17509 (insn_reservation fp_double_cmp): Change to
17510 d_lock,(d_lock+F01),F1+F2,F2.
17511 (insn_reservation dp_div): Change to
17512 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
17513 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
17514 (sh_adjust_cost, SHcompact): Differentiate between different
17515 kinds of dependencies. Drop factor of ten for superscalar.
17516 Use new instruction types. Add new exception rules.
17518 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
17520 * sh.md (mperm_w): Add DONE.
17522 2002-08-27 David Edelsohn <edelsohn@gnu.org>
17524 * longlong.h: Import current PowerPC defintion from GMP-4.1.
17526 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
17528 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
17530 Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
17532 * sh.h (MAX_FIXED_MODE_SIZE): Define.
17534 2002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
17536 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
17539 2002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
17541 * c-common.c (cpp_define_data_format): New function.
17542 (cb_register_builtins): Call it.
17544 * doc/cpp.texi (Common Predefined Macros): Document
17545 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
17546 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
17547 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
17548 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
17549 __TARGET_USES_VAX_H_FLOAT__.
17551 2002-08-26 Ziemowit Laski <zlaski@apple.com>
17553 * objc/objc-act.c (get_super_receiver): If inside a class method
17554 of a category, cast the receiver to 'id' before accessing the 'isa'
17555 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
17557 2002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
17559 * config/s390/s390-protos.h (s390_function_prologue,
17560 s390_function_epilogue): Remove.
17561 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
17562 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
17564 config/s390/s390.c (s390_machine_dependent_recorg): New function.
17565 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
17566 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
17567 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
17568 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
17570 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
17571 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
17572 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
17573 function is not a leaf function. Use save_gprs and restore_gprs.
17574 (s390_emit_epilogue): Likewise.
17575 (save_gprs, restore_gprs): New functions.
17576 (struct s390_frame): Remove return_reg_saved_p member.
17577 (save_fprs_p): Remove.
17578 (s390_optimize_prolog): New function.
17579 (s390_legitimate_reload_constant): Remove now unnecessary check.
17581 (s390_function_count): Remove.
17582 (s390_output_symbolic_const): Replace s390_function_count by
17583 current_function_funcdef_no.
17584 (s390_output_constant_pool): Likewise.
17586 (legitimize_pic_address): Use regs_ever_live to track PIC register
17587 instead of current_function_uses_pic_offset_table.
17588 (s390_emit_prologue): Likewise.
17589 config/s390/s390.md ("call", "call_value"): Likewise.
17591 2002-08-26 Neil Booth <neil@daikokuya.co.uk>
17593 * c-opts.c (find_opt): Don't complain about wrong languages
17594 here. Return exact matches even for wrong language.
17595 (c_common_decode_option): Complain about wrong languages
17598 2002-08-24 Stuart Hastings <stuart@apple.com>
17600 * function.h (struct function): Add flag
17601 all_throwers_are_sibcalls.
17602 * except.c (set_nothrow_function_flags): Replaces
17603 nothrow_function_p. Set new flag.
17604 * except.h (set_nothrow_function_flags): Replaces
17605 nothrow_function_p.
17606 * dwarf2out.c (struct dw_fde_struct): Add flag
17607 all_throwers_are_sibcalls.
17608 (output_call_frame_info): Test it.
17609 (dwarf2out_begin_prologue) Propagate it from cfun to
17611 * toplev.c (rest_of_compilation): Update calls to
17612 nothrow_function_p.
17614 2002-08-23 Zack Weinberg <zack@codesourcery.com>
17616 * ggc-page.c (compute_inverse): Short circuit calculation for
17617 object sizes larger than half a page.
17619 2002-08-23 David Edelsohn <edelsohn@gnu.org>
17621 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
17622 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
17624 (rs6000_elf_unique_section): Likewise.
17626 2002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17628 * ns32k.c (ns32k_globalize_label): Delete.
17629 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
17631 2002-08-23 Alan Modra <amodra@bigpond.net.au>
17633 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
17634 for loading delta with num_insns_constant_wide. Calculate
17635 delta_low, delta_high without using a conditional.
17637 2002-08-22 Jason Merrill <jason@redhat.com>
17639 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
17640 * c-common.def: Adjust.
17641 * c-dump.c (c_dump_tree): Adjust.
17642 * c-semantics.c (genrtl_return_stmt): Adjust.
17643 * c-pretty-print.c (pp_c_statement): Adjust.
17644 * tree-inline.c (copy_body_r): Adjust.
17646 2002-08-22 Zack Weinberg <zack@codesourcery.com>
17648 * ggc-page.c: Avoid division in ggc_set_mark.
17649 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
17650 compute_inverse): New.
17651 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
17652 (init_ggc): Initialize inverse_table.
17654 2002-08-22 Tom Tromey <tromey@redhat.com>
17656 * doc/install.texi (Configuration): Document --datadir.
17658 2002-08-22 Alexandre Oliva <aoliva@redhat.com>
17660 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
17662 2002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
17664 * gengtype-lex.l (ID): Allow underscore as first character.
17666 2002-08-21 David Edelsohn <edelsohn@gnu.org>
17668 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
17670 (rs6000_xcoff_asm_named_section): Rename.
17671 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
17673 2002-08-21 Tom Tromey <tromey@redhat.com>
17675 For PR java/6005 and PR java/7611:
17676 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
17678 * langhooks.c (lhd_can_use_bit_fields_p): New function.
17679 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
17680 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
17681 (LANG_HOOKS_INITIALIZER): Use it.
17682 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
17685 2002-08-21 Stan Shebs <shebs@apple.com>
17687 * tree.c (finish_vector_type): Fix a typo in a comment.
17688 * Makefile.in: Fix "the the" stutters in comments.
17689 * genautomata.c: Ditto.
17691 * regrename.c: Ditto.
17692 * config/alpha/alpha.c: Ditto.
17693 * config/alpha/vms-crt0-64.c: Ditto.
17694 * config/alpha/vms-crt0.c: Ditto.
17695 * config/alpha/vms-psxcrt0-64.c: Ditto.
17696 * config/alpha/vms-psxcrt0.c: Ditto.
17697 * config/d30v/d30v.h: Ditto.
17698 * config/fr30/fr30.h: Ditto.
17699 * config/rs6000/rs6000.c: Ditto.
17700 * config/stormy16/stormy16.h: Ditto.
17701 * doc/md.texi: Ditto.
17703 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17705 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
17707 2002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
17709 * c-decl.c (grokdeclarator): Make invalid combinations with long,
17710 short, signed or unsigned into hard errors. Fixes PR c/4319.
17711 Also make duplicate modifiers such as "short short" into hard
17714 2002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
17715 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17717 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
17718 to the actual end. Add '@end table' and '@table @code'.
17720 2002-08-20 Geoffrey Keating <geoffk@redhat.com>
17722 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
17724 * unroll.c (biv_total_increment): Don't try to compute the total
17725 increment for FP BIVs.
17727 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17729 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
17730 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
17731 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17732 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
17733 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
17734 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
17735 (GLOBAL_ASM_OP): Define.
17736 * arm.c (aof_globalize_label): New function.
17737 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
17738 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17739 * c4x.c (c4x_globalize_label): New function.
17740 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
17741 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
17742 (GLOBAL_ASM_OP): Define.
17743 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
17744 * darwin-protos.h (darwin_globalize_label): Declare.
17745 * darwin.c (darwin_globalize_label): New function.
17746 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
17747 (ASM_GLOBALIZE_LABEL): Delete.
17748 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
17749 * dsp16xx.c (asm_output_common): Use target hook.
17750 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
17751 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
17752 (GLOBAL_ASM_OP): Define.
17753 * i370.c (i370_globalize_label): New function.
17754 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
17755 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
17756 * i386.c (ix86_asm_file_end): Use target hook.
17757 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
17758 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
17759 * ia64.c (ia64_asm_output_external): Likewise.
17760 * ia64/sysv4.h: Update comment.
17761 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17762 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17763 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
17764 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17765 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
17766 * mmix-protos.h (mmix_asm_globalize_label): Delete.
17767 * mmix.c (mmix_asm_globalize_label): Likewise.
17768 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
17769 (GLOBAL_ASM_OP): Define.
17770 * ns32k.c (ns32k_globalize_label): New function.
17771 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
17772 (ASM_GLOBALIZE_LABEL): Delete.
17773 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
17774 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
17775 * pa.c (pa_globalize_label): New function.
17776 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
17777 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
17778 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
17779 (GLOBAL_ASM_OP): Define.
17780 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
17781 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17782 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
17783 (GLOBAL_ASM_OP): Define.
17784 * v850.c (v850_output_aligned_bss): Use target hook.
17785 * vax.c (vms_globalize_label): New function.
17786 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
17787 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
17788 (GLOBAL_ASM_OP): Define.
17789 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
17790 * doc/tm.texi: Update docs.
17791 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
17793 * final.c (output_alternate_entry_point): Likewise.
17794 * hooks.c (hook_FILEptr_constcharptr_void): New function.
17795 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
17796 * output.h (assemble_global): Delete.
17797 (default_globalize_label): Declare.
17798 * system.h (ASM_GLOBALIZE_LABEL): Poison.
17799 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
17800 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
17801 * target.h (gcc_target): Add globalize_label member.
17802 * varasm.c (asm_output_bss, asm_output_aligned_bss,
17803 globalize_decl): Use target hook.
17804 (assemble_global): Delete.
17805 (default_globalize_label): New function.
17807 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17809 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
17811 2002-08-20 Devang Patel <dpatel@apple.com>
17812 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
17814 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17816 * arc.c (output_shift): Use stdio instead of asm_fprintf.
17817 * arm.c (thumb_output_function_prologue): Likewise.
17818 * avr.c (print_operand): Likewise.
17819 * c4x.c (c4x_print_operand): Likewise.
17820 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
17821 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
17822 * cris.c (cris_target_asm_function_prologue,
17823 cris_asm_output_mi_thunk): Likewise.
17824 * h8300.c (print_operand): Likewise.
17825 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17826 * ip2k.c (print_operand): Likewise. Fix format specifier.
17827 * m68hc11.c (asm_print_register, print_operand,
17828 print_operand_address): Use stdio instead of asm_fprintf.
17829 (print_operand_address): Fix format specifier.
17830 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
17831 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
17833 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17834 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17835 * m68k.c (m68k_output_function_prologue,
17836 m68k_output_function_epilogue, print_operand): Likewise.
17837 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
17838 Likewise. Fix format specifier.
17839 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17840 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17841 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17843 2002-08-15 Eric Christopher <echristo@redhat.com>
17844 Jeff Knaggs <jknaggs@redhat.com>
17846 * config.gcc (mipsisa64sr71k-elf): New target.
17847 * config/mips/sr71k.md: New file.
17848 * config/mips/mips.md: Use it.
17849 (rot*): Add sr71k specifics.
17850 * config/mips/t-sr71k: New file.
17851 * config/mips/mips.h (sr71k): New cpu.
17852 (TARGET_SR71K): Use it.
17853 (TUNE_SR71K): Ditto.
17854 (GENERATE_BRANCHLIKELY): Ditto.
17855 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
17856 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
17857 * config/mips/mips.c (sr71k): New cpu.
17858 (mips_use_dfa_pipeline_interface): Use.
17860 2002-08-15 Eric Christopher <echristo@redhat.com>
17861 Richard Sandiford <rsandifo@redhat.com>
17862 Aldy Hernandez <aldyh@redhat.com>
17863 Graham Stott <grahams@redhat.com>
17864 Michael Meissner <meissner@redhat.com>
17865 Gavin Romig-Koch <gavin@redhat.com>
17866 Ken Raeburn <raeburn@cygnus.com>
17867 Alexandre Oliva <aoliva@redhat.com>
17869 * config.gcc (mips64vr-elf): New target.
17870 * config/mips/5400.md: New file.
17871 * config/mips/5500.md: Ditto.
17872 * config/mips/mips.md: Use them.
17874 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
17876 (mips_issue_rate): Use them.
17877 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
17878 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
17879 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
17881 (TARGET_MIPSx): Use them.
17882 (TUNE_MIPSx): Ditto.
17883 (GETNATE_MULT3_SI): Ditto.
17884 (ISA_HAS_BRANCHLIKELY): Ditto.
17885 (ISA_HAS_CONDMOVE): Ditto.
17886 (ISA_HAS_NMADD_NMSUB): Ditto.
17887 (ISA_HAS_MULHI): New. Ditto.
17888 (ISA_HAS_MULS): Ditto.
17889 (ISA_HAS_MSAC): Ditto.
17890 (ISA_HAS_MACC): Ditto.
17891 (ISA_HAS_ROTR_SI): Ditto.
17892 (ISA_HAS_ROTR_DI): Ditto.
17895 2002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
17897 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
17899 (remove_dup_nonsys_dirs): New function.
17900 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
17901 (merge_include_chains): Remove non-system include directories from
17902 quote and bracket include chains when they duplicate equivalent system
17904 * doc/cpp.texi (-I): Update.
17905 * doc/cppopts.texi (-I): Update.
17906 * doc/install.texi (--with-local-prefix): Further document usage of
17908 * doc/invoke.texi (-I): Update.
17910 2002-08-20 Richard Henderson <rth@redhat.com>
17912 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
17913 (emit_block_move): Split out subroutines.
17914 (emit_block_move_via_movstr): New.
17915 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
17916 (emit_block_move_libcall_fn): New. Construct function prototype for
17918 (clear_storage): Split out subroutines.
17919 (clear_storage_via_clrstr): New.
17920 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
17921 (clear_storage_libcall_fn): New. Construct function prototype for
17923 (emit_push_insn): Use emit_block_move.
17924 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
17925 (store_constructor): Likewise.
17927 2002-08-19 Ziemowit Laski <zlaski@apple.com>
17929 * objc/objc-act.c (building_objc_message_expr): Rename to
17930 current_objc_message_selector.
17932 2002-08-19 Ziemowit Laski <zlaski@apple.com>
17934 * objc/objc-act.c (build_ivar_chain): Remove.
17935 (objc_copy_list): Likewise.
17936 (get_class_ivars): Inline call to removed build_ivar_chain
17937 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
17938 slot; use that slot (rather than CLASS_IVARS) when accessing
17939 ivars for base classes. Call copy_list and chainon instead of
17941 (build_private_template): Call get_class_ivars instead of
17943 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
17944 (continue_class): Call get_class_ivars instead of
17946 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
17947 of DECL_BIT_FIELD (which may have been cleared).
17948 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
17950 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17952 * genautomata.c (output_translate_vect, output_state_ainsn_table,
17953 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
17955 (output_internal_min_issue_delay_func): Initialize variable in
17958 2002-08-19 Alexandre Oliva <aoliva@redhat.com>
17960 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
17961 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
17963 2002-08-19 Geoffrey Keating <geoffk@redhat.com>
17964 Steve Ellcey <sje@cup.hp.com>
17966 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
17967 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
17968 * explow.c (trunc_int_for_mode): Abort when the mode is not
17969 a scaler integer mode.
17970 * combine.c (expand_compound_operation): Don't expand Vector
17971 or Complex modes into shifts.
17972 (expand_field_assignment): Don't do bitwise arithmatic and
17973 shifts on Vector or Complex modes.
17974 (simplify_comparison): Don't call trunc_int_for_mode
17976 * recog.c (general_operand): Likewise.
17977 (immediate_operand): Likewise.
17978 (nonmemory_operand): Likewise.
17980 2002-08-19 David Edelsohn <edelsohn@gnu.org>
17982 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
17983 multi-instruction SImode constant. Add REG_EQUAL note.
17984 * config/rs6000/rs6000.md (movsi splitter): Use
17985 rs6000_emit_set_const.
17987 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17989 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
17990 the macro test controlling its use.
17992 2002-08-18 H.J. Lu (hjl@gnu.org)
17994 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
17995 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
17997 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
17998 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
17999 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
18000 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
18002 (cris-*-linux*): Remove setting thread_file here.
18004 2002-08-18 Neil Booth <neil@daikokuya.co.uk>
18006 PR preprocessor/7602
18007 * cppinit.c (path_include): Treat the system environment
18008 variables as being cxx_aware.
18010 2002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
18012 * c-decl.c (flexible_array_type_p): New function.
18013 (grokdeclarator, finish_struct): Use it.
18014 * doc/extend.texi: Document constraints on use of structures with
18015 flexible array members.
18017 2002-08-17 Richard Sandiford <rsandifo@redhat.com>
18019 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
18020 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
18021 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
18023 2002-08-16 Stan Shebs <shebs@apple.com>
18025 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
18026 for ObjC with -fnext-runtime.
18027 * doc/cpp.texi: Document it.
18029 2002-08-16 Janis Johnson <janis187@us.ibm.com>
18031 * doc/install.texi (Final installation): Replace links to individual
18032 build status pages with a link to a common page that lists them all.
18034 2002-08-16 Sylvain Pion <pion@cs.nyu.edu>
18036 * doc/invoke.texi: Fix typo.
18038 2002-08-16 David Edelsohn <edelsohn@gnu.org>
18040 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
18042 2002-08-16 Andrew Haley <aph@redhat.com>
18044 * tree-inline.c: Add includes for Java inliner.
18045 (remap_decl): Don't handle anonymous types for Java.
18046 (remap_block): Add handling for Java trees.
18047 (copy_scope_stmt): Conditionalize for non-Java use only.
18048 (copy_body_r): Handle Java trees. Add handling for
18049 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
18050 (initialize_inlined_parameters): Handle Java trees.
18051 (declare_return_variable): Likewise.
18052 (expand_call_inline): Handle Java trees.
18053 (walk_tree): Likewise.
18054 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
18055 (add_stmt_to_compound): New function.
18057 2002-08-15 Richard Henderson <rth@redhat.com>
18059 * Makefile.in (LOOSE_WARN): Remove -fno-common.
18060 (NOCOMMON_FLAG): New substitution point.
18061 (GCC_WARN_CFLAGS): Include it.
18062 * configure.in (ac_checking): Set nocommon_flag.
18063 (nocommon_flag): New substitution point.
18065 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
18067 * c-tree.h (skip_evaluation): Move declaration...
18068 * c-common.h: ... here.
18069 * c-typeck.c (build_external_ref): Don't assemble_external nor
18070 mark a tree as used if skip_evaluation is set.
18071 * c-parse.in (typeof): New non-terminal to set skip_evaluation
18073 (typespec_nonreserved_nonattr): Use it.
18075 2002-08-15 Douglas B Rupp <rupp@gnat.com>
18077 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
18078 (xcoff_debug_hooks): Update end_prologue.
18079 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
18080 * debug.h (end_prologue): Add file arg.
18081 (end_epilogue): Add line and file args.
18082 (dwarf2out_end_epilogue): Add line and file args.
18083 (vmsdbgout_after_prologue): Remove.
18084 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
18085 (dwarf2_debug_hooks): Update end_prologue.
18086 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
18087 (dwarfout_end_prologue): Add file arg.
18088 * final.c (vmsdbgout_after_prologue): Remove
18089 (final_end_function): Update end_epilogue call.
18090 (final_scan_insn): Update end_prologue call.
18091 * sdbout.c (sdbout_end_epilogue): Add line and file args.
18092 (sdbout_end_prologue): Add file arg.
18093 (sdb_debug_hooks): Update end_prologue.
18094 (sdb_begin_prologue): Update sdbout_end_prologue call.
18095 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
18096 vmsdbgout_end_function.
18097 (vmsdbgout_end_prologue): New function renamed from
18098 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
18099 (vmsdbgout_end_function): New function.
18100 (vmsdbgout_end_epilogue): Add line and file args. Call
18101 vmsdbgout_source_line.
18102 (write_pclines): Write only valid line numbers.
18103 (write_srccorr): Don't write source correlation records if 0 lines.
18104 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
18106 2002-08-15 Steve Ellcey <sje@cup.hp.com>
18108 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
18109 (_Unwind_Internal_Ptr): 32 bit version for use in
18110 read_encoded_value_with_base.
18111 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
18112 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
18115 2002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18117 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
18118 signed/unsigned warnings.
18120 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
18121 record_reg_classes): Likewise.
18123 * reload.c (reload_inner_reg_of_subreg, push_reload,
18124 find_reloads_address_1): Likewise.
18126 2002-08-15 David Edelsohn <edelsohn@gnu.org>
18128 * rs6000.c (output_mi_thunk): Return to function section on
18131 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
18133 2002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
18135 * config/s390/s390.c (legitimize_address): Optimize loading
18136 of large displacements.
18138 2002-08-14 Douglas B Rupp <rupp@gnat.com>
18140 * config/alpha/alpha-protos.h: Update.
18142 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
18143 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
18144 (alpha_linkage_symbol_p): New static function.
18145 (print_operand_address): Print linkage operand.
18147 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
18149 (reloc_kind): New enum.
18150 (struct alpha_funcs): New struct.
18151 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
18153 (alpha_need_linkage): Rewrite.
18154 (alpha_use_linkage): New global function.
18155 (alpha_write_linkage): Rewrite and make static.
18156 (alpha_write_one_linkage): Rewrite
18158 (alpha_start_function): Remove procedure descriptor output.
18159 (alpha_end_function): Write linkages at end of each function.
18161 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
18162 (call_vms_1, call_value_vms_1): Rewrite.
18164 * config/alpha/vms.h (ASM_FILE_END): Remove.
18166 2002-08-14 Richard Henderson <rth@redhat.com>
18168 * ggc-page.c (RTL_SIZE): New.
18169 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
18170 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
18172 2002-08-14 Richard Henderson <rth@redhat.com>
18174 * calls.c: Include target.h.
18175 * Makefile.in (calls.o): Update.
18177 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
18178 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
18180 2002-08-14 Richard Henderson <rth@redhat.com>
18182 * Makefile.in (LOOSE_WARN): Add -fno-common.
18183 * c-common.h (constant_string_class_name): Add missing extern.
18185 2002-08-15 Neil Booth <neil@daikokuya.co.uk>
18187 PR preprocessor/7358
18188 * c-opts.c (check_deps_environment_vars): Ignore main file
18189 for SUNPRO_DEPENDENCIES.
18190 * cppfiles.c (stack_include_file): Ignore main file if
18192 * cpplib.h (struct cpp_options): New member in deps.
18193 * doc/cppenv.texi: Update.
18195 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
18197 PR preprocessor/7526
18198 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
18200 2002-08-14 Nathan Sidwell <nathan@codesourcery.com>
18202 * doc/invoke.texi (-a): Remove documentation.
18203 (-fprofile-arcs): Remove reference to -a, -ax options.
18204 * doc/gcov.texi (Gcov Data Files): Data might be merged.
18206 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
18209 * c-semantics.c (genrtl_case_label): Don't (mis)use
18212 2002-08-14 Dale Johannesen <dalej@apple.com>
18214 * explow.c (emit_stack_restore): Emit memory clobbers
18215 preceding the stack pop, to prevent the scheduler from
18216 moving refs to variable arrays below this pop.
18217 * reload1.c (reload): Preserve these clobbers for sched2.
18218 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
18220 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
18222 * c-opts.c (c_common_post_options): Correct test.
18224 2002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18226 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
18227 order in call to fprintf.
18229 2002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18231 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
18233 2002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
18235 * reload.c (find_reloads): Handle constraint letters marked by
18236 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
18237 (alternative_allows_memconst): Likewise.
18238 * reload1.c (maybe_fix_stack_asms): Likewise.
18239 * recog.c (asm_operand_ok, preprocess_constraints,
18240 constrain_operands): Likewise.
18241 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
18242 * local-alloc.c (block_alloc, requires_inout): Likewise.
18243 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18245 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
18246 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
18247 * doc/tm.texi: Document these two new target macros.
18249 * config/s390/s390.c (s390_expand_plus_operand): Accept already
18251 (q_constraint): New function.
18252 config/s390/s390-protos.h (q_constraint): Declare it.
18253 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
18254 (EXTRA_MEMORY_CONSTRAINT): New macro.
18256 * config/s390/s390.md: Throughout the machine description,
18257 replace all instances of the constraint combinations 'Qo'
18258 or 'oQ' with simply 'Q'.
18260 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
18262 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
18263 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
18264 (LIBGCC2_CFLAGS): Compile with -mrelax.
18266 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
18268 * doc/invoke.texi: Document -minmax for 68HC12.
18270 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
18271 ("uminqi3"): Likewise.
18272 ("uminhi3", "umaxhi3"): Likewise.
18274 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
18275 (TARGET_MIN_MAX): Define.
18276 (TARGET_SWITCHES): New option -minmax/-mnominmax.
18278 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
18280 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
18281 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
18283 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
18284 (ret, declare, farsym): New gas macros.
18285 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
18286 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
18287 and declare the symbol far when compiled with -mlong-calls.
18288 (__far_trampoline): New for 68HC12 trampoline code to invoke a
18289 far handler using jsr/bsr.
18291 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
18292 (jsr): New macro to transform a 'jsr' into a 'call'.
18294 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
18296 * doc/invoke.texi: Document -mlong-calls for 68HC12.
18298 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
18299 -mlong-calls is specified.
18300 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
18301 assembler directives.
18302 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
18303 (TARGET_SWITCHES): Add -mlong-calls options.
18304 (current_function_far): Declare.
18306 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
18307 into account the page register saved on the stack.
18308 (m68hc11_override_options): Take into account -mlong-calls option.
18309 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
18311 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
18312 if the function is going to be in 68HC12 banked memory (-mlong-calls).
18313 ("*return_16bit"): Likewise.
18314 ("*return_void"): Likewise.
18315 ("call", "call_value"): Use call for a far function call.
18317 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
18319 * toplev.c (parse_options_and_default_flags): Don't call
18321 (general_init): Initialize GC, pools and tree hash here,
18322 instead of lang_independent_init.
18323 (lang_independent_init): Rename backend_init.
18324 (do_compile): Call post_options hook; exit early if there
18325 have been errors after switch processing.
18326 (toplev_main): Update.
18328 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
18330 * c-pretty-print.h: Guard against multiple inclusion.
18332 (pp_c_attributes): Declare.
18333 * c-pretty-print.c (pp_c_attributes): New function.
18335 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18337 * m68k.c (m68k_output_function_prologue,
18338 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
18340 * genattrtab.c: Remove dpx2 comment.
18341 * libgcc2.c (__enable_execute_stack): Delete versions for
18342 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
18343 sony_news/SYSTYPE_BSD.
18344 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
18345 __gmicro__, __i860__, __NeXT__ and __pyr__.
18346 * rtl.h: Remove convex comment.
18347 * varasm.c: Likewise.
18349 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18351 * c-opts.c (lang_flags): Const-ify.
18352 * ra-build.c (undef_table): Likewise.
18353 * ra.c (eliminables): Likewise.
18355 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
18357 * tree.h: Guard against multiple inclusion.
18359 2002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
18361 * reload1.c (reload_cse_simplify): Before checking
18362 REG_FUNCTION_VALUE_P, check REG_P.
18364 2002-08-13 Geoffrey Keating <geoffk@redhat.com>
18366 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
18368 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
18370 * c-opts.c (c_common_init_options): Extra braces needed.
18372 Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
18374 * sh.c (sh_init_builtins): Add PARAMS to declaration.
18375 (sh_media_init_builtins, sh_expand_builtin): Likewise.
18376 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
18377 (sh_expand_binop_v2sf): Likewise.
18378 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
18379 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
18380 (sh_initialize_trampoline): Likewise.
18382 2002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
18384 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
18385 new condition code modes.
18386 s390.c (s390_match_ccmode_set): Handle those new CC modes.
18387 (s390_select_ccmode): Likewise.
18388 (s390_branch_condition_mask): Likewise.
18390 * s390-protos.h (s390_tm_ccmode): Declare.
18391 s390.c (s390_tm_ccmode): New function.
18392 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
18394 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
18395 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
18396 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
18398 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
18399 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
18400 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
18401 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
18402 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
18404 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
18405 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
18406 "*cmpqi_ccs_0"): Remove, replace by ...
18407 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
18408 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
18409 "*tstqi", "*tstqi_cconly"): ... these new patterns.
18411 ("*cmpsidi_ccs"): Remove, replace by ...
18412 ("*cmpsi_ccs_sign"): ... this new pattern.
18413 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
18415 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
18416 ("*cli"): ... this new pattern.
18418 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
18419 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
18421 ("adddi3_64"): Rename to "*adddi3_64".
18422 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
18423 ("adddi3"): Adapt expander.
18425 ("*addsi3_cc"): Allow "general_operand" for operand 2.
18426 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
18427 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
18429 ("addhi3", "addqi3"): Remove, replace by ...
18430 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
18432 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
18433 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
18434 ("subdi3"): Replace by insn and splitter "*subdi3_31".
18435 ("subdi3"): New expander.
18437 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
18439 ("subhi3", "subqi3"): Remove, replace by ...
18440 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
18442 ("*muldi3_sign"): New pattern.
18443 ("muldi3"): Do not clobber CC.
18444 ("mulsi3"): Likewise.
18445 ("mulsi_6432"): Likewise.
18447 2002-08-13 Denis Chertykov <denisc@overta.ru>
18449 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
18450 which can change CC0.
18452 Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
18454 * gcse.c (adjust_libcall_notes): New function.
18455 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
18457 2002-08-13 Nathan Sidwell <nathan@codesourcery.com>
18459 * libgcc2.c (L_bb): Remove unneeded #includes.
18460 (__global_counters, __gthreads_active): Remove unused globals.
18461 (__bb_exit_func): Merge counts into files rather than appending.
18462 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
18463 (ALL_CFLAGS): ... to here.
18465 2002-08-13 Denis Chertykov <denisc@overta.ru>
18467 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
18468 (function_epilogue): Don't calculate function size.
18469 (ip2k_set_compare): Don't use lookup_const_double.
18470 (asm_file_start): Initialization of commands_in_file removed.
18471 (asm_file_end): Output of commands_in_file removed.
18473 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
18476 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
18478 * c-opts.c (c_common_init_options): Check option array is
18479 sorted if checking enabled.
18481 2002-08-13 Gabriel Dos Reis <gdr@nerim.net>
18483 * c-pretty-print.c: #include "c-tree.h".
18484 (pp_c_simple_type_specifier): Tweak.
18485 (pp_c_storage_class_specifier): New.
18486 (pp_c_function_specifier): Likewise.
18487 (pp_c_declaration_specifiers): Likewise.
18488 (pp_c_init_declarator): Likewise.
18489 (pp_c_declaration): Likewise.
18490 (pp_c_direct_declarator): Stub.
18491 (pp_c_declarator): Likewise.
18492 (pp_c_parameter_declaration): Likewise.
18494 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
18496 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
18497 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
18498 struct deferred_opt): New.
18499 (COMMAND_LINE_OPTIONS): Add -M*.
18500 (missing_arg): Update.
18501 (c_common_decode_option): Handle -M*.
18502 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
18503 don't call cpp_post_options.
18504 (c_common_finish, check_deps_environment_vars): Update.
18505 * cppfiles.c (stack_include_file, handle_missing_header): Update.
18506 * cpphash.h (CPP_PRINT_DEPS): Remove.
18507 * cppinit.c: Don't include version.h.
18508 (cpp_create_reader): Don't call deps_init. Initialize
18510 (cpp_read_main_file): Init deps if necessary.
18511 (cpp_destroy): Conditionally free deps.
18512 (cpp_finish): Update.
18514 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
18515 (cpp_post_options): Rename post_options.
18516 * cpplib.h (struct cpp_options): Remove some dependency options;
18517 move others to a new structure.
18518 (cpp_post_options): Remove.
18519 (cpp_finish): Comment.
18520 * fix-header.c (read_scan_file): Don't call cpp_post_options.
18522 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
18524 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
18525 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
18526 MMIX_rR_REGNUM as clobbered.
18527 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
18529 2002-08-12 Gabriel Dos Reis <gdr@nerim.net>
18531 * diagnostic.h (output_formatted_scalar): Rename from
18532 output_formatted_integer.
18533 * diagnostic.def: Add DK_DEBUG.
18534 * diagnostic.c (output_decimal): Adjust.
18535 (output_long_decimal): Likewise.
18536 (output_unsigned_decimal): Likewise.
18537 (output_octal): Likewise.
18538 (output_long_octal): Likewise.
18539 (output_hexadecimal): Likewise.
18540 (output_long_hexadecimal): Likewise.
18541 * c-pretty-print.c (pp_c_type_specifier): New function.
18542 (pp_c_specifier_qualifier_list): Likewise.
18543 (pp_c_abstract_declarator): Likewise.
18544 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
18546 2002-08-12 David Edelsohn <edelsohn@gnu.org>
18548 * doc/trouble.texi (Disappointments): Add static constructor and
18549 destructor dependency information for AIX.
18551 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
18553 * cpphash.h (struct printer): New from cppmain.c.
18554 (cpp_reader): New member.
18555 * cppmain.c (struct printer): Move to cpphash.h.
18556 (options, print): Remove.
18557 (account_for_newlines, print_line, maybe_print_line,
18558 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
18559 scan_translation_unit_trad, cb_line_change, cb_ident,
18560 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
18561 cb_def_pragma): Make reentrant.
18563 2002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18565 * real.c (ieee_64): Always define.
18566 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
18567 (dec_h): Not used yet, hide it.
18568 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
18569 macro controlling use.
18570 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
18572 Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
18574 * i386.md (tablejump): Sign extend the operand.
18575 * i386.c (classify_argument): Fix missed case from previous patch.
18577 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
18579 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
18581 (warn_multichar): Die.
18582 (cb_register_builtins): Export.
18583 * c-common.h (warn_multichar, preprocess_file): Remove.
18584 (cb_register_builtins): New.
18585 * c-lang.c (c_init): Remove.
18586 (LANG_HOOKS_INIT): Use c_objc_common_init.
18587 * c-lex.c (init_c_lex): Don't canonicalize filename.
18588 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
18589 (preprocess_file): Make static. Update for cpplib.
18590 (c_common_decode_option): Remove warn_multichar. Use in_fname.
18591 (c_common_post_options): Set some cpp options here.
18592 (c_common_init): Move from c-common.c.
18593 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
18594 * cpplib.h (struct cpp_options): Remove in_fname.
18595 (cpp_preprocess_file): Update.
18596 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
18598 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18600 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
18602 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18604 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
18605 backslash in comment preceeding macro definition.
18606 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
18607 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
18608 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
18610 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
18612 * expr.c (store_expr): In condition for checking if value is
18613 generated in TARGET, move call to expr_size last.
18615 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
18617 * c-common.c (c_common_init): Call preprocess_file instead.
18618 (c_common_finish): Move to c-opts.c.
18619 * c-common.h (preprocess_file): new.
18620 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
18621 check_deps_environment_vars, c_common_finish): New.
18622 (c_common_decode_option): Update for out_fname and dependencies.
18623 * cppinit.c (init_dependency_output, output_deps): Remove.
18624 (cpp_destroy): Update prototype.
18625 (cpp_add_dependency_target): New.
18626 (cpp_read_main_file): Don't overlay a buffer.
18627 (cpp_finish): Take a deps output stream and write deps to it.
18628 Return the error count.
18629 (cpp_post_options): Don't canonicalize out_fname, or do anything
18631 * cpplib.h (struct cpp_options): Remove out_fname and
18633 (cpp_add_dependency_target): New.
18634 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
18635 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
18636 set preprocess_only. Don't handle the output stream directly.
18638 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18640 * dsp16xx.c (print_operand): Fix format specifier.
18641 * dsp16xx.md: Avoid automatic aggregate initialization.
18642 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
18643 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
18644 integer constant modifier.
18645 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
18646 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
18648 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
18649 * v850.c (v850_select_section): Mark parameter with
18651 * global.c (global_alloc): Const-ify.
18652 * ra-colorize.c (hardregset_to_string): Fix format specifier.
18654 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18656 * darwin-c.c (darwin_pragma_options): Const-ify.
18657 * darwin.c (machopic_non_lazy_ptr_name,
18658 machopic_validate_stub_or_non_lazy_ptr): Likewise.
18659 (machopic_indirect_data_reference): Wrap variables in macros
18660 controlling their use.
18661 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
18662 (machopic_select_section): Use parentheses around && within ||.
18663 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
18665 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18667 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
18668 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
18669 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
18670 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
18671 mdr_try_remove_redundant_insns, track_w_reload,
18672 mdr_try_wreg_elim): Make function static to match prototype.
18673 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
18674 parameter with ATTRIBUTE_UNUSED.
18676 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18678 * arc.c (arc_init): Don't use ISO C style function definitions.
18679 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
18680 arm_get_strip_length, arm_strip_name_encoding): Likewise.
18681 * avr.h (progmem_section): Likewise.
18682 * h8300.c h8300_asm_insn_count): Likewise.
18683 * m32r.c (init_idents): Likewise.
18684 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
18685 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
18686 * xtensa.c (xtensa_build_va_list): Likewise.
18688 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
18690 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
18691 * c-opts.c (parse_option): Rename find_opt.
18692 (set_std_c99): New function.
18693 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
18694 (missing_arg): Remove OPT_std_bad. Handle -o.
18695 (c_common_decode_option): Handle input and output file names,
18696 -o and -remap. Clean up -std= handling.
18697 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
18698 (cpp_handle_option): Similarly. Don't handle filenames.
18700 Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
18702 * i386.c (classify_argument): Fix computing of field's offsets.
18704 2002-08-11 Andreas Jaeger <aj@suse.de>
18707 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
18709 2002-08-10 Ziemowit Laski <zlaski@apple.com>
18711 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
18712 reference to clk_objective_c with flag_objc.
18713 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
18715 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18717 2002-08-10 Neil Booth <neil@daikokuya.co.uk>
18719 * c-opts.c (set_std_cxx98, set_std_c89): New.
18720 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
18721 (c_common_decode_option): Handle new switches from cppinit.c.
18723 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
18724 (no_arg, no_num): Remove.
18725 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
18726 switches apart from -lang-objc and lang-asm.
18727 (cpp_handle_option): Similarly.
18728 * cpplib.h (cpp_set_lang): New.
18729 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
18731 * objc/lang-specs.h: Remove -ansi.
18733 Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
18736 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
18739 2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18741 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
18742 emit_jump_insn): Fix uninitialized variable.
18743 * gcov.c (init_line_info): Likewise.
18744 * genautomata.c (transform_3): Add braces around ambiguous
18746 * ifcvt.c (cond_exec_process_insns): Mark parameter with
18748 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
18749 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
18752 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
18753 warnings in output files.
18755 2002-08-09 Ziemowit Laski <zlaski@apple.com>
18757 * c-common.c (flag_objc): New.
18758 * c-common.h (c_language_kind): Get rid of clk_objective_c
18760 (flag_objc): New extern declaration.
18761 * c-decl.c (implicitly_declare): Call objc_check_decl
18762 instead of maybe_objc_check_decl.
18763 (finish_decl): Likewise.
18764 (grokfield): Likewise.
18765 (finish_struct): Likewise.
18766 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
18767 (maybe_objc_comptypes): Rename to objc_comptypes.
18768 (maybe_building_objc_message_expr): Rename to
18769 objc_message_selector.
18770 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
18771 replace with flag_objc as needed.
18772 * c-opts.c (c_common_init_options): Likewise.
18773 (c_common_decode_option): Likewise.
18774 * c-parse.in (init_reswords): Likewise.
18775 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
18776 (maybe_objc_comptypes): Rename to objc_comptypes.
18777 (maybe_building_objc_message_expr): Rename to
18778 objc_message_selector.
18779 * c-typeck.c (comptypes): Call objc_comptypes instead of
18780 maybe_objc_comptypes, and/or objc_message_selector instead of
18781 maybe_building_objc_message_expr.
18782 (comp_target_types): Likewise.
18783 (convert_for_assignment): Likewise.
18784 (warn_for_assignment): Likewise.
18785 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
18786 independently of those for other languages.
18787 * objc/objc-act.c (maybe_objc_comptypes): Delete.
18788 (maybe_objc_check_decl): Delete.
18789 (maybe_building_objc_message_expr): Rename to
18790 objc_message_selector.
18791 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
18792 clk_objective_c; set flag_objc flag.
18794 2002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
18796 * ifcvt.c (find_if_case_2): Test correct basic block for size.
18798 2002-08-09 Dale Johannesen <dalej@apple.com>
18800 * config/rs6000/rs6000.md: Add sibcall patterns.
18801 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
18802 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
18803 Rewritten to handle sibcalls.
18804 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
18805 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
18807 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
18809 * profile.c (da_file_name): New static var.
18810 (init_branch_prob): Initialize it.
18811 (end_branch_prob): Remove da file.
18813 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
18814 * configure.in (coverage_flags): Default to nothing.
18815 * configure: Rebuilt.
18817 2002-08-09 Neil Booth <neil@daikokuya.co.uk>
18819 * Makefile.in (c-opts.o): Update
18820 * c-opts.c: Include intl.h.
18821 (print_help): Move from cppinit.c. Remove unused options.
18822 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
18823 (missing_arg): Complain for switches without an argument.
18824 (c_common_decode_option): Reject missing joined arguments.
18825 Handle new switches from cppinit.c.
18826 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
18827 (cpp_handle_option): Similarly.
18828 (print_help): Moved to c-opts.c.
18829 * cpplib.h (struct cpp_options): Remove help_only.
18830 * gcc.c (cpp_unique_options): Remove -$.
18831 * doc/cppopts.texi: Undocument -h.
18833 2002-08-08 Jakub Jelinek <jakub@redhat.com>
18835 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
18836 legitimate constant.
18837 (legitimate_pic_operand_p): Neither pic operand.
18838 (legitimate_address_p): But legitimate address.
18839 (get_thread_pointer): Generate MEM/u instead of CONST around
18841 (print_operand): Remove printing of UNSPEC_TP.
18842 (print_operand_address): And print it here.
18844 2002-08-08 Devang Patel <dpatel@apple.com>
18846 * objc/objc-act.c (build_selector_translation_table): Issue warning,
18847 when -Wselector is used,if method for which selector is being
18848 created does not exist.
18850 2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
18852 * config/sh/sh.c (prepare_move_operands): Only call
18853 target_reg_operand if TARGET_SHMEDIA.
18855 2002-08-08 Jakub Jelinek <jakub@redhat.com>
18857 * config/rs6000/rs6000.h, config/rs6000/aix.h,
18858 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
18860 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
18862 2002-08-08 Lars Brinkhoff <lars@nocrew.org>
18863 Richard Henderson <rth@redhat.com>
18865 * emit-rtl.c (gen_rtx_REG): After reload, only return
18866 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
18868 2002-08-08 Jakub Jelinek <jakub@redhat.com>
18870 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
18871 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
18872 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
18875 2002-08-08 Adam Nemet <anemet@lnxw.com>
18877 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
18879 (thumb_expand_prologue): Likewise.
18880 (thumb_output_function_prologue): Likewise.
18881 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
18882 the additional push of the PIC register.
18884 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
18886 * configure.in (enable_coverage): New enable switch.
18887 * configure: Rebuilt.
18888 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
18889 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
18890 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
18891 (mostlyclean): Remove coverage files.
18892 * doc/install.texi: Document enable_coverage.
18894 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
18895 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
18896 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
18897 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
18898 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
18899 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
18902 2002-08-08 Neil Booth <neil@daikokuya.co.uk>
18904 * c-opts.c (cpp_opts): New.
18905 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
18906 (c_common_decode_options): Handle cpplib switches.
18907 (c_common_init_options): Set cpp_opts.
18908 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
18909 (cpp_handle_option): Similarly.
18911 2002-08-08 David Edelsohn <edelsohn@gnu.org>
18913 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
18914 (TARGET_ALTIVEC_ABI): Same.
18915 (TARGET_ALTIVEC_VRSAVE): Same.
18917 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
18918 icode not CODE_FOR_nothing. Change switch to if.
18920 2002-08-08 Alan Modra <amodra@bigpond.net.au>
18922 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
18924 2002-08-08 Jakub Jelinek <jakub@redhat.com>
18926 * stor-layout.c (place_union_field): For bitfields if
18927 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
18930 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18932 * pa.c (struct deferred_plabel): Constify name field.
18934 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
18936 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
18938 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18940 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
18941 local_prefix are the same.
18942 * configure: Rebuilt.
18944 2002-08-07 Jakub Jelinek <jakub@redhat.com>
18945 Richard Henderson <rth@redhat.com>
18947 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
18948 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
18949 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
18950 (place_field): Likewise.
18951 * config/i386/i386.c (x86_field_alignment): Don't check
18952 DECL_USER_ALIGN here.
18953 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
18954 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
18956 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
18957 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
18958 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
18959 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
18960 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
18961 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
18963 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
18965 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
18966 * c-common.c: Don't include tree-inline.h.
18967 (c_common_init_options, c_common_post_options): Move to c-opts.c.
18968 * c-common.h (c_common_decode_option): New.
18969 * c-decl.c (c_decode_option): Remove.
18970 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
18971 * c-opts.c: New file.
18972 * c-tree.h (c_decode_option): Remove.
18973 * doc/passes.texi: Update.
18974 * objc/objc-act.c (objc_decode_option): Remove.
18975 * objc/objc-act.h (objc_decode_option): Remove.
18976 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
18977 c_common_decode_option.
18979 2002-08-07 Chris Demetriou <cgd@broadcom.com>
18981 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
18982 dependency on TARGET_DOUBLE_FLOAT.
18984 2002-08-07 Stephen Clarke <stephen.clarke@superh.com>
18986 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
18987 overwrite callee-save registers. Fix comment.
18989 2002-08-06 Chris Demetriou <cgd@broadcom.com>
18991 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
18992 in target_flags based on ISA, if it was not set on the command
18993 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
18994 support Branch Likely instructions.
18995 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
18996 (TARGET_BRANCHLIKELY): Likewise.
18997 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
18998 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
18999 ISA_HAS_BRANCHLIKELY.
19000 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
19001 * doc/invoke.texi: Document new MIPS -mbranch-likely and
19002 -mno-branch-likely options.
19004 2002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19006 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
19008 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
19011 2002-08-06 Aldy Hernandez <aldyh@redhat.com>
19013 * c-decl.c (duplicate_decls): Error out for incompatible TLS
19016 * testsuite/gcc.dg/tls/diag-3.c: New.
19018 2002-08-06 Dale Johannesen <dalej@apple.com>
19020 * c-common.c (fname_decl): Use line number 0 for
19021 __func__, to avoid confusing debuggers.
19023 2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
19026 (struct line_info, struct coverage): New structures.
19027 (gcov_file_name, gcov_file): Remove globals.
19028 (output_data): Take source file parameter. Fix memory leak. Break
19030 (init_line_info, output_line_info, make_gcov_file_name,
19031 accumulate_branch_counts): ... here.
19032 (calculate_branch_probs, function_summary): Adjust.
19034 (function_*): Remove global variables.
19036 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
19038 * dwarf2out.c: Remove unused macros.
19040 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
19042 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
19044 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
19046 * cppinit.c (struct lang_flags): Rename trigraphs std.
19047 (set_lang): Update.
19048 * cpplib.h (struct cpp_options): New member std.
19049 * cppmacro.c (_cpp_builtin_macro_text): Use std.
19050 (collect_args): Flag whether to swallow a possible future
19051 comma pasted with varargs.
19052 (replace_args): Use this flag.
19053 * doc/cpp.texi: Update varargs extension documentation.
19055 2002-08-06 Jakub Jelinek <jakub@redhat.com>
19057 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
19059 2002-08-06 Jakub Jelinek <jakub@redhat.com>
19061 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
19062 and MODE_CLASS_INT modes.
19064 2002-08-06 Jakub Jelinek <jakub@redhat.com>
19066 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
19067 --{enable,disable}-threads is given to configure.
19068 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
19069 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
19070 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
19071 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
19072 Remove thread_file setting here.
19074 2002-08-06 David Edelsohn <edelsohn@gnu.org>
19076 * doc/install.texi (Binaries): Update Bull Freeware URL.
19078 2002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19080 * doc/gcc.texi (Top): Rename Index to Keyword Index.
19082 2002-08-05 Nathan Sidwell <nathan@codesourcery.com>
19084 * gcov.c (output_data): Round to % to nearest, tweak formatting.
19086 2002-08-05 Jakub Jelinek <jakub@redhat.com>
19088 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
19089 of the operands into MINUS_EXPR if code is PLUS_EXPR.
19091 2002-08-05 Douglas B Rupp <rupp@gnat.com>
19093 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
19094 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
19095 drectve_section): Define.
19096 * config/i386/t-interix: Replace interix.o rule with winnt.o.
19097 * config/i386/interix.c: Remove.
19099 2002-08-05 Geoffrey Keating <geoffk@redhat.com>
19101 * attribs.c: Don't include obstack.h.
19102 * builtins.c: Likewise.
19103 * cfganal.c: Likewise.
19104 * cfgbuild.c: Likewise.
19105 * cfgcleanup.c: Likewise.
19106 * emit-rtl.c: Likewise.
19107 * loop.c: Likewise.
19108 * stmt.c: Likewise.
19110 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
19112 2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
19114 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
19116 2002-08-04 Chris Demetriou <cgd@broadcom.com>
19118 * doc/invoke.texi: Remove duplicated paragraph describing
19121 2002-08-04 Geoffrey Keating <geoffk@redhat.com>
19123 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
19124 * collect2.h (permanent_obstack): Delete declaration.
19125 * collect2.c (permanent_obstack): Delete definition.
19126 (main): Don't initialize permanent_obstack. Use xstrdup instead.
19127 * expr.c: Don't include obstack.h.
19128 (permanent_obstack): Delete declaration.
19129 * function.c: Don't include obstack.h.
19130 (permanent_obstack): Delete declaration.
19131 * integrate.c: Don't include obstack.h.
19132 (function_maybepermanent_obstack): Delete declaration.
19133 * print-tree.c (debug_tree): Use x*alloc not permalloc.
19134 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
19135 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
19136 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
19137 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
19138 of permalloc, expralloc, perm_calloc.
19139 * tree.c (permanent_obstack): Delete definition.
19140 (init_ttree): Rename from init_obstacks.
19141 (permalloc): Delete.
19142 (perm_calloc): Delete.
19143 (dump_tree_statistics): Don't print information about
19145 * varasm.c (assemble_start_function): Use xstrdup instead of
19147 (assemble_variable): Likewise.
19148 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
19150 (unicosmk_add_extern): Likewise.
19151 * config/c4x/c4x.c (c4x_external_ref): Likewise.
19152 (c4x_global_label): Likewise.
19153 * config/frv/frv.c (frv_encode_section_info): Likewise.
19154 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19155 (i386_pe_record_exported_symbol): Likewise.
19156 * config/mips/mips.c (mips_output_external): Likewise.
19157 (mips_output_external_libcall): Likewise.
19158 * config/pa/pa.c: (permanent_obstack): Delete declaration.
19159 (output_call): Use ggc_strdup instead of allocating on
19161 * config/romp/romp.c: Include ggc.h.
19162 (get_symref): Don't declare permanent_obstack, use ggc_strdup
19163 intead of permanent_obstack.
19164 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
19165 instead of permalloc.
19166 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
19167 instead of permalloc
19168 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
19169 instead of permalloc.
19170 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
19173 2002-08-04 Bernd Schmidt <bernds@redhat.com>
19175 Contribute a port developed primarily by Michael Meissner,
19176 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
19177 * config.gcc: Add frv-elf target.
19178 * config/frv/cmovd.c: New file.
19179 * config/frv/cmovh.c: New file.
19180 * config/frv/cmovw.c: New file.
19181 * config/frv/frv-abi.h: New file.
19182 * config/frv/frv-asm.h: New file.
19183 * config/frv/frv-modes.def: New file.
19184 * config/frv/frv-protos.h: New file.
19185 * config/frv/frv.c: New file.
19186 * config/frv/frv.h: New file.
19187 * config/frv/frv.md: New file.
19188 * config/frv/frvbegin.c: New file.
19189 * config/frv/frvend.c: New file.
19190 * config/frv/lib1funcs.asm: New file.
19191 * config/frv/media.h: New file.
19192 * config/frv/modi.c: New file.
19193 * config/frv/t-frv: New file.
19194 * config/frv/uitod.c: New file.
19195 * config/frv/uitof.c: New file.
19196 * config/frv/ulltod.c: New file.
19197 * config/frv/ulltof.c: New file.
19198 * config/frv/umodi.c: New file.
19199 * config/frv/xm-frv.h: New file.
19201 * config/frv/media.h: Removed again.
19203 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
19205 * gcov.c (bb_file_time): New static variable.
19206 (object_directory): May also be object file.
19207 (preserve_paths): New static variable.
19208 (print_usage): Adjust.
19210 (process_args): Adjust.
19211 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
19212 file. Find modification date on bb file.
19213 (read_profile): Don't rewind a NULL file.
19214 (format_hwint): New static function.
19215 (function_summary): Use format_hwint.
19216 (output_data): SOURCE_FILE_NAME is never relative to
19217 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
19218 mangling. Adjust output format to make it more machine readable.
19219 * doc/gcov.texi: Document & clarify semantics.
19221 2002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
19223 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
19225 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
19227 * gcc.c (cc1_options): Pass output file as auxbase when
19229 * profile.c (init_branch_prob): FILENAME has already had ending
19231 * final.c (end_final): Likewise.
19232 * toplev.c (aux_base_name): New global.
19233 (compile_file): Pass aux_base_name to init init_branch_prob and
19235 (independent_decode_option, case 'a'): New auxinfo options.
19236 (case 'd'): Protect against mising basename.
19237 (do_compile): Initialize aux_base_name.
19238 * toplev.h (aux_base_name): New global.
19239 * doc/invoke.texi: Adjust documentation.
19241 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
19243 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
19244 of TARGET_ALIGN_DOUBLE.
19246 2002-08-04 Gabriel Dos Reis <gdr@nerim.net>
19248 * diagnostic.c (inform): New function.
19249 * diagnostic.h (inform): Declare.
19251 2002-08-03 David Edelsohn <edelsohn@gnu.org>
19253 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
19254 (movhi_internal): Same.
19255 (movqi_internal): Same.
19256 (movdi_internal64): Same.
19258 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
19260 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
19261 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
19262 (COMMON_ASM_OP): Define.
19263 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
19264 Use ALIGN parameter.
19265 (LOCAL_COMMON_ASM_OP): Define.
19266 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
19268 2002-08-03 Roger Sayle <roger@eyesopen.com>
19270 * builtins.def: Define new builtin functions exp, expf, expl,
19271 log, logf and logl (and their __builtin_* variants).
19272 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
19273 Define exp_optab and log_optab.
19274 * optabs.c (init_optans): Initialize exp_optab and log_optab.
19275 * genopinit.c (optabs): Implement exp_optab and log_optab
19276 using exp?f2 and log?f2 patterns.
19277 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
19278 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
19279 (expand_builtin): Ignore the new builtins (and all cos and
19280 sin variants) when not optimizing. Expand new builtins via
19281 expand_builtin_mathfn when flag_unsafe_math_optimizations.
19283 * doc/extend.texi: Document new exp and log builtins.
19284 * doc/md.texi: Document new exp?f2 and log?f2 patterns
19285 (and previously undocumented cos?f2 and sin?f2 patterns).
19287 2002-08-03 Jason Merrill <jason@redhat.com>
19289 * explow.c (int_expr_size): New fn.
19290 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
19291 * expr.h: Declare it.
19293 2002-08-02 Krister Walfridsson <cato@df.lth.se>
19295 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
19296 gengtype-* dependencies.
19298 2002-08-02 Eric Christopher <echristo@redhat.com>
19300 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
19301 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
19303 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
19305 2002-08-02 David Edelsohn <edelsohn@gnu.org>
19308 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
19309 small if optimizing for size.
19311 2002-08-02 Daniel Jacobowitz <drow@mvista.com>
19313 * configure.in (FORBUILD): Use $build_alias.
19314 * configure: Regenerated.
19316 2002-08-02 Richard Sandiford <rsandifo@redhat.com>
19318 * config.gcc: Don't include mips/abi64.h in $tm_file.
19319 * hard-reg-set.h (call_really_used_regs): Declare.
19320 * config/mips/abi64.h: Remove file.
19321 * config/mips/linux.h,
19322 * config/mips/iris6.h: Don't include it.
19323 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
19324 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
19325 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
19326 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
19327 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
19328 Bring across definitions from abi64.h.
19329 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
19330 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
19331 (struct mips_args): Use it.
19332 * config/mips/mips.c (mips_conditional_register_usage): Define.
19334 2002-08-02 Jason Merrill <jason@redhat.com>
19336 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
19337 * langhooks.c (lhd_expr_size): Define default.
19338 * langhooks.h (struct lang_hooks): Add expr_size.
19339 * explow.c (expr_size): Call it.
19340 * expr.c (store_expr): Don't copy an expression of size zero.
19341 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
19343 * Makefile.in (builtins.o): Depend on langhooks.h.
19345 2002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19347 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
19348 * ra-debug.c: Include "tm_p.h".
19349 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
19351 2002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
19353 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
19354 when not honoring signalling NaNs.
19355 (simplify_ternary_operation): a == b has a definite value
19356 when not honoring NaNs.
19358 2002-08-02 Jason Merrill <jason@redhat.com>
19360 * gdbinit.in (pct): New macro.
19362 2002-08-01 Stan Shebs <shebs@apple.com>
19363 Andreas Tobler <toa@pop.agri.ch>
19365 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
19366 plays nice with Darwin headers.
19367 (_BSD_RUNE_T_DEFINED_): Likewise.
19369 2002-08-01 Zack Weinberg <zack@codesourcery.com>
19371 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
19372 * cppinit.c (cpp_post_options): Likewise.
19374 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
19375 warning about 'LL' suffix (but not 'ULL' etc) when
19376 -Wno-long-long is in effect.
19378 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
19379 Check for failing time()/localtime(), issue a warning, and
19380 make __TIME__ and __DATE__ expand to fallback strings.
19382 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
19383 and __TIME__ when the date and time cannot be determined.
19385 2002-08-02 Alan Modra <amodra@bigpond.net.au>
19387 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
19389 2002-08-01 Daniel Jacobowitz <drow@mvista.com>
19391 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
19393 2002-08-01 Chris Demetriou <cgd@broadcom.com>
19395 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
19396 (mipsisa64sb1el-*-elf*): Likewise.
19397 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
19398 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
19399 (TARGET_SB1, TUNE_SB1): New macros.
19400 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
19403 2002-08-01 David Edelsohn <edelsohn@gnu.org>
19405 * varasm.c (asm_emit_uninitialized): Return false if global BSS
19406 and ASM_EMIT_BSS not supported by target.
19407 (assemble_variable): Do not duplicate uninitialized logic.
19408 Fall through if asm_emit_uninitialized failed.
19410 2002-08-01 Chris Demetriou <cgd@broadcom.com>
19412 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
19414 2002-08-02 Alan Modra <amodra@bigpond.net.au>
19416 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
19417 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
19419 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
19420 HOST_BITS_PER_WIDE_INT == 64.
19422 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19424 * df.c (df_insn_table_realloc): Change parameter to unsigned.
19425 * optabs.c (expand_binop): Make variable unsigned.
19426 * simplify-rtx.c (simplify_subreg): Likewise.
19427 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
19429 2002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19431 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
19433 2002-08-01 Richard Henderson <rth@redhat.com>
19435 * toplev.c (parse_options_and_default_flags): Don't set
19436 flag_reorder_blocks for -Os.
19438 * config/avr/avr.c (avr_optimization_options): Remove.
19439 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
19440 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
19441 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
19443 2002-08-01 H.J. Lu <hjl@gnu.org>
19444 Richard Henderson <rth@redhat.com>
19446 * output.h (DECL_READONLY_SECTION): Remove.
19447 (decl_readonly_section): Declare.
19448 * varasm.c (decl_readonly_section): New.
19449 (default_section_type_flags, default_select_section): Use it.
19450 * config/arm/pe.c (arm_pe_unique_section): Likewise.
19451 * config/i386/interix.c (i386_pe_unique_section): Likewise.
19452 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19453 * config/mcore/mcore.c (mcore_unique_section): Likewise.
19454 * config/mips/mips.c (mips_unique_section): Likewise.
19456 2002-08-01 Richard Henderson <rth@redhat.com>
19458 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
19459 refers to a subroutine parameter.
19461 2002-08-01 Jakub Jelinek <jakub@redhat.com>
19463 * varasm.c (assemble_visibility): Strip name encoding.
19465 2002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
19467 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
19468 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
19469 when there is no frame pointer.
19470 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
19471 registers properly.
19472 * config/ns32k/__unorddf2.c: New file.
19473 * config/ns32k/__unordsf2.c: New file.
19474 * config/ns32k/t-ns32k: New file.
19475 * config.gcc (ns32k-*-netbsd*): Use it.
19477 2002-08-01 Aldy Hernandez <aldyh@redhat.com>
19479 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
19481 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
19483 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
19485 2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
19487 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
19489 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
19491 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
19493 2002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19495 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
19497 (expr_hash_table, set_hash_table): Type changed to ...
19498 (struct hash_table): New type.
19499 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
19500 insert_expr_in_table, insert_set_in_table, compute_hash_table,
19501 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
19502 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
19503 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
19504 (alloc_hash_table): New.
19505 (free_set_hash_table, free_expr_hash_table): Merged to ...
19506 (free_hash_table): New.
19507 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
19508 (compute_hash_table_work): New.
19509 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
19510 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
19511 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
19512 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
19513 hoist_code, one_code_hoisting_pass,
19514 trim_ld_motion_mems): Altered due to changed type of hash tables.
19516 2002-08-01 Zack Weinberg <zack@codesourcery.com>
19518 * final.c (output_alternate_entry_point):
19519 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
19521 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19523 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
19524 avoid ISO C style function definition.
19526 * expr.c (expand_assignment): Delete unused variable.
19528 2002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
19530 * c-common.c (cb_register_builtins): Set
19531 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
19532 is given, and to 0 otherwise.
19533 * combine.c (simplify_if_then_else): HONOR_NANS
19534 implies FLOAT_MODE_P.
19536 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
19538 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
19539 (cpp_handle_option): Don't handle it.
19540 (print_help): Update.
19541 * doc/cppopts.texi: Update.
19543 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
19545 * c-common.c (cb_register_builtins): If C++, define
19546 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
19547 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
19549 * lang-specs.h: Simplify in accordance with new code in
19552 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
19554 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
19555 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
19556 * c-decl.c: Move all warning and flag variables to c-common.c.
19557 * c-format.c: Move all warning variables to c-common.c.
19558 * c-tree.h: Move all warning and flag declarations to c-common.h.
19559 * objc/objc-act.c: Move all warning variables to c-common.c.
19560 (flag_warn_protocol): Rename warn_protocol.
19562 2002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
19564 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
19566 2002-07-31 Graham Stott <graham.stott@btinternet.com>
19568 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
19571 2002-07-31 Stan Shebs <shebs@apple.com>
19573 * config.gcc (i[34567]86-*-darwin*): New configuration.
19574 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
19576 (TARGET_ENCODE_SECTION_INFO): Ditto.
19577 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
19578 * config/darwin.c (machopic_indirect_data_reference): Remove
19579 setting of RTX_UNCHANGING_P.
19580 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
19581 not to be applied to sums.
19582 * config/i386/t-darwin: New file.
19583 * config/i386/darwin.h: New file.
19584 * config/i386/i386.h (TARGET_MACHO): Add default definition.
19585 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
19586 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
19587 label and not the GOT add.
19588 (constant_address_p): For Mach-O, seeing a CONST is enough.
19589 (legitimate_pic_address_disp_p): Add a Mach-O case.
19590 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
19591 (legitimize_pic_address): Use generic Mach-O code to legitimize.
19592 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
19593 if outputting a difference.
19594 (ix86_output_addr_diff_elt): Add Mach-O case.
19595 (ix86_expand_move): Similarly.
19596 (ix86_expand_call): Similarly.
19597 (current_machopic_label_num): New global.
19598 (machopic_output_stub): New function.
19599 (ix86_value_regno): New function.
19600 (ix86_function_value): Use it instead of VALUE_REGNO.
19601 (ix86_libcall_value): Ditto.
19602 * config/i386/unix.h (VALUE_REGNO): Remove.
19604 2002-07-31 Graham Stott <grahas@btinternet.com>
19606 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
19607 hash for LABEL_REF's.
19609 2002-07-31 Graham Stott <grahams@btinternet.com>
19611 * config/rs6000/rs6000.c (spe_init_builtins,
19612 altivec_init_builtins, rs6000_common_init_builtins):
19613 Replace ANSI with K&R function def.
19615 2002-07-31 David Edelsohn <edelsohn@gnu.org>
19617 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
19620 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
19622 * config/mips/crtn.asm: Don't use __mips16 to determine the
19623 return-address offset. Define RA to a suitable temporary
19624 register for the return address.
19626 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
19628 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
19629 constraints to 'd'.
19631 2002-07-30 Chris Demetriou <cgd@broadcom.com>
19633 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
19634 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
19635 patch on 2002-07-29.)
19636 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19638 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19640 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
19641 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
19642 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
19643 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
19644 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
19645 (ASM_GLOBALIZE_LABEL): Delete.
19646 (GLOBAL_ASM_OP): Define.
19648 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
19650 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
19651 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
19653 2002-07-30 Geoffrey Keating <geoffk@redhat.com>
19655 * doc/extend.texi (Hints implementation): Document that GCC
19656 mostly ignores `register'.
19658 2002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
19660 * flags.h: Declare flag_finite_math_only.
19661 Use it in definition of HONOR_NANS and
19663 * c-common.c (cb_register_builtins): Emit
19664 __FINITE_MATH_ONLY__ when flag_finite_math_only
19666 * combine.c (simplify_if_then_else): If
19667 flag_finite_math_only is set, a == b has a
19669 * toplev.c: Initialize flag_finite_math_only.
19670 (set_flags_fast_math): Set it on -ffast-math.
19671 (flag_fast_math_set_p): Test it.
19672 * doc/invoke.texi: Document -ffinite-math-only.
19674 2002-07-30 Richard Henderson <rth@redhat.com>
19676 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
19677 (noce_process_if_block): Likewise.
19679 2002-07-30 Bernd Schmidt <bernds@redhat.com>
19681 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
19682 Bail out early if false_expr is NULL and we'd crash due to this.
19683 * genemit.c (gen_expand): Recognize return insns even if the return
19684 appears in a parallel.
19685 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
19686 * config/fp-bit.c: Likewise.
19687 * doc/tm.texi: Document it.
19689 2002-07-30 David Edelsohn <edelsohn@gnu.org>
19690 Zack Weinberg <zack@codesourcery.com>
19692 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
19693 CODE_FOR_nothing. Change switch to if.
19694 (rs6000_expand_binop_builtin): Same.
19695 (rs6000_expand_builtin): Expand builtin if target support enabled.
19696 (rs6000_init_builtins): Init builtin if target support enabled.
19697 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
19699 2002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19701 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
19703 2002-07-30 Richard Sandiford <rsandifo@redhat.com>
19705 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
19707 Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
19709 * sh.md (cond_delay_slot): New attribute.
19710 (cbranch delay): Use it for anulled-true case.
19711 (stuff_delay_slot): New pattern.
19712 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
19714 (gen_far_branch): Emit stuff_delay_slot pattern.
19716 Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
19718 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
19720 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
19722 * fold-const.c: Fix comment typos.
19723 * gcse.c: Likewise.
19724 * reload1.c: Likewise.
19726 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
19728 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
19731 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
19733 * c-pretty-print.h (pp_c_statement): Declare.
19734 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
19735 (pp_c_statement): Define.
19737 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19739 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
19740 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
19741 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
19742 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
19743 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
19744 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
19746 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
19747 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
19749 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
19751 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
19752 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
19753 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
19754 (pp_c_expression): Update.
19756 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19758 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
19759 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
19760 * alpha/vms-ld.c (main): Likewise.
19761 * dsp16xx.c (double_reg_to_memory): Likewise.
19762 * mcore.c (mcore_expand_prolog): Likewise.
19763 * cppfiles.c (read_name_map): Likewise.
19764 * gensupport.c (process_rtx, identify_predicable_attribute,
19765 alter_test_for_insn): Likewise.
19766 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
19768 2002-07-29 Roger Sayle <roger@eyesopen.com>
19770 * builtins.c (expand_builtin): Change the default behavior to
19771 only issue an error if the builtin function doesn't have a
19772 fallback library call. Remove several cases handled by the
19775 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
19777 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
19778 floating point format of the target is IEEE.
19779 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
19780 format of the target is DEC.
19782 2002-07-29 Richard Henderson <rth@redhat.com>
19784 * unroll.c (verify_addresses): Remove.
19785 (find_splittable_givs): Never split DEST_ADDR givs.
19787 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
19789 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
19791 (Files): Improve documentation on generated source files.
19793 * doc/extend.texi (Translation implementation): Document what
19794 diagnostics look like.
19795 (Identifiers implementation): Document that there's normally no
19796 limit on identifier names.
19797 (Integers implementation): Document two's complement.
19798 (Hints implementation): Document that GCC honors 'inline', mostly.
19799 (Preprocessing directives implementation): Document that GCC
19800 requires the current time.
19802 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
19804 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
19805 (pp_initializer): New macro.
19806 (pp_c_initializer): Declare.
19807 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
19808 (pp_c_initializer): Define.
19809 (pp_c_initializer_list): New function.
19810 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
19811 VECTOR_CST, CONSTRUCTOR.
19812 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
19814 (pp_c_cast_expression): Handle FLOAT_EXPR.
19815 (pp_c_assignment_expression): Handle INIT_EXPR.
19816 (pp_c_expression): Update.
19818 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
19820 * objc/objc-act.c (objc_init): Return immediately if filename
19823 2002-07-29 Eric Christopher <echristo@redhat.com>
19825 * config/mips/elf.h: Remove ecoff.h and gofast includes.
19826 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
19827 (SDB_DEBUGGING_INFO): Undefine.
19828 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
19829 (PUT_SDB_SIZE): Remove.
19830 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
19831 (STARTFILE_SPEC): Add isa3264 define.
19832 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
19833 * config/mips/ecoff.h: Remove. and here...
19834 * config/mips/iris3.h: and here...
19835 * config/mips/sni-svr4.h: and here...
19836 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
19837 Add assembler -mmdebug options for non-dwarf debugging.
19838 * config/mips/r3900.h: Remove debug info defines.
19839 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
19840 * config/mips/isa3264.h: Ditto.
19841 * config/mips/t-isa3264: Fix up for file removal and gofast configure
19843 * config/mips/t-elf: Ditto.
19844 * config/mips/t-ecoff: Ditto.
19845 * config/mips/t-r3900: Ditto.
19846 * config/mips/t-iris5-6: Ditto.
19847 * config/mips/t-isa3264: Ditto.
19848 * config/mips/t-linux: Remove.
19849 * config/mips/t-netbsd: Remove.
19850 * config/mips/t-mips: New file.
19851 * config/mips/t-gofast: Ditto.
19852 * config/mips/netbsd.h: Remove unnecessary undefines.
19853 * config/mips/linux.h: Remove #include of mips.h.
19854 * config.gcc: Add mips.h include for elf targets. Remove tm_file
19855 for ecoff. Add gofast configure option for mips.
19857 2002-07-29 Chris Demetriou <cgd@broadcom.com>
19859 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
19860 linker scripts use STARTUP directives consistently.
19861 * configure: Regenerate.
19862 * config.in: Regenerate.
19863 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
19864 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
19865 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19866 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
19867 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
19870 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
19872 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
19874 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
19876 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
19878 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
19880 * config/rs6000/rs6000.md: Move altivec patterns from here...
19882 * config/rs6000/altivec.md: ...to here.
19884 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
19886 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
19888 2002-07-29 Richard Henderson <rth@redhat.com>
19890 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
19891 set_mem_attributes and add BITPOS argument. Subtract it from
19892 OFFSET when same is adjusted.
19893 (set_mem_attributes): New wrapper function.
19894 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
19895 remove offset adjustment hack.
19896 * expr.h (set_mem_attributes_minus_bitpos): Declare.
19898 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
19900 * Makefile.in (C_OBJS): Include c-pretty-print.o
19901 (c-pretty-print.o): Add depency rule.
19902 * pretty-print.h: Add more macros.
19903 * c-pretty-print.c: New file.
19904 * c-pretty-print.h: Likewise.
19906 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
19908 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
19909 constants to __ev64_s32__.
19910 (__internal_ev_mwhgsmian): Same.
19911 (__internal_ev_mwhgsmfan): Same.
19912 (__internal_ev_mwhgssfan): Same.
19913 (__internal_ev_mwhgumiaa): Same.
19914 (__internal_ev_mwhgsmiaa): Same.
19915 (__internal_ev_mwhgsmfaa): Same.
19916 (__internal_ev_mwhgssfaa): Same.
19918 2002-07-29 David Edelsohn <edelsohn@gnu.org>
19920 * varasm.c (assemble_variable): Narrow test for uninitialized
19921 without BSS target support.
19923 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
19925 * profile.c: Add file comment describing the overall algorithm and
19927 (struct edge_info): Add comments.
19928 (struct bb_info): Add comments.
19929 * basic-block.h (EDGE_*): Add comments.
19930 * doc/gcov.texi (Gcov Data Files): Document bit flags.
19932 2002-07-29 Bob Wilson <bob.wilson@acm.org>
19934 * config/xtensa/elf.h, config/xtensa/linux.h
19935 (TARGET_OS_CPP_BUILTINS): Define.
19936 (CPP_PREDEFINES): Remove.
19937 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
19938 (CPP_SPEC): Remove.
19940 2002-07-29 Zack Weinberg <zack@codesourcery.com>
19942 * gensupport.c: Include hashtab.h.
19943 (insn_elision, condition_table, hash_c_test, cmp_c_test,
19944 maybe_eval_c_test): New routines and data structures to
19945 support insn elision.
19946 (init_md_reader): Read and initialize the condition_table.
19947 (read_md_rtx): Discard insn patterns whose C test is provably
19949 * gensupport.h: Declare new functions and data structures.
19951 * genconditions.c, dummy-conditions.c: New files.
19952 * Makefile.in: Build genconditions; run it to construct
19953 insn-conditions.c; build that and link it into most gen*
19955 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
19956 (GEN): Delete, unused.
19957 (STAGESTUFF): Update.
19959 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
19960 CODE_FOR_nothing for all elided patterns.
19961 (main): Tweaked to support this.
19962 * genflags.c (gen_proto): Emit a static inline generator
19963 function here for all elided patterns, which simply returns
19965 (gen_insn): Do not define HAVE_xxx for elided patterns.
19966 (main): Tweaked to support this. No need to forward-declare
19968 * genrecog.c: Do not bother emitting the C test if it's known
19969 to be true at compile time.
19971 2002-07-29 Mike Stump <mrs@apple.com>
19973 * config.gcc (target_gtfiles): Initialize, as otherwise cross
19974 compilers hosted on powerpc-apple-darwin6.0 won't even build.
19976 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
19978 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
19979 remove clobber of LR.
19980 (sibcall_insn, sibcall_value_insn): Update accordingly.
19981 (sibcall_epilogue): Remove debugging comment from assembler stream.
19983 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
19985 * pretty-print.h: Define more macros.
19986 * diagnostic.h (output_formatted_integer): Moved from...
19987 * diagnostic.c: ... here.
19989 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19991 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
19993 2002-07-28 Zack Weinberg <zack@codesourcery.com>
19995 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
19996 arguments. Always use ".-symbol" as expression argument.
19997 * doc/tm.texi: Update to match. Document requirement for
19998 ".size symbol, .-symbol" to be acceptable to assembler.
20000 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
20001 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
20002 config/i386/freebsd-aout.h, config/i386/sco5.h,
20003 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
20004 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
20006 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20008 * Makefile.in (gengtype-lex.c): Fix error in last change.
20010 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
20013 * Makefile.in (vmsdbgout.o): Depend on function.h.
20015 * vmsdbgout.c: Include function.h.
20017 2002-07-28 Alan Modra <amodra@bigpond.net.au>
20019 * prefix.c (update_path): Don't strip single `.' path components
20020 unless stripping a later `..' component. Exit loop as soon as
20021 a valid path is found.
20023 2002-07-27 Roger Sayle <roger@eyesopen.com>
20025 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
20026 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
20027 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
20028 floating point unordered comparisons (e.g. __builtin_isgreater)
20029 as const, and leave the remaining GCC_BUILTINs unchanged.
20031 * c-decl.c (builtin_function): No need to explicitly mark
20032 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
20034 2002-07-27 Roger Sayle <roger@eyesopen.com>
20036 * Makefile.in: rtlanal.o now depends upon real.h.
20038 * flags.h [flag_signaling_nans]: New flag.
20039 [HONOR_SNANS]: New macro.
20041 * toplev.c [flag_signaling_nans]: Initialize to false.
20042 (f_options): Add processing for "-fsignaling-nans".
20043 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
20044 (process_options): flag_signaling_nans implies flag_trapping_math.
20046 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
20047 when -fsignaling-nans. First step to implementing WG14's N965.
20049 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
20050 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
20051 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
20053 * simplify-rtx.c (simplify_relational_operation): Conditionalize
20054 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
20056 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
20057 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
20058 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
20059 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
20060 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
20062 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
20064 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20066 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
20067 * gengtype-lex.l (YY_USE_PROTOS): Undef.
20070 2002-07-27 Roger Sayle <roger@eyesopen.com>
20072 * doc/invoke.texi: Document that both -fno-builtin-foo and
20073 -fno-builtin are supported by the g++ front-end.
20075 2002-07-27 Stan Shebs <shebs@apple.com>
20077 * configure.in: Rename config_gtfiles to target_gtfiles.
20078 * configure: Regenerate.
20079 * doc/gty.texi: Update reference.
20080 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
20081 instead of appending to it.
20083 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
20085 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
20086 vectors are split into two registers.
20087 (function_arg): Same.
20089 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
20091 * pa.md (extv): Check predicates before emitting extv_32.
20093 2002-07-27 Alan Modra <amodra@bigpond.net.au>
20095 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
20096 (rs6000_traceback): New var.
20097 (rs6000_override_options): Set rs6000_traceback.
20098 (rs6000_output_function_epilogue): Implement traceback options.
20099 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
20100 (rs6000_traceback_name): Declare.
20102 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
20103 label reference when NO_PROFILE_COUNTERS.
20105 2002-07-26 Jason Merrill <jason@redhat.com>
20107 * function.c (assign_parms): Handle frontend-directed pass by
20108 invisible reference.
20110 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
20112 * doc/cppopts.texi: Update.
20114 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
20116 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
20117 warnings on assertions.
20119 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
20121 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
20122 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
20123 RID_COMPL): Remove.
20124 * c-parse.in (rid_to_yy): Similarly.
20126 2002-07-26 Jason Merrill <jason@redhat.com>
20128 * c-dump.c: Resurrect.
20129 * tree-dump.c: Move C-specific stuff to c-dump.c.
20130 * c-common.h: Declare c_dump_tree.
20131 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
20132 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
20133 (c-dump.o): New rule.
20135 2002-07-26 Alan Modra <amodra@bigpond.net.au>
20137 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
20138 PowerPC64. Replace "T" and "S" constraints with "n" when the
20139 predicate will do. Formatting fixes.
20140 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
20141 as for extzvsi_internal1.
20143 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
20145 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
20146 DERIV_END_LABEL_FMT): Remove.
20147 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
20149 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
20151 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
20154 2002-07-25 Stan Shebs <shebs@apple.com>
20156 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
20158 (output_compiler_stub): Remove unused locals.
20159 (output_call): Always initialize line number.
20161 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
20163 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
20164 * sh.md (truncdiqi2, movqi_media): Likewise.
20166 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
20168 * gcse.c (obstack_chunk_alloc): Remove.
20169 (gcse_alloc): Fix to count allocated bytes.
20170 * collect2.c (SYMBOL__MAIN): Remove.
20172 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
20174 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
20175 HAVE_TARGET_EXECUTABLE_SUFFIX.
20177 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
20179 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
20180 SIZE, EXPR and OFFSET.
20182 2002-07-25 Richard Henderson <rth@redhat.com>
20184 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
20185 in ARRAY_REF of DECL_P case.
20187 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
20189 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
20190 description. Document -mips32, -mips64, and the associated -march
20191 values. Describe the "mipsN" arguments to -march. Say that the
20192 -mipsN options are equivalent to -march. Reword the description
20193 of default type sizes.
20194 * toplev.h (target_flags_explicit): Declare.
20195 * toplev.c (target_flags_explicit): New var.
20196 (set_target_switch): Update target_flags_explicit.
20197 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
20198 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
20199 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
20200 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
20201 * config/mips/mips.h (mips_cpu_info): New struct.
20202 (mips_cpu_string, mips_explicit_type_size_string): Remove.
20203 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
20204 (MIPS_CPP_SET_PROCESSOR): New macro.
20205 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
20206 Define _MIPS_ARCH and _MIPS_TUNE.
20207 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
20208 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
20209 MIPS_ISA_DEFAULT were already defined.
20210 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
20211 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
20212 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
20213 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
20214 (ABI_GAS_ASM_SPEC): Remove.
20215 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
20216 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
20217 Invoke %(asm_abi_default_spec) if no ABI was specified.
20218 (CC1_SPEC): Remove ISA -> register-size rules.
20219 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
20220 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
20221 (mips_cpu_string, mips_explicit_type_size_string): Remove.
20222 (mips_cpu_info_table): New array.
20223 (mips_set_architecture, mips_set_tune): New fns.
20224 (override_options): Rework to make -mipsN equivalent to -march.
20225 Detect more erroneous cases, including those removed from CC1_SPEC.
20226 Don't change the ABI based on architecture, or vice versa.
20227 Unify logic with GAS.
20228 (mips_asm_file_start): Get architecture name from mips_arch_info.
20229 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
20230 (mips_parse_cpu): Take the name of the option as argument. Handle
20231 'from-abi'. Raise an error if the option is wrong.
20232 (mips_cpu_info_from_isa): New fn.
20234 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
20236 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
20237 (tablejump_mips162): Likewise.
20239 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
20241 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
20244 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
20246 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
20248 * c-common.h (c_sizeof): Adjust definition.
20249 (c_alignof): Likewise.
20250 * c-tree.h (c_sizeof_nowarn): Now macro.
20251 * c-typeck.c (c_sizeof_nowarn): Remove definition.
20253 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
20255 * c-decl.c (c_decode_option): No need to handle switches
20258 2002-07-24 Zack Weinberg <zack@codesourcery.com>
20260 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
20261 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
20262 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
20263 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
20265 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
20266 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
20267 config/cris/aout.h, config/i386/freebsd-aout.h,
20268 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
20269 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
20270 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
20271 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
20272 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
20273 config/xtensa/elf.h, config/xtensa/linux.h:
20274 Use the new macros.
20275 Where possible, remove redundant definitions of SIZE_ASM_OP,
20276 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
20278 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
20280 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
20281 TARGET_ISEL, and TARGET_FPRS.
20283 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20284 -mabi=spe, -mabi=no-spe, and -misel=.
20286 * config/rs6000/rs6000-protos.h: Add output_isel.
20287 Move vrsave_operation prototype here.
20289 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
20293 (abssi2_nopower): Disallow when TARGET_ISEL.
20295 (negsf2): Change to expand and rename old pattern to *negsf2.
20296 (abssf2): Change to expand and rename old pattern to *abssf2.
20298 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
20301 Change patterns that check for TARGET_HARD_FLOAT or
20302 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
20304 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
20305 rs6000_isel, rs6000_fprs, rs6000_isel_string.
20306 (rs6000_override_options): Add 8540 case to
20307 processor_target_table.
20308 Set rs6000_isel for the 8540.
20309 Call rs6000_parse_isel_option.
20310 (enable_mask_for_builtins): New.
20311 (rs6000_parse_isel_option): New.
20312 (rs6000_parse_abi_options): Add spe and no-spe.
20313 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
20314 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
20315 for TARGET_HARD_FLOAT.
20316 Add case for SPE_VECTOR_MODE.
20317 (rs6000_legitimize_reload_address): Handle SPE vector modes.
20318 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
20320 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
20321 (rs6000_emit_move): Check for TARGET_FPRS.
20322 Add cases for SPE vector modes.
20323 (function_arg_boundary): Return 64 for SPE vector modes.
20324 (function_arg_advance): Check for TARGET_FPRS and
20325 Handle SPE vectors.
20326 (function_arg): Same.
20327 (setup_incoming_varargs): Check for TARGET_FPRS.
20328 (rs6000_va_arg): Same.
20329 (struct builtin_description): Un-constify mask field. Move up in
20331 (bdesc_2arg): Un-constify and add SPE builtins.
20332 (bdesc_1arg): Same.
20333 (bdesc_spe_predicates): New.
20334 (bdesc_spe_evsel): New.
20335 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
20336 (rs6000_expand_binop_builtin): Same.
20337 (bdesc_2arg_spe): New.
20338 (spe_expand_builtin): New.
20339 (spe_expand_predicate_builtin): New.
20340 (spe_expand_evsel_builtin): New.
20341 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
20342 (rs6000_init_builtins): Initialize SPE builtins. Call
20343 rs6000_common_init_builtins.
20344 (altivec_init_builtins): Move all non-altivec builtin code to...
20345 (rs6000_common_init_builtins): ...here. New function.
20346 (branch_positive_comparison_operator): Allow NE code for SPE.
20347 (ccr_bit): Return correct ccr bit for SPE fp.
20348 (print_operand): Emit crnor in 'D' case for SPE.
20350 Add SPE code for 'y' case.
20351 (rs6000_generate_compare): Generate rtl for SPE fp.
20352 (output_cbranch): Handle SPE hard floats.
20353 (rs6000_emit_cmove): Handle isel.
20354 (rs6000_emit_int_cmove): New.
20355 (output_isel): New.
20356 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
20358 (debug_stack_info): Add SPE info.
20359 (gen_frame_mem_offset): New.
20360 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
20361 Change mode of frame pointer, when saving it, to Pmode.
20362 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
20363 Misc cleanups and use gen_frame_mem_offset when appropriate.
20365 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
20366 (TARGET_SPE_ABI): New.
20368 (TARGET_ISEL): New.
20369 (TARGET_FPRS): New.
20370 (FIXED_SCRATCH): New.
20371 (RTX_COSTS): Add PROCESSOR_PPC8540.
20372 (ASM_CPU_SPEC): Add case for 8540.
20373 (TARGET_OPTIONS): Add isel= case.
20374 (rs6000_spe_abi): New.
20375 (rs6000_isel): New.
20376 (rs6000_fprs): New.
20377 (rs6000_isel_string): New.
20378 (UNITS_PER_SPE_WORD): New.
20379 (LOCAL_ALIGNMENT): Adjust for SPE.
20380 (HARD_REGNO_MODE_OK): Same.
20381 (DATA_ALIGNMENT): Same.
20382 (MEMBER_TYPE_FORCES_BLK): New.
20383 (FIRST_PSEUDO_REGISTER): Set to 113.
20384 (FIXED_REGISTERS): Add SPE registers.
20386 (REG_CLASS_NAMES): Same.
20387 (REG_CLASS_CONTENTS): Same.
20388 (REGNO_REG_CLASS): Same.
20389 (REGISTER_NAMES): Same.
20390 (DEBUG_REGISTER_NAMES): Same.
20391 (ADDITIONAL_REGISTER_NAMES): Same.
20392 (CALL_USED_REGISTERS): Same.
20393 (CALL_REALLY_USED_REGISTERS): Same.
20394 (SPE_ACC_REGNO): New.
20395 (SPEFSCR_REGNO): New.
20396 (SPE_SIMD_REGNO_P): New.
20397 (HARD_REGNO_NREGS): Adjust for SPE.
20398 (VECTOR_MODE_SUPPORTED_P): Same.
20399 (REGNO_REG_CLASS): Same.
20400 (FUNCTION_VALUE): Same.
20401 (LIBCALL_VALUE): Same.
20402 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
20403 (SPE_VECTOR_MODE): New.
20404 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
20405 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
20406 (rs6000_stack): Add spe_gp_size, spe_padding_size,
20407 spe_gp_save_offset.
20408 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
20409 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
20410 (SPE_CONST_OFFSET_OK): New.
20411 (rs6000_builtins): Add SPE builtins.
20413 * testsuite/gcc.dg/ppc-spe.c: New.
20415 * config/rs6000/eabispe.h: New.
20417 * config/rs6000/spe.h: New.
20419 * config/rs600/spe.md: New.
20421 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20422 __SIMD__ for TARGET_SPE.
20424 * config.gcc: Add powerpc-*-eabispe* case.
20425 Add spe.h to user headers for powerpc.
20427 2002-07-24 Chris Demetriou <cgd@broadcom.com>
20429 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
20430 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
20431 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
20433 2002-07-24 Richard Henderson <rth@redhat.com>
20435 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
20436 form when not optimizing.
20438 2002-07-24 David Mosberger <davidm@hpl.hp.com>
20440 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
20441 thread_pointer_rtx as unchanging.
20443 2002-07-24 Michael Matz <matz@suse.de>
20445 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
20446 (free_reg): Use it.
20448 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
20450 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
20452 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
20453 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
20455 2002-07-24 Chris Demetriou <cgd@broadcom.com>
20457 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
20458 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
20459 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
20461 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
20463 * toplev.c (rest_of_compilation): Dump loops before clobbering
20466 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
20468 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
20470 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
20472 PR optimization/7291
20473 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
20476 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
20478 * pretty-print.h: Add macros from cp/error.c
20480 2002-07-24 Alan Modra <amodra@bigpond.net.au>
20482 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
20483 (mask64_2_operand): Declare.
20484 (build_mask64_2_operands): Declare.
20485 (and64_2_operand): Declare.
20486 (extract_MB): Declare.
20487 (extract_ME): Declare.
20488 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
20490 (mask_operand_wrap): New insn predicate.
20491 (mask64_2_operand): Likewise.
20492 (and64_2_operand): Likewise.
20493 (build_mask64_2_operands): New function.
20494 (extract_MB): New function.
20495 (extract_ME): New function.
20496 (print_operand <case m,M>): Use extract_MB and extract_ME.
20497 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
20498 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
20499 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
20500 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
20501 * config/rs6000/rs6000.md (andsi3_internal3): New
20502 (andsi3_internal3+1): Enable split for powerpc64.
20503 (andsi3_internal3+2): New split.
20504 (andsi3_internal4): Renamed old andsi3_internal3.
20505 (andsi3_internal5): New.
20506 (andsi3_internal5+1): Enable split for powerpc64.
20507 (andsi3_internal5+2): New split.
20508 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
20509 (anddi3): Handle 't' constraint.
20510 (anddi3+1): New split.
20511 (anddi3_internal2): Handle 't' constraint.
20512 (anddi3_internal2+1): New split.
20513 (anddi3_internal3): Handle 't' constraint.
20514 (anddi3_internal3+1): New split.
20516 2002-07-24 Alan Modra <amodra@bigpond.net.au>
20518 * config/rs6000/rs6000.md: Remove scratch reg on insns using
20519 addze and similar (plus (comparison r1 r2) r3) insns. Add
20520 missing scratch reg in one case. Formatting fixes.
20522 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
20524 * cppexp.c (parse_defined): Mark macro used.
20525 * cpphash.h (struct cpp_macro): New member "used".
20526 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
20527 (struct cpp_reader): New member.
20528 * cppinit.c (cpp_finish_options): Set first_unused_line.
20529 (cpp_finish): Warn of unused macros if requested.
20530 (OPT_TABLE): New switches.
20531 (cpp_handle_option): Handle them.
20532 * cpplib.c (do_undef): Warn if macro unused.
20533 (do_ifdef, do_ifndef): Mark macro used.
20534 * cpplib.h (struct cpp_options): New member.
20535 * cppmacro.c (_cpp_warn_if_unused_macro): New.
20536 (enter_macro_context): Mark macro used.
20537 (_cpp_create_definition): Mark macro unused; warn if unused
20539 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
20541 * doc/cppopts.texi: Update.
20543 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
20545 * dwarf2out.c (SECTION_ASM_OP,
20546 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20547 * system.h (SECTION_ASM_OP): Poison.
20548 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
20549 * config/alpha/alpha-interix.h, config/mips/linux.h
20550 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20551 * config/mmix/mmix-protos.h, config/mmix/mmix.c
20552 (mmix_asm_output_define_label_difference_symbol): Remove.
20553 * config/mmix/mmix.h
20554 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20555 * doc/tm.texi: Remove documentation.
20557 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
20559 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
20560 (constrain_operands): Likewise.
20561 * regclass.c (record_reg_classes): Likewise.
20562 * reload.c (find_reloads): Likewise.
20563 * doc/md.texi: Likewise.
20565 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
20566 * simplify-rtx.c (simplify_subreg): When converting to a non-int
20567 mode, try to convert to an integer mode of matching size first.
20569 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
20570 from individual subregs, check that each subreg has been generated
20573 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
20575 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
20576 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
20577 FOR_EACH_BB_IN_SBITMAP): Remove.
20578 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
20579 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
20580 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
20581 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
20582 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
20583 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
20585 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
20587 * pretty-print.h: New file.
20589 2002-07-23 Paul Koning <pkoning@equallogic.com>
20591 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
20592 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
20593 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
20594 (TARGET_G_FLOAT): Default to 0 if not defined.
20595 (ieeetoe): New, common routine to convert target format floats
20597 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
20599 (e113toe): Change to use ieeetoe.
20601 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
20603 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
20605 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
20606 (e64toe): Remove special cases for DEC and IBM. Remove support for
20607 ARM_EXTENDED_IEEE_FORMAT.
20608 (e24toe): Remove special cases for DEC.
20609 (significand_size): Simplify. Indent.
20610 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
20611 (etoieee, toieee): New.
20612 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
20613 etoieee and toieee for IEEE arithmetic.
20615 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
20617 * doc/extend.texi: Say ISO C90, not ISO C89.
20618 * doc/invoke.texi: Likewise.
20619 * doc/standards.texi: Likewise.
20621 2002-07-23 Steve Ellcey <sje@cup.hp.com>
20623 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
20624 Fix permutation of conversion and plus/mult.
20625 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
20626 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
20627 (expand_builtin_strncpy) Ditto.
20628 (expand_builtin_memset) Ditto.
20630 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
20633 * c-common.c (c_sizeof_or_alignof_type): New function.
20634 (c_alignof): Remove definition.
20635 * c-common.h (c_sizeof, c_alignof): Define as macros.
20636 (c_sizeof_or_alignof_type): Declare.
20637 (my_friendly_assert): Moved from cp/cp-tree.h
20638 * c-typeck.c (c_sizeof): Remove definition.
20640 2002-07-23 Jan Hubicka <jh@suse.cz>
20642 * gcse.c (try_replace_reg): Use num_changes_pending.
20643 * recog.c (num_changes_pending): New function.
20644 (validate_replace_src): Use validate_repalce_src_group.
20645 (validate_replace_src_group): New.
20646 * recog.h (validate_repalce_src_group): New.
20647 (num_changes_pending): Likewise.
20649 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
20651 * calls.c (emit_library_call_value_1): If
20652 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
20653 libcall, const call nor pure call.
20655 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
20657 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
20659 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
20661 * vmsdbgout.c (SECTION_ASM_OP): Remove.
20663 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
20665 * config/i386/i386.c (AT_BP): Remove.
20667 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
20669 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
20670 Default definition.
20671 * gcse.c: Don't define obstack_chunk_free.
20672 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
20673 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
20674 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
20675 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
20676 Don't define obstack macros.
20678 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
20681 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
20682 ASM_OPERANDS instructions.
20684 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
20687 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
20688 constant addresses only on 68HC12.
20690 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
20692 * cppfiles.c (stack_include_file): Correct test of whether
20693 a dependency should be output.
20695 2002-07-22 David Edelsohn <edelsohn@gnu.org>
20697 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
20699 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
20701 * arm.md (movqi): If optimizing and we can create pseudos, use
20702 a ZERO_EXTEND to load from memory, then copy the result into the
20704 (movhi): Likewise, but only for ARMv4.
20706 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
20708 * ssa-ccp.c (PHI_PARMS): Remove.
20710 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
20712 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
20713 on big-endian targets.
20715 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20717 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
20718 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
20719 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
20720 New formatting macros.
20722 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
20724 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
20726 * rtlanal.c (subreg_regno_offset): Return correct offset for
20727 big endian paradoxical subregs.
20729 * optabs.c (expand_vector_unop): Don't expand using sub_optab
20730 if we got the wrong mode.
20732 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
20733 * genrecog.c (write_switch, write_cond): Use it.
20734 * genemit.c (gen_exp): Likewise.
20736 2002-07-22 Jakub Jelinek <jakub@redhat.com>
20738 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
20740 2002-07-22 Jakub Jelinek <jakub@redhat.com>
20742 * c-decl.c (build_compound_literal): Defer compound literal decls
20743 until until file end to emit them only if they are actually used.
20745 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20747 * ra-build.c (check_conflict_numbers): Hide unused function.
20748 (livethrough_conflicts_bb): Avoid automatic aggregate
20750 (parts_to_webs_1): Avoid `U' integer constant modifier.
20751 (conflicts_between_webs): Wrap a variable in the macro controlling
20753 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
20754 (dump_igraph, dump_graph_cost): Avoid string concatenation
20755 (dump_static_insn_cost): Avoid automatic aggregate
20757 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
20759 (dump_cost): Avoid string concatenation
20761 2002-07-21 Richard Henderson <rth@redhat.com>
20763 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
20764 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
20766 2002-07-21 Richard Henderson <rth@redhat.com>
20768 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
20769 that are not unrolled completely.
20771 2002-07-21 Richard Henderson <rth@redhat.com>
20773 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
20774 * loop.c (strength_reduce): Update.
20775 * toplev.c (rest_of_compilation): Do unrolling in the first
20776 loop pass, not the second.
20778 2002-07-21 Richard Henderson <rth@redhat.com>
20780 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
20781 when flag_argument_noalias == 2.
20782 * alias.c (nonoverlapping_memrefs_p): Handle that.
20783 * print-rtl.c (print_mem_expr): Likewise.
20785 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
20787 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
20788 instead of __negdi2 directly.
20790 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
20792 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
20793 * function.c (SYMBOL__MAIN): Remove definition.
20794 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
20795 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
20796 * profile.c (GCOV_INDEX_TO_BB): Remove.
20797 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
20798 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
20800 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
20802 * c-lex.c (GET_ENVIRONMENT): Remove.
20803 * collect2.c (GET_ENV_PATH_LIST): Remove.
20804 (prefix_from_env): Use GET_ENVIRONMENT.
20805 * cppinit.c (GET_ENV_PATH_LIST): Remove.
20806 (init_standard_includes): Use GET_ENVIRONMENT.
20807 * defaults.h (GET_ENVIRONMENT): Define here if not already.
20808 * gcc.c (GET_ENV_PATH_LIST): Remove.
20809 (make_relative_prefix, process_command): Update.
20810 * protoize.c (GET_ENV_PATH_LIST): Remove.
20811 (do_processing): Update.
20813 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
20815 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
20816 (grokdeclarator): Likewise.
20817 * c-format.c (C_STD_NAME): Likewise.
20818 * c-lex.c (interpret_integer): Likewise.
20819 * c-typeck.c (build_array_ref): Likewise.
20820 * cpplex.c (_cpp_lex_direct): Likewise.
20821 * toplev.c (documented_lang_options): Likewise.
20823 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
20825 * c-format.c (T99_I, T99_UI): Remove.
20827 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
20829 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
20831 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
20833 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
20836 2002-07-21 Andreas Jaeger <aj@suse.de>
20838 * reload1.c (fixup_abnormal_edges): Remove unused variable.
20840 2002-07-21 Bernd Schmidt <bernds@redhat.com>
20842 Improvements for the ifcvt pass from Michael Meissner, with patches
20843 by Richard Sandiford <rsandifo@redhat.com>
20844 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
20845 * ifcvt.c (cond_exec_changed_p): New static variable.
20846 (last_active_insn): New function, renamed from last_active_insn_p
20847 and changed to return the last active insn in a basic block. All
20849 (block_fallthru): New function.
20850 (cond_exec_process_insns): New argument CE_INFO. Pass it to
20851 IFCVT_MODIFY_INSN. All callers updated.
20852 Return false if START or END are NULL.
20853 Handle case where we're processing an insn that is already
20856 (noce_process_if_block): CE_INFO argument rather than
20857 multiple args containing the involved basic blocks. All callers
20859 (process_if_block, merge_if_block, find_if_block,
20860 cond_exec_process_if_block): Likewise.
20862 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
20864 Use new function last_active_insn to simplify some code.
20865 New code to handle multiple tests.
20866 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
20867 cond_exec_changed_p to TRUE.
20869 (process_if_block): New code to handle multiple tests.
20870 (merge_if_block): Likewise.
20871 (find_if_header): New arg PASS. Changed to return the currently
20872 processed basic block or NULL instead of true/false. All callers
20874 Call IFCVT_INIT_EXTRA_FIELDS.
20875 (block_jumps_and_fallthru_p): New function.
20876 (find_if_block): Discover opportunities to convert multiple tests.
20877 Add additional debugging output.
20878 Update the ce_info structure before returning.
20880 (if_convert): Run multiple passes of if-conversion.
20881 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
20882 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
20883 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
20886 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
20888 * gcse.c: Include cselib.h
20889 (constptop_register): Break out from ...
20890 (cprop_insn): ... here; kill basic_block argument.
20891 (do_local_cprop, local_cprop_pass): New functions.
20892 (one_cprop_pass): Call local_cprop_pass.
20894 2002-07-20 Roger Sayle <roger@eyesopen.com>
20896 * simplify-rtx.c (simplify_relational_operation): Optimize
20897 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
20899 2002-07-20 Michae Matz <matz@suse.de>
20901 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
20903 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
20905 * cppexp.c (struct op): Add token pointer.
20906 (check_promotion, CHECK_PROMOTION): New.
20908 (_cpp_parse_expr): Update, use token pointer of struct op.
20909 (reduce): Warn about change of sign owing to promotion.
20910 * cppinit.c (cpp_handle_option): New warning if -Wall.
20911 * cpplib.h (struct cpp_options): New member.
20913 2002-07-19 David Edelsohn <edelsohn@gnu.org>
20915 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
20916 fpu list. Separate Power4 compare and delayed_compare. Correct
20918 (fix_truncdfsi2_internal): Restore FPR preference.
20919 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
20920 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
20922 2002-07-19 Momchil Velikov <velco@fadata.bg>
20924 * reload1.c (reload_as_needed): Duplicate oldpat.
20926 2002-07-20 Alan Modra <amodra@bigpond.net.au>
20928 PR optimization/7130
20929 * loop.h (struct loop_info): Add "preconditioned".
20930 * unroll.c (unroll_loop): Set it.
20931 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
20933 2002-07-19 Zack Weinberg <zack@codesourcery.com>
20935 * rtl.def (CODE_LABEL): Remove slot 8.
20936 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
20937 (LABEL_ALTERNATE_NAME): Delete.
20938 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
20939 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20941 * final.c (output_alternate_entry_point): New.
20942 (final_scan_insn): Use it instead of
20943 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
20944 of a case label being an alternate entry point.
20946 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
20947 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
20948 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
20950 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
20952 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
20953 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
20954 * doc/tm.texi: Delete documentation of
20955 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20957 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20959 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
20960 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
20961 (LINK_SPEC): Define.
20962 (STARTFILE_SPEC): Define.
20963 (ENDFILE_SPEC): Define.
20965 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
20966 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
20968 * config/mips/iris6-o32-gas.h: New file.
20969 * config.gcc (mips-sgi-irix6*o32): Use it.
20971 * config/mips/t-iris5-gas: New file.
20972 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
20974 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
20976 * cppexp.c (ALWAYS_EVAL): Remove.
20977 (optab, reduce): Always evaluate.
20978 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
20979 only if not skipping evaluation.
20981 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
20983 * config/avr/avr.c (debug_hard_reg_set): Remove.
20985 2002-07-19 Chris Demetriou <cgd@broadcom.com>
20987 * gcc.c (cpp_options): Include "%1" (cc1_spec).
20989 2002-07-19 Richard Henderson <rth@redhat.com>
20991 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
20993 2002-07-19 Alan Modra <amodra@bigpond.net.au>
20995 * prefix.c (update_path): Don't zap single `.' path components
20996 unless followed by another `.' and fix typo last patch.
20998 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
21000 * cppexp.c (cpp_num_mul): Remove unused parameter.
21001 (UNARY, BINARY, OTHER, binary_handler): Remove.
21002 (ALWAYS_EVAL): New.
21004 (reduce): Refactor to a large switch, don't use a function
21007 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
21009 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
21011 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
21013 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
21014 (sh_expand_binop_v2sf): Likewise.
21015 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
21016 (int_gpr_dest, trunc_hi_operand): New functions.
21017 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
21019 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
21020 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
21021 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
21022 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
21023 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
21024 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
21025 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
21026 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
21027 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
21028 (movsf_ie+1): Likewise.
21029 (loaddi_trunc): Use int_gpr_dest predicate.
21030 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
21031 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
21032 (casesi_worker_0+[12], casesi_worker): Likewise.
21033 (shcompact_preserve_incoming_args): Likewise.
21034 (mov_nop): Use any_register_operand predicate.
21035 (mperm_w0): Use trunc_hi_operand predicate.
21037 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
21039 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
21040 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
21043 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
21045 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
21047 2002-07-18 Richard Henderson <rth@redhat.com>
21049 PR optimization/7147
21050 * ifcvt.c (noce_get_condition): Make certain that the condition
21053 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
21055 * sh.c (barrier_align, push): Shut up compiler warnings.
21056 (initial_elimination_offset,sh_media_init_builtins): Likewise.
21057 (reg_no_subreg_operand): Delete.
21059 2002-07-17 Bo Thorsen <bo@suse.de>
21061 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
21062 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
21063 (STARTFILE_SPEC): Remove hardcoded library paths.
21064 (ENDFILE_SPEC): Likewise.
21066 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
21068 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
21070 * gcse.c (try_replace_reg): Do not return false positives.
21072 2002-07-18 Alan Modra <amodra@bigpond.net.au>
21074 * prefix.c: (update_path): Strip ".." components when prior dir
21075 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
21077 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
21078 (ASM_OUTPUT_REG_POP): Likewise.
21080 2002-07-18 Alan Modra <amodra@bigpond.net.au>
21082 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
21083 adjustments to first_reg for profiling case.
21084 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
21085 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
21086 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
21087 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
21088 (ASM_OUTPUT_REG_POP): Define.
21089 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
21090 (ASM_OUTPUT_REG_POP): Undef.
21092 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
21094 * cpplib.c (do_sccs): Handle #sccs on all systems.
21095 * system.h (SCCS_DIRECTIVE): Poison.
21096 * config/darwin.h, config/freebsd.h, config/netbsd.h,
21097 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
21098 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
21099 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
21100 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
21101 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
21102 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
21103 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
21104 Remove all references to SCCS_DIRECTIVE.
21105 * doc/cpp.texi, doc/tm.texi: Update.
21107 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
21109 * regrename.c (maybe_mode_change): New function.
21110 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
21112 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
21114 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
21115 suppress addition when either ct or cf are zero.
21117 2002-07-17 Eric Botcazou <ebotcazou@multimania.com>
21118 Glen Nakamura <glen@imodulo.com>
21120 PR optimization/6713
21121 * loop.c (loop_givs_rescan): Explicitly delete the insn that
21122 sets a non-replaceable giv after issuing the new one.
21124 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
21126 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
21127 eval_token): Clarify and correct use of "bool" variables.
21128 * cpplib.h (struct cpp_options): Similarly.
21129 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
21130 * cpptrad.c (recursive_macro): Similarly.
21132 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
21134 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
21137 * sh.md (cmpgtudi_media): Remove spurious @.
21139 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
21140 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
21142 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
21143 * sh-protos.h (sh_initialize_trampoline): Declare.
21144 * sh.c (sh_initialize_trampoline): New function.
21145 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
21146 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
21147 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
21148 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
21149 * sh.md (initialize_trampoline, double_shori): New patterns.
21150 (initialize_trampoline_compact): Likewise.
21151 (shmedia32_initialize_trampoline_big): Remove.
21152 (shmedia32_initialize_trampoline_little): Likewise.
21154 * sh-protos.h (binary_float_operator): Remove declaration.
21155 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
21156 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
21157 (unary_float_operator, sh_expand_unop_v2sf): New functions.
21158 (sh_expand_binop_v2sf): Likewise.
21159 (zero_vec_operand): Delete.
21160 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
21161 all non-shared ones.
21162 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
21163 Enable nsb and byterev.
21164 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
21165 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
21167 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
21168 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
21169 immediate operands.
21170 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
21172 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
21173 lowpart fp regs - only for big endian for now.
21174 (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
21175 when FPU is in use.
21176 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
21177 (LOAD_EXTEND_OP): NIL for SImode.
21178 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
21179 general and fp registers is 4.
21180 PREDICATE_CODES: Amend binary_float_operator entry.
21181 Remove zero_vec_operand. Add unary_float_operator.
21182 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
21184 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
21185 (truncdiqi2): Do sign extension.
21186 (movsi_media, movdi_media): Allow to use r63 to an fp register.
21187 (movdf_media, movsf_media): Likewise.
21188 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
21189 Collapse to one define_insn_and_split. Allow immediate sources.
21190 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
21191 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
21192 (movv4sf): Allow immediate sources.
21193 (movsf_media_nofpu+1): Don't split moves to FP registers.
21194 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
21195 (movv8qi_i+3): Check against CONST0_RTX.
21196 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
21197 for input and output operands. Fix argument 3 to gen_mextr_rl.
21198 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
21199 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
21200 (mshf0_w, fipr, ftrv): Likewise.
21201 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
21203 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21205 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
21206 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
21207 * arm.c: Similarly.
21209 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
21211 * config/mips/mips-protos.h (mips_sign_extend): Declare.
21212 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
21213 (TARGET_SWITCHES): Remove debugh.
21214 (ISA_HAS_TRUNC_W): New macro.
21215 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
21216 (PREDICATE_CODES): Remove se_nonimmediate_operand.
21217 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
21218 any SImode move_operand.
21219 (se_nonimmediate_operand): Remove.
21220 (mips_sign_extend): New.
21221 (mips_move_2words): Use it for sign-extended source operands.
21222 (override_options): Allow integers to be put into single FPRs.
21223 (mips_secondary_reload_class): Handle integers in float registers.
21224 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
21225 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
21226 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
21227 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
21228 (fix_truncdfdi2): Provide only a single alternative, in which the
21229 integer is in a float register. Depend on TARGET_FLOAT64 rather
21231 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
21232 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
21233 (movdi_internal2): Don't allow the source operand to be sign-extended.
21234 Add alternatives for float registers.
21235 (*movdi_internal2_extend): New. Version of movdi_internal2 that
21236 allows sign-extension.
21237 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
21238 (movsi_internal2): Rename to movsi_internal. Add alternatives for
21239 float registers. Remove TARGET_DEBUG_H_MODE test.
21240 (movhi_internal1): Rename to movhi_internal. Don't check
21241 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
21242 (movqi_internal1): Rename to movqi_internal and remove
21243 TARGET_DEBUG_H_MODE dependency.
21244 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
21246 2002-07-16 Jim Wilson <wilson@redhat.com>
21248 * toplev.c (lang_dependent_init): Create function context for
21251 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
21253 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
21254 --gc-sections if -r.
21255 * config/cris/cris.h: Ditto.
21257 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
21259 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
21260 the comparison directly gives a mask suppress addition when cf is
21261 zero by complementing the mask.
21263 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
21265 * Makefile.in: Delete references to enquire.
21266 * enquire.c: Move to contrib.
21268 2002-07-16 Stan Shebs <shebs@apple.com>
21270 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
21271 config/rs6000/darwin.h.
21272 (ASM_OUTPUT_SKIP): Ditto.
21273 (TEXT_SECTION_ASM_OP): Ditto.
21274 (DATA_SECTION_ASM_OP): Ditto.
21275 (ASM_APP_ON): Define.
21276 (ASM_APP_OFF): Define.
21277 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
21278 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
21280 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
21281 (machopic_function_base_name): Declare result to be const.
21282 (machopic_non_lazy_ptr_name): Ditto.
21283 (machopic_stub_name): Ditto.
21284 * config/darwin-protos.h: Ditto for the prototypes.
21286 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
21288 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
21290 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
21292 * i386.md (prefetch): Fix for 64bit mode.
21293 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
21295 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
21297 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
21298 * i386.c (x86_machine_dependent_reorg): New function.
21299 * i386-protos.h (x86_machine_dependent_reorg): Declare.
21301 2002-07-16 Zack Weinberg <zack@codesourcery.com>
21303 * builtins.c (std_expand_builtin_va_start): Remove unused
21305 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
21306 std_expand_builtin_va_start with just two arguments.
21307 * expr.h: Update prototypes.
21309 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
21310 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
21311 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
21312 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
21313 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
21314 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
21315 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
21316 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
21317 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
21318 argument from all implementations of EXPAND_BUILTIN_VA_START
21319 and all uses of std_expand_builtin_va_start.
21321 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
21323 * regrename.c (copy_value): Don't record high part copies.
21325 2002-07-16 Steve Ellcey <sje@cup.hp.com>
21327 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
21328 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
21329 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
21331 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
21333 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
21335 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
21336 into addsi3 using register class "x" and "y".
21338 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
21339 "earlyclobber" constraint modifier for some alternative.
21341 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
21342 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
21344 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
21346 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
21347 (TARGET_SWITCHES): Add -mieee-compare option.
21348 (OVERRIDE_OPTIONS): 32332 is a subset of
21349 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
21350 (TARGET_SWITCHES): Fix description of bitfield option.
21351 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
21352 -mieee-compare option. Remove 32332 flag.
21354 2002-07-16 Steve Ellcey <sje@cup.hp.com>
21356 * explow.c (convert_memory_address): Remove special handling
21357 when POINTERS_EXTEND_UNSIGNED < 0.
21358 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
21359 (movedi_symbolic): Fix typo.
21360 (load_fptr): Remove mode restriction so it works for SI and DI.
21361 (load_fptr_internal1): Ditto.
21362 (load_gprel): Ditto.
21363 (load_symptr_internal1): Ditto.
21365 * config/ia64.c (call_operand): Modify mode check.
21366 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
21367 (ia64_expand_move): Ditto.
21368 (ia64_assemble_integer): Handle SImode function pointers.
21369 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
21370 (ia64_expand_op_and_fetch): Ditto.
21371 (ia64_expand_compare_and_swap): Ditto.
21372 (ia64_expand_lock_test_and_set): Ditto.
21373 (ia64_expand_lock_release): Ditto.
21375 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21377 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
21379 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21380 Richard Earnshaw <rearnsha@arm.com>
21382 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
21383 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
21385 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
21387 * arm.md (stack_tie): New insn. Use an idiom that the alias code
21388 understands to be a memory clobber.
21389 * arm.c (arm_expand_prologue): Use it.
21391 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
21393 * ra-rewrite.c: #include reload.h, insn-config.h
21394 * ra-build.c: #include reload.h
21395 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
21396 depend on reload.h, insn-config.h.
21398 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
21400 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
21401 the same size as a word.
21403 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
21404 BYTES_BIG_ENDIAN into account.
21406 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
21408 * i386.md (prefetch): Fix for 64bit mode.
21409 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
21411 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
21413 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
21415 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
21417 2002-07-15 Zack Weinberg <zack@codesourcery.com>
21419 * ginclude/varargs.h: Replace with stub which issues #error.
21420 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
21421 __builtin_va_start.
21423 * builtins.def (BUILT_IN_VARARGS_START): Delete.
21424 (BUILT_IN_VA_START): New.
21425 * builtins.c (expand_builtin_va_start): Eliminate first
21426 argument and code to implement pre-ISO varargs.
21427 (std_expand_builtin_va_start): Ignore first argument; it is
21429 (expand_builtin): Handle BUILT_IN_VA_START and
21430 BUILT_IN_STDARG_START identically. Delete
21431 BUILT_IN_VARARGS_START case.
21433 * function.c (assign_parms): Delete hide_last_arg and all
21435 (mark_varargs): Delete function.
21436 * function.h (struct function): Delete 'varargs' bit.
21437 (current_function_varargs): Delete macro.
21438 * tree.h: Don't declare mark_varargs.
21440 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
21441 (c_expand_body): Don't call mark_varargs.
21442 * c-objc-common.c: Handle BUILT_IN_VA_START and
21443 BUILT_IN_STDARG_START identically. Delete
21444 BUILT_IN_VARARGS_START case.
21445 * c-tree.h: Don't declare c_mark_varargs.
21446 * c-parse.in: Remove grammar rules for '&...' (which has been
21447 commented out since before 2.7.2) and for '...' in K+R
21448 argument declarations.
21450 * builtins.c, function.c, integrate.c, sibcall.c,
21451 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
21452 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
21453 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
21454 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
21455 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
21456 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
21457 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
21458 config/stormy16/stormy16.c: Delete all references to
21459 current_function_varargs, and code predicated on that flag.
21461 * config/alpha/alpha.c (alpha_va_start),
21462 config/arc/arc.c (arc_va_start),
21463 config/i386/i386.c (ix86_va_start),
21464 config/mips/mips.c (mips_va_start),
21465 config/mn10300/mn10300.c (mn10300_va_start),
21466 config/rs6000/rs6000.c (rs6000_va_start),
21467 config/s390/s390.c (s390_va_start),
21468 config/sh/sh.c (sh_va_start),
21469 Ignore first argument; it is always 1.
21471 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
21472 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
21473 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
21474 Delete m68hc11_va_start.
21475 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
21476 No need to define EXPAND_BUILTIN_VA_START.
21478 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
21479 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
21481 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
21483 PR optimization/7153
21484 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
21485 dies in more than one insn.
21487 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
21489 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
21491 2002-07-15 Michael Matz <matz@suse.de>,
21492 Daniel Berlin <dberlin@dberlin.org>,
21493 Denis Chertykov <denisc@overta.ru>
21495 Add a new register allocator.
21499 * ra-build.c: New file.
21500 * ra-colorize.c: New file.
21501 * ra-debug.c: New file.
21502 * ra-rewrite.c: New file.
21504 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
21505 (ra-rewrite.o): New .o files for libbackend.a.
21506 (GTFILES): Add basic-block.h.
21508 * toplev.c (flag_new_regalloc): New.
21509 (f_options): New option "new-ra".
21510 (rest_of_compilation): Call initialize_uninitialized_subregs()
21511 only for the old allocator. If flag_new_regalloc is set, call
21512 new allocator, instead of local_alloc(), global_alloc() and
21515 * doc/invoke.texi: Document -fnew-ra.
21516 * basic-block.h (FOR_ALL_BB): New.
21517 * config/rs6000/rs6000.c (print_operand): Write small constants
21520 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
21521 (df_reg_table_realloc): Make size at least as large as max_reg_num().
21522 (df_insn_table_realloc): Size argument now is absolute, not relative.
21523 Changed all callers.
21525 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
21526 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
21528 2002-06-20 Michael Matz <matz@suse.de>
21530 * df.h (struct ref.id): Make unsigned.
21531 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
21533 2002-06-13 Michael Matz <matz@suse.de>
21535 * df.h (DF_REF_MODE_CHANGE): New flag.
21536 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
21537 involving subregs with invalid mode changes, when
21538 CLASS_CANNOT_CHANGE_MODE is defined.
21540 2002-05-07 Michael Matz <matz@suse.de>
21542 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
21544 2002-05-03 Michael Matz <matz@suse.de>
21546 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
21548 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
21550 * regclass.c (regclass): Work with all regs which have sets or
21552 (reg_scan_mark_refs): Count regs inside (clobber ...).
21554 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
21556 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
21557 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
21559 (df_bb_refs_update): Don't clear insns_modified here, ...
21560 (df_analyse): ... but here.
21562 * sbitmap.c (dump_sbitmap_file): New.
21563 (debug_sbitmap): Use it.
21565 * sbitmap.h (dump_sbitmap_file): Add prototype.
21567 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
21569 * df.c (df_insn_modify): Grow the UID table if necessary, rather
21570 than assume all emits go through df_insns_modify.
21572 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
21574 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
21575 increase REG_N_REFS (like flow does), so that regclass doesn't
21576 think a reg is useless, and thus, not calculate a class, when it
21577 really should have.
21579 2001-01-28 Daniel Berlin <dberlin@redhat.com>
21581 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
21584 2002-07-15 Jakub Jelinek <jakub@redhat.com>
21587 * config/i386/i386.c (const_int_1_31_operand): New.
21588 * config/i386/i386.h (PREDICATE_CODES): Add it.
21589 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
21590 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
21591 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
21593 2002-07-14 Alan Modra <amodra@bigpond.net.au>
21596 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
21597 (floatunssidf2): Likewise.
21598 (floatsidf_ppc64): New insn_and_split.
21599 (floatunssidf_ppc64): Likewise.
21601 2002-07-14 Andreas Jaeger <aj@suse.de>
21603 * config.gcc (sh64): Remove unused
21604 target_requires_64bit_host_wide_int.
21606 2002-07-12 Roger Sayle <roger@eyesopen.com>
21608 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
21609 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
21610 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
21611 whether clear_by_pieces should be used to clear storage.
21612 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
21614 * doc/tm.texi: Document these two new target macros.
21616 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
21618 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
21619 the scratch register.
21620 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
21621 of it, forbid reload to use it.
21623 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
21625 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
21626 usage on 64-bit hosts, return value was truncated to 32 bits.
21628 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
21630 * simplify-rtx.c (simplify_subreg): Handle floating point
21631 CONST_DOUBLEs. When an integer subreg of a smaller mode than
21632 the element mode is requested, compute a subreg with an
21633 integer mode of the same size as the element mode first.
21635 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
21637 * combine.c (try_combine): When converting a paradoxical subreg
21638 to an extension, take LOAD_EXTEND_OP into account.
21640 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21642 * config.gcc (mips-sgi-irix6*o32): New configuration.
21644 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
21646 * configure: Regenerate.
21648 * config/mips/iris6-o32-as.h: New file.
21649 * config/mips/iris6-o32.h: New file.
21651 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
21652 (NM_FLAGS): Define.
21653 (HAVE_AS_SHF_MERGE): Undefine.
21655 * config/mips/t-iris5-as: New file.
21656 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
21658 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
21659 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
21660 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
21661 dp-bit.c, fp-bit.c): Move ...
21662 * config/mips/t-iris5-6: ... here.
21663 New file, shared by IRIX 5 and IRIX 6.
21664 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
21665 mips-sgi-irix5*): Use it.
21667 * config/mips/iris6.h: Remove duplicate comment.
21669 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
21670 !TARGET_IRIX6]: Define.
21671 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
21673 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
21675 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
21677 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
21678 and delete code to force constant to register.
21679 * pa-protos.h (adddi3_operand): Add prototype.
21680 * pa.c (adddi3_operand): New function.
21682 2002-07-11 Roger Sayle <roger@eyesopen.com>
21684 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
21685 non-ANSI builtin functions.
21687 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
21689 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
21690 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
21691 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
21692 (gen_const_vector_0): Use it.
21694 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
21696 * pa.md (adddi3): For 32-bit targets, force constants to a register
21697 if they don't fit in an 11-bit immediate. Change insn predicate to
21698 arith11_operand. Remove comment.
21699 * pa.c (cint_ok_for_move): Fix comment.
21700 (emit_move_sequence): Don't directly split DImode constants on 32-bit
21703 2002-07-11 Tim Josling <tej@melbpc.org.au>
21705 Remove front end hard coding from gengtype.c.
21708 (STAGESTUFF): add gtyp-gen.h
21709 (GTFILES): Remove front end specific files.
21710 (GTFILES_FILES_LANGS): New, from configure..
21711 (GTFILES_FILES_FILES): Likewise.
21712 (GTFILES_LANG_DIR_NAMES): Likewise.
21713 (GTFILES_SRCDIR): Likewise.
21714 (gtyp-gen.h): Build from configure information.
21715 (s-gtype): Remove command line parameters from gengtype.
21716 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
21717 (mostlyclean): Delete files generated by and for gengtype.
21719 * c-config-lang.in: New file.
21721 * configure.in (all_gtfiles_files_langs): New. Accumulate files
21723 (all_gtfiles_files_files): New. Accumulate language for each file
21725 (gtfiles): Pick up value for C.
21726 (srcdir): AC-SUBST this variable.
21727 (all_gtfiles_files_langs): AC-SUBST this variable.
21728 (all_gtfiles_files_files): AC-SUBST this variable.
21730 * configure: Regenerate.
21732 * gengtype-lex.l (parse_file): Make parameter const.
21734 * gengtype.c (toplevel): include gtyp-gen.h.
21735 (BASE_FILE_<language> unnamed enum): Delete.
21736 (lang_names): Delete (replaced by gtyp-gen.h)
21737 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
21739 (NUM_GT_FILES): New.
21740 (NUM_LANG_FILES): New.
21742 (NUM_BASE_FILES): Change calculation.
21743 (open_base_files): Change prototype to avoid warning.
21744 (startswith): Delete.
21745 (get_file_basename): Iterate through generated language list not
21747 (get_base_file_bitmap): Use generated list of files and languages.
21748 (close_output_files): Add prototype to rmove warning.
21749 (main): Iterate through list of generated files from gtyp-gen.h
21750 rather than command line paramaters. Ignore duplicated file
21753 * gengtype.h (parse_file): Amend prototype for const parameter.
21755 * doc/sourcebuild.texi: Document gtfiles variable.
21757 * doc/gty.texi: Document changes to gtfiles variable for front
21760 * objc/config-lang.in (gtfiles): Add files needed for objc front
21763 2002-07-10 Roger Sayle <roger@eyesopen.com>
21766 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
21767 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
21769 2002-07-10 Roger Sayle <roger@eyesopen.com>
21770 Zack Weinberg <zack@codesourcery.com>
21772 * builtins.def: Make the argument types of abort and exit
21773 independent of the front-end.
21775 2002-07-11 Alan Modra <amodra@bigpond.net.au>
21777 * config/rs6000/linux64.h (ASM_SPEC): Define.
21779 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
21781 * config/rs6000/rs6000.c (emit_frame_save): New.
21782 (rs6000_frame_related): Replace reg2 before reg.
21783 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
21784 and eh_return registers.
21786 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
21788 Revert all patches for optimization of Complex .op. Real.
21789 * complex_part_zero_p: Remove
21790 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
21792 * expand_cmplxdiv_wide: Ditto.
21793 * expand_binop: Ditto.
21795 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
21797 * config/avr/avr.md: Fix two 0x80000000 constants to make them
21798 negative also on 64-bit hosts.
21800 Default to -fno-reorder-blocks when optimizing for size.
21801 * config/avr/avr-protos.h (avr_optimization_options): Declare.
21802 * config/avr/avr.c (avr_optimization_options): New function.
21803 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
21805 Optimize returning from simple functions.
21806 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
21807 * config/avr/avr.c (avr_simple_epilogue): New function.
21808 * config/avr/avr.md (return): New insn.
21810 2002-07-10 Douglas B Rupp <rupp@gnat.com>
21812 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
21813 HAS_INIT_SECTION to protection.
21815 2002-07-10 Mark Mitchell <mark@codesourcery.com>
21817 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
21820 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
21822 * combine.c (gen_lowpart_for_combine): Handle vector modes.
21823 Supply non-VOID mode to simplify_gen_subreg.
21825 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
21827 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
21829 2002-07-10 Jeffrey A Law <law@redhat.com>
21831 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
21834 * mn10200.c (expand_epilogue): Fix test to determine which scratch
21837 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
21839 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
21840 Get mode from dest.
21841 If simplify_gen_subreg fails, try next equivalent.
21843 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
21845 * diagnostic.h: #include location.h
21846 (location_t): Move definition to..
21847 * location.h: ... here. New file.
21848 * tree.h: #include location.h
21849 (DECL_SOURCE_LOCATION): New macro.
21850 (DECL_SOURCE_FILE): Use.
21851 (DECL_SOURCE_LINE): Likewise.
21852 (struct tree_decl): REplace filename and linenum with locus.
21853 * Makefile.in (TREE_H): add location.h
21854 (diagnostic.o): Depends on gt-location.h
21855 (gt-location.h): Depends on s-gtype
21857 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
21859 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
21860 TARGET_OS_CPP_BUILTINS.
21861 * config/rs6000/aix31.h: Likewise.
21862 * config/rs6000/aix41.h: Likewise.
21863 * config/rs6000/aix43.h: Likewise.
21864 * config/rs6000/aix51.h: Likewise.
21865 * config/rs6000/beos.h: Likewise.
21866 * config/rs6000/darwin.h: Likewise.
21867 * config/rs6000/eabi.h: Likewise.
21868 * config/rs6000/eabisim.h: Likewise.
21869 * config/rs6000/linux.h: Likewise.
21870 * config/rs6000/linux64.h: Likewise.
21871 * config/rs6000/lynx.h: Likewise.
21872 * config/rs6000/mach.h: Likewise.
21873 * config/rs6000/rtems.h: Likewise.
21874 * config/rs6000/sysv4.h: Likewise.
21875 * config/rs6000/vxppc.h: Likewise.
21877 2002-07-09 Devang Patel <dpatel@apple.com>
21878 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
21879 Do not allow ObjC objects as a parameter type for Objective-C methods.
21880 My previous patch restricted 'struct' also.
21882 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
21884 * cpperror.c (cpp_error): Default to directive_line within
21886 * cppexp.c (cpp_interpret_integer): Only use traditional
21887 number semantics in directives.
21888 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
21889 (do_include_common): Similarly.
21890 * cpptrad.c (scan_out_logical_line): Implement accurate
21891 quoting of <> in #include.
21892 * doc/cpp.texi: Update.
21894 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
21895 J"orn Rennecke <joern.rennecke@superh.com>
21897 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
21898 * sh.md (attribute issues): Replace with:
21899 (attribute pipe_model). All users changed.
21900 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
21902 (function units sh5issue, sh5fds): New.
21903 (attribute is_mac_media): New.
21904 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
21905 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
21906 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
21907 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
21908 (call_media, call_value_media, sibcall_media): Likewise.
21909 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
21910 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
21911 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
21912 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
21913 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
21914 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
21915 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
21916 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
21917 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
21918 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
21919 (truncdfsf2_media): Likewise.
21920 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
21921 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
21923 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
21925 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
21926 * sh.c (general_extend_operand, inqhi_operand): New functions.
21927 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
21928 alternatives using 'N' modifier. Add type.
21929 (adddi3z_media): Likewise. Enable generator function generation.
21930 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
21931 exact predicates / constraints. Add type.
21932 (subsi3): Allow 0 for SHMEDIA.
21933 (udivsi3_i4_media): Use match_operand for input values
21934 rather than hard registers.
21935 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
21936 unnecessarily through hard registers. Keep copies of pseudo
21937 registers outside of the libcall sequence.
21938 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
21939 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
21940 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
21941 (extendhidi2, extendqidi2): Likewise.
21942 (andsi3_compact): Name.
21943 (andcdi3): Enable generator function generation.
21944 (zero_extendhisi2, zero_extendqisi2): Rename to
21945 (zero_extendhisi2_compact, zero_extendqisi2_compact).
21946 (extendhisi2, extendqisi2): Rename to
21947 (extendhisi2_compact, extendqisi2_compact).
21948 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
21949 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
21950 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
21951 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
21952 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
21953 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
21954 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
21955 (shmedia32_initialize_trampoline_big): Likewise.
21956 (shmedia32_initialize_trampoline_little): Likewise.
21957 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
21958 (negdi2): Remove spurious T clobber.
21959 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
21960 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
21961 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
21962 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
21963 (ic_invalidate_line_media): Write back data cache before invalidating
21964 instruction cache. Add type.
21965 (movsf_media): Sign-extend when the destination is a general
21966 purpose register. Add type.
21967 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
21968 (casesi_worker_0+1): Only increment ref count for proper label.
21969 (casesi_worker_0+2): Likewise.
21971 2002-07-09 Mark Mitchell <mark@codesourcery.com>
21973 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
21975 2002-07-09 Steve Ellcey <sje@cup.hp.com>
21977 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
21978 from Pmode to ptr_mode.
21979 (get_exception_pointer): Ditto.
21980 (connect_post_landing_pads): Ditto.
21981 (dw2_build_landing_pads): Ditto.
21983 2002-07-08 Steve Ellcey <sje@cup.hp.com>
21984 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
21985 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
21986 (handle_pragma_redefine_extname): Change to use new function.
21988 2002-07-08 Roger Sayle <roger@eyesopen.com>
21990 * combine.c (combine_simplify_rtx): Add an explicit cast
21991 to avoid signed/unsigned comparison warning.
21992 (simplify_if_then_else): Likewise.
21993 (extended_count): Likewise.
21994 (simplify_shift_const): Likewise.
21995 (simplify_comparison): Likewise.
21997 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
21999 * config/mips/mips.md: Add imadd type. Update scheduler description
22000 to use imadd as well as imul.
22001 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
22002 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
22003 (*mul_sub_si): Likewise for first alternative. Change second
22004 alternative from imul to multi.
22006 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
22008 * c-common.c (c_common_post_options): Update prototype;
22009 don't init backends if preprocessing only.
22010 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
22011 * langhooks.h (struct lang_hooks): Update post_options to
22013 * toplev.c (parse_options_and_default_flags, do_compile,
22014 lang_independent_init): Update prototypes. Allow the
22015 front end to specify that there is no need to initialize
22017 (general_init): Move call to hex_init here...
22018 (toplev_main): ...from here. Pass flag for back end init
22021 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
22023 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
22024 (PREDICATE_CODES): Add entries for equality_comparison_operator,
22025 greater_comparison_operator and less_comparison_operator.
22026 * sh.c (print_operand): Add '\'' code. Make 'o' handle
22028 (equality_comparison_operator): New function.
22029 (greater_comparison_operator, less_comparison_operator): Likewise.
22030 * sh.md (beq_media_i): Disable generator function generation.
22031 Use match_operator to handle a whole class of comparisons. Add
22032 modifier in output template to provide branch prediction. Add type.
22033 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
22034 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
22035 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
22036 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
22038 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
22040 Emit MMIX function prologue and epilogue as rtl.
22041 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
22042 not unprototyped get_hard_reg_initial_val.
22043 ("call_value", "nonlocal_goto_receiver"): Ditto.
22044 ("return"): Make define_expand. Move real insn to...
22045 ("*expanded_return"): New pattern.
22046 ("prologue", "epilogue"): New define_expands.
22047 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
22048 (struct machine_function): New member in_prologue.
22049 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
22050 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
22051 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
22052 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
22053 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
22054 (LOCAL_REGNO): Define. Adjust comment.
22055 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
22056 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
22058 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
22060 (mmix_target_asm_function_prologue): Make static. Just mark that
22061 the prologue is being emitted. Move guts to...
22062 (mmix_expand_prologue): New function. Adjust for emitting
22063 prologue as rtl. For sizes, use HOST_WIDE_INT only.
22064 (mmix_target_asm_function_epilogue): Make static. Simply emit a
22065 \n. Move guts to...
22066 (mmix_expand_epilogue): New function. Adjust for emitting
22067 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
22068 (mmix_target_asm_function_end_prologue): Mark that the prologue
22070 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
22071 (mmix_conditional_register_usage): Improve comments.
22072 (mmix_local_regno): New function.
22073 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
22074 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
22075 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
22076 (mmix_get_hard_reg_initial_val): Ditto.
22078 2002-07-06 Andreas Jaeger <aj@suse.de>
22080 * toplev.c (set_fast_math_flags): Don't use ISO C style function
22082 * gengtype.c (open_base_files): Likewise.
22083 (close_output_files): Likewise.
22084 * tracer.c (find_best_predecessor): Likewise.
22085 (find_best_successor): Likewise.
22086 (ignore_bb_p): Likewise.
22088 2002-07-05 Roger Sayle <roger@eyesopen.com>
22091 * builtin-attrs.def: Define new attribute lists for use in
22093 * builtins.def [DEF_BUILTIN]: Modify to take an additional
22094 ATTRS argument, an enumerated value defined in builtin-attrs.def
22095 that represents the attribute list for the builtins. Modify
22096 all builtin functions to pass an appropriate attribute list.
22097 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
22098 their required noreturn attributes.
22099 * tree.h (enum_builtin_function): Ignore the additional parameter
22101 * builtins.c (built_in_names): Likewise.
22102 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
22103 argument with a tree representing the functions attribute list.
22104 Pass this "attrs" argument to builtin_function. No longer handle
22105 the noreturn_p processing manually.
22106 (built_in_attributes): Move the definitions from builtin-attrs.def
22107 before c_common_nodes_and_builtins.
22108 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
22109 DEF_BUILTIN, passing it to both builtin_function and the changed
22110 builtin_function_2.
22112 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
22113 __builtin__exit and __builtin__Exit.
22115 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
22117 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
22118 QI mode registers in soft registers.
22119 ("zero_extendqihi2"): Do not take into account soft registers
22120 for register allocation (use '*' constraint).
22122 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
22124 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
22126 ("*ashrsi3"): Likewise.
22127 ("*lshrsi3"): Likewise.
22129 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
22131 * genautomata.c (output_max_insn_queue_index_def): Take latencies
22134 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
22136 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
22137 address computation and memory moves.
22139 2002-07-03 Mark Mitchell <mark@codesourcery.com>
22142 * dwarfout.c (output_reg_number): Fix warning message.
22143 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
22146 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22148 * gcc/gcc.c (asm_debug): Move initialization ...
22149 (init_spec): ... here.
22151 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
22153 * c-parse.in (extdef): Append ';'.
22154 (old_style_parm_decls): Append ';'.
22156 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
22158 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
22159 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
22160 to gcc_cv_as_gstabs_flag.
22161 * configure: Rebuilt.
22163 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
22165 * ggc.h (ggc_add_root): Document as obsolete.
22167 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
22169 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
22170 (mshflo_w): Likewise.
22172 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
22174 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
22175 vector mode subregs of constants to finding integer mode
22176 subregs of constants.
22177 * cse.c (cse_insn): Use simplify_gen_subreg.
22178 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
22179 From a vector mode expression of different size than the
22182 2002-07-03 Eric Christopher <echristo@redhat.com>
22184 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
22185 * config/mips/mips.h: Remove deprecated -m<processor> options
22186 and cc1_cpu_spec associated.
22187 (CONSTANT_ADDRESS_P): Fix last patch.
22188 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
22189 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
22192 2002-07-03 Stan Shebs <shebs@apple.com>
22194 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
22195 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
22196 (CPP_SPEC): Remove insertion of APPLE_CC definition.
22198 2002-07-03 Roger Sayle <roger@eyesopen.com>
22200 * combine.c (struct_undo): Change types of recorded substitutions
22201 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
22202 (do_SUBST_INT): Change types of the substitution from unsigned int
22203 to int, to avoid compilation warning from SUBST_INT's only caller.
22205 (make_extraction): Add cast to avoid compilation warning.
22206 (force_to_mode): Remove cast to avoid compilation warning.
22208 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
22209 Jeff Law <law@redhat.com>
22211 * i386.md (length_immediate attribute): Fix typo.
22212 (length_address attribute): Likewise.
22213 (modrm attribute): Set it to 0 for immediate call instructions.
22214 (jcc_1 pattern): Set modrm attribute to 0.
22215 (jcc_2 pattern ): Likewise.
22216 (jump pattern): Likewise.
22217 (doloop_end_internal pattern): Explicitly set length.
22218 (leave pattern): Fix typo.
22219 (leave_rex64 pattern): Likewise.
22221 2002-07-03 David Edelsohn <edelsohn@gnu.org>
22223 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
22224 in FPR as preference.
22226 (floatdidf2, fix_truncdfdi2): Same.
22227 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
22228 (floatditf2): Same.
22229 (floatsitf2, fix_trunctfsi2): SImode in GPR.
22230 (ctrdi): Remove FPR alternative and splitter.
22232 2002-07-03 Will Cohen <wcohen@redhat.com>
22234 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
22236 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
22238 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
22239 than UNITS_PER_WORD, unless this is little endian and the first unit
22240 in this word. Let extract_bit_field decide how to load an element.
22241 Force arguments to matching mode.
22242 (expand_vector_unop): Likewise.
22244 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
22245 consist of word_mode elements.
22246 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
22247 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
22248 (build_unary_op): Allow vector types for BIT_NOT_EPR.
22249 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
22251 * optabs.c (expand_vector_binop): Try to perform operation in
22252 smaller vector modes with same inner size. Add handling of AND, IOR
22253 and XOR. Reject expansion to inner-mode sized scalars when using
22254 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
22255 (expand_vector_unop): Try to perform operation in smaller vector
22256 modes with same inner size. Add handling of one's complement.
22257 When there is no vector negate operation, try a vector subtract
22258 operation. Use simplify_gen_subreg on constants.
22259 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
22260 constants into smaller vectors with same inner mode, and to
22261 integer CONST_DOUBLEs.
22263 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22265 * c-parse.in (parsing_iso_function_signature): New variable.
22266 (extdef_1): New, copied from...
22267 (extdef): ... here. Reset parsing_iso_function_signature.
22268 (old_style_parm_decls): Reset parsing_iso_function_signature.
22269 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
22270 Warn about ISO C style function definitions.
22271 (nested_function, notype_nested_function): Reset
22272 parsing_iso_function_signature.
22273 (parmlist_2): Set parsing_iso_function_signature.
22275 * doc/invoke.texi (-Wtraditional): Document new behavior.
22277 2002-07-02 Chris Demetriou <cgd@broadcom.com>
22279 * config.gcc (mips*el-*-*): Use tm_defines to set
22280 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
22281 * config/mips/little.h: Remove.
22283 2002-07-02 Devang Patel <dpatel@apple.com>
22285 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
22286 object as parameter. Prevent something like 'NSObject' to be
22287 used as the type for a method argument.
22289 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
22291 * cpptrad.c: Update comment.
22293 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
22295 * doc/cpp.texi: Update for traditional preprocessing changes.
22296 * goc/cppopts.texi: Similarly.
22298 2002-07-02 Ziemowit Laski <zlaski@apple.com>
22300 * c-parse.in (designator): Enable designated initializers if ObjC.
22301 (objcmessageexpr): Remove references to objc_receiver_context.
22302 * objc/objc-act.h (objc_receiver_context): Remove decl.
22303 * objc/objc-act.c (objc_receiver_context): Remove.
22304 (lookup_objc_ivar): Test objc_method_context instead of
22305 objc_receiver_context.
22307 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
22309 * sh.c (print_operand, case 'N'): Allow zero vector.
22310 (arith_reg_or_0_operand): Likewise.
22311 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
22312 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
22313 IOR, XOR, PLUS and SET and take their respective constant
22314 ranges into account.
22315 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
22316 * sh.md (subdi3, subdi3_media): Allow zero operand.
22317 (movv8qi_i+3): Only vector that is not split is the zero vector.
22318 Fix operand 3 to simplify_subreg.
22319 (movv2si_i): Split alternative 1.
22320 (mshfhi_l_di_rev+1): New splitter.
22322 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
22324 PR preprocessor/7029
22325 * cppinit.c (cpp_handle_option): Suppress warnings with an
22326 implicit "-w" for "-M" and "-MM".
22327 * doc/cppopts.texi: Update.
22329 2002-07-01 Roger Sayle <roger@eyesopen.com>
22331 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
22332 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
22335 2002-07-02 Alan Modra <amodra@bigpond.net.au>
22337 * README.Portability: Fix typos.
22339 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
22342 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
22343 of indirections for register inside sign-extended mem part.
22345 2002-07-01 Roger Sayle <roger@eyesopen.com>
22347 * tree.h: Modify builtin_function interface to take an extra
22348 argument ATTRS, which is a tree representing an attribute list.
22350 * c-decl.c (builtin_function): Accept additional parameter.
22351 * objc/objc-act.c (builtin_function): Likewise.
22352 * f/com.c (builtin_function): Likewise.
22353 * java/decl.c (builtin_function): Likewise.
22354 * ada/utils.c (builtin_function): Likewise.
22355 * cp/decl.c (builtin_function): Likewise.
22356 (builtin_function_1): Likewise.
22358 * c-common.c (c_common_nodes_and_builtins): Pass an additional
22359 NULL_TREE argument to builtin_function. (builtin_function_2):
22361 * cp/call.c (build_java_interface_fn_ref): Likewise.
22362 * objc/objc-act.c (synth_module_prologue): Likewise.
22363 * java/decl.c (java_init_decl_processing): Likewise.
22364 * f/com.c (ffe_com_init_0): Likewise.
22366 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
22367 NULL_TREE argument to builtin_function.
22368 * config/arm/arm.c (def_builtin): Likewise.
22369 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
22370 * config/i386/i386.c (def_builtin): Likewise.
22371 * config/ia64/ia64.c (def_builtin): Likewise.
22372 * config/rs6000/rs6000.c (def_builtin): Likewise.
22374 2002-07-01 Zack Weinberg <zack@codesourcery.com>
22376 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
22377 * config/mips/t-isa3264: Likewise.
22378 * config/mmix/t-mmix: Likewise.
22380 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
22382 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
22384 2002-07-01 Roger Sayle <roger@eyesopen.com>
22387 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
22388 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
22389 B are truth values.
22391 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
22393 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
22395 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
22397 * README.Portability (Function prototypes): Give an example of
22398 declaring and defining a function with no arguments.
22400 * README.Portability (Function prototypes): Document new
22401 variable-argument function macros.
22403 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
22405 * sh.c (langhooks.h): Include.
22406 (sh_init_builtins, sh_media_init_builtins): New functions.
22407 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
22408 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
22409 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
22410 (builtin_description): New struct tag.
22411 (signature_args, bdesc): New arrays.
22412 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
22413 (print_operand): Add 'N' modifier.
22414 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
22415 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
22416 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
22417 (CONST_COSTS): Add special case for SHmedia AND.
22418 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
22419 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
22420 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
22421 target_operand can also be const or unspec.
22422 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
22423 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
22424 (attribute type): Add new types.
22425 (anddi3): Add splitter.
22426 (movdi_const_16bit+1): Add code to handle vector constants and
22427 bitmasks efficiently.
22428 (shori_media): Have generator function made.
22429 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
22430 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
22431 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
22432 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
22433 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
22434 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
22435 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
22436 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
22437 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
22438 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
22439 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
22440 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
22441 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
22442 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
22443 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
22444 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
22445 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
22446 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
22447 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
22450 (fpu_switch+1, fpu_switch+2): Remove constraint.
22452 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
22454 * tree.c (build_function_type_list): Update function comment.
22455 Rename first argument to return_type.
22457 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
22459 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
22460 tradcif.y and related files.
22462 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
22464 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
22466 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22468 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
22470 See ChangeLog.7 for earlier changes.