1 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
3 * target.h: Fix formatting.
9 * tree-dump.h: Likewise.
11 * tree-inline.h: Likewise.
13 * unwind-dw2.c: Likewise.
14 * unwind-dw2-fde.c: Likewise.
15 * unwind-dw2-fde-glibc.c: Likewise.
16 * unwind-dw2-fde.h: Likewise.
18 * unwind-sjlj.c: Likewise.
22 * vmsdbgout.c: Likewise.
23 * xcoffout.h: Likewise.
25 2002-05-31 Igor Shevlyakov <igor@microunity.com>
27 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
28 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
30 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
32 * gcc.c (cpp_unique_options): Remove "-d" options.
33 (cpp_debug_options): New spec string.
34 (default_compilers): Use it.
35 * objc/lang-specs.h: Likewise.
37 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
39 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
40 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
41 * gcc/mklibgcc.in: Likewise.
42 * gcc/config/arc/t-arc: Likewise.
43 * gcc/configure.in: Likewise.
44 * gcc/configure: Regenerate.
46 2002-05-31 Stan Shebs <shebs@apple.com>
47 Turly O'Connor <turly@apple.com>
49 * c-decl.c (struct binding_level): Change int field n_incomplete
50 to tree list incomplete_list.
51 (clear_binding_level): Init field with NULL.
52 (pushdecl): Add incomplete type to list.
53 (mark_binding_level): Mark the incomplete list.
54 (finish_struct): Scan the incomplete list for types instead
55 of all decls in the current binding level.
57 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
59 * pa.c (output_millicode_call): Add missing '%' characters.
60 (output_call): Likewise.
62 2002-05-31 David Edelsohn <edelsohn@gnu.org>
64 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
65 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
67 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
69 * varasm.c (mark_constant_pool): Walk epilogue delay list
70 checking the insn, not the chain for potential constants.
72 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
74 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
76 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
78 * i386.c (classify_argument): Properly handle base types.
80 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
81 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
84 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
86 * gcse.c (gcse_emit_move_after): New.
87 (pre_delete, hoist_store): Use it.
89 * reload1.c (emit_input_reload_insns): Use constrain_operands
90 instead of constraint_accepts_reg_p to verify optimization.
91 (constraint_accepts_reg_p): Kill
93 * reload1.c (reload_cse_delete_noop_set): Kill.
94 (reload_cse_simplify): use delte_insn_and_edges.
96 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
98 * cfgloop.c (flow_loops_find): Initialize first and last fields
101 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
103 * c-common.c (builtin_define_std): Correct logic.
105 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
107 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
108 (output_call): Likewise.
110 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
112 * pa.c: Move output.h include after tree.h include.
113 (pa_asm_output_mi_thunk): Constify identifier lab.
115 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
117 * config/ns32k/ns32k.h: Define named constants for the
118 bits in target_flags and use them.
119 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
121 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
123 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
124 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
125 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
126 default scheduling model.
127 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
128 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
129 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
130 * doc/install.texi (hppa*-*-*): Document default scheduling.
132 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
134 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
136 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
138 * config.gcc (ns32k-*-netbsd*): Set tm_file to
139 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
140 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
141 netbsd.h, or netbsd-aout.h.
143 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
145 * longlong.h (count_trailing_zeros): Add missing \, and clean up
146 whitespace in __ns32000__ case.
148 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
150 * expr.c (expand_expr): Output partially zeroed out vectors with
153 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
155 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
157 (shl*-*-netbsdelf*): New targets.
158 * config/sh/netbsd-elf.h: New file.
160 2002-05-30 Richard Henderson <rth@redhat.com>
161 Eric Botcazou <ebotcazou@multimania.com>
164 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
165 to unsigned int for op1 comparisons. Use gen_int_mode.
167 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
169 * expmed.c (const_mult_add_overflow_p): New.
170 * expr.h: Declare it.
171 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
172 Don't eliminate the biv if the giv has a constant multiplier and
173 the rhs argument of the comparison does satisfy the predicate.
174 Use expand_mult_add to compute the replacement constant.
176 2002-05-30 Osku Salerma <osku@iki.fi>
178 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
179 (c_common_get_alias_set): Handle it.
180 * doc/extend.texi: Document it.
182 2002-05-30 Richard Henderson <rth@redhat.com>
184 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
185 * toplev.c (process_options): Don't check it.
186 * doc/tm.texi: Don't document it.
187 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
188 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
189 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
190 frame pointer optimization if current_function_profile.
192 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
194 * langhooks.c: Fix formatting.
195 * langhooks.h: Likewise.
197 * libgcc2.c: Likewise.
199 * local-alloc.c: Likewise.
203 2002-05-30 Marc Espie <espie@openbsd.org>
205 * config.gcc (sparc64-*-openbsd*): New.
206 * config/sparc/openbsd1-64.h: New.
207 * config/sparc/openbsd64.h: New.
209 2002-05-30 Jeff Law <law@redhat.com>
211 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
212 a dead insn with a REG_RETVAL note when the entire libcall is not
213 dead and remove the associated REG_LIBCALL note at the same time.
215 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
217 * lcm.c (output.h): #include.
218 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
219 as an ordinary block.
220 (optimize_mode_switching): Don't pretend that the exit block is
221 an ordinary block, or handle sucessors of entry block specially.
222 Instead, split edges from entry block and to exit block, and
223 put a computing definition on the thus gained post-entry-block,
224 and a need on the pre-exit-block.
226 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
228 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
229 * rtl.texi: Document 'B'
231 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
233 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
235 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
237 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
239 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
240 const0_rtx instead of NULL_RTX when in error.
241 (altivec_expand_abs_builtin): Same.
242 (rs6000_expand_binop_builtin): Same.
243 (altivec_expand_predicate_builtin): Same.
244 (altivec_expand_stv_builtin): Same.
245 (rs6000_expand_ternop_builtin): Same.
246 (altivec_expand_builtin): Same.
248 2002-05-29 David S. Miller <davem@redhat.com>
250 * rtl.h (clear_emit_caches): Delete.
251 * integrate.c (output_inline_function): Don't call it.
252 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
253 (clear_emit_caches): Delete definition.
254 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
256 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
258 * config/mmix/mmix.c: Include real.h.
259 (mmix_constant_address_p): Remove redundant test before switch.
261 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
263 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
264 only if not already defined.
266 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
268 * config/h8300/h8300-protos.h: Remove prototypes for
269 ok_for_bclr and small_power_of_two.
270 * config/h8300/h8300.c (small_power_of_two): Remove.
271 (ok_for_blcr): Likewise.
272 (fix_bit_operand): Make WHAT deal with an integer instead of a
273 constraint character.
274 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
275 (CONST_OK_FOR_P): Likewise.
276 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
277 CONST_OK_FOR_P any more.
278 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
283 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
285 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
286 (CPP_PREDEFINES): Make sure this is undefined.
287 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
288 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
289 or -U__MIPSEB__ before defining one or the other. Instead,
290 use %(subtarget_endian_default) if neither -EB nor -EL are
292 (SUBTARGET_EXTRA_SPECS): Define.
293 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
296 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
298 * doc/md.texi (Patterns): Note pattern condition pitfall
301 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
303 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
304 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
305 ternary operations from here...
306 (rs6000_expand_builtin): ...to here.
307 New argument expandedp.
308 Change all instances of altivec_expand_binop_builtin to
309 rs6000_expand_binop_builtin.
310 (altivec_expand_unop_builtin): Rename to
311 rs6000_expand_unop_builtin.
312 (altivec_expand_binop_builtin): Rename to
313 rs6000_expand_binop_builtin.
314 (altivec_expand_ternop_builtin): Rename to
315 rs6000_expand_ternop_builtin.
317 2002-05-29 Richard Henderson <rth@redhat.com>
319 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
320 (TARGET_BI_ARCH): Likewise.
321 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
322 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
323 (TARGET_64BIT_DEFAULT): Default to 0.
324 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
326 2002-05-29 Richard Henderson <rth@redhat.com>
328 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
329 (get_pc_thunk_name): New.
330 (output_set_got): Use it.
331 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
332 into linkonce sections.
334 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
336 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
337 (CPP_PREDEFINES): Make sure this is undefined.
338 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
339 (CPP_SUBTARGET_SPEC): Don't provide different versions for
340 default-32 and default-64. Just always use %(netbsd_cpp_spec).
341 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
342 cpp_subtarget_spec64. Add netbsd_cpp_spec.
343 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
344 (CPP_PREDEFINES): Make sure this is undefined.
345 (SUBTARGET_EXTRA_SPECS): Define.
346 (CPP_SPEC): Use %(netbsd_cpp_spec).
348 2002-05-29 Jeff Law <law@redhat.com>
350 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
352 * flow.c (propagate_one_insn): Do not remove a dead insn if it
353 contains a REG_RETVAL note.
355 * haifa-sched (sched_analyze): Remove another useless clearing
356 of SCHED_GROUP_P I missed yesterday.
358 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
359 * pa.c (pa_asm_output_mi_thunk): New function.
360 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
362 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
363 Marek Michalkiewicz <marekm@amelek.gda.pl>
365 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
366 (avr_asm_only_p): Make non-static.
367 (enum avr_arch): Remove.
368 (avr_arch_types): New.
369 (avr_mcu_types): Update.
370 (avr_override_options): Use avr_arch_types table instead of switch.
371 * avr.h (CPP_PREDEFINES): Die.
372 (avr_base_arch_macro, avr_extra_arch_macro): New.
373 (TARGET_CPU_CPP_BUILTINS): New.
374 (CPP_SPEC, EXTRA_SPECS): Simplify.
375 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
378 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
380 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
381 NETBSD_OS_CPP_BUILTINS_AOUT.
382 (SUBTARGET_EXTRA_SPECS): Define.
383 (CPP_SPEC): Use %(netbsd_cpp_spec).
385 2002-05-29 Richard Henderson <rth@redhat.com>
387 * config/i386/i386.c (ix86_output_function_epilogue): New.
388 (TARGET_ASM_FUNCTION_EPILOGUE): New.
389 (pic_label_name): Remove.
390 (pic_labels_used): New.
391 (ix86_asm_file_end): Emit one pc load stub for each register used.
392 (output_set_got): Generate deep pc load to any register.
393 (ix86_select_alt_pic_regnum): New.
394 (ix86_save_reg): Don't save pic register if we can find a valid
395 call-clobbered replacement.
396 (ix86_expand_prologue): If we found a valid replacement, renumber
397 pic_offset_table_rtx.
398 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
399 pic_offset_table_rtx after reload.
400 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
401 * config/i386/i386.md (set_got): Make insn, not expander.
402 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
404 2002-05-29 Richard Henderson <rth@redhat.com>
406 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
407 alignment for alloca.
409 2002-05-29 Richard Henderson <rth@redhat.com>
411 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
412 (print_operand_address): Only add rip for symbolic addresses
413 for which we do not have another relocation type.
415 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
417 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
418 (EXTRA_SPECS): Add netbsd_cpp_spec.
419 (CPP_SPEC): Use %(netbsd_cpp_spec).
420 (CPP_PREDEFINES): Remove.
421 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
422 (EXTRA_SPECS): Define.
423 (CPP_SPEC): Use %(netbsd_cpp_spec).
424 (CPP_PREDEFINES): Remove.
426 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
429 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
432 2002-05-29 Eric Christopher <echristo@redhat.com>
434 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
435 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
437 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
439 * config/fr30/fr30.md: Remove previous restriction on splits.
440 Enforce conformance through gen_lowpart and cont_int_operand.
441 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
442 as the assembler does not support ".bss".
444 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
446 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
447 (CPP_PREDEFINES): Remove.
448 (SUBTARGET_EXTRA_SPECS): Define.
449 (CPP_SPEC): Use %(netbsd_cpp_spec).
450 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
451 (CPP_PREDEFINES): Remove.
452 (SUBTARGET_EXTRA_SPECS): Define.
453 (CPP_SPEC): Use %(netbsd_cpp_spec).
454 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
455 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
456 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
458 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
460 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
461 Zack Weinberg <zack@codesourcery.com>
463 * cppexp.c (cpp_num): Move to cpplib.h.
465 (interpret_float_suffix, interpret_int_suffix): New.
466 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
467 (cpp_classify_number, cpp_interpret_integer): New.
468 (interpret_number): Remove.
469 (eval_token): Update to use new routines.
470 * cpphash.h (cpp_num_part): Move to cpplib.h.
471 * cppinit.c (cpp_post_options): Set warn_long_long.
472 * cpplib.h (struct cpp_options): Add warn_long_long.
473 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
474 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
475 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
476 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
477 cpp_interpret_integer): New.
479 2002-05-29 Joel Sherrill <joel@OARcorp.com>
481 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
483 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
485 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
486 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
487 (CPP_SUBTARGET_SPEC): Define.
488 (SUBTARGET_EXTRA_SPECS): Define.
491 2002-05-29 Chris Lattner <sabre@nondot.org>
493 * ssa.c (rename_insn_1): Rename uses of undefined registers to
494 prevent confusion if/when the register is defined.
496 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
499 * config/cris/cris.md: Fix typos and thinkos in comments.
500 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
502 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
503 ("*mov_sideqi_mem"): Similar, but for operand 3.
504 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
505 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
506 Remove spurious mode specifier on operand 2.
508 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
510 * config/h8300/h8300-protos.h: Remove the prototype for
512 Add prototypes for single_one_operand and single_zero_operand.
513 * config/h8300/h8300.c (o_operand): Remove.
514 (single_one_operand): New.
515 (single_zero_operand): Likewise.
516 (print_operand): For 'V' operand, and the operand with 0xff.
517 For 'V' and 'W' operands, do not and the bit position with 7.
518 * config/h8300/h8300.md (various anonymous patterns): Replace
519 use of exact_log2 with single_one_operand/single_zero_operand.
521 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
523 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
525 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
527 * config/s390/s390.c (legitimate_pic_operand_p): Do not
528 accept symbolic LARL operands.
529 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
532 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
534 * config/s390/s390.md (cmpstr_64/31): Mark whole
535 input registers as used.
537 2002-05-28 Richard Henderson <rth@redhat.com>
539 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
540 not current_function_uses_pic_offset_table and
541 current_function_uses_const_pool; examine current_function_profile.
542 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
543 input to blockage if needed.
544 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
545 (legitimize_pic_address): Likewise. Set regs_ever_live for
546 pic_offset_table_rtx when invoked during reload.
547 * config/i386/i386.h (FINALIZE_PIC): Remove.
548 * config/i386/i386.md (tablejump): Reformat. Do not set
549 current_function_uses_pic_offset_table.
550 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
551 (blockage): Accept anything as operand 0.
553 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
555 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
556 common CPP built-ins for all NetBSD a.out targets.
557 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
558 common CPP built-ins for all NetBSD ELF targets.
559 * config/netbsd.h: Add missing notice.
560 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
561 for all NetBSD targets.
562 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
563 for all NetBSD targets using an LP64 code model.
564 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
567 2002-05-28 Richard Henderson <rth@redhat.com>
569 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
570 update if UPDATE_LIFE_LOCAL.
572 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
574 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
576 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
577 Jason R. Thorpe <thorpej@wasabisystems.com>
579 config/sh reorganization to factor out endianness and coff:
581 * config/sh/little.h: New file.
582 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
583 defined, define to 0 to select big-endian.
584 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
585 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
586 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
587 * config/sh/t-be: New file.
588 * config/sh/t-le: New file.
590 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
591 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
592 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
593 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
594 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
595 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
596 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
597 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
598 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
599 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
600 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
601 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
602 (LINK_SPEC): Define to SH_LINK_SPEC.
603 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
604 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
605 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
606 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
607 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
608 * config/sh/coff.h: New file.
609 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
610 (TARGET_OBJFMT_CPP_BUILTINS): Define.
611 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
612 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
613 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
614 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
615 (PTRDIFF_TYPE): Likewise.
616 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
617 (CPP_PREDEFINES): Don't define.
618 (TARGET_OBJFMT_CPP_BUILTINS): Define.
619 (LINK_SPEC): Define to SH_LINK_SPEC.
620 (LINK_EMUL_PREFIX): Redefine.
621 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
622 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
623 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
624 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
625 (TARGET_OS_CPP_BUILTINS): Define.
626 (TARGET_DEFAULT): Redefine.
627 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
628 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
629 (LINK_SPEC): Don't redefine.
630 (LINK_DEFAULT_CPU_EMUL): Redefine.
631 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
632 * sh.c (sh_asm_named_section): Don't declare / define.
633 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
634 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
635 (sh64-*-elf* tm_file): Likewise.
636 (sh-*-rtemself* tm_file): Likewise.
637 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
638 (sh-*-linux* tmake_file): Add sh/t-le.
639 (sh-*-rtems* tm_file): Add sh/coff.h
640 (sh-*-* tm_file): Likewise.
642 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
644 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
645 CONSTANT_POOL_ADDRESS_P.
647 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
649 2002-05-28 David Edelsohn <edelsohn@gnu.org>
650 Jeff Law <law@redhat.com>
652 * optabs.c (expand_binop): Fix nwords sign warnings.
653 generate pseudo for add_optab.
655 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
656 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
658 2002-05-28 Marc Espie <espie@openbsd.org>
660 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
661 inherited from gas.h.
662 (ASM_QUAD): Undef. OpenBSD does not support it.
664 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
666 * doc/install.texi (binaries): Change mingw binaries
667 link to www.mingw.org.
669 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
671 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
673 2002-05-28 Richard Henderson <rth@redhat.com>
675 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
676 bottom alignment for leaf functions.
678 2002-05-28 Zack Weinberg <zack@codesourcery.com>
680 * config/pa/milli32.S, config/pa/lib1funcs.asm,
681 config/sparc/sol2-g1.asm: Delete unused files.
683 2002-05-28 Richard Henderson <rth@redhat.com>
685 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
687 * flow.c (calculate_global_regs_live): Rename call_used to
688 invalidated_by_call. Initialize from regs_invalidated_by_call
689 instead of call_used_regs.
691 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
694 2002-05-28 Zack Weinberg <zack@codesourcery.com>
696 * tree.h: Don't include real.h.
697 Forward-declare struct realvaluetype.
698 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
700 (TREE_REAL_CST_PTR): New accessor.
701 (TREE_REAL_CST): Update.
702 * real.h: Include machmode.h.
703 (realvaluetype): Make it struct realvaluetype, not a typedef.
704 (build_real): Prototype here.
706 * tree.c: Include real.h.
707 (build_real): Allocate the REAL_VALUE_TYPE as a separate
708 object in GC memory, set TREE_REAL_CST_PTR to point to it.
709 (build_real_from_int_cst): Use build_real.
710 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
713 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
714 fold-const.c, print-tree.c, real.c: Include real.h.
715 * Makefile.in: Update dependency lists.
717 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
719 * basic-block.h (last_basic_block): Declare.
720 (expunge_block_nocompact): Declaration removed.
721 (compact_blocks): Declare.
722 * cfg.c (last_basic_block): New variable.
723 (expunge_block_nocompact): Removed.
724 (expunge_block): Do not compact basic blocks.
725 (compact_blocks): New.
726 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
728 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
730 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
731 real positions of blocks.
732 (delete_unreachable_blocks): Simplified -- quadratic behavior now
734 (cleanup_cfg): Compact blocks.
735 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
736 basic_block_info varray.
737 (flow_delete_block): Comment update.
738 (back_edge_of_syntactic_loop_p): Modify position check code.
739 (verify_flow_info): Update checking.
740 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
741 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
742 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
743 indices no longer change.
744 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
746 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
747 * profile.c (branch_prob): Compact blocks.
748 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
751 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
753 * config/h8300/h8300.md (two anonymous patterns): New.
755 2002-05-28 David S. Miller <davem@redhat.com>
757 * config/sparc/sparc.md (cpu): Tidy.
758 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
760 (in_call_delay): Delete reference to 'return' type.
761 (eligible_for_return_delay, in_return_delay, define_delay
762 referencing those): Delete.
763 (rest of file): Use new type attributes as appropriate.
764 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
765 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
766 * config/sparc/ultra1_2.md (us1_single): New reservation.
767 (us1_ialuX): Likewise.
768 * config/sparc/ultra3.md (us3_single): Likewise.
769 (us3_ialuX): Likewise.
770 (us3_imul, us3_idiv): Tweak.
772 2002-05-28 Richard Henderson <rth@redhat.com>
774 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
777 2002-05-28 Richard Henderson <rth@redhat.com>
779 * config.gcc: Obsolete mn10200.
781 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
783 * cppexp.c (interpret_number): Optimize for single-digit
784 and less-than-half-precision cases.
785 (num_trim, num_positive, num_div_op): Cast constants.
787 2002-05-27 Bo Thorsen <bo@suse.de>
789 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
790 3.1 branch. The file was made by Jakub Jelinek.
791 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
792 support so multilib doesn't break. And don't define this at all
793 when -Dinhibit_libc is used.
794 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
795 * config/i386/t-linux64: Implement full multilib support. Patch
796 originally done by Andreas Jaeger and Jakub Jelinek.
798 2002-05-27 Roger Sayle <roger@eyesopen.com>
800 * c-common.c: Add support for __attribute__((nothrow)) to specify
801 that a function cannot throw an exception (using TREE_NOTHROW).
802 (handle_nothrow_attribute): New function to process this attribute.
804 * doc/extend.texi: Document the new nothrow function attribute.
806 2002-05-27 H.J. Lu (hjl@gnu.org)
808 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
809 (num_positive): Likewise.
810 (num_div_op): Likewise.
812 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
814 * c-common.c (c_common_init): Always use intmax_t.
816 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
818 * c-common.c (c_common_init): Use intmax_t for now.
820 2002-05-24 Andrew Haley <aph@redhat.com>
822 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
823 if T is a boolean type.
825 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
827 * basic-block.h (last_basic_block): Defined as synonym for
829 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
830 flow_depth_first_order_compute, flow_preorder_transversal_compute,
831 flow_dfs_compute_reverse_init): Replaced relevant occurences of
832 n_basic_blocks with last_basic_block.
833 * cfgbuild.c (make_edges): Likewise.
834 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
835 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
836 * combine.c (combine_instructions): Likewise.
837 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
838 iterative_dataflow_bitmap): Likewise.
839 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
840 calc_idoms, idoms_to_doms): Likewise.
841 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
843 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
844 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
845 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
846 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
847 delete_null_pointer_checks, compute_code_hoist_vbeinout,
848 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
849 compute_store_table, build_store_vectors): Likewise.
850 * haifa-sched.c (sched_init): Likewise.
851 * ifcvt.c (if_convert): Likewise.
852 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
853 pre_edge_lcm, compute_available, compute_nearerout,
854 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
856 * predict.c (estimate_probability, process_note_prediction,
857 note_prediction_to_br_prob): Likewise.
858 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
859 * recog.c (split_all_insns, peephole2_optimize): Likewise.
860 * regrename.c (copyprop_hardreg_forward): Likewise.
861 * resource.c (init_resource_info): Likewise.
862 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
863 init_regions, schedule_insns): Likewise.
864 * ssa-ccp.c (ssa_const_prop): Likewise.
865 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
866 * ssa.c (compute_dominance_frontiers,
867 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
869 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
870 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
873 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
875 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
877 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
878 hoist_insn_after, hoist_insn_to_edge): New.
880 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
882 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
883 (PROP_FINAL): Include.
884 * flow.c (life_analysis, update_life_info,
885 init_propagate_block_info, mark_set_1, mark_used_rgs):
886 Support SCAN_DEAD_STORE.
888 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
890 * c-common.c (c_common_init): Set CPP arithmetic precision.
891 * cppexp.c (cpp_num_part): Move typedef ...
892 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
893 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
894 (sanity_checks): Update.
896 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
898 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
899 (mkheaders): New rule.
900 (install-mkheaders): New rule.
901 * configure.in (all_outputs): Add mkheaders.
902 * configure: Regenerate.
903 * mkheaders.in: New file.
905 2002-05-26 Jakub Jelinek <jakub@redhat.com>
907 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
909 2002-05-26 Andreas Jaeger <aj@suse.de>
911 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
913 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
915 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
916 right_shift): Remove.
917 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
919 (struct op): Use cpp_num.
920 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
921 num_part_mul, num_unary_op, num_binary_op, num_negate,
922 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
923 num_div_op, num_lshift, num_rshift, append_digit): New.
924 (interpret_number, parse_defined, eval_token, reduce): Update
925 for two-integer arithmetic.
926 (binary_handler): New typedef.
928 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
929 (_cpp_parse_expr, reduce): Update to handle two-integers.
930 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
932 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
934 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
935 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
936 branch insn into account, do not assume 1.
937 (avr_out_sbxx_branch): New function. Optimize cases of skipping
938 over single word insn. Handle upper half of I/O space too.
939 * config/avr/avr.md (*sbrx_branch): Use it.
940 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
941 (*sbix_branch, *sbix_branch_bit7): Likewise.
942 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
943 Use RTL peepholes to optimize register operand sign tests.
945 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
947 * config/avr/avr.c (avr_asm_only_p): New variable.
948 (avr_override_options): Set it here if AVR1.
949 (asm_file_start): Test it here, report an error if set.
951 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
953 * alias.c: Fix formatting.
954 * attribs.c: Likewise.
955 * bb-reorder.c: Likewise.
956 * bitmap.c: Likewise.
957 * bitmap.h: Likewise.
958 * builtins.c: Likewise.
960 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
962 * reload.c (find_valid_class): Accept new argument DEST,
963 choose class accordingly.
964 (push_reload): Update callers.
966 2002-05-26 Andreas Jaeger <aj@suse.de>
968 * combine.c (combine_instructions): Do not indent #if for
971 2002-05-25 Richard Henderson <rth@redhat.com>
973 * c-pragma.c (apply_pragma_weak): Convert value identifier to
974 string for decl_attributes.
975 (handle_pragma_weak): Call assemble_alias if we're modifying
978 2002-05-25 Richard Henderson <rth@redhat.com>
981 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
982 using rtl instead of fprintf.
983 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
984 * config/sparc/sparc-protos.h: Update.
986 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
988 * Makefile.in (C_COMMON_H): Fix.
989 Update other targets.
990 * c-common.c: Don't include c-lex.h.
991 (builtin_define_with_value): Make static and prototype.
992 (builtin_define_std): Move from c-lex.h.
993 * c-common.h (init_c_lex): Move from c-lex.h.
994 * c-decl.c: Don't include c-lex.h.
995 (make_pointer_declarator): Move from c-parse.in.
996 * c-lex.c: Don't include c-lex.h.
998 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
999 (make_pointer_declarator): Move to c-decl.c.
1000 * c-pragma.c: Don't include c-lex.h.
1001 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1002 * c-tree.h (make_pointer_declarator): New.
1004 * passes.texi, tm.texi: Update.
1006 * Make-lang.in: Update and correct.
1007 * objc-act.c: Don't include c-lex.h or cpplib.h.
1009 * treetree.c: Don't include c-lex.h.
1011 * darwin-c.c: Don't include c-lex.h.
1012 * c4x/c4x-c.c: Don't include c-lex.h.
1013 * c4x/t-c4x: Update.
1014 * i370/i370-c.c: Don't include c-lex.h.
1015 * i370/t-i370: Update.
1016 * i960/i960-c.c: Don't include c-lex.h.
1017 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1018 * i960/t-960bare: Update.
1019 * i960/t-vxworks: Update.
1020 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1021 * rs6000/t-darwin: Update.
1022 * rs6000/t-rs6000-c-rule: Update.
1023 * v850/v850-c.c: Don't include c-lex.h.
1024 * v850/v850.c: Don't include c-lex.h or cpplib.h.
1027 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1029 * tree.def: Fix typos.
1030 * doc/install.texi: Likewise.
1032 2002-05-25 Richard Henderson <rth@redhat.com>
1034 * configure.in (HAVE_AS_TLS): Add ia64 test.
1035 * configure: Rebuild.
1036 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1037 (override_options): Set it.
1038 (TARGET_HAVE_TLS): New.
1039 (sdata_symbolic_operand): Look for 's'.
1040 (tls_symbolic_operand): New.
1041 (ia64_expand_load_address): Abort for tls symbols.
1042 (gen_tls_get_addr): New.
1043 (gen_thread_pointer): New.
1044 (ia64_expand_move): Split out from movdi. Handle tls symbols.
1045 (rtx_needs_barrier): Add new unspecs.
1046 (ia64_encode_section_info): Handle tls symbols.
1047 (ia64_strip_name_encoding): Strip two encoding chars.
1048 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1049 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1050 (TARGET_OPTIONS): Add tls-size.
1051 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1052 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1053 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1054 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1055 (movsf, movdf): Likewise.
1056 (movdi_symbolic): Use match_scratch. Don't split if we won't
1057 have a scratch availiable.
1058 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1059 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1060 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1061 * config/ia64/ia64-protos.h: Update.
1062 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1063 sdata_symbolic_operand.
1064 (ASM_OUTPUT_LABELREF): Strip two characters.
1066 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
1068 * combine.c (simplify_set): Remove an unnecessary subreg.
1070 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
1072 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1074 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1076 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1078 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
1080 2002-05-25 Roger Sayle <roger@eyesopen.com>
1082 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1083 (cond (compare x y) 0) into the equivalent (cond x y).
1085 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
1087 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
1089 2002-05-24 Zack Weinberg <zack@codesourcery.com>
1091 * config.gcc: Remove all stanzas for previously obsoleted
1092 systems. Where necessary, add explicit error stanzas to
1093 prevent removed systems from being misidentified as something
1094 else. Begin a fresh obsoletions list, with the systems that
1095 were reprieved last round.
1096 * doc/install.texi: Remove all mention of dead targets.
1097 * fixinc/mkfixinc.sh: Likewise.
1099 * config/arm/arm.h: Bit 31 of target_flags is no longer
1102 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1103 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1104 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1105 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1106 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1107 config/alpha/osf12.h, config/alpha/osf2or3.h,
1108 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1109 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1110 config/clipper/clipper-protos.h, config/clipper/clipper.c,
1111 config/clipper/clipper.h, config/clipper/clipper.md,
1112 config/clipper/clix.h, config/convex/convex-protos.h,
1113 config/convex/convex.c, config/convex/convex.h,
1114 config/convex/convex.md, config/convex/fixinc.convex,
1115 config/convex/proto.h, config/elxsi/elxsi-protos.h,
1116 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1117 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1118 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1119 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1120 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1121 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1122 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1123 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1124 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1125 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1126 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1127 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1128 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1129 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1130 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1131 config/m68k/altos3068.h, config/m68k/apollo68.h,
1132 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1133 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1134 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1135 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1136 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1137 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1138 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1139 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1140 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1141 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1142 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1143 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1144 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1145 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1146 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1147 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1148 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1149 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1150 config/mips/dec-osf1.h, config/mips/elflorion.h,
1151 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1152 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1153 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1154 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1155 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1156 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1157 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1158 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1159 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1160 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1161 config/ns32k/sequent.h, config/ns32k/tek6000.h,
1162 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1163 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1164 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1165 config/sparc/rtems.h, config/we32k/we32k-protos.h,
1166 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1169 2002-05-24 Richard Henderson <rth@redhat.com>
1171 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1172 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1173 * config/i386/i386.c (tls_model_chars): Add leading space.
1174 (tls_symbolic_operand): Don't bias by 1.
1175 (legitimize_address): Don't unbias by 1.
1177 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1179 * lcm.c (optimize_mode_switching): Change bb used as indices
1182 2002-05-24 Richard Henderson <rth@redhat.com>
1184 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1185 of update_life_info_in_dirty_blocks.
1187 2002-05-24 Jakub Jelinek <jakub@redhat.com>
1190 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1192 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
1194 PR preprocessor/6780
1195 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1197 2002-05-24 Jim Blandy <jimb@redhat.com>
1199 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1200 entry with a type code of zero, marking the end of the compilation
1203 2002-05-24 Richard Henderson <rth@redhat.com>
1205 * varasm.c (asm_output_bss): Always output one byte.
1206 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1208 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1210 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1213 2002-05-24 Andreas Jaeger <aj@suse.de>
1215 * ggc-page.c (alloc_page): Cast variables of type size_t to
1216 unsigned long, adjust printf format string.
1217 (ggc_alloc): Likewise.
1218 (ggc_print_statistics): Likewise.
1219 (ggc_print_statistics): Correct printf format string for SCALE to
1222 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
1224 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1226 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
1227 Zack Weinberg <zack@codesourcery.com>
1229 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1231 * dwarf2out.c (lookup_filename): Properly quote filename in .file
1232 directive in assembly file.
1233 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1234 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1235 * config/pj/pj.h (ASM_FILE_START): Likewise.
1236 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1237 * config/avr/avr.c (asm_file_end): Likewise.
1238 * toplev.c (output_quoted_string): Handle possibly signed plain
1240 * toplev.h (output_clean_symbol_name): Declare
1241 * toplev.c (output_clean_symbol_name): Define.
1242 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1243 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1245 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1247 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1249 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
1251 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1252 of size of unsigned.
1254 2002-05-23 Richard Henderson <rth@redhat.com>
1256 * configure.in (HAVE_AS_TLS): New test.
1257 * config.in, configure: Rebuild.
1258 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1259 (ix86_tls_dialect_string, ix86_tls_dialect): New.
1260 (override_options): Set it.
1261 (tls_model_chars, tls_symbolic_operand): New.
1262 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1263 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1264 (local_exec_symbolic_operand): New.
1265 (get_pic_label_name): Merge into output_set_got.
1266 (ix86_asm_file_end): Emit pic_label_name if defined.
1267 (legitimate_constant_p, constant_address_p): New.
1268 (legitimate_pic_operand_p): New.
1269 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1270 (legitimate_address_p): Likewise.
1271 (ix86_encode_section_info): Rename from i386_; handle tls decls.
1272 (ix86_strip_name_encoding): New.
1273 (get_thread_pointer): New.
1274 (legitimize_address): Handle tls symbols.
1275 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1277 (struct machine_function): Add some_ld_name.
1278 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1279 (print_operand) [&]: Use it. Handle UNSPEC_TP.
1280 (output_addr_const_extra): New.
1281 (maybe_get_pool_constant): New.
1282 (ix86_split_to_parts): Use it.
1283 (ix86_expand_move): Handle tls symbols.
1284 (ix86_tls_get_addr): New.
1285 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1286 (TARGET_OPTIONS): Add tls-dialect.
1287 (CONSTANT_ADDRESS_P): Use new out-of-line function.
1288 (LEGITIMATE_CONSTANT_P): Likewise.
1289 (LEGITIMATE_PIC_OPERAND_P): Likewise.
1290 (TARGET_STRIP_NAME_ENCODING): New.
1291 (ASM_OUTPUT_LABELREF): New.
1292 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1293 (OUTPUT_ADDR_CONST_EXTRA): New.
1294 (PREDICATE_CODES): Update.
1295 (ix86_tls_dialect, ix86_tls_dialect_string): New.
1296 * config/i386/i386.md: Regroup and renumber unspec constants.
1297 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1298 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1299 (tls_global_dynamic, tls_local_dynamic_base): New.
1300 (tls_local_dynamic_once): New.
1301 * config/i386/i386-protos.h: Update.
1303 2002-05-23 Richard Henderson <rth@redhat.com>
1305 * genemit.c (gen_insn): Print file:lineno comment before function.
1307 * gensupport.c (struct queue_elem): Add filename member.
1308 (queue_pattern): Initialize it; update all callers.
1309 (process_include): Don't free filename.
1310 (read_md_rtx): Set read_rtx_filename.
1312 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
1314 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1316 2002-05-23 Richard Henderson <rth@redhat.com>
1318 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1320 2002-05-23 Richard Henderson <rth@redhat.com>
1322 * doc/extend.texi (C++98 Thread-Local Edits): Update with
1323 commentary from Mark.
1325 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1327 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1328 Use FOR_EACH_BB macros to iterate over basic block chain.
1329 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1330 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1332 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1333 find_unreachable_blocks, create_edge_list, verify_edge_list,
1334 remove_fake_edges, add_noreturn_fake_exit_edges,
1335 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1337 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1338 find_sub_basic_blocks): Likewise.
1339 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1341 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1343 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1345 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1346 commit_edge_insertions, commit_edge_insertions_watch_calls,
1347 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1348 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1349 * conflict.c (conflict_graph_compute): Likewise.
1350 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1351 df_modified_p, df_refs_unlink, df_dump): Likewise.
1352 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1353 * final.c (compute_alignments): Likewise.
1354 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1355 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1356 count_or_remove_death_notes): Likewise.
1357 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1358 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1359 classic_gcse, compute_transp, cprop, compute_pre_data,
1360 compute_transpout, invalidate_nonnull_info,
1361 delete_null_pointer_checks_1, delete_null_pointer_checks,
1362 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1363 compute_store_table, build_store_vectors, store_motion): Likewise.
1364 * global.c (global_conflicts, mark_elimination): Likewise.
1365 * graph.c (print_rtl_graph_with_bb): Likewise.
1366 * haifa-sched.c (sched_init): Likewise.
1367 * ifcvt.c (if_convert): Likewise.
1368 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1369 compute_available, compute_nearerout, compute_rev_insert_delete,
1370 optimize_mode_switching): Likewise.
1371 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1372 * predict.c (estimate_probability, note_prediction_to_br_prob,
1373 propagate_freq, counts_to_freqs, expensive_function_p,
1374 estimate_bb_frequencies): Likewise.
1375 * profile.c (instrument_edges, get_exec_counts,
1376 compute_branch_probabilities, compute_checksum, branch_prob,
1377 find_spanning_tree): Likewise.
1378 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1379 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1381 * regclass.c (scan_one_insn, regclass): Likewise.
1382 * regmove.c (mark_flags_life_zones, regmove_optimize,
1383 record_stack_memrefs): Likewise.
1384 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1385 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1386 * resource.c (find_basic_block): Likewise.
1387 * sched-ebb.c (schedule_ebbs): Likewise.
1388 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1389 find_single_block_region, find_rgns, schedule_insns)
1390 * sibcall.c (optimize_sibling_and_tail_recursive_call)
1391 * ssa-ccp.c (optimize_unexecutable_edges,
1392 ssa_ccp_df_delete_unreachable_insns): Likewise.
1393 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1394 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1395 rename_block, convert_to_ssa, compute_conservative_reg_partition,
1396 compute_coalesced_reg_partition, rename_equivalent_regs,
1397 convert_from_ssa): Likewise.
1398 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1399 process_for_unwind_directive): Likewise.
1401 * df.c (FOR_ALL_BBS): Removed.
1402 * gcse.c (struct null_pointer_info): Type of current_block field
1404 (struct reg_avail_info): Type of last_bb field changed.
1405 * config/ia64/ia64.c (block_num): Removed.
1406 (need_copy_state): Type changed.
1409 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1411 * cppinit.c (mark_named_operators): Split out from init_builtins.
1412 (cpp_finish_options): Call it from here instead.
1414 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1416 * builtin-attrs.def: Update copyright years.
1417 (ATTR_NONNULL): New attribute identifier.
1418 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1419 attribute tree lists.
1420 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1422 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1423 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1424 attribute lists. Chain the appropriate nonnull attribute.
1425 * c-format.c (check_format_arg): Remove null format string
1427 * testsuite/gcc.dg/format/null-1.c: New test.
1429 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1431 * Makefile.in (ADAC): Define.
1433 (.SUFFIXES): Move before language makefile fragments.
1434 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1436 2002-05-23 Mark Mitchell <mark@codesourcery.com>
1438 * varasm.c (make_decl_rtl): Don't allow weak variables to be
1441 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1443 * cfg.c (dump_flow_info): Print results of
1444 maybe_hot/probably_never_executed predicates.
1445 * toplev.c (open_dump_file): Print function frequency.
1447 2002-05-23 David S. Miller <davem@redhat.com>
1449 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1452 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
1454 * c-common.c (warn_nonnull): Declare.
1455 (c_common_attribute_table): Add "nonnull" attribute.
1456 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1457 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1458 check_function_arguments_recurse): New functions.
1459 * c-common.h (warn_nonnull): Declare extern.
1460 (check_function_arguments, check_function_arguments_recurse): New
1462 * c-decl.c (c_decode_option): Add -Wnonnull option.
1463 * c-format.c (set_Wformat): Set warn_nonnull if enabling
1465 (format_check_context): New structure.
1466 (check_format_info_recurse): Remove recursion and rename to...
1467 (check_format_arg): ...this. Update comment.
1468 (check_format_info): Use check_function_arguments_recurse.
1469 * c-typeck.c (build_function_call): Call check_function_arguments
1470 instead of check_function_format.
1471 * doc/extend.texi: Document "nonnull" attribute.
1472 * doc/invoke.texi: Docuemnt -Wnonnull option.
1473 * testsuite/gcc.dg/nonnull-1.c: New test.
1474 * testsuite/gcc.dg/nonnull-2.c: New test.
1476 2002-05-23 David S. Miller <davem@redhat.com>
1478 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1479 * cfgcleanup.c (cleanup_cfg): If it is set do not
1480 attempt to delete trivially dead insns.
1481 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1482 * toplev.c (rest_of_compilation): Document non-trivial aspect
1483 the RTL before optimize_save_area_alloca is run.
1485 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1487 * c-lex.c (indent_level): Remove.
1488 (cb_file_change, c_lex): Remove indent level handling.
1489 * c-lex.h (indent_level): Remove.
1490 * input.h (struct file_stack): Remove indent_level.
1491 * toplev.c (push_srcloc): Remove indent_level handling.
1493 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1496 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1497 of x in constraints for clarity.
1498 (sse_mov?fcc split): abort if op2 == op3.
1499 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1500 sse_movsfcc_const0_4): Add earlyclobber.
1501 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1502 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
1503 Use Y instead of x in constraints.
1505 2002-05-23 Richard Henderson <rth@redhat.com>
1507 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1508 (C++98 Thread-Local Edits): New subsection.
1510 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1511 (ix86_arch): Set type to enum processor_type.
1513 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1514 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1516 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1518 * configure.in: Fix as version test for binutils 2.12.1 releases
1520 * configure: Rebuilt.
1522 2002-05-23 Richard Henderson <rth@redhat.com>
1524 * config/i386/i386.c (get_pic_label_name): New.
1525 (load_pic_register): Remove.
1526 (output_set_got): New.
1527 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1528 * config/i386/i386.md (UNSPEC_SET_GOT): New.
1529 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1530 (prologue_set_got, prologue_get_pc): Remove.
1531 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1532 (builtin_setjmp_receiver): Use gen_set_got.
1533 * config/i386/i386-protos.h: Update.
1535 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
1537 * gcse.c (hash_expr): Do not use alias set for hashing.
1539 2002-05-22 Kevin Buettner <kevinb@redhat.com>
1541 * dbxout.c (dbxout_class_name_qualifiers): New function.
1542 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1544 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
1546 * cpperror.c (_cpp_begin_message): No special casing
1548 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1549 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1550 * cpplib.c (do_include_common): Use DL_ERROR.
1551 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1553 * fix-header.c (read_scan_file): Update.
1555 2002-05-22 Richard Henderson <rth@redhat.com>
1557 * config/i386/i386.c (ix86_expand_call): New function, extracted
1558 from md call patterns. Add pic_offset_table_rtx to
1559 CALL_INSN_FUNCTION_USAGE when needed.
1560 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1561 (call_value_pop, call_value, untyped_call): Likewise.
1562 (call_exp, call_value_exp): Remove.
1563 * config/i386/i386-protos.h: Update.
1565 2002-05-22 Richard Henderson <rth@redhat.com>
1567 * varasm.c (default_section_type_flags): Check for VAR_DECL
1568 before using DECL_THREAD_LOCAL.
1570 2002-05-22 David Edelsohn <edelsohn@gnu.org>
1572 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1573 (STARTFILE_SPEC): Delete PE crt0.o.
1574 * config/rs6000/aix51.h: Same.
1575 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1576 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1577 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
1578 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1579 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1581 2002-05-22 Richard Henderson <rth@redhat.com>
1583 * varasm.c (default_section_type_flags): Handle tls data and
1585 (default_unique_section): Handle tls sections.
1587 2002-05-23 Alan Modra <amodra@bigpond.net.au>
1589 * configure.in (CROSS): Define NATIVE_CROSS.
1590 * configure: Regenerate.
1591 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1592 (startfile_prefix_spec): New var.
1593 (static_specs): Add startfile_prefix_spec.
1594 (do_spec_2): Split out from..
1596 (main): Process startfile_prefix_spec.
1597 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1599 (STARTFILE_PREFIX_SPEC): Define.
1600 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1603 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1605 * cpperror.c: Fix formatting.
1606 * cppexp.c: Likewise.
1607 * cppfiles.c: Likewise.
1608 * cpphash.c: Likewise.
1609 * cpphash.h: Likewise.
1610 * cppinit.c: Likewise.
1611 * cpplex.c: Likewise.
1612 * cpplib.c: Likewise.
1613 * cppmacro.c: Likewise.
1614 * cppmain.c: Likewise.
1615 * cppspec.c: Likewise.
1617 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1619 * combine.c (force_to_mode): Use gen_int_mode.
1620 Don't clear CONST_INT bits outside of mode.
1622 2002-05-22 Richard Henderson <rth@redhat.com>
1624 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1625 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1627 2002-05-22 Jakub Jelinek <jakub@redhat.com>
1630 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1631 if DECL_SIZE_UNIT is INTEGER_CST.
1633 2002-05-22 Richard Henderson <rth@redhat.com>
1635 * flow.c (life_analysis): Delete broken reg_label check.
1637 2002-05-22 Richard Henderson <rth@redhat.com>
1639 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1640 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1642 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1644 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1645 (embed-bb.c): New rule.
1646 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1647 * config/sh/embed_bb.c: Delete.
1649 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
1651 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1653 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
1655 * config/h8300/h8300.md (*andorqi3): New.
1657 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
1659 PR preprocessor/6517
1660 * Makefile.in: Update.
1661 * c-common.c (c_common_post_options): Add preprocessor
1662 errors to the error count.
1663 * c-lang.c (c_post_options): Kill.
1664 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1665 * hooks.h: Add header guards.
1666 * langhooks-def.h: Include hooks.h.
1667 (LANG_HOOKS_POST_OPTIONS): Update.
1668 * langhooks.h (struct lang_hooks): Update post_options.
1669 * toplev.c (parse_options_and_default_flags): Update.
1671 * objc-lang.c (objc_post_options): Kill.
1672 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1674 2002-05-21 Bruce Korb <bkorb@gnu.org>
1676 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1677 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1678 * fixinc/fixincl.x: regen.
1680 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
1682 * cfgbuild.c: Fix formatting.
1684 * cfgcleanup.c: Likewise.
1685 * cfglayout.c: Likewise.
1686 * cfgloop.c: Likewise.
1687 * cfgrtl.c: Likewise.
1689 2002-05-21 Richard Henderson <rth@redhat.com>
1691 * c-common.h (enum rid): Add RID_THREAD.
1692 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1693 (grokdeclarator): Grok __thread.
1694 * c-parse.in (reswords): Add __thread.
1695 (rid_to_yy): Add RID_THREAD.
1697 * tree.h (DECL_THREAD_LOCAL): New.
1698 (struct tree_decl): Add thread_local_flag.
1699 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1700 * tree.c (staticp): TLS variables are not static.
1702 * target-def.h (TARGET_HAVE_TLS): New.
1703 * target.h (have_tls): New.
1704 * output.h (SECTION_TLS): New.
1705 * varasm.c (assemble_variable): TLS variables can't be common for now.
1706 (default_section_type_flags): Handle .tdata and .tbss.
1707 (default_elf_asm_named_section): Handle SECTION_TLS.
1708 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1710 * flags.h (flag_tls_default): Declare.
1711 * toplev.c (flag_tls_default): Define.
1712 (display_help): Display help for it.
1713 (decode_f_option): Set it.
1715 * doc/extend.texi (Thread-Local): New node describing language-level
1716 thread-local storage.
1717 * doc/invoke.texi (-ftls-model): Document.
1719 * fixinc/inclhack.def (thread_keyword): New.
1720 * fixinc/fixincl.x: Rebuild.
1722 2002-05-21 Jeffrey A Law <law@redhat.com>
1724 * optabs.c (expand_binop): For double-word integer multiplies,
1725 do not compute intermediate results into something that is
1726 not a register (such as a SUBREG or MEM).
1728 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1729 (ix86_sched_reorder): Make sure to initialize scheduling
1730 data even when there's only one insn in the ready queue.
1732 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1734 * genautomata.c (reserv_sets_hash_value): Fix a typo.
1736 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
1738 * genautomata.c (reserv_sets_hash_value): Define hash_value as
1739 set_el_t. Transform the hash value into unsigned.
1740 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1741 (transform_3): Add code to process `(A,B)+(D,E)'.
1743 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
1745 * reload1.c (do_output_reload): Run delete_output_reload
1748 2002-05-21 Roger Sayle <roger@eyesopen.com>
1751 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1752 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
1753 (can_store_by_pieces): ... and here to limit the largest mode used.
1754 Add a comment to document this function.
1756 2002-05-21 Richard Henderson <rth@redhat.com>
1758 * flow.c (life_analysis): Fix test for deleted label.
1760 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
1762 * doc/tm.texi: Fix typo.
1764 2002-05-21 Zack Weinberg <zack@codesourcery.com>
1766 * c-common.c (c_common_init): Set options->unsigned_char from
1768 (cb_register_builtins): Define __STRICT_ANSI__ and
1769 __CHAR_UNSIGNED__ here...
1770 * cppinit.c (init_builtins): Not here.
1771 (cpp_create_reader): unsigned_char option defaults to 0, not
1772 !DEFAULT_SIGNED_CHAR.
1773 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1774 and -funsigned-char.
1776 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1777 * cpphash.c (_cpp_init_hashtable): Don't set it.
1778 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1779 directly. Clarify comment.
1781 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1783 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1784 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
1785 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
1786 BASIC_BLOCK (n_basic_blocks - 1).
1787 * cfganal.c (can_fallthru, flow_call_edges_add,
1788 flow_preorder_transversal_compute): Too.
1789 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1790 find_sub_basic_blocks): Too.
1791 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1792 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1793 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1794 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1795 * combine.c (this_basic_block): Type changed to basic_block.
1796 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1797 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1798 get_last_value, distribute_notes, distribute_links): Too.
1799 * final.c (compute_alignments): Too.
1800 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1801 * function.c (thread_prologue_and_epilogue_insns): Too.
1802 * gcse.c (compute_code_hoist_vbeinout): Too.
1803 * global.c (build_insn_chain): Too.
1804 * ifcvt.c (find_if_block, find_cond_trap): Too.
1805 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1806 * regmove.c (regmove_optimize): Too.
1807 * resource.c (find_basic_block): Too.
1808 * sched-ebb.c (schedule_ebbs): Too.
1809 * ssa-dce.c (find_control_dependence, find_pdom): Too.
1811 2002-05-21 Andreas Jaeger <aj@suse.de>
1813 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1815 2002-05-21 Richard Henderson <rth@redhat.com>
1817 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1818 unspec names, not numbers.
1820 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
1822 * doc/sourcebuild.texi: Mention snapshot-README and
1823 snapshot-index.html as needing updating for new front ends.
1825 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1827 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1828 disabling checking, and avoid multiple evaluation of RTX.
1830 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
1832 * bitmap.c (bitmap_find_bit): Return early if we have the correct
1835 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1837 * profile.c (gen_edge_profiler): Set alias set before the memory is
1840 2002-05-20 David S. Miller <davem@redhat.com>
1842 * cselib.c (max_value_regs): New.
1843 (cselib_lookup, cselib_invalidate_regno): Initialize it when
1844 adding new entries to the REG_VALUES table and we are dealing with
1846 (clear_table): Initialize it.
1847 (cselib_invalidate_regno): Use it to determine which hard
1848 registers to scan when mode is not VOIDmode.
1850 2002-05-20 Duraid Madina <duraid@fl.net.au>
1852 * tradcpp.c (fixup_newlines): Use old-style function header.
1854 2002-05-20 Krister Walfridsson <cato@df.lth.se>
1856 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1858 2002-05-20 H.J. Lu (hjl@gnu.org)
1860 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1862 * config/mips/mips.h (DFMODE_NAN): Defined.
1863 (SFMODE_NAN): Likewise.
1865 2002-05-20 Dale Johannesen <dalej@apple.com>
1867 * combine.c (cant_combine_insn_p): Back out my
1870 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1872 * params.c: Fix formatting.
1873 * params.h: Likewise.
1874 * predict.c: Likewise.
1875 * prefix.c: Likewise.
1876 * print-rtl.c: Likewise.
1877 * print-tree.c: Likewise.
1878 * profile.c: Likewise.
1880 2002-05-20 H.J. Lu (hjl@gnu.org)
1882 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1884 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
1886 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1887 switches straight on to the assembler, do not abbreviate them.
1888 * config/arm/elf.h (ASM_SPEC): As above.
1889 * config/arm/semi.h (ASM_SPEC): As above.
1890 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1891 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1892 -mcpu=xscale on to the assembler by default.
1893 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1895 2002-05-20 Richard Henderson <rth@redhat.com>
1897 * cse.c (canon_hash): Reorder do_not_record test. Always
1898 allow pic_offset_table_rtx.
1900 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
1902 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1903 (expand_binop): Ditto (3 times).
1905 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
1907 * Makefile.in (distclean): Remove QMTest stuff.
1908 (QMTEST_PATH): New variable.
1909 (QMTESTFLAGS): Likewise.
1910 (QMTESTRUNFLAGS): Likewise.
1912 (QMTEST_GPP_TESTS): Likewise.
1913 (QMTEST_DIR): Likewise.
1914 (QMTEST_DIR/context): New target.
1915 (qmtest-g++): Likeise.
1916 (qmtest-gui): Likewise.
1917 (QMTEST_DIR/gpp-expected.qmr): Likewise.
1919 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
1921 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1922 an altivec register if TARGET_ALTIVEC.
1924 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1925 to ALTIVEC_VECTOR_MODE.
1926 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1927 (rs6000_va_arg): Vectors may go in registers if they are not
1930 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
1932 * protoize.c: Fix formatting.
1934 2002-05-19 Richard Henderson <rth@redhat.com>
1936 * gensupport.c (init_include_reader): Merge into ...
1937 (process_include): ... here. Simplify composite path creation.
1938 Plug memory leaks. Fix file/line number tracking. Do not
1939 process_define_cond_exec. Return void.
1940 (process_rtx): Don't check process_include return value.
1942 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1944 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1946 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1947 traversing basic block chain.
1948 (create_basic_block_structure, create_basic_block): Declaration changed.
1949 (link_block, unlink_block): Declare.
1950 * cfg.c (entry_exit_blocks): Initialize new fields.
1951 (link_block, unlink_block): New.
1952 (expunge_block_nocompact): Unlink basic block.
1953 (dump_flow_info): Print prev_bb/next_bb fields.
1954 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1955 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1956 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1957 * cfgrtl.c (create_basic_block_structure, create_basic_block,
1958 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1959 (verify_flow_info): Check that list agrees with numbering.
1961 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
1963 * c-common.c (preprocessing_asm): New macro.
1964 * c-lex.h (builtin_define, builtin_assert): Use pfile.
1968 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1969 (CPP_SPEC): Simplify.
1970 (TARGET_CPU_CPP_BUILTINS): Update.
1971 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1972 (CPP_SPEC): Simplify.
1973 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1974 (TARGET_OS_CPP_BUILTINS): Update.
1975 * osf.h (CPP_XFLOAT_SPEC): Kill.
1976 (TARGET_OS_CPP_BUILTINS): Update.
1977 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1978 * osf5.h (CPP_XFLOAT_SPEC): Kill.
1979 * vms.h (CPP_SUBTARGET_SPEC): Kill.
1980 (TARGET_OS_CPP_BUILTINS): Update.
1982 2002-05-19 Richard Henderson <rth@redhat.com>
1984 * varasm.c (default_binds_local_p): Fix typo.
1986 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1988 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1989 CONST_INT operand to the correct mode after adding 1 to it.
1991 2002-05-19 Mark Mitchell <mark@codesourcery.com>
1993 * config.gcc (powerpc-wrs-windiss*): New target.
1995 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1997 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2000 2002-05-18 Mark Mitchell <mark@codesourcery.com>
2002 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2004 * config.in: Regenerated.
2005 * configure: Regenerated.
2007 2002-05-19 Richard Henderson <rth@redhat.com>
2009 * target-def.h (TARGET_BINDS_LOCAL_P): New.
2010 * target.h (struct gcc_target): Move boolean fields to the end.
2012 * varasm.c (default_binds_local_p): New.
2013 * output.h: Declare it.
2015 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2016 * config/cris/cris.c (cris_encode_section_info): Likewise.
2017 * config/i386/i386.c (i386_encode_section_info): Likewise.
2018 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2019 * config/sh/sh.c (sh_encode_section_info): Likewise.
2021 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2022 (TARGET_BINDS_LOCAL_P): New.
2024 2002-05-19 Richard Henderson <rth@redhat.com>
2026 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2027 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2028 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2030 * toplev.c (display_help): Kill -a -ax help.
2032 * config/1750a/1750a.h, config/alpha/alpha.h,
2033 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2034 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2035 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2036 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2038 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2039 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2041 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2042 (ix86_output_function_block_profiler): Kill.
2043 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2044 (m68hc11_function_block_profiler): Kill.
2045 * config/m68hc11/m68hc11-protos.h: Update.
2046 * config/m88k/m88k.c (output_block_profiler): Kill.
2047 (output_function_block_profiler): Kill.
2048 * config/m88k/m88k-protos.h: Update.
2050 2002-05-19 Richard Henderson <rth@redhat.com>
2052 * system.h (STRIP_NAME_ENCODING): Poison it.
2053 * output.h (STRIP_NAME_ENCODING): Remove.
2054 (default_strip_name_encoding): Declare.
2055 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2056 * target.h (strip_name_encoding): New.
2057 * varasm.c (default_strip_name_encoding): New.
2059 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2060 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2061 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2062 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2063 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2064 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2065 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2066 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2067 config/v850/v850.h: Use the hook, not the macro.
2069 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2070 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2071 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2072 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2073 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2074 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2075 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2076 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2077 config/v850/v850.c, config/v850/v850.h:
2078 Move STRIP_NAME_ENCODING to out-of-line function and add
2079 TARGET_STRIP_NAME_ENCODING.
2081 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2082 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2083 with TARGET_STRIP_NAME_ENCODING referencing existing function;
2084 make function static.
2086 * xcoffout.c: Include target.h
2087 * Makefile.in (xcoffout.o): Update.
2089 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2090 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2091 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2092 reloc argument unused.
2093 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2095 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2096 STRIP_NAME_ENCODING docs.
2098 2002-05-19 Andreas Jaeger <aj@suse.de>
2100 * gengenrtl.c: Add prototype for excluded_rtx.
2102 * real.h: Add prototype for exact_real_truncate.
2104 2002-05-18 Richard Henderson <rth@redhat.com>
2106 * system.h (ENCODE_SECTION_INFO): Poison it.
2107 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2108 * target.h (encode_section_info): New.
2109 * varasm.c (make_decl_rtl, output_constant_def): Use it.
2110 * hooks.c (hook_tree_int_void): New.
2111 * hooks.h: Declare it.
2113 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2114 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2115 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2116 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2117 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2118 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2119 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2120 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2121 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2122 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2123 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2124 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2125 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2126 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2127 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2128 referencing existing function. Make function static.
2130 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2131 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2132 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2133 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2134 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2135 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2136 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2137 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2138 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2139 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2140 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2141 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2142 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2143 Move ENCODE_SECTION_INFO to out-of-line function and add
2144 TARGET_ENCODE_SECTION_INFO.
2146 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2147 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2149 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2151 (switch_to_section): Replace in_rdata case with in_readonly_data.
2153 * config/h8300/h8300.c (h8300_encode_label): Make static.
2154 * config/h8300/h8300-protos.h: Update.
2156 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2157 from rs6000_encode_section_info; make static.
2158 (rs6000_xcoff_encode_section_info): New.
2160 * config/v850/v850.c (v850_encode_data_area): Make static.
2161 * config/v850/v850-protos.h: Update.
2163 * config/vax/vax.c: Include flags.h.
2164 (vms_select_section): Fix typo.
2166 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2167 ENCODE_SECTION_INFO docs.
2169 2002-05-18 Richard Henderson <rth@redhat.com>
2171 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2172 REGISTER_TARGET_PRAGMAS.
2173 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2175 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2177 2002-05-18 Richard Henderson <rth@redhat.com>
2179 * system.h (SELECT_RTX_SECTION): Poison.
2180 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2181 * target.h (select_rtx_section): New.
2182 * varasm.c (output_constant_pool): Use it.
2183 (default_select_rtx_section, default_elf_select_rtx_section): New.
2184 * output.h: Declare them.
2186 * config/darwin.h (SELECT_RTX_SECTION): Move ...
2187 * config/darwin.c (machopic_select_rtx_section): ... here.
2188 * config/darwin-protos.h: Update.
2190 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2191 * config/nextstep.c (machopic_select_rtx_section): ... here.
2192 (nextstep_select_section): Rename variable to avoid macro clash.
2193 * config/nextstep-protos.h: Update.
2195 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2196 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2197 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2198 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2199 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2200 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2201 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2202 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2203 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2204 (SELECT_RTX_SECTION): Remove.
2206 * config/darwin.h, config/elfos.h, config/nextstep.h,
2207 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2208 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2209 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2210 config/sparc/lynx.h, config/xtensa/xtensa.c
2211 (TARGET_ASM_SELECT_RTX_SECTION): New.
2213 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2214 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2215 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2216 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2217 (ia64_aix_select_rtx_section): New.
2218 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2220 * config/mips/mips.c (mips_select_rtx_section): Make static.
2221 Support ELF SHF_MERGE features.
2222 * config/mips/mips-protos.h: Update.
2223 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2224 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2225 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2226 make static, fall back to default_elf_select_rtx_section.
2227 * config/rs6000/rs6000-protos.h: Update.
2228 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2229 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2230 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2231 * config/romp/romp.c (romp_select_rtx_section): New.
2232 * config/s390/s390.c (s390_select_rtx_section): New.
2233 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
2234 declarations before target macro definition.
2235 (xtensa_emit_call): Use static buffer.
2236 (xtensa_select_rtx_section): New.
2237 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2238 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2239 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2241 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2242 SELECT_RTX_SECTION docs.
2244 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
2246 * i386.md (movsi/movdi): Fix template.
2247 (sse2 patterns): Set attributes consistently.
2249 * i386.md (pushqi2, ashrqi_*): Fix constraint.
2251 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
2253 * optabs.c (complex_part_zero_p): New.
2254 * (expand_cmplxdiv_straight): Use it.
2255 * (expand_cmplxdiv_wide): Ditto.
2256 * (expand_binop): Ditto.
2258 2002-05-18 Richard Henderson <rth@redhat.com>
2260 * final.c (HAVE_READONLY_DATA_SECTION): New.
2261 (shorten_branches): Use it instead of ifdefs.
2262 * varasm.c (enum in_section): Add in_readonly_data.
2263 (text_section, data_section): Tidy.
2264 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2266 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2267 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2268 (READONLY_DATA_SECTION): Don't undef.
2270 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2271 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2272 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2274 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2275 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2276 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2277 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2279 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2280 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2281 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2282 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2283 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2284 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2285 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2286 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2287 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2289 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2290 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2291 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2292 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2293 config/pa/pa64-hpux.h, config/sparc/litecoff.h
2294 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2296 * config/elfos.h, config/netware.h, config/svr3.h,
2297 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2298 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2299 config/h8300/h8300.h, config/i386/i386-interix.h,
2300 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2301 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2303 * config/elfos.h, config/netware.h, config/svr3.h,
2304 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2305 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2306 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2307 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2309 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2310 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2311 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2312 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2313 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2314 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2315 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2316 config/rs6000/sysv4.h, config/v850/v850.h
2317 (EXTRA_SECTIONS): Remove in_const/in_rdata.
2318 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2320 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2321 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2322 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2323 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2324 * config/alpha/alpha.c (alpha_start_function): Likewise.
2325 (alpha_write_linkage): Likewise.
2326 * config/m32r/m32r.c (m32r_select_section): Likewise.
2327 * config/m88k/m88k.c (m88k_select_section): Likewise.
2328 * config/mips/mips.c (mips_select_rtx_section): Likewise.
2329 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2330 (rs6000_elf_select_section): Likewise.
2331 * config/v850/v850.c (v850_select_section): Likewise.
2333 * config/1750a/1750a.h, config/i860/sysv3.h
2334 (READONLY_DATA_SECTION_ASM_OP): New.
2335 READONLY_DATA_SECTION_ASM_OP.
2336 * config/i386/interix.c, config/i386/winnt.c
2337 (i386_pe_unique_section): Always use .rdata prefix.
2338 * config/pa/som.h (readonly_data): Always switch to read-only section.
2339 (READONLY_DATA_SECTION): Predicate on flag_pic.
2340 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2341 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2342 (READONLY_DATA_SECTION): Update.
2344 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
2346 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2347 is used without -Wformat.
2348 * c-common.h (warn_format_zero_length): Declare extern.
2349 * c-decl.c (warn_options): Add "format-zero-length".
2350 * c-format.c (warn_format_zero_length): Declare.
2351 (set_Wformat): Set warn_format_zero_length for -Wformat.
2352 (check_format_info): Only warn about zero-length formats if
2353 warn_format_zero_length is true. Include the format type
2354 name in the warning message.
2355 * doc/invoke.texi: Document -Wformat-zero-length.
2356 * testsuite/gcc.dg/format/zero-length-1.c: New test.
2358 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
2360 * timevar.c: Fix formatting.
2361 * tlink.c: Likewise.
2362 * toplev.c: Likewise.
2363 * tree-dump.c: Likewise.
2364 * tree-inline.c: Likewise.
2366 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2368 * cppinit.c (cpp_post_options): If preprocessed, turn off
2369 traditional. If traditional, turn off column numbers.
2370 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2371 * cpptrad.c (handle_newline): Update line_base.
2372 (skip_comment): Handle -Wcomment.
2374 2002-05-17 Zack Weinberg <zack@codesourcery.com>
2376 * cppinit.c (struct builtin): Remove unused fields.
2377 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2378 (operator_array): New - was second half of builtin_array.
2379 (init_builtins): Simplify loop over builtin_array/operator_array.
2381 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
2383 * defaults.h (UNIQUE_SECTION): Remove.
2384 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2386 2002-05-17 Richard Henderson <rth@redhat.com>
2388 * expr.c (init_expr_once): Don't use start/end_sequence.
2389 Use rtx_alloc instead of emit_insn.
2390 * toplev.c (lang_dependent_init): Run init_expr_once here ...
2391 (lang_independent_init): ... not here.
2393 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2395 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2397 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
2399 * config/avr/avr.c (avr_regs_to_save): New function. Also check
2400 for fixed registers, possibly used for global register variables.
2401 (initial_elimination_offset, avr_output_function_prologue,
2402 avr_output_function_epilogue): Move common code to avr_regs_to_save.
2404 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2406 * Makefile.in: Update for cpptrad.c.
2407 * cpphash.h (struct cpp_buffer): New members for buffer
2409 (struct cpp_reader): New members for traditional output.
2410 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2411 * cppinit.c (cpp_create_reader): Set trad_line.
2412 (cpp_destroy): Free trad_out_base if used.
2413 (cpp_read_main_file): Overlay an empty buffer if traditional.
2414 (cpp_finish_options): Don't do builtins.
2415 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2416 (cpp_handle_option): Handle it.
2417 * cpplex.c (continue_after_nul): New.
2418 (_cpp_lex_direct): Use handle_nul.
2419 * cpplib.h (struct cpp_options): New traditional option.
2420 * cpptrad.c: New file.
2422 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
2424 * c-common.c (c_common_init_options): Use C89 for Objective-C,
2425 and set the options flag.
2426 * cppinit.c (lang_flags): Remove objc.
2427 (lang_defaults): Remove OBJC and OBJCXX.
2429 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2430 (cpp_handle_option): Remove -+ and -lang-objc++.
2431 For ObjC, just set a flag.
2432 (print_help): Update.
2433 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2435 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2437 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2438 bootstrap with -mips3.
2440 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
2442 * final.c: Fix formatting.
2443 * fix-header.c: Likewise.
2445 * fold-const.c: Likewise.
2446 * function.c: Likewise.
2448 2002-05-17 David S. Miller <davem@redhat.com>
2450 PR c/6689, PR optimization/6615
2451 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2452 and make it a pointer to rtx. Update comments.
2453 (update_equiv_regs): When scanning for equivalences, record
2454 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
2455 it while making the equiv replacements.
2457 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2459 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2461 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
2463 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2464 when encoding visibility into SYMBOL_REF_FLAG.
2466 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
2468 * expr.c (force_operand): Fix reversed move.
2470 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
2472 * doc/install.texi (Testing): Mention two common DejaGnu warnings
2473 that can be ignored.
2475 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2477 * doc/install.texi (Final install): Recommend to install into a
2478 "clean" target directory.
2480 2002-05-17 Richard Henderson <rth@redhat.com>
2482 * config/ia64/ia64.md: Use braced strings instead of quoted strings
2483 for code blocks. Tidy whitespace.
2485 2002-05-17 Richard Henderson <rth@redhat.com>
2487 * hooks.c (hook_tree_bool_false): New.
2488 * hooks.h: Declare it.
2489 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2490 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2491 * target.h (select_section, unique_section): New.
2492 (in_small_data_p): New.
2493 * varasm.c (resolve_unique_section): Use hooks instead of macros.
2494 (variable_section, output_constant_def_contents): Likewise.
2495 (default_select_section, default_unique_section): New.
2496 (categorize_decl_for_section, default_elf_select_section): New.
2497 * output.h: Declare them.
2499 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2500 (TARGET_ASM_SELECT_SECTION): New.
2501 (SELECT_SECTION): Move ...
2502 * config/darwin.c (machopic_select_section): ... here.
2503 * config/darwin-protos.h: Update.
2505 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2506 (SELECT_SECTION): Move ...
2507 * config/nextstep.c (nextstep_select_section): ... here.
2508 * config/nextstep-protos.h: Update.
2510 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2511 (TARGET_ASM_SELECT_SECTION): New.
2512 * config/svr3.h (SELECT_SECTION): Remove.
2514 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2515 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2516 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2517 (alpha_encode_section_info): Use it.
2518 * config/alpha/alpha-protos.h: Update.
2519 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2520 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2521 (TARGET_ASM_SELECT_SECTION): New.
2522 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2524 * config/arm/pe.h (UNIQUE_SECTION): Remove.
2525 (TARGET_ASM_UNIQUE_SECTION): New.
2527 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2528 (avr_unique_section): Rename from unique_section; make static.
2529 * config/avr/avr-protos.h: Update.
2530 * config/avr/avr.h (UNIQUE_SECTION): Remove.
2532 * config/c4x/c4x.h (SELECT_SECTION): Remove.
2534 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2535 (TARGET_ASM_UNIQUE_SECTION): New.
2536 * config/i386/i386-interix.h: Likewise.
2537 * config/i386/win32.h: Likewise.
2538 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2539 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2540 * config/i386/sco5.h (SELECT_SECTION): Remove.
2541 (TARGET_ASM_SELECT_SECTION): New.
2542 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2544 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2545 instead of SELECT_SECTION.
2546 * config/m68k/dpx2.h: Likewise.
2547 * config/rs6000/lynx.h: Likewise.
2549 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2550 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2551 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2552 (ia64_in_small_data_p): New.
2553 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
2554 (ia64_aix_select_section, ia64_aix_unique_section): New.
2555 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2556 (SELECT_SECTION, UNIQUE_SECTION): Remove.
2558 * config/m32r/m32r.h (SELECT_SECTION): Remove.
2559 (TARGET_ASM_SELECT_SECTION): New.
2560 * config/m32r/m32r.c (m32r_select_section): Take align argument.
2561 * config/m32r/m32r-protos.h: Update.
2563 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2564 (SELECT_SECTION): Move ...
2565 * config/m88k/m88k.c (m88k_select_section): ... here.
2567 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2568 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2569 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2570 (mcore_unique_section): Make static.
2571 * config/mcore/mcore-protos.h: Update.
2573 * config/mips/elf.h (UNIQUE_SECTION): Remove.
2574 (TARGET_ASM_UNIQUE_SECTION): New.
2575 * config/mips/elf64.h: Likewise.
2576 * config/mips/iris6gld.h: Likewise.
2577 * config/mips/linux.h: Likewise.
2578 * config/mips/mips-protos.h: Update.
2579 * config/mips/mips.c (mips_select_section): Add align argument.
2580 * config/mips/mips.h (SELECT_SECTION): Remove.
2581 (TARGET_ASM_SELECT_SECTION): New.
2583 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2584 * config/mmix/mmix.c (mmix_select_section): Remove.
2585 (mmix_unique_section): Remove.
2586 * config/mmix/mmix-protos.h: Update.
2588 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2589 (SELECT_SECTION): Move ...
2590 * config/pa/pa.c (pa_select_section): ... here.
2591 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2593 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2594 from rs6000_select_section and make static.
2595 (rs6000_elf_unique_section): Similarly.
2596 (rs6000_xcoff_select_section): From xcoff.h.
2597 (rs6000_xcoff_unique_section): Likewise.
2598 * config/rs6000/rs6000-protos.h: Update.
2599 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2600 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2601 * config/rs6000/xcoff.h: Likewise.
2603 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2604 (SELECT_SECTION): Move ...
2605 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2607 * config/v850/v850.h (SELECT_SECTION): Move ...
2608 * config/v850/v850.c (v850_select_section): ... here.
2609 (TARGET_ASM_SELECT_SECTION): New.
2611 * config/vax/vms.h (SELECT_SECTION): Move ...
2612 * config/vax/vax.c (vms_select_section): ... here.
2613 (TARGET_ASM_SELECT_SECTION): New.
2615 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2616 for the target hooks.
2618 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
2620 * config/arm/arm.c (emit_multi_reg_push): Do not set
2621 RTX_FRAME_RELATED_P on the SEQUENCE.
2623 2002-05-16 Richard Henderson <rth@redhat.com>
2625 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2626 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
2628 2002-05-16 Richard Henderson <rth@redhat.com>
2630 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2632 * config/ia64/ia64.c (saveable_obstack): Do not declare.
2634 2002-05-16 Richard Henderson <rth@redhat.com>
2636 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2637 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2638 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2639 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2640 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2641 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2642 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2643 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2644 Revert "Basic block renumbering removal", and two followup patches.
2646 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2648 * lcm.c (optimize_mode_switching): Revert previous change.
2650 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2652 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2653 with only extant block numbers.
2655 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
2657 * lcm.c (optimize_mode_switching): Fix typo.
2659 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2661 * flow.c (calculate_global_regs_live): Queue blocks in program order.
2663 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2665 * doc/install.texi (Configuration): Document PWDCMD.
2667 2002-05-16 Dale Johannesen <dalej@apple.com>
2669 * combine.c (cant_combine_insn_p): Reenable combinations
2670 involving hard regs unless CLASS_LIKELY_SPILLED_P.
2672 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2674 * c-common.c (cb_register_builtins): Handle more built-ins
2675 here rather than in gcc.c specs.
2676 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2677 (cpp_options): Pass -O flags even when only preprocessing.
2678 * toplev.c (set_fast_math_flags): New prototype.
2679 (fast_math_flags_set_p): New.
2680 (set_no_fast_math_flags): Remove.
2681 (decode_f_option): Update.
2682 * toplev.h (set_fast_math_flags): Update.
2683 (fast_math_flags_set_p): New.
2684 (set_no_fast_math_flags): Remove.
2686 * c4x/c4x.c (c4x_override_options): Update.
2688 2002-05-16 Zack Weinberg <zack@codesourcery.com>
2690 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2691 Default-define here.
2692 (builtin_define_with_value): Can now wrap the expansion in
2693 quotation marks if such is wanted.
2694 (cb_register_builtins): Update calls to builtin_define_with_value.
2695 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2697 (c_common_init): Set options->stdc_0_in_system_headers.
2698 * c-lex.h: Update prototype of builtin_define_with_value.
2699 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2700 and REGISTER_PREFIX.
2702 * cppinit.c (VERS, ULP, C, X): Kill.
2703 (builtin_array): Remove entries for __VERSION__,
2704 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2705 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
2707 (init_builtins): Kill off a bunch of now-dead code.
2708 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2709 -fno-leading-underscore.
2710 (cpp_handle_option): Remove code to set user_label_prefix.
2711 (cpp_post_options): Likewise.
2713 * cpplib.h (struct cpp_options): Remove user_label_prefix.
2714 (stdc_0_in_system_headers): New.
2715 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2716 stdc_0_in_system_headers) too to decide the value of __STDC__.
2718 * tradcpp.c (user_label_prefix): Kill.
2719 (main): Remove code handling -f(no-)leading-underscore.
2720 (initialize_builtins): Don't define __REGISTER_PREFIX__
2721 or __USER_LABEL_PREFIX__.
2722 (install_value): Wrap compound statement in dummy loop so the
2723 macro works properly in an if statement.
2726 2002-05-16 Janis Johnson <janis187@us.ibm.com>
2728 * loop.h (struct loop_info): Add member has_prefetch.
2729 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2730 (prescan_loop): Initialize has_prefetch.
2731 (struct prefetch_info): Change prefetch_in_loop and
2732 prefetch_before_loop from bit fields to ints.
2733 (emit_prefetch_instructions): Several small fixes.
2734 (check_dbra_loop): Don't reverse loop that uses prefetch.
2736 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2738 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2739 * configure.in: Likewise.
2740 * fixinc/check.tpl: Likewise.
2741 * fixinc/fixinc.dgux: Likewise.
2742 * fixinc/fixinc.svr4: Likewise.
2743 * fixinc/fixinc.winnt: Likewise.
2744 * fixinc/fixincl.sh: Likewise.
2745 * fixproto: Likewise.
2746 * configure: Regenerate.
2748 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2750 Basic block renumbering removal:
2751 * basic_block.h (struct basic_block_def): Renamed index to sindex,
2752 added prev_bb and next_bb fields.
2753 (n_basic_blocks): Renamed to num_basic_blocks.
2754 (last_basic_block): New, index of last basic block.
2755 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2756 traversing basic block chain.
2757 (BLOCK_NUM): index -> sindex.
2758 (create_basic_block_structure, create_basic_block): Declaration changed.
2759 (debug_num2bb): Declare.
2760 (expunge_block_nocompact): Declaration removed.
2761 (link_block, unlink_block, compact_blocks): Declare.
2762 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2763 * cfg.c (entry_exit_blocks): Initialize new fields.
2764 (clear_edges, alloc_block, expunge_block, cached_make_edge,
2765 redirect_edge_pred, dump_flow_info, dump_edge_info,
2766 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2767 free_aux_for_edges): Modified.
2768 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2769 (expunge_block_nocompact): Removed.
2770 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2771 find_unreachable_blocks, create_edge_list, print_edge_list,
2772 verify_edge_list, flow_edge_list_print, remove_fake_successors,
2773 remove_fake_edges, flow_reverse_top_sort_order_compute,
2774 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2775 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2776 flow_dfs_compute_reverse_execute): Modified.
2777 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2778 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2780 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2781 merge_blocks_move_predecessor_nojumps,
2782 merge_blocks_move_successor_nojumps, merge_blocks,
2783 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2784 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2785 * cfglayout.c (skip_insns_after_block, label_for_bb,
2786 record_effective_endpoints, scope_to_insns_finalize,
2787 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2788 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2789 cfg_layout_duplicate_bb): Modified.
2790 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2791 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2792 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2793 flow_loops_find, flow_loop_outside_edge_p): Modified.
2794 * cfgrtl.c (create_basic_block_structure, create_basic_block,
2795 flow_delete_block, compute_bb_for_insn, split_block,
2796 try_redirect_by_replacing_jump, redirect_edge_and_branch,
2797 force_nonfallthru_and_redirect, tidy_fallthru_edge,
2798 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2799 commit_edge_insertions, commit_edge_insertions_watch_calls,
2800 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2801 purge_all_dead_edges): Modified.
2802 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2803 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2804 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2806 * conflict.c (conflict_graph_compute): Modified.
2807 * df.c (FOR_ALL_BBS): Removed.
2808 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2809 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2810 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2811 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2812 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2813 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2814 * final.c (compute_alignments, final_scan_insn): Modified.
2815 * flow.c (verify_local_live_at_start, update_life_info,
2816 update_life_info_in_dirty_blocks, free_basic_block_vars,
2817 delete_noop_moves, calculate_global_regs_live,
2818 initialize_uninitialized_subregs, allocate_bb_life_data,
2819 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2820 mark_used_reg, count_or_remove_death_notes): Modified.
2821 * function.c (thread_prologue_and_epilogue_insns): Modified.
2822 * gcse.c (struct null_pointer_info): Change typo of current_block
2824 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2825 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2826 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2827 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2828 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2829 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2830 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2831 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2832 pre_delete, one_pre_gcse_pass, compute_transpout,
2833 invalidate_nonnull_info, delete_null_pointer_checks_1,
2834 free_code_hoist_mem, compute_code_hoist_vbeinout,
2835 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2836 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2837 compute_store_table, build_store_vectors, insert_insn_start_bb,
2838 insert_store, replace_store_insn, free_store_memory, store_motion):
2840 * global.c (global_alloc, global_conflicts, mark_elimination,
2841 build_insn_chain): Modified.
2842 * graph.c (print_rtl_graph_with_bb): Modified.
2843 * haifa-sched.c (sched_init): Modified.
2844 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2845 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2846 if_convert): Modified.
2847 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2848 compute_insert_delete, pre_edge_lcm, compute_available,
2849 compute_farthest, compute_nearerout, compute_rev_insert_delete,
2850 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2852 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2853 * loop.c (loop_dump_aux): Modified.
2854 * predict.c (combine_predictions_for_insn, estimate_probability,
2855 last_basic_block_p, process_note_prediction, process_note_predictions,
2856 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2857 expensive_function_p, estimate_bb_frequencies,
2858 compute_function_frequency): Modified.
2859 * print-rtl.c (print_rtx): Modified.
2860 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2861 get_exec_counts, compute_branch_probabilities, compute_checksum,
2862 branch_prob, find_spanning_tree): Modified.
2863 * recog.c (split_all_insns, peephole2_optimize): Modified.
2864 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2865 convert_regs_1, convert_regs_2, convert_regs): Modified.
2866 * regclass.c (scan_one_insn, regclass): Modified.
2867 * regmove.c (mark_flags_life_zones, regmove_optimize,
2868 combine_stack_adjustments): Modified.
2869 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2870 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2871 * reorg.c (dbr_schedule): Modified.
2872 * resource.c (find_basic_block, init_resource_info): Modified.
2873 * sbitmap.c (sbitmap_intersection_of_succs,
2874 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2875 sbitmap_union_of_preds): Modified.
2876 * sched-deps.c (init_dependency_caches): Modified.
2877 * sched-ebb.c (schedule_ebbs): Modified.
2878 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2879 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2880 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2881 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2882 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2883 ssa_const_prop): Modified.
2884 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2885 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2886 * ssa.c (remove_phi_alternative, find_evaluations,
2887 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2888 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2889 make_regs_equivalent_over_bad_edges,
2890 make_equivalent_phi_alternatives_equival,
2891 compute_conservative_reg_partition,
2892 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2893 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2896 2002-05-16 Mark Mitchell <mark@codesourcery.com>
2898 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2900 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2902 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2903 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2904 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2905 calling CONSTANT_POOL_ADDRESS_P.
2906 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2907 to decide whether to define __arm__ or __thumb.
2908 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2909 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2911 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2913 * config/arc/arc.h (CPP_PREDEFINES): Remove.
2915 (TARGET_CPU_CPP_BUILTINS): New.
2917 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
2919 * cpphash.h (cpp_macro): Move here, and make expansion a union.
2920 * cppmacro.c (cpp_macro): Remove.
2921 (enter_macro_context, replace_args, warn_of_redefinition,
2922 _cpp_create_definition, cpp_macro_definition): Update.
2924 2002-05-16 Jason Merrill <jason@redhat.com>
2926 * config/mips/mips.c (mips_output_external): Don't do sdata
2927 optimization for a variable with DECL_COMDAT set.
2929 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2931 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2932 Cleanups for accepting modifiers on pointers.
2933 Fix predicate typos.
2934 Allow long pointers as well as int pointers.
2936 2002-05-15 Richard Henderson <rth@redhat.com>
2938 * varasm.c (merge_weak): Remove special case for extern and common.
2940 2002-05-15 Matt Hiller <hiller@redhat.com>
2942 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2944 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2945 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2946 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2947 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2948 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2949 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2951 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2953 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2955 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
2957 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2958 ("altivec_mfvscr"): Read from VSCR.
2960 Add vscr sets for the following insns: altivec_vctuxs,
2961 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2962 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2963 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2964 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2965 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2966 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2967 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2968 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2969 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2970 altivec_vsum2sws, altivec_vsumsws.
2972 * config/rs6000/rs6000.h: Add VSCR fixed register.
2973 (CALL_REALLY_USED_REGISTERS): Add vscr.
2974 (CALL_USED_REGISTERS): Same.
2975 (FIXED_REGISTERS): Same.
2976 (REG_ALLOC_ORDER): Same.
2977 (reg_class): Add VSCR_REGS.
2978 (REG_CLASS_NAMES): Same.
2979 (REG_CLASS_CONTENTS): Same.
2981 (REGISTER_NAMES): Add vscr.
2982 (DEBUG_REGISTER_NAMES): Same.
2983 (ADDITIONAL_REGISTER_NAMES): Same.
2984 (FIRST_PSEUDO_REGISTER): Increment.
2985 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2987 2002-05-15 Jakub Jelinek <jakub@redhat.com>
2989 * fold-const.c (fold): Fix a typo.
2991 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
2993 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2994 comparison against the highest or lowest integer value before
2995 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2996 transformation and that of an unsigned comparison against 0
2999 2002-05-15 Richard Henderson <rth@redhat.com>
3001 * varasm.c (merge_weak): Error for any weakening after definition.
3002 Adjust weakening after use warning to catch more cases.
3003 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3004 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3006 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3008 * invoke.texi (-malign-double): Re-add lost warning.
3010 * i386-protos.h (x86_output_mi_thunk): Declare.
3011 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3012 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3014 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3015 when flag_asynchronous_unwind_tables is set.
3017 * flags.h (flag_reorder_functions): Declare.
3018 * function.c (prepare_function_start): Initialize frequnecy.
3019 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3020 * Makefile.in (predict.o): Add dependency on target.h and params.h
3021 * defaults.h (HOT_TEXT_SECTION_NAME,
3022 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3023 * predict.c (choose_function_section): New function.
3024 (estimate_bb_frequencies): Use it.
3025 * toplev.c (flag_reorder_functions): New global variable.
3026 (lang_independent_options): New.
3027 (parse_options_and_default_flags): Set.
3028 * varasm.c (assemble_start_function): Bypass functdion alignment
3029 for never executed functions.
3030 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3031 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3032 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3035 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
3037 * predict.c: Inlude profile.h
3038 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3039 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3040 Use the information about maximal counter in the program.
3042 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
3044 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3045 probably_never_executed_bb_p): New functions.
3046 * cfgcleanup.c (outgoing_edges_match): Use them.
3047 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3048 (maybe_hot_bb_p, probably_cold_bb_p,
3049 probably_never_executed_bb_p): New functions.
3051 * function.h (function): Add new field function_frequency.
3052 * predict.c (compute_function_frequency): New function.
3053 (estimate_probability): Call it.
3055 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3057 PR optimization/5172, optimization/5200
3058 * gcse.c (gcse_main): Disable store_motion.
3060 2002-05-14 Zack Weinberg <zack@codesourcery.com>
3062 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3063 (c_common_nodes_and_builtins): Use it.
3064 (builtin_define_with_value): New function.
3065 (cb_register_builtins): Define __SIZE_TYPE__,
3066 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3067 using builtin_define_with_value. Use consistent notation when
3068 defining __GXX_WEAK__.
3069 (WCHAR_TYPE_SIZE): Don't redefine.
3070 (combine_strings): Don't use WCHAR_TYPE_SIZE.
3072 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3073 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3074 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3075 * tradcpp.c (initialize_builtins): Likewise.
3076 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3078 * c-lex.h (builtin_define_with_value): Prototype.
3079 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3080 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3081 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3083 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3084 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3085 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3086 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3087 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3088 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3089 config/sparc/sol2-bi.h, config/sparc/sparc.h:
3090 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
3091 to __SIZE_TYPE__ etc from all spec strings. When this makes
3092 extra specs empty, delete them.
3094 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
3096 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3097 for PA8000 or generating dwarf2 call frame information.
3098 (output_call): Remove DO_FRAME_NOTES check from return pointer
3100 (following_call): Return 0 when scheduling for PA8000 or generating
3101 dwarf2 call frame information. Revise comment.
3103 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3106 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3107 and __IEEE_FP_INEXACT as appropriate.
3108 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3109 (CPP_SPEC): Remove ieee defines.
3110 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3112 2002-05-14 Richard Henderson <rth@redhat.com>
3114 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3115 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3117 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3119 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3121 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3122 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3123 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3124 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3125 (EXTRA_SPECS): Update.
3126 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3127 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3128 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3129 define TARGET_OS_CPP_BUILTINS if necessary.
3131 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
3133 * gcc.c (cpp_options): Must pass -m* and -f* options
3134 to the front end even when only preprocessing.
3135 (cc1_options): Remove redundant -lang-c.
3136 * tradcpp.c (main): Ignore -m options.
3138 * lang-specs.h: Similarly.
3140 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
3142 * genautomata.c (transform_3): Add code for transformation
3143 `(A,B,...)+C -> A+C,B,...'.
3145 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
3147 * final.c (end_final): Do not output profile_arcs constructor, when
3148 no functions are instrumented.
3150 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
3152 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3154 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3156 * doc/install.texi: Remove special markup originally required for
3157 HTML generation with texi2html.
3159 2002-05-14 Andreas Schwab <schwab@suse.de>
3161 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3163 (UNIQUE_SECTION): Define to get small data correctly.
3165 * varasm.c (resolve_unique_section): Add third parameter
3166 flag_function_or_data_sections and use it instead of
3167 flag_function_sections.
3168 (assemble_start_function): Pass flag_function_sections.
3169 (asm_emit_uninitialised): Pass flag_data_sections.
3170 (assemble_variable): Likewise.
3172 2002-05-14 Richard Henderson <rth@redhat.com>
3174 * config/i386/i386.md: Use define_constants for unspec numbers.
3175 * config/i386/i386.c: Likewise.
3177 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3179 * doc/contrib.texi: Update my entry.
3181 2002-05-13 Mark Mitchell <mark@codesourcery.com>
3183 * fixinc/inclhack.def (winidss_valist): Limit applicability.
3184 * fixinc/fixincl.x: Regenerated.
3185 * fixinc/tests/base/math.h: Update.
3186 * fixinc/tests/base/testing.h: Likewise.
3188 2002-05-13 Zack Weinberg <zack@codesourcery.com>
3190 * genattr.c (gen_attr): Don't emit a comma after the last
3193 2002-05-13 Richard Henderson <rth@redhat.com>
3195 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3197 * recog.c (peephole2_optimize): Likewise.
3199 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
3201 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3204 2002-05-13 Jeffrey A Law (law@redhat.com)
3206 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3207 Update prototype and callers.
3208 (propagate_one_insn): Stack pointer adjustments kill MEMs on
3209 the mem_set_list which reference the stack pointer, as do
3210 calls to constant functions as they may clobber outgoing
3213 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3215 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3216 (ia32_multipass_dfa_lookahead): New function.
3218 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3220 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3221 (translate_options): Remove 'V'.
3222 (process_command): Similarly.
3224 * invoke.texi: Remove documentation of 'V'.
3226 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3228 * config/s390/linux.h: Revert 2002-04-22 changes.
3230 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
3232 * config/fr30/fr30.md: Only allow splits of immediate loads
3233 if the destination is a register.
3235 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
3237 * Makefile.in (c-common.o, cppinit.o): Update.
3238 * c-common.c: Include except.h.
3239 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3240 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3241 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3242 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3243 CPP_PREDEFINES): Handle here.
3245 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3246 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3247 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3248 TARGET_OS_CPP_BUILTINS.
3249 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3250 (CPP_SPEC, EXTRA_SPECS): Update.
3251 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3252 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3253 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3254 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3255 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3257 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3258 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3260 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3262 * emit-rtl.c (global_rtl): Update comment.
3263 (const_double_htab, const_double_htab_hash,
3264 const_double_htab_hash, lookup_const_double): New.
3265 (const_int_htab_hash, const_int_htab_eq): Remove const
3266 qualifiers, which cause tons of warnings with RTL checking on.
3267 (gen_rtx_CONST_DOUBLE): Deleted.
3268 (const_double_from_real_value): New function - bears some
3269 resemblance to the former immed_real_const_1.
3270 (immed_double_const): Moved here from varasm.c and
3272 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3273 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3274 (gen_rtx): Use immed_double_const.
3275 (init_emit_once): Initialize the const_double_htab. Use
3276 REAL_VALUE_FROM_INT where possible. Can now use
3277 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3278 * varasm.c (struct varasm_status): Remove x_const_double_chain.
3279 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3280 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3281 (init_varasm_status, mark_varasm_status): Don't touch
3282 x_const_double_chain.
3284 * output.h: Delete prototype for clear_const_double_mem.
3285 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
3286 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
3287 const_double_from_real_value, not immed_real_const_1, and use
3288 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
3290 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3291 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3292 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3293 (gen_rtx_REG): Second arg is unsigned.
3295 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3296 (excluded_rtx): New, return true for CONST_DOUBLE.
3297 (genmacro): Write nothing for excluded codes.
3298 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3299 * expr.c (expand_expr): Likewise.
3300 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3302 * toplev.c (rest_of_compilation): Don't call
3303 clear_const_double_mem.
3305 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3306 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3307 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3308 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3309 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3310 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3311 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3312 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3314 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3316 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3318 2002-05-12 Tom Tromey <tromey@redhat.com>
3320 * tree.h (copy_node): Don't mention TREE_PERMANENT.
3322 2002-05-12 Zack Weinberg <zack@codesourcery.com>
3324 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3325 (scan_comma_elt): New function. Accepts whitespace in comma lists.
3326 * gensupport.h: Prototype new routines.
3327 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
3329 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3330 (next_comma_elt): Use scan_comma_elt.
3332 * config/i386/i386.md: Use new attribute notation to break up
3333 long lines in define_attr forms.
3335 2002-05-12 Richard Henderson <rth@redhat.com>
3337 * expr.c (compress_float_constant): New.
3338 (emit_move_insn): Use it.
3339 (float_extend_from_mem): New.
3340 (init_expr_once): Initialize it.
3341 * real.c (exact_real_truncate): New.
3343 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3344 dropped into memory; penalize for size.
3345 (RTX_COSTS): FLOAT_EXTEND is free.
3346 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3347 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3349 2002-05-12 Richard Henderson <rth@redhat.com>
3351 * profile.h (profile_info): Add missing extern to declaration.
3352 * profile.c (profile_info): Define it.
3354 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3356 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3357 used for DImode and TImode.
3359 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
3361 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3364 2002-05-11 Zack Weinberg <zack@codesourcery.com>
3366 * config/rs6000/rs6000.c (rs6000_default_long_calls,
3367 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3368 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3369 (rs6000_override_options): Handle -m(no-)longcall.
3370 (init_cumulative_args, output_mi_thunk): Check for both
3371 longcall and shortcall attributes on the function.
3372 (rs6000_attribute_table): Add "shortcall".
3373 (rs6000_handle_longcall_attribute): Update comment.
3374 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3375 altivec_expand_ternop_builtin): Add default clauses to switches
3376 to silence warnings.
3378 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3379 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
3380 (TARGET_OPTIONS): Add longcall and no-longcall.
3382 * config/rs6000/rs6000.md (call_nonlocal_sysv,
3383 call_value_nonlocal_sysv): Split by alternatives. One pair
3384 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3385 the call cookie. The other pair accepts only LR/CTR and has
3388 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3389 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3391 * config/rs6000/rs6000-c.c: New file.
3392 * config/rs6000/t-rs6000-c-rule: New file.
3393 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3394 Prototype rs6000_pragma_longcall.
3396 * doc/extend.texi: Document shortcall attribute.
3397 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3399 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3401 * reorg.c (dbr_schedule): Remove unnecessary test.
3403 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
3405 * i386.md (testsi to testqi spliters): New.
3407 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
3409 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3411 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
3413 * basic-block.h: New flag EDGE_CAN_FALLTHRU
3414 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3415 that can be made fallthru.
3417 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
3419 * cfglayout.c (cleanup_unconditional_jumps): New static function.
3420 (cfg_layout_initialize): Use it.
3422 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
3424 * config/avr/avr.c (avr_mcu_types): Update supported devices.
3425 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3426 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3428 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
3430 * dbxout.c: Fix formatting.
3431 * dependence.c: Likewise.
3433 * diagnostic.c: Likewise.
3434 * doloop.c: Likewise.
3435 * dominance.c: Likewise.
3436 * doschk.c: Likewise.
3437 * dwarf2asm.c: Likewise.
3438 * dwarf2out.c: Likewise.
3439 * dwarfout.c: Likewise.
3441 2002-05-10 Richard Henderson <rth@redhat.com>
3443 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
3444 Convert integers constants as needed. Replace "nwords" field with
3446 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3447 * function.h: Fix typo in comment.
3448 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3450 2002-05-10 Roger Sayle <roger@eyesopen.com>
3452 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3453 into the equivalent (signed char)c > 0.
3455 2002-05-10 Janis Johnson <janis187@us.ibm.com>
3457 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3458 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3459 (struct prefetch_info): Fix spelling of member bytes_accessed.
3460 (emit_prefetch_instructions): Make dump messages more regular;
3461 restructure code to add more dump messages; use new macros for
3462 heuristics. (There are no code generation changes in any of this).
3464 2002-05-10 David S. Miller <davem@redhat.com>
3466 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3467 (struct rtx_def): Update unchanging flag comment.
3468 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3469 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3470 to be handled to INSN too.
3471 (dbr_schedule): Likewise.
3472 * resource.c (next_insn_no_annul): Likewise.
3474 * cse.c (rtx_cost): Remove multiplication by power of 2 special
3477 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3479 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3480 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3481 (possibly) work around broken /bin/sh.
3483 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3485 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3486 . as N64/N32 libgcc_s.so subdirs.
3488 2002-05-10 David S. Miller <davem@redhat.com>
3490 * config/sparc/sparc.md: Use define_constants for unspec numbers.
3492 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3494 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3496 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3497 * doc/rtl.texi: Document these macros more accurately.
3498 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3499 JUMP_INSNs and CALL_INSNs.
3500 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3501 or INSN_FROM_TARGET_P if the code is appropriate.
3503 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
3505 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3506 before using SYMBOL_REF_FLAG (addr).
3508 * config/avr/avr-protos.h (avr_io_address_p): Declare.
3509 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3510 Make non-static. Update all callers.
3511 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3512 New insns to clear/set/test a single bit in I/O address space.
3514 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3516 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3518 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3520 * Makefile.in: Update.
3521 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3522 builtin_define_std): New.
3523 (c_common_init): Register CPP builtins callback.
3524 * c-common.h (flag_iso, flag_undef): New.
3525 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3526 * c-lex.c: Don't include target.h.
3527 (cb_register_builtins): Move to c-common.c.
3528 (init_c_lex): Don't register hook here.
3529 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3530 (cpp_define, cpp_assert): Remove.
3531 * gcc.c (cc1_options): Pass -undef to front end.
3532 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3533 (TARGET_INITIALIZER): Update.
3534 * target.h (struct cpp_reader): Don't predeclare.
3535 (struct gcc_target): Remove cpp builtin hook.
3536 * tree.c (default_register_cpp_builtins): Remove.
3540 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3542 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3544 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3546 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3547 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3549 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3551 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3552 * config/sparc/libgcc-sparc-glibc.ver: New file.
3553 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3554 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3556 2002-05-09 Jakub Jelinek <jakub@redhat.com>
3559 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3560 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3561 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3563 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3564 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3565 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3566 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3568 2002-05-09 Richard Henderson <rth@redhat.com>
3570 * config/ia64/ia64.md: Use define_constants for unspec numbers.
3571 * config/ia64/ia64.c: Likewise.
3573 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
3575 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3576 (save_restore_insns): Likewise.
3577 (mips_expand_prologue, mips_expand_epilogue): Update callers.
3578 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3580 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
3582 * athlon.md, k6.md, pentium.md, ppro.md): New files.
3583 * i386.md: Move scheduling information into new files.
3585 * i386.md (type attribute): Add "rotate" for rotate insns.
3586 (rotate insns): Set type to "rotate".
3587 (various attributes and function units): Treat rotate like shift.
3588 (pent_pair attribute): Only rotates by one bit position are
3590 (sbb insns): Explicitly set pent_pair attribute on a couple
3591 that were missing it.
3593 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
3595 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3596 make sure that buffer starts on odd word address.
3597 (sh_va_arg): Skip odd fp registers when reading a double precision
3600 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3602 * tree.h (preserve_data, object_permanent_p, type_precision):
3605 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
3607 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3608 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3610 * cpp.texi: Update for removal of obsolete features.
3612 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
3613 Jeffrey A Law (law@redhat.com)
3615 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
3616 the DFA interface for Pentium processors.
3617 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3618 (attr_pent_pair, ix86_pent_find_pair): Remove.
3619 (ix86_sched_reorder_pentium): Remove.
3620 (ix86_sched_reorder): Remove reordering for Pentium.
3621 * i386.md (Pentium scheduling): Rewrite using DFA description.
3623 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
3625 * cfganal.c (can_fallthru): Fix fast path.
3626 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3627 with edges to the next block.
3629 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3630 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3632 * final.c (end_final): Use C trees to output data structures for profiling.
3634 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3635 (profile.o): New dependency profile.h
3636 (final.o): New dependency profile.h
3637 * profile.h: New file. New global structure profile_info.
3638 * final.h (count_edges_instrumented_now): Declare.
3639 (current_function_cfg_checksum): Declare.
3640 (function_list): New structure.
3641 (functions_head, functions_tail): New static variables.
3642 (end_final): Emits more data, removed some -ax stuff.
3643 (final): Stores function names and chcksums.
3644 * gcov-io.h (__write_gcov_string): New function.
3645 (__read_gcov_string): New function.
3646 * gcov.c (read_profile): New function.
3647 (create_program_flow_graph): Uses read_profile instead of reading
3649 (read_files): Removed da_file checking, it's done by read_profile now.
3650 * libgcc2.c (bb_function_info): New structure.
3651 (bb): New field in structure, removed some -ax stuff.
3652 (__bb_exit_func): Changed structure of da_file.
3653 * profile.c (count_edges_instrumented_now): New global variable.
3654 (current_function_cfg_checksum): New global variable.
3655 (max_counter_in_program): New global variable.
3656 (get_exec_counts): New function.
3657 (compute_checksum): New function.
3658 (instrument_edges): Sets count_edges_instrumented_now.
3659 (compute_branch_probabilities): Uses get_exec_counts instead of
3661 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3662 (init_branch_prob): Removed da_file checking, done in get_exec_counts
3664 (end_branch_prob): Removed da_file checking, done in get_exec_counts
3666 * gcov.texi: Updated information about gcov file format.
3668 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
3670 * sbitmap.c: Fix formatting.
3672 * scan-decls.c: Likewise.
3673 * sched-deps.c: Likewise.
3674 * sched-ebb.c: Likewise.
3675 * sched-rgn.c: Likewise.
3676 * sched-vis.c: Likewise.
3677 * sdbout.c: Likewise.
3678 * sibcall.c: Likewise.
3679 * simplify-rtx.c: Likewise.
3681 * ssa-ccp.c: Likewise.
3682 * ssa-dce.c: Likewise.
3684 * stor-layout.c: Likewise.
3685 * stringpool.c: Likewise.
3687 2002-05-09 David S. Miller <davem@redhat.com>
3689 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3691 2002-05-07 David S. Miller <davem@redhat.com>
3693 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3694 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3695 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3696 library implementation clobbers the output before the inputs
3697 are fully consumed, use stack temporary for the output.
3699 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
3701 * config/netbsd.h (CPP_SPEC): Remove.
3702 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3703 * config/i386/netbsd.h (CPP_SPEC): Define.
3704 * config/ns32k/netbsd.h (CPP_SPEC): Define.
3705 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3706 * config/sparc/netbsd.h (CPP_SPEC): Define.
3707 * config/vax/netbsd.h (CPP_SPEC): Define.
3709 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
3711 * read-rtl.c: Fix formatting.
3713 * recog.c: Likewise.
3714 * regclass.c: Likewise.
3715 * regmove.c: Likewise.
3716 * reg-stack.c: Likewise.
3717 * reload1.c: Likewise.
3718 * reload.c: Likewise.
3719 * resource.c: Likewise.
3720 * rtlanal.c: Likewise.
3722 * rtl-error.c: Likewise.
3724 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3726 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3727 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3729 2002-05-08 Bernd Schmidt <bernds@redhat.com>
3731 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3732 use __SSE2__ macro instead.
3733 * config/i386/xmmintrin.h: Likewise.
3735 2002-05-08 Janis Johnson <janis187@us.ibm.com>
3737 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3738 and use it in all invocations of these macros. Clean up comments.
3739 * rtl.c (rtl_check_failed_flag): Add an argument for the name
3740 of the flag access macro whose check failed.
3741 * doc/rtl.texi (Flags): Document additional flag uses.
3743 2002-05-08 Robert Spier <rspier@pobox.com>
3744 Neil Booth <neil@daikokuya.demon.co.uk>
3746 PR preprocessor/6521
3747 * cppfiles.c (handle_missing_header): Don't do anything
3748 different for <> includes.
3750 * cppopts.texi: Update documentation for -MG.
3752 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
3754 * cpplex.c (cpp_interpret_charconst): Truncate as well as
3757 * cpp.texi: Clarify multichar charconst valuation.
3759 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3761 * doc/invoke.texi: Document -mwindiss option.
3763 2002-05-08 Jason Merrill <jason@redhat.com>
3765 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3767 * dwarf2out.c (gen_type_die): Abort on broken recursion.
3770 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3773 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
3775 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3776 little-endian multilibs to override arm/thumb multilibs.
3777 Do not build hardware floating point multilibs, nor apcs-26
3778 multilibs for the Thumb.
3780 2002-05-08 Mark Mitchell <mark@codesourcery.com>
3783 * varasm.c (mark_weak): New function.
3784 (merge_weak): Use it. Do not call declare_weak.
3785 (declare_weak): Use merge_weak.
3787 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3789 * cse.c (dead_libcall_p): Update counts.
3790 (delete_trivially_dead_insns): Update call of dead_libcall_p.
3792 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
3794 * cfglayout.c (function_tail_eff_head): Rename to ...
3795 (function_footer): ... this one.
3796 (unlink_insn_chain): New functions.
3797 (label_for_bb): Only call block_label and emit debug message.
3798 (record_effective_endpoints): Actually unlink the headers and footers.
3799 (fixup_reorder_cahin): Re-insert the unlinked sequences.
3800 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3801 * cfglayout.h (struct reorder_block_def): New fields footer/header;
3802 remove eff_head/eff_end.
3803 * rtl.h (set_first_insn): Declare.
3804 * emit-rtl.c (set_first_insn): New function.
3806 * cfglayout.c (fixup_reorder_chain): Dump duplicated
3807 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3808 cfg_layout_duplicate_bb): New global function.
3809 (duplicate_insn_chain): New static function.
3810 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3811 cfg_layout_duplicate_bb): Declare.
3812 (struct reorder_block_def): Add "original" field.
3813 * emit-rtl.c (emit_copy_of_insn_after): New function.
3814 * rtl.h (emit_copy_of_insn_after): Declare.
3816 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3817 (fixup_reorder_chain): properly handle edges to exit block.
3819 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3820 Jan Hubicka <jh@suse.cz>
3822 * basic-block.h (note_prediction_to_br_prob): declare.
3823 * c-semantics.c: Inlucde predit.h
3824 (expand_stmt): predict GOTO_STMT as not taken.
3825 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3826 (cleanup_cfg): Do not free tail_recursion_list.
3827 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3828 (flow_delete_block): Kill predictions past end of basic block.
3829 * output.h (delete_unreachable_blocks): Declare.
3830 * predict.c (predicted_by_p, process_note_predictions,
3831 process_note_prediction, last_block_p): New function.
3832 (estimate_probability): Bypass loop on PRED_CONTINUE;
3833 do not handle noreturn heuristics; kill PRED_RETURN; add
3835 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3836 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3837 * predict.h (IS_TAKEN): New constant.
3838 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3839 * rtl.c (NOTE_INSN_PREDICTION): New.
3840 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3842 (insn_note): add NOTE_INSN_PREDICTION.
3843 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3844 CFG; free tail_recursion_label_list.
3845 * stmt.c: Include predict.h;
3846 (return_prediction): New.
3847 (expand_value_return): Use it.
3848 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3850 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
3852 * config/mips/mips.md: Name the unspecs with define_constant.
3853 (*HILO_delay): Rename to 'hilo_delay' (no star).
3854 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3855 (reload_outdi, reload_outsi): Likewise.
3857 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
3859 * toplev.c: Fix formatting.
3861 2002-05-07 Janis Johnson <janis187@us.ibm.com>
3863 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3864 * configure.in (ac_rtlflag_checking): New.
3865 * doc/install.texi (--enable-checking): Document RTL flag checking.
3867 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3869 * c-common.c (c_common_init): Set options->unsigned_wchar.
3870 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3871 group target dependencies.
3872 (init_builtins, cpp_handle_option): Update.
3873 * cpplex.c (cpp_interpret_charconst): Update.
3874 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3875 signed_char to unsigned_char, group target dependencies.
3876 * defaults.h (WCHAR_UNSIGNED): Remove.
3877 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3879 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3880 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3881 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3882 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3883 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3885 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3887 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3889 * fixinc/inclhack.def (windiss_math1): New fix.
3890 (windiss_math2): Likewise.
3891 (windiss_valist): Likewise.
3892 * fixinc/fixincl.x: Regenerated.
3894 2002-05-07 Andreas Jaeger <aj@suse.de>
3896 * genautomata.c (output_internal_min_issue_delay_func): Add
3897 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3898 (output_internal_trans_func): Likewise.
3900 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
3902 * pa.c (hppa_profile_hook): Use force_reg to get the address
3903 of the profile hook into an appropriate pseudo register.
3905 2002-05-07 Mark Mitchell <mark@codesourcery.com>
3907 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3908 (LINK_START_SPEC): Handle it.
3909 (LINK_OS_SPEC): Likewise.
3910 (CPP_SPEC): Likewise.
3911 (STARTFILE_SPEC): Likewise.
3912 (LIB_SPEC): Likewise.
3913 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
3915 (CRTSAVRES_DEFAULT_SPEC): New macro.
3916 (LIB_WINDISS_SPEC): New macro.
3917 (CPP_OS_WINDISS_SPEC): Likewise.
3918 (STARTFILE_WINDISS_SPEC): Likewise.
3919 (ENDFILE_WINDISS_SPEC): Likewise.
3920 (LINK_START_WINDISS_SPEC): Likewise.
3921 (LINK_OS_WINDISS_SPEC): Likewise.
3922 * config/rs6000/windiss.h: New file.
3924 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
3926 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3928 2002-05-06 David S. Miller <davem@redhat.com>
3930 * config/sparc/sparc.md (shift insns): Do not mask off
3931 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3934 2002-05-06 Richard Henderson <rth@redhat.com>
3937 * expr.c (highest_pow2_factor_for_type): New.
3938 (expand_assignment): Use it.
3940 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
3942 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3944 ("altivec_mfvscr"): Same.
3946 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3948 * rtl.h (struct rtx_def): Update comments.
3949 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
3950 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
3951 RTL_FLAG_CHECK macros with list of expected RTL codes.
3952 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3953 (rtl_check_failed_flag): New.
3954 * reload1.c (reload): Use REG macro before changing rtx to MEM.
3955 (reload_cse_noop_set_p): Check rtx code before using access macro.
3956 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3957 before using access macro.
3959 2002-05-06 Janis Johnson <janis187@us.ibm.com>
3961 * doc/rtl.texi (Flags): Update to reflect current usage.
3963 2002-05-06 Roger Sayle <roger@eyesopen.com>
3966 * fold-const.c (sign_bit_p): New function.
3967 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3968 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3969 Reapply fold when converting (A & C) == C into (A & C) != 0.
3970 (fold_binary_op_with_conditional_arg): Fix typo in comment.
3972 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
3974 * c-common.c (warn_multichar): New.
3975 (c_common_init): Set CPP's warn_multichar.
3976 * c-common.h (warn_multichar): New.
3977 * c-decl.c (warn_multichar): Remove.
3978 * c-lex.c (lex_charconst): Update.
3979 * c-tree.h (warn_multichar): Remove.
3980 * cppexp.c (eval_token): Sign-extend charconst value.
3981 * cppinit.c (cpp_create_reader): Set warn_multichar.
3982 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3983 each character. Update prototype. Sign-extend the result.
3984 * cpplib.h: Fix conditions.
3985 (struct cpp_options): Add new warning flag.
3986 (cpp_interpret_charconst): Update prototype.
3988 * cpp.texi: Update documentation.
3990 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
3992 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3993 Fix typo in usage of allof instead of unit.
3995 2002-05-06 Richard Henderson <rth@redhat.com>
3997 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3998 and any jump or call for IN.
4000 2002-05-06 Bernd Schmidt <bernds@redhat.com>
4002 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4004 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4006 2002-05-06 Roger Sayle <roger@eyesopen.com>
4008 * fold-const.c (lshift-double): Cast the high word to an unsigned
4009 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4010 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4011 avoid compiler warning. (fold): Remove redundant code from
4012 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4014 2002-05-06 Jeff Law <law@redhat.com>
4016 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4017 * pa.c (pa_adjust_cost): Remove all true dependency cost
4018 adjustments. Also remove support for non-DFA scheduling.
4019 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4020 to adjust true dependency costs. Update various comments.
4021 (7100lc, 7200, 7300 scheduling): Simplify by combining the
4022 FP ALU & MPY units into a single unit.
4024 2002-05-06 Catherine Moore <clm@redhat.com>
4026 * config/v850/v850.c (compute_register_save_size): Make sure
4027 to count all of the registers that will be saved.
4029 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4031 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4033 2002-05-06 David S. Miller <davem@redhat.com>
4035 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4036 allow result to overlap input operands in memory.
4038 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4041 * cpp.texi: Update multichar charconst docs.
4043 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
4045 * cpplex.c (cpp_interpret_charconst): Sign-extend each
4046 character. Don't ignore excess characters. Treat
4047 multicharacter character constants as signed.
4048 (cpp_parse_escape): Clarify diagnostic.
4050 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4052 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4053 use add instead of shift.
4054 (ashldi3_sp64): Likewise.
4055 (ashlsi3_const1, ashldi3_const1): Remove.
4056 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4057 * config/sparc/sparc.c (const1_operand): New.
4059 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
4061 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4063 2002-05-05 Jakub Jelinek <jakub@redhat.com>
4066 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4068 2002-05-05 Richard Henderson <rth@redhat.com>
4070 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4071 memory latency adjustments.
4072 (alpha_variable_issue): Remove.
4073 (alpha_use_dfa_pipeline_interface): New.
4074 (alpha_multipass_dfa_lookahead): New.
4075 * config/alpha/alpha.md: Remove define_function_unit scheduling;
4076 include new dfa scheduling.
4077 (attr type): Add none.
4079 * config/alpha/ev4.md: New.
4080 * config/alpha/ev5.md: New.
4081 * config/alpha/ev6.md: New.
4083 2002-05-05 David S. Miller <davem@redhat.com>
4085 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4087 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
4089 * cse.c: Fix formatting.
4090 * emit-rtl.c: Likewise.
4092 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4094 * genautomata.c (initiate_states): Add additional guard to
4095 initialize `units_array'.
4097 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
4099 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4100 process_unit_to_form_the_same_automaton_unit_lists,
4101 form_the_same_automaton_unit_lists
4102 check_unit_distributions_to_automata): New prototypes and
4104 (check_automata): Rename it into `check_automata_insn_issues'.
4105 (unit_decl): New fields `the_same_automaton_unit' and
4106 `the_same_automaton_message_reported_p'.
4107 (unit_decl_t): New typedef.
4108 (the_same_automaton_lists): New gloval variable.
4109 (unit_regexp, unit_set_el, units_array, units_cmp,
4110 output_get_cpu_unit_code_func): Use the typedef.
4111 (evaluate_max_reserv_cycles): Increment
4112 `description->max_insn_reserv_cycles'.
4113 (initiate_states): Don't increment `max_cycles_num'.
4114 (transform_insn_regexps): Move code around transformation of
4115 regexps from `generate'.
4116 (generate): Remove call of `transform_insn_regexps'.
4117 (expand_automata): Call `transform_insn_regexps' and
4118 `check_unit_distributions_to_automata'. Check errors before
4121 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4122 automaton `ultrasparc3_1'.
4124 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
4126 * c-common.c (c_common_init): Set up CPP arithmetic.
4127 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4128 something reasonable for the host.
4129 (sanity_checks): Add checks.
4130 (cpp_read_main_file): Call sanity_checks() from here...
4131 (cpp_post_options): ... not here.
4132 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4133 * cpplib.h (struct cpp_options): New member int_precision.
4135 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4137 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4139 2002-05-04 David S. Miller <davem@redhat.com>
4141 * config/sparc/linux.h, config/sparc/linux64.h
4142 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4144 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4146 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4148 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4151 2002-05-05 Tim Josling <tej@melbpc.org.au>
4153 * treelang; New directory for new sample language treelang.
4155 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4157 * Makefile.in (c-lex.o): Update.
4158 * c-lex.c: Include target.h.
4159 (cb_register_builtins): New.
4160 (init_c_lex): Set builtins callback.
4161 * c-lex.h (cpp_define, cpp_assert): New prototypes.
4162 * cppinit.c (init_builtins): Use callback, including for
4164 * cpplib.h (struct cpp_callbacks): New member.
4165 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4166 (TARGET_INITIALIZER): Update.
4167 * target.h (struct gcc_target): New hook.
4168 * tree.c (default_register_cpp_builtins): New.
4169 * tree.h (default_register_cpp_builtins): New.
4171 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4173 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4175 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4176 (cpp_post_options): Move sanity checks to...
4177 (sanity_checks): New.
4178 * cpplex.c (maybe_read_ucs): Fix prototype.
4179 (parse_string, cpp_parse_escape): Cast for %c format specifier.
4180 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4183 2002-05-04 Bernd Schmidt <bernds@redhat.com>
4185 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4186 builtins. Use V2DI patterns instead of TI for logical operations.
4187 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4188 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4189 (ix86_expand_builtins): Change the pattern used for movntdq.
4190 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4191 sse2_nandv2di3): New patterns.
4192 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4194 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4195 (cvtdq2pd): Correct mode on operand 1.
4196 (sse2_umulsidi3): Describe without unspec.
4197 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4199 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4200 (ashlv2di3): Likewise, from sse2_ashlv2di3.
4201 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4202 ashlv4si3, ashlv2di3): Use SImode for shift count.
4203 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4204 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4206 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4208 (__m128i, __m128d): New macros.
4209 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4210 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4211 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4212 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4213 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4214 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4215 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4216 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4217 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4218 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4219 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4220 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4221 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4222 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4223 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4224 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4225 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4226 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4227 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4228 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4229 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4230 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4231 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4232 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4233 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4234 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4235 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4236 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4237 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4238 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4239 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4240 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4241 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4242 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4243 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4244 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4245 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4247 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4248 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4250 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4252 * dwarf2out.c: Fix formatting.
4253 * varasm.c: Likewise.
4255 2002-05-04 David Edelsohn <edelsohn@gnu.org>
4258 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4259 clobber and use result as temporary value.
4261 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4263 * expr.c (force_operand): Use expand_simple_* to handle more
4266 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
4268 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4270 (lex_charconst): Update for change in prototype of
4271 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
4273 * cpphash.h (BITS_PER_CPPCHAR_T): New.
4274 * cppinit.c (cpp_create_reader): Initialize them for no
4275 change in semantics.
4276 (cpp_post_options): Add sanity checks.
4277 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4278 and truncation issues. Calculate in type cppchar_t.
4279 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4280 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
4281 run-time dependent precision correctly. Return whether the
4282 result is signed or not.
4283 * cpplib.c (dequote_string): Use cppchar_t; update.
4284 * cpplib.h (cppchar_signed_t): New.
4285 struct cpp_options): New precision members.
4286 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4287 * cppexp.c (eval_token): Update.
4289 2002-05-03 David S. Miller <davem@redhat.com>
4291 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4292 * config/sparc/sparc.c (sparc_rtx_costs): New function
4293 implementing RTX_COSTS and CONST_COSTS.
4294 * config/sparc/sparc.h (CONST_COSTS): Delete.
4295 (RTX_COSTS_CASES): Define.
4296 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4299 * config/sparc/sparc.md (DFA schedulers): Split out...
4300 * config/sparc/cypress.md, config/sparc/hypersparc.md,
4301 config/sparc/sparclet.md, config/sparc/supersparc.md,
4302 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4304 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4305 checks on it, always defined for Sparc.
4307 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4308 Tweak, and add more detailed comments.
4310 2002-05-03 Zack Weinberg <zack@codesourcery.com>
4312 * Re-apply patch accidentally reverted with
4313 DFA scheduler merge: remove all rules and variables to slurp
4314 source files out of libiberty and rebuild them with HOST_CC.
4315 ($(HOST_PREFIX_1)varray.o): New rule.
4316 (genattrtab rule): Word wrap.
4318 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4320 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4321 (CPP_SUBTARGET_SPEC): Define.
4322 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4323 cpp_subtarget specs.
4324 (CPP_SPEC): Redefine to include %(cpp_subtarget).
4326 2002-05-03 David S. Miller <davem@redhat.com>
4328 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4329 * target.h (struct gcc_target): Delete cycle_display member.
4331 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4332 (rtx_needs_barrier): Delete reference to cycle_display unspec.
4333 (ia64_sched_reorder2): Mention need for cycle display handling
4334 once such notes exist.
4336 2002-05-03 Richard Henderson <rth@redhat.com>
4338 * real.c (etoasc): Strip most trailing zeros for clarity.
4339 * sched-vis.c: Include real.h.
4340 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4341 * Makefile.in (sched-vis.o): Add real.h.
4343 2002-05-03 David S. Miller <davem@redhat.com>
4345 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4348 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
4350 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4351 when we get an out of range literal.
4352 (altivec_expand_ternop_builtin): Same.
4353 (altivec_expand_unop_builtin): Same.
4354 (altivec_expand_builtin): Same, for dss.
4355 (altivec_expand_builtin): Use trees instead of rtl when
4356 determining literal argument validity.
4358 2002-05-03 David S. Miller <davem@redhat.com>
4360 Delete cycle display scheduling hook.
4361 * config/ia64/ia64.c (ia64_cycle_display,
4362 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4363 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4364 and use emit_insn_before instead of ia64_emit_insn_before.
4365 * config/ia64/ia64.md (unspec usage): Delete cycle display.
4366 (cycle_display): Delete insn pattern.
4367 * config/sparc/sparc.md (unspec usage): Delete cycle display.
4368 (cycle_display): Delete insn pattern.
4369 * config/sparc/sparc.c (sparc_cycle_display,
4370 TARGET_SCHED_CYCLE_DISPLAY): Delete.
4371 * doc/md.texi (cycle_display): Don't mention.
4372 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4374 2002-05-03 Richard Henderson <rth@redhat.com>
4376 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4377 * recog.h: Declare them.
4379 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4380 * config/sparc/sparc.md: Use store_data_bypass_p instead.
4381 * config/sparc/sparc-protos.h: Update.
4383 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4385 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4386 -D__arch64__. Add -D_LP64.
4387 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4389 (CPP_ARCH64_SPEC): Likewise.
4390 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4391 (NO_BUILTIN_SIZE_TYPE): Undef.
4393 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
4395 * genautomata.c (min_issue_delay_pass_states): Change return type
4397 (min_issue_delay_pass_states): Change the algorithm.
4398 (min_issue_delay): Set up min_insn_issue_delay for the state.
4399 (output_min_issue_delay_table): Interchange the nested loops and
4400 and initiate min_insn_issue_delay for states.
4402 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
4404 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
4407 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4409 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
4412 2002-05-03 Richard Henderson <rth@redhat.com>
4415 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4416 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4417 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4418 code before JUMP, not EARLIEST.
4420 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
4422 * c-format.c (check_format_info_main): Don't check for presence of
4423 parameter for * width until after operand number has been read,
4424 and only check for it if format parameters are available.
4427 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
4429 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4430 (LINK_SPEC): Undef before defining.
4432 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4434 PR preprocessor/6489
4435 * tradcpp.c (fixup_newlines): New.
4436 (main, finclude): Use it.
4438 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
4440 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4441 * config/mips/mips.c (mips_unique_section): Strip encoding from
4444 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4446 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4449 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4451 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4452 (Specific): Removed buildstats references.
4453 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4454 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4455 Accomodate Solaris versions beyond 8.
4456 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4457 (Specific, *-*-solaris2.8): Removed, obsolete.
4459 2002-05-03 Jakub Jelinek <jakub@redhat.com>
4462 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4463 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4464 fill leaf_reg_remap with identity.
4465 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4467 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4469 * config/h8300/crti.asm: Remove trailing spaces.
4470 * config/h8300/h8300.c: Likewise.
4471 * config/h8300/lib1funcs.asm: Likewise.
4473 2002-05-02 Jason Merrill <jason@redhat.com>
4475 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4476 * c-decl.c (c_init_decl_processing): Use it.
4477 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4478 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4479 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4481 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
4483 * regrename.c: Fix formatting.
4486 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4488 * i386.md (attribute memory): Handle compares properly.
4490 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
4492 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4495 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4497 * function.c: Fix formatting.
4499 2002-05-02 Jan Hubicka <jh@suse.cz>
4501 * haifa-sched.c (schedule_insn): Print table of instructions and
4503 (sched_block): Do not print ready list at verbosity level 1.
4504 * sched-vis.c (print_insn): Make global.
4505 * sched-ebb.c (ebb_print_insn): Rename from...
4506 (print_insn): ... this one.
4507 * sched-int.h (print_insn): Declare
4509 2002-05-02 Richard Henderson <rth@redhat.com>
4511 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4512 emitted by cycle_display.
4514 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
4516 * doc/install.texi (*-*-freebsd*): Update to latest status.
4518 2002-05-02 Jakub Jelinek <jakub@redhat.com>
4521 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4522 * config/float-sparc.h: Assume 128-bit long double if
4523 __LONG_DOUBLE_128__ is defined.
4525 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
4527 * genattrtab.c (write_function_unit_info): Add a dummy element
4528 when num_units == 0.
4530 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4532 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4533 TYPE_MODE (double_type_node) instead of DFmode.
4535 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
4537 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4539 * toplev.c (rest_of_compilation): Revert Richard's patch.
4541 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
4543 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4545 2002-05-02 Catherine Moore <clm@redhat.com>
4547 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4549 2002-05-02 Kazu Hirata <kazu@hxi.com>
4551 * combine.c: Fix comment typos.
4553 * genautomata.c: Likewise.
4557 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
4559 * doc/install.texi: State GNAT version requirements.
4561 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4563 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4564 of the frame pointer or arg pointer register which strict register
4565 checking is not enabled.
4567 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
4569 * gcc.dg/altivec-8.c: New.
4571 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4572 PRE_INC and PRE_DEC for altivec modes.
4574 2002-05-01 Bruce Korb <bkorb@gnu.org>
4576 * fixinc/check.tpl(set-writable): make sure the function exists first
4577 * fixinc/inclhack.def(alpha_assert): fix test_text
4578 * fixinc/tests/base/assert.h: add in missing result
4580 2002-05-01 Jeff Law <law@redhat.com>
4582 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4585 2002-05-01 Joel Brobecker <brobecker@gnat.com>
4587 * dbxout.c (dbxout_type): Emit size information for range types,
4588 as well, but only when using GDB extensions.
4590 2002-05-01 Richard Henderson <rth@redhat.com>
4592 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4593 target-independent gnu binutils date test.
4595 2002-05-01 Richard Henderson <rth@redhat.com>
4597 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4598 info before expunging the block.
4600 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4602 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4603 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
4604 -M -or -MM is in effect.
4606 2002-05-01 Zack Weinberg <zack@codesourcery.com>
4608 * config.gcc: Correct test of --enable-obsolete. Obsolete all
4609 A29k configurations.
4610 * doc/install.texi: Update to match.
4612 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4615 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4616 for duplicates. Always loop over whole list.
4618 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4620 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4622 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4624 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4627 2002-05-01 Joel Sherrill <joel@OARcorp.com>
4629 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4631 2002-05-01 David Edelsohn <edelsohn@gnu.org>
4633 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4634 (nabs_nopower): Same.
4635 (floatdisf2): New pattern.
4636 (absdi2): Convert to define_insn_and_split.
4641 (fix_trunctfdi2): Same.
4642 (fix_trunctfsi2): Same.
4644 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
4646 * doc/install.texi: Update Texinfo version requirement
4649 2002-05-01 Jakub Jelinek <jakub@redhat.com>
4651 PR target/6512, PR target/5628
4652 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4653 when memory is not aligned.
4654 (movdf_insn_v9only_vis): Likewise.
4655 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4656 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4657 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4659 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
4661 * gcc.dg/altivec-7.c: New.
4663 * config/rs6000/altivec.h: Cleanup.
4665 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
4667 * doc/invoke.texi (Option Summary): Add -mvrsave=.
4668 (RS/6000 and PowerPC Options): Document -mvrsave=.
4670 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4671 (rs6000_altivec_vrsave_string): Same.
4672 (rs6000_override_options): Call rs6000_parse_vrsave_option.
4673 (rs6000_parse_vrsave_option): New.
4674 (rs6000_stack_info): Only generate vrsave instructions when
4675 TARGET_ALTIVEC_VRSAVE.
4677 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4678 (rs6000_altivec_vrsave_string): Define extern.
4679 (rs6000_altivec_vrsave): Same.
4680 (TARGET_ALTIVEC_VRSAVE): New.
4682 2002-04-30 Richard Henderson <rth@redhat.com>
4685 * toplev.c (rest_of_compilation): Don't run cross-jump before
4688 2002-04-30 Tom Rix <trix@redhat.com>
4690 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4691 check which_alternative.
4693 2002-04-30 Kazu Hirata <kazu@hxi.com>
4695 * cpplex.c: Fix comment formatting.
4696 * function.c: Likewise.
4697 * integrate.c: Likewise.
4698 * regrename.c: Likewise.
4699 * sibcall.c: Likewise.
4700 * simplify-rtx.c: Likewise.
4701 * tree-inline.c: Likewise.
4703 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4705 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4706 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4707 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4708 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4709 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4710 * pa/x-ada: New file. Define ADA_CFLAGS.
4712 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
4714 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4715 from MMIX_LAST_REGISTER_FILE_REGNUM.
4716 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4717 (struct machine_function): New member highest_saved_stack_register
4718 previously static variable in mmix.c.
4719 (MACHINE_DEPENDENT_REORG): Define.
4720 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4721 (MMIX_OUTPUT_REGNO): New.
4722 (mmix_target_asm_function_prologue): Move calculation of last used
4723 saved-stack-register into...
4724 (mmix_machine_dependent_reorg): New function. Update to also handle
4726 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4727 register names, simplify somewhat by new variable regno.
4728 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
4730 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4731 emitting register names.
4732 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4733 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4735 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4738 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4740 2002-04-30 Richard Henderson <rth@redhat.com>
4742 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4743 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4744 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4745 emit_tfmode_cvt): New.
4746 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4747 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4748 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4749 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4750 * config/sparc/sparc-protos.h: Update.
4752 2002-04-30 Janis Johnson <janis187@us.ibm.com>
4754 * install.texi (Final install): Add to the list of info to include
4755 in a report of a successful bootstrap, and add link to 3.1 list.
4757 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
4759 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4760 (mode): Add vector modes
4761 (i387): Kill attribute.
4762 (unit): New attribute.
4763 (length_immediate): Grok new types.
4764 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4765 (modrm): Use "unit".
4766 (memory): Handle MMX/SSE properly.
4767 (scheduling descriptions): Kill uses of fop1.
4768 (sse, mmx, fp patterns): Set type and mode properly.
4770 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
4772 * pa.c (override_options): Default to PA8000 scheduling.
4773 * doc/invoke.texi (HP-PA options): Mention newly added 7300
4774 scheduling parameter.
4776 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4777 handling of double precision multiplies.
4779 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4780 fpdiv and fpsqrt instructions.
4781 (7200 & 7300 scheduling): Fix typo in handling of
4782 store-load and store-store penalties.
4784 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4786 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4787 mips. Add two missing commas.
4789 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
4791 * doc/contrib.texi (Contributors): Update Paolo Carlini's
4792 and Benjamin Kosnik's entries.
4794 2002-04-29 David S. Miller <davem@redhat.com>
4796 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4797 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4798 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4799 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4801 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4803 * combine.c (find_split_point): Use gen_int_mode.
4805 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
4807 Merging code from dfa-branch:
4809 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
4811 * genautomata.c (output_reserv_sets): Fix typo.
4813 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
4815 * genautomata.c (output_reserv_sets): Remove
4816 next_cycle_output_flag.
4818 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
4820 * sched-rgn.c (init_ready_list): Make the DFA code handle
4821 USE/CLOBBER insns in the same way as the traditional
4823 (new_ready): Similarly..
4825 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
4827 * haifa-sched.c (schedule_block): Change the DFA state only after
4830 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
4832 * pa.c (hppa_use_dfa_pipeline_interface): New function.
4833 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4834 (override_options): Add PA7300 scheduling support.
4835 (pa_adjust_cost): Update various comments. Properly
4836 handle anti and output dependencies when using the
4838 (pa_issue_rate): Add PA7300 scheduling support.
4839 (pa_can_combine_p): Call extract_insn before calling
4840 constrain_operands (taken from mainline tree).
4841 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4842 * pa.md (cpu attr): Add 7300. Rewrite pipeline
4843 descriptions using DFA descriptions. Add PA7300
4846 2002-03-30 David S. Miller <davem@redhat.com>
4848 Add UltraSPARC-III DFA scheduling support.
4849 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4850 Update FP conditional move on register insn patterns to use it, as
4852 (define_attr cpu): Add ultrasparc3.
4853 (define_attr us3load_type): New, update integer load patterns to
4854 set it, as appropriate.
4855 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4856 (rest): Add UltraSPARC3 scheduling description.
4857 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4858 (PROCESSOR_ULTRASPARC3): New.
4859 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4860 ({ASM,CPP}_CPU_SPEC): Likewise.
4861 (REGISTER_MOVE_COST): Likewise.
4862 (RTX_COSTS): Likewise.
4863 * config/sparc/sparc.c (sparc_override_options,
4864 sparc_initialize_trampoline, sparc64_initialize_trampoline,
4865 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4866 sparc_issue_rate): Likewise.
4867 * config/sparc/sol2.h: Likewise.
4868 * config/sparc/sol2-sld-64.h: Likewise.
4869 * config/sparc/linux64.h: Likewise.
4871 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
4873 * doc/md.texi: Add comments about usage the latency time for the
4874 different dependencies and about case when two or more conditions
4875 in different define_insn_reservations returns TRUE for an insn.
4877 * doc/md.texi: Add reference for automaton based pipeline
4880 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
4882 * doc/passes.texi: Add missed information about genattrtab.
4884 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
4886 * genautomata.c (output_automata_list_transition_code): Check
4887 automata_list on NULL.
4889 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
4891 * genautomata.c (output_insn_code_cases,
4892 output_automata_list_min_issue_delay_code,
4893 output_automata_list_transition_code,
4894 output_automata_list_state_alts_code): Comment the functions.
4896 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
4898 * genautomata.c (automata_list_el_t): New typedef.
4899 (get_free_automata_list_el,free_automata_list_el,
4900 free_automata_list, automata_list_hash, automata_list_eq_p,
4901 initiate_automata_lists, automata_list_start, automata_list_add,
4902 automata_list_finish, finish_automata_lists,
4903 output_insn_code_cases, output_automata_list_min_issue_delay_code,
4904 output_automata_list_transition_code,
4905 output_automata_list_state_alts_code, add_automaton_state,
4906 form_important_insn_automata_lists): New functions and prototypes.
4907 (insn_reserv_decl): Add members important_automata_list and
4909 (ainsn): Add members important_p.
4910 (automata_list_el): New structure.
4911 (first_free_automata_list_el, current_automata_list,
4912 automata_list_table): New global variables.
4913 (create_ainsns): Initiate member important_p.
4914 (output_internal_min_issue_delay_func): Generate the switch and
4915 call output_insn_code_cases.
4916 (output_internal_trans_func, output_internal_state_alts_func):
4918 (generate): Call initiate_automata_lists.
4919 (automaton_states): New global variable.
4920 (expand_automata): Call form_important_insn_automata_lists.
4921 (write_automata): Call finish_automata_lists.
4923 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
4925 * genautomata.c (add_excls, add_presence_absence): Check that
4926 cpu units in the sets belong the same automaton.
4928 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4929 about that cpu units in the sets belong the same automaton.
4931 * doc/md.texi: Ditto.
4933 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
4934 Nitin Gupta <niting@noida.hcltech.com>
4936 * config/sh/sh.c (sh_use_dfa_interface): New function.
4938 (sh_issue_rate): New Function.
4939 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4940 TARGET_SCHED_ISSUE_RATE: define.
4942 * config/sh/sh.md: Add DFA based pipeline description for SH4.
4944 (define_attr insn_class): New attribute used for DFA
4946 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4947 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4948 cmpeqdi_t): Likewise.
4950 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4951 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4953 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4955 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4957 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4960 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
4962 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4963 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4965 (output_dfa_start_func): Initiate new variable insn_codes_length,
4966 (write_automata): Output definition of the new variable.
4968 2001-10-02 David S. Miller <davem@redhat.com>
4970 * haifa-sched.c (advance_one_cycle): New function.
4971 (schedule_block): Use it.
4972 (queue_to_ready): Use it, and also make sure to advance the DFA
4973 state on all stall cycles, not just those where insn_queue links
4976 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
4978 * haifa-sched.c (max_issue): Remove last_p argument. Only return
4979 non-zero if the highest-priority instruction could be scheduled.
4980 (choose_ready): Remove last argument from max_issue call.
4982 2001-09-28 David S. Miller <davem@redhat.com>
4984 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4985 ultrasparc and 3 for other multi-issue sparcs.
4987 2001-09-27 David S. Miller <davem@redhat.com>
4989 * config/sparc/sparc.md (cycle_display): New pattern.
4990 * config/sparc/sparc.c (sparc_cycle_display): New.
4991 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4993 2001-09-25 David S. Miller <davem@redhat.com>
4995 Convert all of Sparc scheduling to DFA
4996 * config/sparc/sparc.md: Kill all define_function_unit
4997 directives and replace with DFA equivalent.
4998 * config/sparc/sparc.c (ultrasparc_adjust_cost,
4999 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5000 ultra_fpmode_conflict_exists, ultra_find_type,
5001 ultra_build_types_avail, ultra_flush_pipeline,
5002 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5003 ultrasparc_variable_issue, ultrasparc_sched_init,
5004 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5005 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5006 ultra_cur_hist, ultra_cycles_elapsed): Kill.
5007 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5008 ultrasparc_store_bypass_p): New.
5009 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5012 2001-09-24 David S. Miller <davem@redhat.com>
5014 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5015 ready->vec[foo] not ready[foo].
5017 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5019 * doc/md.texi: Correct examples for define_insn_reservations
5022 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
5024 * genautomata.c (create_automata): Print message about creation of
5026 (generate): Remove printing meease about creation of
5029 2001-09-05 David S. Miller <davem@redhat.com>
5031 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5032 * config/sparc/linux64.h: Likewise.
5034 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
5036 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5037 schedule_block, sched_init, sched_finish): Add missed calls of
5038 use_dfa_pipeline_interface.
5040 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5043 * sched-vis.c (get_visual_tbl_length): Ditto.
5045 2001-08-27 Richard Henderson <rth@redhat.com>
5047 * genattr.c (main): Emit state_t even when not doing scheduling.
5049 2001-08-27 Richard Henderson <rth@redhat.com>
5051 * genautomata.c (expand_automata): Always create a description.
5053 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5055 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5056 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5057 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5060 * genattr.c (main): New variable num_insn_reservations. Increase
5061 it if there is DEFINE_INSN_RESERVATION. Output automaton based
5062 pipeline hazard recognizer interface.
5064 * genattrtab.h: New file.
5066 * genattrtab.c: Include genattrtab.h.
5067 (attr_printf, check_attr_test, make_internal_attr,
5068 make_numeric_value): Move protypes into genattrtab.h. Define them
5070 (num_dfa_decls): New global variable.
5071 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5072 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5073 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5074 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
5076 * genautomata.c: New file.
5078 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5080 * sched-int.h: (curr_state): Add the external definition for
5081 automaton pipeline interface.
5082 (haifa_insn_data): Add comments for members blockage and units.
5084 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5085 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5086 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5087 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5088 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5089 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5090 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5092 (TARGET_SCHED): Use the new macros.
5094 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5095 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5096 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5097 dfa_bubble): New members in gcc_target.sched.
5099 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5100 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5101 (insn_queue): Redefine it as pointer to array.
5102 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5104 (max_insn_queue_index_macro_value): New variable.
5105 (curr_state, dfa_state_size, ready_try): New varaibles for
5106 automaton interface.
5107 (ready_element, ready_remove, max_issue): New function prototypes
5108 for automaton interface.
5109 (choose_ready): New function prototype.
5110 (insn_unit, blockage_range): Add comments.
5111 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5112 FUNCTION_UNITS_SIZE == 0.
5113 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5114 actual_hazard, potential_hazard): Add comments.
5115 (insn_cost): Use cost -1 as undefined value. Remove
5116 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
5118 (ready_element, ready_remove): New functions for automaton
5120 (schedule_insn): Add new code for automaton pipeline interface.
5121 (queue_to_ready): Add new code for automaton pipeline interface.
5122 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5123 (debug_ready_list): Print newline when the queue is empty.
5124 (max_issue): New function for automaton pipeline interface.
5125 (choose_ready): New function.
5126 (schedule_block): Add new code for automaton pipeline interface.
5127 Print ready list before scheduling each insn.
5128 (sched_init): Add new code for automaton pipeline interface.
5129 Initiate insn cost by -1.
5130 (sched_finish): Free the current automaton state and finalize
5131 automaton pipeline interface.
5133 * sched-rgn.c: Include target.h.
5134 (init_ready_list, new_ready, debug_dependencies): Add new code for
5135 automaton pipeline interface.
5137 * sched-vis.c: Include target.h.
5138 (get_visual_tbl_length): Add code for automaton interface.
5139 (target_units, print_block_visualization): Add comments.
5141 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5142 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5143 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5144 (getruntime.o, genautomata.o): New entries.
5145 (genattrtab.o): Add new dependency file genattrtab.h.
5146 (genattrtab): Add new dependencies. Link it with `libm.a'.
5147 (getruntime.o, hashtab.o): New entries for canadian cross.
5149 * doc/md.texi: Description of automaton based model.
5151 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5153 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5154 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5155 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5156 TARGET_SCHED_DFA_POST_CYCLE_INSN,
5157 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5158 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5159 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5161 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5162 MAX_DFA_ISSUE_RATE): New macro descriptions.
5164 * doc/contrib.texi: Add dfa based scheduler contribution.
5166 * doc/gcc.texi: Add more information about genattrtab.
5168 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5170 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5171 adjust_address_nv call.
5173 2002-04-29 Janis Johnson <janis187@us.ibm.com>
5175 * doc/install.texi (Testing): Provide additional information, and
5176 a stronger encouragement, for running the testsuites.
5178 2002-04-29 DJ Delorie <dj@redhat.com>
5180 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5181 given in upper case.
5183 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5185 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5186 Solaris 2 <widec.h> if missing.
5187 * fixinc/fixincl.x: Regenerate.
5188 * fixinc/tests/base/widec.h: New file.
5190 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
5192 * toplev.c (f_options): Add "profile" switch so that
5193 -fno-profile can be used to disable -p.
5195 2002-04-29 Bernd Schmidt <bernds@redhat.com>
5197 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5199 * tree.c (build_common_tree_nodes_2): Likewise.
5200 * tree.h (enum tree_index): Likewise.
5201 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5203 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5205 (init_mmx_sse_builtins): Initialize SSE2 builtins.
5206 (ix86_expand_builtin): Add support for SSE2 builtins.
5207 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5208 (VALID_SSE_REG_MODE): Use it.
5209 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5210 (enum ix86_builtins): Add SSE2 builtins.
5211 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5212 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5213 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5214 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5215 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5216 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5217 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5218 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5219 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5220 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5221 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5222 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5223 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5224 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5225 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5226 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5227 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5228 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5229 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5230 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5231 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5232 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5233 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5234 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5235 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5236 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5237 lfence_insn): New patterns.
5238 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5239 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5241 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
5243 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5245 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5247 * doc/contrib.texi (Contributors): Add Paolo Carlini and
5249 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5250 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5251 and CPU instead of cpu.
5253 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5255 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5257 (lang_independent_options): Add -fif-conversion, -fif-conversion2
5258 (rest_of_compilation): Do if conversion only when asked for.
5259 (parse_options_and_default_flags): Set new variables to 1 for -O1
5260 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5262 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5264 * i386.c (dbx64_register_map): Fix typo.
5266 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5268 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5269 real_one_half, real_bb_freq_max): New static variables.
5270 (debug_profile_bbauxs): Kill.
5271 (process_note_predictions): Kill unused variable.
5272 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5274 (propagate_freq): Use REAL_ARITHMETICS.
5275 (estimate_bb_frequencies): Likevise; init new static variables.
5276 * Makefile.in (predict.o): Add dependency on real.h
5278 2002-04-28 David S. Miller <davem@redhat.com>
5281 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5282 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
5283 several {reads,writes} instead.
5284 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5287 2002-04-27 David S. Miller <davem@redhat.com>
5290 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5293 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5294 including signal.h and sys/ucontext.h, not needed.
5296 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
5298 * varasm.c (output_constant_def): Correct test for not calling
5299 ENCODE_SECTION_INFO for INTEGER_CST.
5301 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
5303 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5304 keep most cases as function eval_token.
5305 (eval_token): New function.
5306 (_cpp_parse_expr): Read token here for improved diagnostics.
5307 Don't use op_as_text. Detect bad ':' here.
5308 (reduce): Don't detect bad ':' here.
5309 (op_as_text): Remove.
5310 * cpphash.h (_cpp_test_assertion): Change prototype.
5311 * cpplib.c (_cpp_test_assertion): Change prototype.
5313 2002-04-28 Richard Henderson <rth@redhat.com>
5316 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5317 (ggc_mark_rtx_children): New.
5319 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5322 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5323 after call peepholes for UltraSPARC.
5324 (call + jump 64-bit peepholes): Remove.
5326 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5329 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5330 result as temporary value.
5332 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5335 * toplev.c (rest_of_compilation): Only run regrename and copy
5336 propagation if optimizing.
5338 2002-04-28 Jakub Jelinek <jakub@redhat.com>
5340 PR optimization/6475
5341 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5342 register of REGNO_DECL (i).
5343 * Makefile.in (reload1.o): Add $(TREE_H).
5345 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
5347 * cppexp.c (lex): Update to use state.skip_eval.
5348 (struct op): Remove prio and flags members.
5349 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5350 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5351 (LEFT_ASSOC): New macro.
5352 (optab): New table of operator priorities and flags.
5354 (_cpp_parse_expr): Clean up logic. Return bool. Use a
5355 malloc-ed parser stack.
5356 (reduce): New; reduce the operator stack.
5357 (_cpp_expand_op_stack): Expand the operator stack as necessary.
5358 * cpphash.h (struct op): Predeclare.
5359 (struct cpp_reader): New members op_stack, op_limit.
5360 (struct lexer_state): New member skip_eval.
5361 (_cpp_parse_expr): Update.
5362 (_cpp_expand_op_stack): New.
5363 * cpplib.c (do_if): Update.
5364 * cppinit.c (cpp_create_reader): Create op stack.
5365 (cpp_destroy): And destroy it.
5366 * cpplib.h (CPP_LAST_CPP_OP): Correct.
5367 (TTYPE_TABLE): Correct.
5369 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5372 * c-decl.c (duplicate_decls): Call merge_weak.
5373 * c-pragma.c (apply_pragma_weak): Warn about misuse.
5374 * output.h (merge_weak): Prototype merge_weak.
5375 * varasm.c (merge_weak): New function.
5376 (declare_weak): Make sure we don't give an error on VAR_DECLs.
5377 Mark RTL with SYMBOL_REF_WEAK.
5379 2002-04-27 Kurt Garloff <garloff@suse.de>
5381 * tree-inline.c (inlinable_function_p): Improve heuristics
5382 by using a smoother function to cut down allowable inlinable size.
5383 * param.def: Add parameters max-inline-insns-single,
5384 max-inline-slope, min-inline-insns that determine the exact
5385 shape of the above function.
5386 * param.h: Likewise.
5388 2002-04-26 Richard Henderson <rth@redhat.com>
5390 * c-parse.in (malloced_yyss, malloced_yyvs): New.
5391 (yyoverflow): Re-add. Set them.
5392 (free_parser_stacks): New.
5393 * c-common.h: Declare it.
5394 * c-lex.c (c_common_parse_file): Call it.
5396 2002-04-26 Richard Henderson <rth@redhat.com>
5398 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5399 for fallthru search.
5401 2002-04-26 Eric Christopher <echristo@redhat.com>
5403 PR optimization/3700
5404 * config/mips/mips.c (mips_issue_rate): Define. New function.
5405 (TARGET_SCHED_ISSUE_RATE): Use.
5407 2002-04-25 David S. Miller <davem@redhat.com>
5410 * reorg.c (optimize_skip): Do not allow exception causing
5411 instructions to be considered for delay slots.
5412 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5413 (relax_delay_slots): Do not try to consider exception causing
5414 instructions as redundant.
5416 2002-04-26 Richard Henderson <rth@redhat.com>
5419 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5421 2002-04-26 Mark Mitchell <mark@codesourcery.com>
5424 * config/i386/i386.md (untyped_call): Return the value in a float
5425 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5428 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
5430 * tree.c (tree_int_cst_lt): Compare constants whose types differ
5431 in unsigned-ness correctly.
5433 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5435 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5436 portable runtime model.
5438 2002-04-26 Richard Henderson <rth@redhat.com>
5440 * c-parse.in (yyoverflow): Revert.
5442 2002-04-26 David Edelsohn <edelsohn@gnu.org>
5443 Richard Henderson <rth@redhat.com>
5445 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5446 result as temporary value.
5448 2002-04-26 Richard Henderson <rth@redhat.com>
5451 * c-common.c (fix_string_type): Split out of ...
5452 (combine_strings): ... here. Take a varray, not a tree list.
5453 (c_expand_builtin_printf): Use fix_string_type.
5454 * c-common.h: Update decls.
5455 * c-parse.in (string): Remove. Update all uses to use STRING
5456 instead, and not call combine_strings.
5459 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5460 (build_asm_stmt): Likewise.
5461 * objc/objc-act.c (my_build_string): Use fix_string_type.
5462 (build_objc_string_object): Build varray for combine_strings.
5464 2002-04-26 Bo Thorsen <bo@suse.co.uk>
5466 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5469 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
5471 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5472 (HAVE_NO_R_OPERAND): Remove.
5473 (HAVE_VALUE): Remove.
5474 (op_to_prio): Update.
5475 (UNARY): Don't alter flags.
5476 (_cpp_parse_expr): want_value used to indicate whether
5477 a number or unary operator is expected next. Distinguish
5478 unary and binary +/-.
5479 (op_as_text): Update for unary operators.
5481 2002-04-25 Richard Henderson <rth@redhat.com>
5484 * c-parse.in (yyoverflow): New.
5486 2002-04-25 Richard Henderson <rth@redhat.com>
5489 * c-common.c (shorten_compare): Simplfy conditions leading to
5490 the generation of a warning.
5492 2002-04-25 Richard Henderson <rth@redhat.com>
5495 * expmed.c (extract_bit_field): Fall through to generic code rather
5496 than aborting on subreg special case.
5498 2002-04-25 David S. Miller <davem@redhat.com>
5500 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5501 for DECL being NULL.
5503 2002-04-25 Steve Christiansen <smc@us.ibm.com>
5505 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5507 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
5509 * c-decl.c (grokdeclarator): Remove outdated ??? note
5510 on invalid declaration of flexible array members.
5512 2002-04-25 Richard Henderson <rth@redhat.com>
5514 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5516 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
5518 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5519 needed by the compiler, even if they are used as global regs.
5521 2002-04-25 Matt Hiller <hiller@redhat.com>
5523 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5525 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5526 of the corresponding functions.
5527 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5530 2002-04-25 Matt Hiller <hiller@redhat.com>
5532 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5534 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5535 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5536 registers, adjust comment accordingly.
5537 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5538 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5539 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5540 for coprocessor registers.
5541 (ADDITIONAL_REGISTER_NAMES): Include
5542 ALL_COP_ADDITIONAL_REGISTER_NAMES.
5544 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5545 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5546 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5547 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5548 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5550 (mips_char_to_class): Adjust comment to include coprocessor
5553 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5555 (mips_reg_names, mips_regno_to_class): Include coprocessor
5557 (mips_sw_reg_names): Ditto, make non-static.
5558 (mips_move_1word): Handle moves to and from coprocessor registers.
5559 (mips_move_2words): Handle moves to and from coprocessor
5561 (mips_class_max_nregs, mips_register_move_cost): Handle
5562 coprocessor register classes.
5563 (override_options): Initialize mips_char_to_class and
5564 mips_hard_regno_mode_ok properly for coprocessor registers.
5566 * config/mips/mips.md (movdi_internal, movdi_internal2,
5567 movsi_internal1, movsi_internal2): Add constraint-sets for
5568 coprocessor registers.
5569 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5570 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5572 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5573 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5575 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5576 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5578 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5579 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5582 * doc/tm.texi: Document feature.
5584 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5586 * integrate.c (function_attribute_inlinable_p): Simplify.
5587 Check the table pointer is not NULL.
5589 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
5591 * doc/c-tree.texi: Fix typo in introduction.
5593 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
5595 * c-common.h (c_common_parse_file): Update.
5596 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5597 * c-lex.c (YYDEBUG): Get from c-lex.h.
5598 (c_common_parse_file): Update.
5599 * c-lex.h (YYDEBUG, yydebug): New.
5600 * c-parse.in (YYDEBUG): Get from c-lex.h.
5601 (c_set_yydebug): Remove.
5602 * c-tree.h (c_set_yydebug): Remove.
5603 * langhooks-def.h (lhd_do_nothing_i): New.
5604 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5605 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5606 * langhooks.c (lhd_do_nothing_i): New.
5607 (lhd_set_yydebug): Remove.
5608 * langhooks.h (struct lang_hooks): Update.
5609 * toplev.c (set_yydebug): New.
5610 (compile_file): Update call to parse_file hook.
5611 (decode_d_option): Update.
5613 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5615 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
5617 * loop.c (load_mems): Don't change the interface of called functions.
5619 * calls.c (expand_call): Take current_function_pretend_args_size
5620 into account when setting argblock for sibcalls.
5622 2002-04-24 Matt Hiller <hiller@redhat.com>
5624 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5627 * cpplex.c (skip_line_comment): Process comment one multibyte
5628 character at a time rather than one char at a time, if
5630 (parse_string): Process string one multibyte character at a time
5631 rather than one char at a time, if appropriate.
5632 * c-lex.c (lex_string): Lex and copy multibyte strings
5634 * cpplib.h (cppchar_t): Change to unsigned.
5636 2002-04-24 Richard Henderson <rth@redhat.com>
5639 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5642 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
5644 * sh.c (sh_va_arg): If argument was passed by reference,
5645 dereference the pointer.
5647 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5649 * sh.md (divsi3_i4_media): Use match_operand for input values
5650 rather than hard registers.
5651 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5652 unnecessarily through hard registers. Keep copies of pseudo
5653 registers outside of the libcall sequence.
5655 * sh.md (casesi_shift_media): Add modes.
5657 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5660 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
5662 * attribs.c (c_common_attribute_table): Move table and handlers
5664 (format_attribute_table, lang_attribute_table,
5665 lang_attribute_common): Remove.
5666 (init_attributes): Replace NULL pointers with pointers to the
5668 (handle_packed_attribute, handle_nocommon_attribute,
5669 handle_common_attribute, handle_noreturn_attribute,
5670 handle_noinline_attribute, handle_always_inline_attribute,
5671 handle_used_attribute, handle_unused_attribute,
5672 handle_const_attribute, handle_transparent_union_attribute,
5673 handle_constructor_attribute, handle_destructor_attribute,
5674 handle_mode_attribute, handle_section_attribute,
5675 handle_aligned_attribute, handle_weak_attribute,
5676 handle_alias_attribute, handle_visibility_attribute,
5677 handle_no_instrument_function_attribute, handle_malloc_attribute,
5678 handle_no_limit_stack_attribute, handle_pure_attribute,
5679 handle_deprecated_attribute, handle_vector_size_attribute,
5680 vector_size_helper): Move to c-common.c.
5681 * c-common.c (c_common_attribute_table,
5682 handle_packed_attribute, handle_nocommon_attribute,
5683 handle_common_attribute, handle_noreturn_attribute,
5684 handle_noinline_attribute, handle_always_inline_attribute,
5685 handle_used_attribute, handle_unused_attribute,
5686 handle_const_attribute, handle_transparent_union_attribute,
5687 handle_constructor_attribute, handle_destructor_attribute,
5688 handle_mode_attribute, handle_section_attribute,
5689 handle_aligned_attribute, handle_weak_attribute,
5690 handle_alias_attribute, handle_visibility_attribute,
5691 handle_no_instrument_function_attribute, handle_malloc_attribute,
5692 handle_no_limit_stack_attribute, handle_pure_attribute,
5693 handle_deprecated_attribute, handle_vector_size_attribute,
5694 vector_size_helper): Move from attribs.c.
5695 * c-common.h (c_common_attribute_table,
5696 c_common_format_attribute_table): New.
5697 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5698 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5699 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5700 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5701 (LANG_HOOKS_INITIALIZER): Update.
5702 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5703 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5704 * target.h: Update comment.
5705 * tree.c (default_target_attribute_table): Remove.
5706 * tree.h (default_target_attribute_table, format_attribute_table,
5707 lang_attribute_table, lang_attribute_common): Remove.
5709 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5710 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5712 2002-04-24 Jason Merrill <jason@redhat.com>
5714 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5715 * dwarf2out.c (dwarf_attr_name): Support it.
5716 (gen_array_type_die): Emit it.
5717 (lookup_type_die): No special handling for VECTOR_TYPE.
5718 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5720 2002-04-24 Richard Henderson <rth@redhat.com>
5722 * config/mips/mips.md (movdi_usd): Renumber.
5724 2002-04-24 David S. Miller <davem@redhat.com>
5727 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5728 32-bit Sparc and current_function_returns_struct is true.
5730 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5732 * loop.c (canonicalize_condition): Use gen_int_mode.
5734 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
5736 * config/rs6000/altivec.h: Cleanup file. Add non individual
5758 (vec_vcmpequb): New.
5759 (vec_vcmpequh): New.
5760 (vec_vcmpequw): New.
5761 (vec_vcmpeqfp): New.
5762 (vec_vcmpgefp): New.
5763 (vec_vcmpgtub): New.
5764 (vec_vcmpgtsb): New.
5765 (vec_vcmpgtuh): New.
5766 (vec_vcmpgtsh): New.
5767 (vec_vcmpgtuw): New.
5768 (vec_vcmpgtsw): New.
5769 (vec_vcmpgtfp): New.
5770 (vec_vcmpgefp): New.
5775 (vec_vexptefp): New.
5780 (vec_lde): Add vector float variant.
5785 (vec_vmhaddshs): New.
5807 (vec_vmladduhm): New.
5808 (vec_vmhraddshs): New.
5810 (vec_vmsummbm): New.
5811 (vec_vmsumuhm): New.
5812 (vec_vmsumshm): New.
5813 (vec_vmsumuhs): New.
5814 (vec_vmsumshs): New.
5823 (vec_vnmsubfp): New.
5841 (vec_vrsqrtefp): New.
5852 (vec_vspltisb): New.
5853 (vec_vspltish): New.
5854 (vec_vspltisw): New.
5879 (vec_vsum4ubs): New.
5880 (vec_vsum4sbs): New.
5881 (vec_vsum4shs): New.
5882 (vec_vsum2sws): New.
5893 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
5896 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5897 added literals from substracted literals.
5898 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5899 (fold) [associate]: Preserve MINUS_EXPR if needed.
5901 2002-04-23 Zack Weinberg <zack@codesourcery.com>
5903 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5906 2002-04-23 Tom Tromey <tromey@redhat.com>
5908 * gcc.c: Added --resource. For PR java/6314.
5910 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5912 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5913 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5916 2002-04-23 David O'Brien <obrien@FreeBSD.org>
5918 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5920 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
5922 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5924 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5925 (ix86_expand_clrstr): Fix typo.
5926 * loop.c (gen_load_of_final_value): New.
5927 (loop_givs_rescan, strength_reduce, check_dbra_loop):
5930 2002-04-23 Roger Sayle <roger@eyesopen.com>
5932 * builtins.c (builtin_memset_gen_str): New function.
5933 (expand_builtin_memset): Optimize the case of constant length, but
5936 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
5938 * config/rs6000/altivec.h (vec_step): Remove extraneous
5940 (vec_ctu): Cast return.
5942 2002-04-23 Alan Modra <amodra@bigpond.net.au>
5945 * function.h: (struct function): Add profile_label_no field.
5946 (current_function_profile_label_no): Define.
5947 * function.c: (profile_label_no): New static var.
5948 (expand_function_start): Increment it, and copy to
5949 current_function_profile_label_no.
5950 * output.h (profile_label_no): Delete.
5951 * final.c (profile_label_no): Delete.
5952 (profile_function): Use current_function_profile_label_no.
5953 (final_end_function): Don't increment profile_label_no here.
5954 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5955 profile_label_no with current_function_profile_label_no.
5956 * config/pa/pa.c (current_function_number): Delete.
5957 (pa_output_function_prologue): Don't output profile label here.
5958 (hppa_profile_hook): Use label_no param rather than
5959 current_function_number.
5960 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5961 * config/pa/pa.h: .. here.
5962 (FUNCTION_PROFILER): Output profile label here.
5964 2002-04-22 Eric Christopher <echristo@redhat.com>
5966 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5967 patch of 2002-04-09 due to binutils issues.
5968 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5970 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
5972 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5973 constraint to 'o' for m=r and r=m alternatives.
5974 ("*movv8hi_internal1"): Same.
5975 ("*movv16qi_internal1"): Same.
5976 ("*movv4sf_internal1"): Same.
5978 2002-04-22 Janis Johnson <janis187@us.ibm.com>
5980 * rtl.h (RTX_FLAG): New macro.
5981 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5982 * final.c (alter_subreg): Use macro to access rtx flag.
5983 * integrate.c (copy_rtx_and_substitute): Use new access macro.
5984 * print-rtl.c (print_rtx): Use new access macro.
5986 * cse.c (insert): Check rtx code before accessing flag.
5988 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5989 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5990 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5991 convert_const_symbol_ref, make_canonical, make_alternative_compare,
5992 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5993 simplify_test_exp, optimize_attrs, simplify_by_exploding,
5994 find_and_mark_used_attributes, unmark_used_attributes,
5995 add_values_to_cover, simplify_with_current_value,
5996 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5997 copy_rtx_unchanging, main): Use new access macros.
5999 2002-04-22 Tom Rix <trix@redhat.com>
6001 * expmed.c (init_expmed): Generate shifted constant once.
6003 2002-04-22 Zack Weinberg <zack@codesourcery.com>
6005 * c-lex.c (lex_charconst): Call convert to get constant in
6006 proper type; don't just smash the type field.
6009 * config.gcc: Add list of obsolete configurations. Disallow
6010 building these without --enable-obsolete.
6011 * doc/install.texi: Document --enable-obsolete and obsoletion
6012 policy. Mention obsoletion of individual targets in
6015 2002-04-22 Richard Henderson <rth@redhat.com>
6017 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6019 2002-04-22 Mark Mitchell <mark@codesourcery.com>
6022 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6023 (walk_fixup_memory_subreg): Likewise.
6024 (fixup_var_refs_insn): Adjust accordingly.
6025 (fixup_var_refs_1): Likewise.
6027 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
6029 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6030 LIBPATH_ARCH64_SPEC): Define.
6031 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6032 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6033 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6034 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6036 2002-04-22 Joel Sherrill <joel@OARcorp.com>
6038 * gthr-rtems.h: Correct prototypes to remove warnings.
6040 2002-04-22 Richard Henderson <rth@redhat.com>
6043 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6045 * gcse.c (free_insn_expr_list_list): New.
6046 (clear_modify_mem_tables): Use it. Fix bit set usage.
6047 (canon_list_insert): Use EXPR_LISTs for expressions.
6048 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6050 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
6052 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
6053 file change and include code to _cpp_pop_buffer.
6054 * cpphash.h (struct pending_option): Predeclare.
6055 (struct cpp_reader): New member next_include_file.
6056 (_cpp_pop_file_buffer): Update.
6057 (_cpp_push_next_buffer): Update, rename.
6058 * cppinit.c (cpp_destroy): Free include chain and pending here.
6059 (cpp_finish_options): Simplify.
6060 (_cpp_push_next_buffer): Rename and clean up.
6061 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6063 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6065 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
6067 * config/rs6000/altivec.h (vec_xor): Add variant for both args
6068 being vector signed int.
6070 (vec_xor): Add variant for both args being vector signed char.
6071 Remove redundant variant.
6074 2002-04-21 David S. Miller <davem@redhat.com>
6076 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6077 compare mode in output RTL.
6079 2002-04-22 David Edelsohn <edelsohn@gnu.org>
6081 * config/rs6000/rs6000.c (rs6000_override_options): Correct
6082 style and formatting of previous patch.
6084 2002-04-22 Alan Modra <amodra@bigpond.net.au>
6086 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6087 flag_pic for ABI_AIX.
6089 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6091 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6092 * cppfiles.c (read_include_file): Similarly.
6093 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6094 uxstrdup ustrchr, ufputs): Similarly.
6095 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6096 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6097 cpp_ideq, parse_identifier, parse_number): Similarly.
6098 * cpplib.c (struct directive, dequote_string, D, run_directive,
6099 cpp_push_buffer): Similarly.
6100 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6101 _cpp_create_definition, check_trad_stringification,
6102 cpp_macro_definition): Similarly.
6104 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
6106 * cppmacro.c (funlike_invocation_p): Don't step back
6109 2002-04-21 David Edelsohn <edelsohn@gnu.org>
6111 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6114 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
6116 * doc/invoke.texi: Remove Chill references.
6117 * doc/gcc.texi: Update last modified date.
6119 2002-04-20 Kazu Hirata <kazu@hxi.com>
6121 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6122 push and pop. Replace add.l with add.w.
6124 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6126 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6127 multiply instructions for H8/300H case.
6129 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6131 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6132 Bum three instructions from each routine.
6134 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
6136 * Makefile.in: Update.
6137 * decl.c (push_c_function_context, pop_c_function_context,
6138 mark_c_function_context): Rename for consistency.
6139 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6140 * c-tree.h (push_c_function_context, pop_c_function_context,
6141 mark_c_function_context): Rename for consistency.
6142 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6143 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6144 * function.c (init_lang_status, save_lang_status,
6145 restore_lang_status, mark_lang_status, free_lang_status):
6146 Move to langhooks.h.
6147 (push_function_context_to, pop_function_context_from,
6148 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6150 * function.h (init_lang_status, save_lang_status,
6151 restore_lang_status, mark_lang_status, free_lang_status):
6152 Move to langhooks.h.
6153 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6154 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6155 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6156 LANG_HOOKS_FUNCTION_INITIALIZER): New.
6157 (LANG_HOOKS_INITIALIZER): Update.
6158 (lhd_do_nothing_f): New.
6159 * langhooks.h (struct lang_hooks_for_functions): New.
6160 (struct lang_hooks): New hooks.
6161 * langhooks.c (lhd_do_nothing_f): New.
6163 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6164 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6166 2002-04-19 David S. Miller <davem@redhat.com>
6168 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6169 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6171 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6173 PR optimization/3756
6174 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6175 x = ((int) y < 0) ? cst1 : cst2.
6177 2002-04-19 Jakub Jelinek <jakub@redhat.com>
6180 * function.c: Reapply patch for c/6358.
6181 (expand_function_end): Copy decl_rtl's mode, not
6182 current_function_return_rtx mode.
6184 2002-04-19 Joel Sherrill <joel@OARcorp.com>
6186 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6189 2002-04-19 Tom Tromey <tromey@redhat.com>
6191 * doc/install.texi (Specific): Update status of Solaris 2.8.
6194 2002-04-19 Andreas Schwab <schwab@suse.de>
6196 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6197 (PUT_REAL): Restore old definition.
6199 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6200 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6202 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6203 binutils 2.11.2 and higher generate smaller binaries than Sun's
6206 2002-04-19 Mark Mitchell <mark@codesourcery.com>
6209 * toplev.c (rest_of_compilation): Do not defer functions for which
6210 TREE_SYMBOL_REFERENCED has already been set.
6212 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
6214 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6217 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
6219 * builtins.c: Include langhooks.h.
6220 (lang_type_promotes_to): Remove.
6221 (expand_builtin_va_arg): Use new hook.
6222 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6223 (simple_type_promotes_to): Move to c-typeck.c.
6224 * c-common.h (simple_type_promotes_to): Remove.
6225 * c-decl.c (duplicate_decls, grokdeclarator): Update.
6226 * c-format.c: Include langhooks.h.
6227 (check_format_types): Update.
6228 * c-tree.h (c_type_promotes_to): New.
6229 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6230 (type_lists_compatible_p): Update.
6231 * langhooks-def.h (lhd_type_promotes_to): New.
6232 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6233 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6234 * langhooks.c (lhd_type_promotes_to): New.
6235 * langhooks.h (struct lang_hooks_for_types): New hook.
6236 * tree.h (lang_type_promotes_to): Remove.
6238 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6240 2002-04-18 Richard Henderson <rth@redhat.com>
6242 * function.c: Revert patch for c/6358.
6244 2002-04-18 Richard Henderson <rth@redhat.com>
6246 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6247 blocks. Handle multiple references to the TRAP block. Handle
6248 non-adjacent THEN and OTHER blocks.
6250 2002-04-18 Richard Henderson <rth@redhat.com>
6252 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6253 crash with no type for by-mode libcalls.
6255 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6257 2002-04-18 Bob Wilson <bob.wilson@acm.org>
6259 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6260 __xtensa_nonlocal_goto): Use a syscall instructions to flush
6261 the register windows.
6263 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6265 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6266 appropriate. Document need for extended precision even when
6267 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
6268 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
6269 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
6270 instead of relying on later syntax error when REAL_WIDTH > 5.
6271 * real.c: Define NE based only on whether or not we have a
6272 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6273 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
6274 define GET_REAL and PUT_REAL as simple memcpy operations; no
6275 need to byteswap or round.
6276 Use #error instead of #ifdef-ing out the entire file, for
6277 prompt error detection.
6279 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6281 2002-04-18 David S. Miller <davem@redhat.com>
6283 * config/sparc/sparc.h (BRANCH_COST): Define.
6285 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6288 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
6290 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6291 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6292 propagate_block calls after relaxation loop using new variable
6293 stabilized_prop_flags.
6295 2002-04-18 Richard Henderson <rth@redhat.com>
6297 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6298 (ia64_va_arg): Expect variable sized types by reference.
6299 * config/ia64/ia64-protos.h: Update.
6300 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6301 ia64_function_arg_pass_by_reference.
6303 2002-04-18 Richard Henderson <rth@redhat.com>
6305 * ifcvt.c: Include except.h.
6306 (block_has_only_trap): Break out from find_cond_trap.
6307 (find_cond_trap): Use it. Always delete the trap block.
6308 (merge_if_block): Allow then block null. Be less simplistic about
6309 what insns can end a block.
6310 * Makefile.in (ifcvt.o): Depend on except.h.
6312 * config/ia64/ia64.md (trap, conditional_trap): New.
6314 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6317 * function.c (assign_parms): Assign hard current_function_return_rtx
6319 (expand_function_end): ...not here.
6321 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
6323 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6324 * c-tree.h (c_incomplete_type_error): New.
6325 * c-typeck.c (require_complete_type, build_component_ref): Update.
6326 (incomplete_type_error): Rename.
6327 * langhooks-def.h (lhd_incomplete_type_error): New.
6328 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6329 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6330 * langhooks.c (lhd_incomplete_type_error): New.
6331 * langhooks.h (struct lang_hooks_for_types): New hook.
6332 * tree.c (size_in_bytes): Use new hook.
6333 * tree.h (incomplete_type_error): Remove.
6335 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6337 2002-04-18 Zack Weinberg <zack@codesourcery.com>
6339 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6340 TARGET_FLOAT_FORMAT blocks.
6342 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6344 * doc/install.texi (Downloading the source): Do not mention Chill
6345 any longer, but mention Ada.
6346 (Configuration): Do not mention Chill any longer.
6348 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
6350 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6352 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
6354 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6357 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6359 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6360 instead of unsigned_type.
6362 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6364 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6365 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6368 2002-04-18 Bernd Schmidt <bernds@redhat.com>
6370 * attribs.c (vector_type_node_list): New static variable.
6371 (handle_vector_size_attribute): Use it to avoid generating a
6372 new type node each time we are called.
6374 * combine.c (subst): Avoid trying to make a vector mode subreg of
6375 an integer constant.
6376 (gen_lowpart_for_combine): Likewise.
6378 2002-04-18 Roger Sayle <roger@eyesopen.com>
6379 Jakub Jelinek <jakub@redhat.com>
6381 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6382 for integer constant c (if x has unsigned type or sign bit is not
6383 set in c). This folds the zero/sign extension into the bit-wise and
6386 2002-04-18 Jakub Jelinek <jakub@redhat.com>
6389 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6392 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
6394 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6396 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
6398 * gcc.c (read_specs): Detect and fail if an attempt is made to
6399 rename a spec string to an already existing string.
6401 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6403 * config/s390/s390.c (legitimize_pic_address): Do not generate
6404 illegal address constant without CONST.
6406 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6408 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6409 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6411 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6413 PR optimization/6305
6414 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6415 to make sure previous reloads are taken into account. Generate
6416 better code if one operand is an in-range immediate constant.
6418 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
6420 * doc/install.texi (Building): libgcj requires GNU make.
6422 2002-04-17 Jakub Jelinek <jakub@redhat.com>
6425 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6426 even if hard quad and register is not floating.
6427 (movtf reg<-mem split): Disallow splitting if hard quad and
6428 register is floating.
6429 (movtf mem<-reg split): Likewise.
6430 * config/sparc/sparc.c (fp_register_operand): New predicate.
6431 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6433 2002-04-17 Zack Weinberg <zack@codesourcery.com>
6435 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6436 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6437 (unprotoize.o): Ditto. Build from protoize.c. Define
6438 UNPROTOIZE on command line.
6439 * protoize.c: Include cppdefault.h. Delete include_defaults.
6440 (in_system_include_dir): Use cpp_include_defaults (defined in
6442 * unprotoize.c: Delete file.
6444 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
6446 * config/rs6000/altivec.h (vec_ld): Add array variants.
6450 2002-04-17 Alan Matsuoka <alanm@redhat.com>
6451 Aldy Hernandez <aldyh@redhat.com>
6453 * config/rs6000/altivec.h: Define __ALTIVEC__.
6460 Add parentheses to all macro arguments.
6462 2002-04-16 Richard Henderson <rth@redhat.com>
6465 * except.c (remove_eh_handler): Insert inner regions at beginning
6466 of sibling chain. Refactor expressions.
6468 2002-04-16 Richard Henderson <rth@redhat.com>
6470 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6471 * config/sparc/sol2-gas-bi.h: New file.
6472 * config.gcc (sparc*-solaris): Add it as needed.
6473 * configure.in (AS_SPARC64_FLAG): Remove check.
6474 * config.in, configure: Regenerate.
6476 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6478 2002-04-16 Richard Henderson <rth@redhat.com>
6480 * config/mips/mips.c (override_options): Don't override N32 for
6484 * config/mips/mips.md (can_delay): Split out of existing define_delays.
6485 (HILO_delay): Set can_delay false.
6487 2002-04-16 Dale Johannesen <dalej@apple.com>
6489 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6490 instruction addresses.
6491 (rs6000_output_function_epilogue): Likewise.
6493 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
6495 * c-parse.in (poplevel, compstmt_start,
6496 compstmt_primary_start): Add ending ';', in accordance
6499 2002-04-16 Richard Henderson <rth@redhat.com>
6501 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6502 Adjust tm_file order to get TARGET_DEFAULT set properly.
6503 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6504 * doc/install.texi (sparc-solaris): Update.
6506 2002-04-16 Dale Johannesen <dalej@apple.com>
6508 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6509 comparison operands do not match each other or if modes of
6510 conditions do not match result.
6512 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
6515 * config/s390/s390.md (mulsidi3): Set both subregs of the
6518 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
6520 * config/rs6000/altivec.h (vec_addc): Type check.
6522 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6525 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6527 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6529 2002-04-15 Richard Henderson <rth@redhat.com>
6531 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6532 call_really_used_regs too.
6534 2002-04-15 Richard Henderson <rth@redhat.com>
6536 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6538 2002-04-15 David S. Miller <davem@redhat.com>
6540 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6543 2002-04-16 Jakub Jelinek <jakub@redhat.com>
6546 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6547 CONST_VECTOR is { 0, ... 0 }.
6549 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
6551 * doc/install.texi (Installing GCC: Configuration): Clarify
6552 the only supported ways to configure gcc.
6554 2002-04-15 Roland McGrath <roland@frob.com>
6556 * config.gcc (alpha*-*-gnu*): New target configuration.
6557 * config/alpha/gnu.h: New file for it.
6558 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6560 2002-04-16 Mark Mitchell <mark@codesourcery.com>
6562 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6563 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6564 * tree.h (expand_start_stmt_expr): Update prototype.
6565 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6566 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6567 on the STMT_EXPR created for the inline function.
6569 2002-04-15 Richard Henderson <rth@redhat.com>
6571 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6572 config/i386/linux-aout.h, config/i386/linux-oldld.h,
6573 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6574 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6575 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6576 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6577 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6578 Define __gnu_linux__, not gnu_linux.
6579 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6581 2002-04-15 Mark Mitchell <mark@codesourcery.com>
6583 Remove Chill front end.
6584 * gcc.c (default_compilers): Remove Chill entries.
6585 * ch: Remove directory.
6586 * doc/frontends.texi: Remove information about Chill.
6587 * doc/sourcebuild.texi: Likewise.
6588 * doc/standards.texi: Likewise.
6590 2002-04-15 Douglas B Rupp <rupp@gnat.com>
6592 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6593 (LONGLONG_STANDALONE): Define.
6595 2002-04-15 David S. Miller <davem@redhat.com>
6597 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6598 Call emit_library_call with LCT_NORMAL.
6599 (sparc_initialize_trampoline): Use LCT_foo instead of
6600 magic constant in emit_library_call invocations.
6601 (sparc64_initialize_trampoline): Likewise.
6602 (sparc_profile_hook): Likewise.
6603 * config/sparc/sparc.md: Likewise.
6605 * config/sparc/sparc.c (sparc_extra_constraint_check):
6606 Fix type of argument 'c'.
6607 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6610 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
6612 * diagnostic.h (output_buffer_state): Redefine.
6613 (output_format_decoder): New macro.
6614 (output_prefixing_rule): Likewise.
6615 (output_line_cutoff): Likewise.
6616 (diagnostic_format_decoder): Adjust.
6617 (diagnostic_prefixing_rule): Likewise.
6618 (diagnostic_line_cutoff): Likewise.
6619 (diagnostic_state): Likewise.
6620 (diagnostic_kind_count): Likewise.
6621 (diagnostic_buffer): Now a macro.
6623 * diagnostic.c (diagnostic_buffer): Remove definition.
6624 (output_is_line_wrapping): Adjust.
6625 (set_real_maximum_length): Likewise.
6626 (output_set_maximum_length): Likewise.
6627 (init_output_buffer): Likewise.
6628 (lhd_print_error_function): Likewise.
6629 (output_do_verbatim): Likewise.
6631 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
6633 * cpperror.c (print_location): Don't print include chain
6635 (cpp_begin_message): Update to use DL_ macros.
6636 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6637 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6638 cpp_notice, cpp_notice_from_errno): Remove.
6639 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6642 * cppexp.c (CPP_ICE): Remove.
6643 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6644 lex, integer_overflow, _cpp_parse_expr): Update.
6645 * cppfiles.c (read_include_file, find_include_file,
6646 handle_missing_header, _cpp_read_file, remap_filename): Update.
6647 * cpphash.h (enum error_type): Remove.
6648 (_cpp_begin_message): Update.
6649 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6650 cpp_handle_option, cpp_post_options): Update.
6651 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6652 skip_whitespace, parse_identifier, parse_slow, parse_string,
6653 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6654 cpp_interpret_charconst): Update.
6655 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6656 lex_macro_node, do_undef, glue_header_name, parse_include,
6657 do_include_common, read_flag, do_line, do_linemarker, do_ident,
6658 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6659 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6660 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6661 _cpp_pop_buffer, do_diagnostic): Update.
6662 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6663 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6664 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6665 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6666 cpp_notice, cpp_notice_from_errno): Remove.
6667 (cpp_error, cpp_error_with_line): Update to take a diagnostic
6670 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6671 collect_args, enter_macro_context, save_parameter, parse_params,
6672 _cpp_create_definition, check_trad_stringification,
6673 cpp_macro_definition): Update.
6674 * cppmain.c (cpp_preprocess_file): Update.
6675 * fix-header.c (read_scan_file): Update.
6677 2002-04-14 Andreas Schwab <schwab@suse.de>
6679 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6681 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6683 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6685 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6687 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6690 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
6692 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6694 2002-04-13 Joel Sherrill <joel@OARcorp.com>
6696 * config/sparc/t-elf: Enable v8 multilibs. Impacts
6697 sparc-elf and sparc-rtems targets.
6699 2002-04-13 Mark Mitchell <mark@codesourcery.com>
6701 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6702 defined, and __gnu_hurd__ wherever __GNU__ is defined.
6703 * arm/linux-elf.h: Likewise.
6704 * cris/aout.h: Likewise.
6705 * cris/linux.h: Likewise.
6706 * i370/linux.h: Likewise.
6707 * i386/gnu.h: Likewise.
6708 * i386/linux-aout.h: Likewise.
6709 * i386/linux-oldld.h: Likewise.
6710 * i386/linux.h: Likewise.
6711 * i386/linux64.h: Likewise.
6712 * ia64/linux.h: Likewise.
6713 * m68k/linux-aout.h: Likewise.
6714 * m68k/linux.h: Likewise.
6715 * mips/linux.h: Likewise.
6716 * pa/pa-linux.h: Likewise.
6717 * pj/linux.h: Likewise.
6718 * rs6000/sysv4.h: Likewise.
6719 * s390/linux.h: Likewise.
6720 * sh/linux.h: Likewise.
6721 * sparc/linux-aout.h: Likewise.
6722 * sparc/linux.h: Likewise.
6723 * sparc/linux64.h: Likewise.
6724 * xtensa/linux.h: Likewise.
6726 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
6728 * stmt.c (check_unique_operand_names): Expect operand names to
6729 be strings rather than identifiers. Use simple_cst_equal to
6731 (resolve_operand_name_1): Make same identifier to string change here.
6732 * c-parse.in (asm_operand): Convert a named operand into a string.
6733 * cp/parse.y (asm_operand): Likewise.
6735 2002-04-13 Andreas Schwab <schwab@suse.de>
6737 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6739 2002-04-12 Mark Mitchell <mark@codesourcery.com>
6741 Revert these changes:
6743 2002-04-06 Mark Mitchell <mark@codesourcery.com>
6746 * stor-layout.c (layout_decl): Reset the RTL for the decl.
6748 2002-04-12 Richard Henderson <rth@redhat.com>
6750 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6751 (sparc*-*-solaris): Clean up header files.
6752 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6753 and plan on generating 64-bit code.
6754 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6755 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6756 * config/sparc/sol2-sld-64.h: Rename ...
6757 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
6758 for AS_SPARC64_FLAG not defined.
6759 * config/sparc/sol2-gld-bi.h: New.
6760 * config/sparc/sol2-sld.h: Remove.
6761 * config/sparc/sol26-sld.h: New.
6762 * config/sparc/sol2.h: Tidy comments.
6763 * doc/install.texi: Document sparc-solaris configury changes.
6765 2002-04-12 Richard Henderson <rth@redhat.com>
6767 * recog.c (offsettable_address_p): Match the logic in adjust_address.
6769 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6770 in 64-bit mode only. Use only for 32-bit or MEDLOW.
6772 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6774 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6776 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
6778 * pa.c (pa_can_combine_p): Call extract_insn before calling
6781 2002-04-12 Douglas B Rupp <rupp@gnat.com>
6783 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6784 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6785 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6786 (CPP_PREDEFINES): Handle __declspec.
6787 * config/i386/t-interix (USER_H): Remove.
6789 2002-04-12 DJ Delorie <dj@redhat.com>
6791 * integrate.c (compare_blocks): Make comparisons safe for when
6792 sizeof(int) < sizeof(char *).
6793 (find_block): Likewise.
6795 2002-04-12 Jan Hubicka <jh@suse.cz>
6796 David Edelsohn <edelsohn@gnu.org>
6798 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6800 (symbol_ref_operand): New.
6801 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6802 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6804 2002-04-12 Andreas Schwab <schwab@suse.de>
6806 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6807 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6808 overrides the definition in config/svr4.h.
6810 2002-04-12 Eric Norum <eric.norum@usask.ca>
6812 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6813 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6814 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6815 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6816 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6817 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6818 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6819 definitions to config/rtems.h and make the targets more similar.
6821 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6823 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6824 POINTERS_EXTEND_UNSIGNED.
6825 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6826 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6828 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6831 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
6833 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6834 depends on TARGET_SHMEDIA, not TARGET_SH5.
6836 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
6838 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6839 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6841 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6843 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6846 2002-04-12 Andreas Schwab <schwab@suse.de>
6848 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6850 2002-04-12 Richard Henderson <rth@redhat.com>
6853 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6855 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6856 modes spanning multiple hard regs.
6858 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6860 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6862 * pa.c (pa_output_function_prologue): Don't accumulate the total
6863 number of code bytes when using TARGET_64BIT, or gas, SOM and not
6864 the portable runtime.
6865 (output_deferred_plabels): Handle 64bit plabels.
6866 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6867 generating pic code using the GAS assembler for object formats that
6868 are not SOM (ie., ELF32 and ELF64).
6869 (output_millicode_call): Check attribute type if attribute length is 28.
6870 Likewise use $PIC_pcrel$0. Only call get_attr_length and
6871 dbr_sequence_length once.
6872 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6873 dbr_sequence_length once.
6874 * pa.h (TARGET_SOM): Define if not defined.
6875 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6876 with GAS and not SOM.
6877 (jump, call_internal_reg, call_value_internal_reg): Likewise.
6878 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
6880 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6882 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6883 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6884 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6885 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6886 elfos.h and dbxelf.h values are fine now.
6887 * config/i386/freebsd.h, config/alpha/freebsd.h
6888 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6890 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6892 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6893 or set Acpu or Amachine. Reformat.
6894 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6896 (LINK_SPEC): Do not need to undef.
6897 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6898 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6899 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6901 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6902 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6903 (LINK_SPEC): Do not need to undef.
6904 (DONT_USE_BUILTIN_SETJMP): Do not define.
6905 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6906 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
6907 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6908 Remove trailing spaces.
6909 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6910 __ELF__, or set Acpu or Amachine. Reformat.
6911 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6914 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6916 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6917 all other *-*-freebsd* targets.
6919 2002-04-11 Richard Henderson <rth@redhat.com>
6921 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6923 2002-04-11 David O'Brien <obrien@FreeBSD.org>
6925 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6926 Include {cpu}/{cpu}.h thru tm_file.
6927 (alpha*-*-linux*ecoff): Remove target.
6928 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6929 (LINK_SPEC): Remove, is not OS independent.
6930 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6931 (LINK_SPEC): Do not need to #undef any longer.
6932 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6934 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6936 (LINK_SPEC): Moved here from alpha/elf.h.
6937 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6939 * config/alpha/linux-ecoff.h: Remove.
6940 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6941 (CPP_SPEC): Define _POSIX_SOURCE as needed.
6942 (CPP_SUBTARGET_SPEC): Do not define.
6943 (LINK_SPEC): Do not need to #undef any longer.
6944 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6945 * config/alpha/vms.h: Likewise.
6947 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6949 * doc/extend.texi: Remove old claim that typedefs cannot have
6950 an alignment attribute.
6952 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6954 PR optimization/6177
6955 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6956 bitpos is 0 and bitsize CONCAT size.
6958 2002-04-11 Jakub Jelinek <jakub@redhat.com>
6961 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6963 2002-04-10 David O'Brien <obrien@FreeBSD.org>
6965 * config/alpha/freebsd.h: Minor reformatting.
6966 (CPP_SPEC): Define ELF and add cpp_subtarget.
6967 (ASM_SPEC): No longer needed.
6969 2002-04-11 Richard Henderson <rth@redhat.com>
6971 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6972 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
6973 (dimode mem/zero splitter): New.
6975 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
6977 * config/cris/cris.c (cris_override_options): Tweak error message
6978 for PIC not implemented.
6980 * config/cris/cris.h: Tweak comments related to parameter-passing.
6982 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6984 2002-04-10 Richard Henderson <rth@redhat.com>
6986 * except.c (add_ehl_entry): Allow duplicates after landing pad
6989 2002-04-10 David Edelsohn <edelsohn@gnu.org>
6991 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6993 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
6995 * c-decl.c (c_init_decl_processing): Move generation of
6996 decls for g77_integer_type_node and friends from here ...
6997 * c-common.c (c_common_nodes_and_builtins): ... to here.
6999 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
7001 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7002 is only used as frame pointer when frame_pointer_needed is true.
7004 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
7007 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7008 for the fact that the pool entry uses two words.
7009 (movdf_hard_insn): Similarly. Also, ADR instruction can span
7011 (movdf_soft_insn): Similarly.
7012 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7013 for the fact that the pool entry uses three words.
7015 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
7017 * config/mips/mips.c (mips_va_arg): When using the struct version
7018 of the EABI va_list, allow arguments in the register save area to
7019 take up less room than a stack argument.
7021 2002-04-10 Richard Henderson <rth@redhat.com>
7023 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7024 if EXPAND_INITIALIZER.
7026 2002-04-09 Richard Henderson <rth@redhat.com>
7028 * config/alpha/alpha.md (movdi_er_maybe_g): New.
7029 * config/alpha/alpha.c (alpha_expand_mov): Use it.
7031 2002-04-10 Alan Modra <amodra@bigpond.net.au>
7033 PR optimization/6233
7034 * rtlanal.c (pure_call_p): New function.
7035 * rtl.h (pure_call_p): Declare.
7036 * loop.c (prescan_loop): Use it to set has_nonconst_call.
7037 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7039 2002-04-09 Eric Christopher <echristo@redhat.com>
7041 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7042 information to .comm directive.
7044 2002-04-09 Richard Henderson <rth@redhat.com>
7047 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7049 2002-04-09 Richard Henderson <rth@redhat.com>
7051 * basic-block.h (flow_delete_block_noexpunge): Declare.
7052 (expunge_block_nocompact): Declare.
7053 * cfg.c (expunge_block_nocompact): Split out from ...
7054 (expunge_block): ... here.
7055 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7056 (flow_delete_block_noexpunge): Split out from ...
7057 (flow_delete_block): ... here.
7058 * cfgcleanup.c (delete_unreachable_blocks): Compact while
7059 removing dead blocks.
7060 * except.c (exception_handler_labels): Remove.
7061 (exception_handler_label_map): New.
7062 (struct eh_region): Add aka member.
7063 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7064 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7065 (for_each_eh_label, for_each_eh_label_1): New.
7066 (init_eh): Register exception_handler_label_map.
7067 (free_eh_status): Use free_region.
7068 (find_exception_handler_labels): Use the map, not the list.
7069 (remove_exception_handler_label): Likewise.
7070 (maybe_remove_eh_handler): Likewise.
7071 (remove_eh_handler): Use the region aka bitmap.
7072 * except.h (exception_handler_labels): Remove.
7073 (for_each_eh_label): Declare.
7074 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7075 * loop.c (invalidate_loops_containing_label): New.
7076 (find_and_verify_loops): Use it. Use for_each_eh_label.
7077 * sched-rgn.c (is_cfg_nonregular): Use
7078 current_function_has_exception_handlers.
7080 2002-04-09 Richard Henderson <rth@redhat.com>
7082 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7083 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7084 Do not return changed status.
7085 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7086 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7087 New functions that do return changed status.
7088 * sbitmap.h: Update decls.
7089 * gcse.c, lcm.c: Use _cg functions as needed.
7091 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7093 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7094 (sh64-*-elf*, sh-*-rtemself*): Likewise.
7095 * config/sh/embed_bb.c: New file.
7096 * config/sh/embed-elf.h: New file.
7097 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7098 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
7099 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7101 (SUBTARGET_CPP_PTR_SPEC): Don't define.
7102 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7103 Add subtarget_asm_endian_spec.
7104 (ASM_SPEC): Use subtarget_asm_endian_spec.
7105 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7106 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7107 (WCHAR_UNSIGNED): Define.
7108 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7109 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7110 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7112 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7113 (sh_adjust_cost): Likewise.
7114 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7116 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7117 (WCHAR_TYPE_SIZE): Likewise.
7118 (ASM_SPEC): Use subtarget_asm_endian_spec.
7119 (SH_ELF_WCHAR_TYPE): #undef/ #define.
7120 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7121 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7122 (MAX_WCHAR_TYPE_SIZE): Don't #define .
7123 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7124 (USER_LABEL_PREFIX): Don't #undef /#define .
7125 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7126 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7127 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7128 (ASM_SPEC): Likewise.
7129 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7130 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7131 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7132 (LIB2FUNCS_EXTRA): Define.
7133 * t-sh64 (LIB2FUNCS_EXTRA): Define.
7134 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7135 (LIB1ASMFUNCS_CACHE): Define.
7136 (LIB2FUNCS_EXTRA): Redefine empty.
7138 2002-04-08 Richard Henderson <rth@redhat.com>
7140 * reorg.c (get_branch_condition): Use reversed_comparison_code.
7142 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7144 * config/m68hc11/larith.asm (__map_data_section): Fix condition
7145 and optimize for size.
7146 (__do_global_ctors): Fix pointer comparison.
7147 (__do_global_dtors): Likewise.
7149 2002-04-09 David S. Miller <davem@redhat.com>
7151 * config/sparc/sparc.c (sparc_extra_constraint_check): New
7152 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
7153 allow reloading pseudos.
7154 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7155 * config/sparc/sparc-protos.h: Declare it.
7157 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7158 unsigned comparison warning.
7159 (output_restore_regs): Mark leaf_function as unused.
7161 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7163 * expr.c (is_aligning_offset): New function.
7164 (expand_expr, case COMPONENT_EXPR): Call it.
7166 2002-04-08 David S. Miller <davem@redhat.com>
7169 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7171 Make init_priority work on Sparc when using GNU ld.
7172 * config/sparc/linux.h, config/sparc/linux64.h,
7173 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7174 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7175 * config/sparc/sol2-gld.h: New file to do the same.
7176 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7177 sparc/sol2-gld.h to tm_file.
7179 PR optimization/4328
7180 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7181 * doc/md.texi: Document it.
7182 * config/sparc/sparc.md (movdi_insn_sp64_novis,
7183 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7184 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7185 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7186 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7188 2002-04-08 Andreas Jaeger <aj@suse.de>
7190 * stmt.c (expand_asm_operands): Revert last patch from Richard
7193 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7195 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7196 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
7198 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7200 * doc/contrib.texi (Contributors): Add David O'Brien.
7202 2002-04-08 Alan Modra <amodra@bigpond.net.au>
7204 * configure.in (auto-build.h): Use target_alias and build_alias
7205 when running configure.
7206 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7207 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7208 * configure: Regenerate.
7210 2002-04-07 David S. Miller <davem@redhat.com>
7212 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7214 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7217 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7218 generating 32-bit pic code.
7220 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
7222 * cppinit.c (cpp_create_reader): Initialize
7223 discard_comments_in_macro_exp.
7224 (COMMAND_LINE_OPTIONS): Add "-CC" option.
7225 (cpp_handle_option): Handle "-CC" option.
7226 * cpplex.c (save_comment): If saving a C++ comment in
7227 a directive, convert it to a C comment.
7228 (_cpp_lex_direct): Pass second comment start character to
7229 save_comment to indicate comment type.
7230 * cpplib.c (_cpp_handle_directive): If processing
7231 a "#define" directive and discard_comments_in_macro_exp
7232 is false, re-enable saving of comments.
7233 (lex_macro_node): If discard_comments_in_macro_exp is false,
7234 discard any comments before the macro identifier.
7235 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7237 * cppmacro.c (cpp_get_token): If expanding a macro while
7238 processing a directive, discard any comments we might encounter.
7239 (parse_params): If discard_comments_in_macro_exp is false,
7240 ignore comments in the macro parameter list.
7241 * gcc.c (cpp_unique_options): Add "-CC" option.
7242 (option_map): Map "--comments-in-macros" to "-CC".
7243 * doc/cppopts.texi: Document "-CC" option.
7244 * f/lang-specs.h: Add "-CC" option.
7245 * testsuite/gcc.dg/cpp/maccom1.c: New test.
7246 * testsuite/gcc.dg/cpp/maccom2.c: New test.
7247 * testsuite/gcc.dg/cpp/maccom3.c: New test.
7248 * testsuite/gcc.dg/cpp/maccom4.c: New test.
7249 * testsuite/gcc.dg/cpp/maccom5.c: New test.
7250 * testsuite/gcc.dg/cpp/maccom6.c: New test.
7252 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
7255 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7257 2002-04-06 Mark Mitchell <mark@codesourcery.com>
7260 * stor-layout.c (layout_decl): Reset the RTL for the decl.
7263 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7264 RTX_UNCHANGING_P for the functions arguments when a tail call
7267 2002-04-06 Jason Merrill <jason@redhat.com>
7269 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7270 (parse_options_and_default_flags): Set them appropriately.
7271 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7273 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
7275 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7278 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7281 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7282 types come in by-reference. Fix typo in comment.
7284 2002-04-05 David S. Miller <davem@redhat.com>
7286 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7287 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7288 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7289 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7291 2002-04-05 David S. Miller <davem@redhat.com>
7293 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7294 are not going to emit return instructions, emit at least a nop
7295 for the sake of sane backtraces.
7297 2002-04-05 Richard Henderson <rth@redhat.com>
7299 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7301 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
7303 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7305 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
7307 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7308 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7309 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7311 2002-04-05 Andreas Schwab <schwab@suse.de>
7313 * c-convert.c: Include c-common.h.
7314 * Makefile.in (c-convert.o): Updated.
7316 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7318 * mklibgcc.in: Use separate libgcc.map for each multilib.
7319 * Makefile.in (distclean): Don't remove libgcc.map here.
7321 2002-04-05 Jakub Jelinek <jakub@redhat.com>
7323 * Makefile.in (s-mlib): Handle --disable-multilib by separate
7324 genmultilib invocation.
7326 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
7328 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7329 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
7330 to num_gprs for symmetry.
7331 * config/mips/mips.c: Adjust accordingly.
7333 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
7335 * c-common.c (truthvalue_conversion): Rename, update.
7336 * c-common.h (c_common_truthvalue_conversion): New.
7337 * c-convert.c (convert): Update.
7338 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7339 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7340 * c-typeck.c (build_binary_op, build_unary_op,
7341 build_conditional_expr): Update.
7342 * fold-const.c (constant_boolean_node, fold): Use langhook.
7343 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7344 * langhooks.h (struct lang_hooks): New hook.
7345 * stmt.c (expand_decl_cleanup): Use langhook.
7346 * tree.h (truthvalue_conversion): Remove.
7348 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7350 2002-04-05 Alan Modra <amodra@bigpond.net.au>
7352 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7353 Add rules to make null object file.
7355 2002-04-04 Jim Blandy <jimb@redhat.com>
7357 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7358 macro formal parameter names.
7360 2002-04-04 David S. Miller <davem@redhat.com>
7362 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7364 2002-04-04 Richard Henderson <rth@redhat.com>
7367 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7368 Support copies into and out of memory. Don't accept allows_reg
7369 and allows_mem as gospel.
7371 2002-04-04 Richard Henderson <rth@redhat.com>
7374 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7375 (write_dependence_p): Likewise.
7377 2002-04-04 Richard Henderson <rth@redhat.com>
7379 * predict.c (estimate_bb_frequencies): Do frequency calculation
7380 with a volatile temporary.
7382 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
7384 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7386 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7389 * final.c (final_start_function): Don't bump profile_label_no here...
7390 (final_end_function): ...but here.
7392 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7394 * config/sparc/sparc.md (pic): New attribute.
7395 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7397 (split after do_builtin_setjmp_setup): New.
7399 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7402 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7405 2002-04-04 Jakub Jelinek <jakub@redhat.com>
7407 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7408 UNITS_PER_WORD for zero sized aggregates.
7410 2002-04-03 David S. Miller <davem@redhat.com>
7412 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7413 one-character spec for this, just use %(link_gcc_c_sequence).
7415 2002-04-03 David S. Miller <davem@redhat.com>
7417 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7420 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7422 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7423 (DWARF_FRAME_RETURN_COLUMN): Move.
7424 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7425 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7426 * pa.c (except.h, predict.h): Include.
7428 (store_reg_modify, set_reg_plus_d): Revise prototypes.
7429 (output_ascii): Add cast.
7430 (store_reg_modify): Revise to add frame notes.
7431 (set_reg_plus_d): Likewise.
7432 (compute_frame_size): Include space for eh data registers in frame if
7433 the current function calls eh_return.
7434 (hppa_expand_prologue): Ensure register %r2 is saved if the current
7435 function calls eh_return. Save eh data registers if the current
7436 function calls eh_return. Fix code to add frame notes. Emit
7437 blockage to prevent insns with frame notes being scheduled in the
7438 delay slot of calls.
7439 (hppa_expand_epilogue): Restore eh data registers and do final stack
7440 adjustment if the current function calls eh_return. Don't add frame
7442 (output_call): Revise for change in length of call insn. Don't do
7443 return pointer adjustment for an unconditional jump in the delay slot
7444 of a call when using frame notes.
7445 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7446 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7447 (ARG_POINTER_CFA_OFFSET): Define.
7448 * pa.md (return_external_pic): New pattern.
7449 (prologue): Correct formatting. Use return_external_pic if current
7450 function calls eh_return.
7451 (call_internal_symref, call_value_internal_symref,
7452 sibcall_internal_symref, sibcall_value_internal_symref): Change default
7453 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7455 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7457 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7458 list of targets to check using "nop" insn.
7459 * configure: Rebuilt.
7461 2002-04-04 Alan Modra <amodra@bigpond.net.au>
7463 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7465 2002-04-03 David S. Miller <davem@redhat.com>
7467 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7468 library sequence passed to the linker.
7469 (LINK_COMMAND_SPEC): Use it.
7470 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7471 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7472 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7474 2002-04-03 Jason Merrill <jason@redhat.com>
7476 * except.c (struct eh_status): Remove protect_list.
7477 (begin_protect_partials, end_protect_partials): Remove.
7478 (add_partial_entry): Remove.
7479 * except.h: Remove prototypes.
7481 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7482 expand_decl_cleanup_eh.
7485 * tree.h (CLEANUP_EH_ONLY): New macro.
7486 * stmt.c (expand_decl_cleanup_eh): New fn.
7487 (expand_cleanups): Check CLEANUP_EH_ONLY.
7488 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7489 Use expand_decl_cleanup_eh.
7490 (expand_stmt): Adjust.
7491 * c-common.h: Adjust prototype.
7493 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
7495 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7496 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7497 (cris_target_asm_function_epilogue): Ditto.
7498 (cris_initial_frame_pointer_offset): Ditto.
7499 (cris_simple_epilogue): Ditto.
7500 (cris_expand_builtin_va_arg): Variable-size types come in
7503 2002-04-03 David S. Miller <davem@redhat.com>
7505 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7507 (set_fast_math): Correct 'fsr' type.
7509 2002-04-03 Richard Henderson <rth@redhat.com>
7512 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7513 * toplev.c (check_global_declarations): Use it.
7514 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7515 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7516 (LANG_HOOKS_DECLS): Add it.
7517 * langhooks.c (lhd_warn_unused_global_decl): New.
7518 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7519 * c-objc-common.c (c_warn_unused_global_decl): New.
7520 * c-tree.h (c_warn_unused_global_decl): Declare.
7521 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7523 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
7525 * langhooks-def.h (lhd_set_decl_assembler_name,
7526 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7527 (LANG_HOOKS_INITIALIZER): Update.
7528 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7529 * langhooks.h (struct lang_hooks): New hook.
7530 * tree.c (set_decl_assembler_name): Move to langhooks.c.
7531 (lang_set_decl_assembler_name): Remove.
7532 (init_obstacks): Don't set hook.
7533 (decl_assembler_name): New function.
7534 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7535 (decl_assembler_name): New.
7536 (lang_set_decl_assembler_name): Remove.
7538 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7540 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7541 works properly with .hidden symbols.
7542 * configure: Rebuilt.
7543 * config.in: Rebuilt.
7544 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7545 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7546 properly with .hidden symbols.
7548 2002-04-03 Jakub Jelinek <jakub@redhat.com>
7551 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7554 2002-04-03 Richard Henderson <rth@redhat.com>
7557 * sched-rgn.c (sets_likely_spilled): New.
7558 (sets_likely_spilled_1): New.
7559 (add_branch_dependences): Use it.
7561 2002-04-02 Richard Henderson <rth@redhat.com>
7564 * loop.h (LOOP_FIRST_PASS): New.
7565 * loop.c (strength_reduce): Mind it when deciding to unroll.
7566 * toplev.c (rest_of_compilation): Set it.
7568 2002-04-02 David S. Miller <davem@redhat.com>
7570 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7571 mems_ok_for_ldd_peep when the order of the loads being examined
7573 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7574 existing comment to increase comprehension of this situation.
7576 2002-04-02 Zack Weinberg <zack@codesourcery.com>
7578 * config/sh/sh.md: Don't use union real_extract.
7580 2002-04-02 Richard Henderson <rth@redhat.com>
7582 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7584 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7586 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7587 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7588 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7589 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7590 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7591 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7592 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7593 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7594 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7595 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7596 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7597 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7598 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7599 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7600 Include as many configury headers via tm_file as possible. This
7601 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7602 * config/openbsd-oldgas.h: New file.
7603 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7604 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7605 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7606 config/i386/i386-coff.h, config/i386/i386-interix.h,
7607 config/i386/iscdbx.h, config/i386/linux-aout.h,
7608 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7609 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7610 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7611 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7612 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7613 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7614 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7615 config/i386/vxi386.h: Do not directly include configury headers.
7616 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7617 Directly include configury headers that are no longer automatically
7618 included by the above headers.
7619 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7620 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7621 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7622 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7623 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7624 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7625 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7626 (TARGET_VERSION): Define.
7627 * config/i386/beos-elf.h, config/i386/freebsd.h,
7628 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7629 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7630 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7631 config/i386/sco5.h, config/i386/sysv4.h
7632 (TARGET_VERSION): Do not need to protect.
7633 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7634 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7635 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7636 config/i386/i386-interix.h, config/i386/linux-aout.h,
7637 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7638 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7639 (YES_UNDERSCORES): Do not define - not needed.
7640 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7641 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7642 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7643 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7644 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7645 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7646 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7647 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7649 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
7650 Richard Henderson <rth@redhat.com>
7653 * function.c (assign_temp): Accept either type or decl argument.
7654 Detect variables whose size is too large to fit into an integer.
7655 * stmt.c (expand_decl): Pass the decl, not the type.
7657 2002-04-02 David O'Brien <obrien@FreeBSD.org>
7659 * protoize.c: Match include directory usage with cppdefault.c.
7661 2002-04-03 Jeffrey A Law (law@redhat.com)
7662 Hans-Peter Nilsson <hp@bitrange.com>
7664 * combine.c (simplify_comparison): Avoid narrowing a comparison
7665 with a paradoxical subreg when doing so would drop signficant bits.
7667 2002-04-02 Steve Ellcey <sje@cup.hp.com>
7669 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7670 if POINTERS_EXTEND_UNSIGNED is defined.
7672 2002-04-02 Richard Henderson <rth@redhat.com>
7675 * local-alloc.c (contains_replace_regs): LO_SUM may contain
7678 2002-04-02 Richard Henderson <rth@redhat.com>
7680 * doc/standards.texi: Document required freestanding libc entry points.
7682 2002-04-02 Alan Modra <amodra@bigpond.net.au>
7684 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7685 associated splitter. Remove MQ constraint.
7686 (ctrdi_internal4): Correct CCmode clobber.
7688 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7690 * milli64.S ($$dyncall): New function.
7691 * t-linux (LIB1ASMFUNCS): Revise module list.
7692 (LIB1ASMSRC): Use pa/milli64.S.
7694 2002-04-02 Richard Henderson <rth@redhat.com>
7696 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7697 rename solaris_sys_varargs_h.
7699 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7701 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7702 the same mode as its component.
7704 2002-04-02 Richard Henderson <rth@redhat.com>
7707 * final.c (this_is_asm_operands): Export.
7708 * output.h (this_is_asm_operands): Declare.
7709 * config/i386/i386.c (print_operand): Error odd asm operands.
7711 2002-04-02 Richard Henderson <rth@redhat.com>
7714 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7716 2002-04-01 Richard Henderson <rth@redhat.com>
7719 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7720 * fixinc/fixincl.x: Rebuild.
7722 2002-04-01 Richard Henderson <rth@redhat.com>
7724 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7725 (atomic_alloc, atomic_free): New.
7726 (SIZE, MASK_FOR, PTR_IN): New.
7727 (emergency_reg_state, emergency_reg_state_free): New.
7728 (emergency_labeled_state, emergency_labeled_state_free): New.
7729 (reg_state_alloced, labeled_state_alloced): New.
7730 (alloc_reg_state, free_reg_state): New.
7731 (alloc_label_state, free_label_state, free_label_states): New.
7732 (push, pop, dup_state_stack, free_state_stack): Use them.
7733 (desc_label_state): Likewise.
7734 (uw_frame_state_for): Free label states and state stack.
7735 (uw_update_reg_address): Eliminate warnings.
7737 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
7739 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7740 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7742 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7744 * c-decl.c (grokdeclarator): Update.
7745 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7746 * c-tree.h (c_mark_addressable): New.
7747 * c-typeck.c (default_function_array_conversion, build_unary_op,
7748 build_array_ref, convert_for_assignment): Update.
7749 (mark_addressable): Rename.
7750 * calls.c (try_to_integrate, expand_call): Use langhook.
7751 * expr.c (expand_expr): Use langhook.
7752 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7753 * langhooks.h (struct lang_hooks): New hook.
7754 * stmt.c (expand_asm_operands): Use langhook.
7755 * tree.h (mark_addressable): Remove.
7757 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7759 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7761 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7764 2002-04-01 Bob Wilson <bob.wilson@acm.org>
7766 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7767 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7769 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7771 * c-common.c (unsigned_conversion_warning, convert_and_check,
7772 unsigned_type, signed_type, shorten_compare,
7773 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7774 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7775 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7777 * c-decl.c (grokdeclarator): Update.
7778 * c-format.c (check_format_types): Update.
7779 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7780 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7781 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7782 * convert.c (convert_to_integer): Use new hooks.
7783 * expmed.c (make_tree): Use new hooks.
7784 * expr.c (store_expr): Use new hooks.
7785 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7786 all_ones_mask_p, unextend, fold): Use new hooks.
7787 * langhooks.h (struct lang_hooks_for_types): New hooks.
7788 * tree.h (signed_or_unsigned_type, signed_type,
7789 unsigned_type): Remove.
7791 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7792 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7794 2002-03-31 Richard Henderson <rth@redhat.com>
7796 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7797 (desc_frgr_mem): Fix reference to f16-f31.
7799 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7801 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7802 RTVEC_ELT): Const-ify.
7803 * varray.h (VARRAY_CHECK): Const-ify.
7804 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7805 ggc_mark_rtvec, ggc_mark): Const-ify.
7807 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
7809 * diagnostic.c: Include langhooks-def.h.
7810 * Makefile.in (diagnostic.o): Update.
7812 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7814 * c-common.c (c_unsafe_for_reeval): Rename.
7815 * c-common.h (c_unsafe_for_reeval): Rename.
7816 * c-decl.c (finish_incomplete_decl): Rename.
7817 (c_init_decl_processing): Don't set langhook.
7818 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7819 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7820 * c-objc-common.c (c_objc_common_init): Don't set langhook.
7821 * c-tree.h (finish_incomplete_decl): Rename.
7822 * langhooks-def.h (lhd_unsafe_for_reeval): New.
7823 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7824 (LANG_HOOKS_INITIALIZER): Update.
7825 * langhooks.c (lhd_unsafe_For_reeval): New.
7826 * langhooks.h (struct langhooks): New hooks.
7827 * toplev.c (incomplete_decl_finalize_hook): Remove.
7828 (wrapup_global_declarations): Update.
7829 * tree.c (lang_unsafe_for_reeval): Remove.
7830 (unsafe_for_reeval): Update.
7831 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7834 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7835 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7837 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
7839 * diagnostic.c (print_error_function): Remove.
7840 (default_print_error_function): Rename.
7841 (report_error_function): Update.
7842 * diagnostic.h (print_error_function): Remove.
7843 (default_print_error_function): Remove.
7844 * langhooks-def.h (struct diagnostic_context): Predeclare.
7845 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7846 (LANG_HOOKS_INITIALIZER): Update.
7847 * langhooks.h (struct diagnostic context): Predeclare.
7848 (struct lang_hooks): New hook.
7850 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7852 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7853 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7855 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7856 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7857 of PIC_OFFSET_TABLE_REGNUM thruout.
7858 * config/rs6000/rs6000.md: Likewise.
7859 * config/rs6000/darwin.h: Likewise.
7861 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7863 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7864 unsigned HOST_WIDE_INT, not unsigned int.
7866 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7868 PR middle-end/6096, middle-end/6098, middle-end/6099
7869 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7871 (fill_slots_from_thread): Likewise.
7873 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7875 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7876 floating fields in float regs.
7877 (function_arg_record_value_2): Likewise.
7879 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7881 * config/mmix/mmix.md (define_constants): Remove misleading
7882 FIXME. Add MMIX_fp_rO_OFFSET.
7883 ("nonlocal_goto_receiver"): Don't have stack-frame address of
7884 saved rO as part of the pattern. Remove FIXME.
7885 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
7886 here, at output-time.
7888 2002-03-31 Jakub Jelinek <jakub@redhat.com>
7891 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7893 (output_v9branch): Likewise.
7895 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7897 * gcc.c: Revert previous patch for now.
7898 * config/i386/djgpp.h: Likewise.
7900 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
7902 * config/mmix/crti.asm (_init): Register _fini with atexit.
7903 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7905 2002-03-31 Richard Henderson <rth@redhat.com>
7908 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7909 (ASM_OUTPUT_DEF_FROM_DECLS): New.
7911 2002-03-31 Richard Henderson <rth@redhat.com>
7913 * libgcc2.c (__bb_exit_func): Make static.
7915 * config/alpha/alpha.md (trap): New.
7917 2002-03-31 Richard Henderson <rth@redhat.com>
7919 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7920 promoted argument types; build trap.
7921 (expand_builtin_trap): New.
7922 (expand_builtin): Use it.
7923 * stmt.c (expand_nl_goto_receivers): Likewise.
7924 * expr.h (expand_builtin_trap): Declare.
7925 * libfuncs.h (LTI_abort, abort_libfunc): New.
7926 * optabs.c (init_optabs): Init abort_libfunc.
7928 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
7930 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7931 (LINK_COMMAND_SPEC): ... from here.
7932 (init_gcc_specs): Duplicate it here too, omitting
7933 shared_name in the second copy.
7934 (init_spec): Test for duplicate
7935 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7937 2002-03-30 David S. Miller <davem@redhat.com>
7939 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7940 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7942 2002-03-30 Roger Sayle <roger@eyesopen.com>
7943 Richard Henderson <rth@redhat.com>
7945 * regmove.c (combine_stack_adjustments_for_block): Avoid
7946 emitting a stack adjustment of zero bytes. Let delete_insn
7949 2002-03-30 Richard Henderson <rth@redhat.com>
7951 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7952 (sparc_emitting_epilogue): New.
7953 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7954 * config/sparc/sparc-protos.h: Update.
7955 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7956 (TARGET_SWITCHES): Update.
7957 * config/sparc/sparc.md (return): Remove.
7958 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7959 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7960 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7961 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7962 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7963 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7964 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7965 Remove MASK_EPILOGUE.
7966 * doc/invoke.texi: Update.
7968 2002-03-30 Daniel Berlin <dan@dberlin.org>
7970 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7971 CPP will start the file for us.
7973 2002-03-30 Richard Henderson <rth@redhat.com>
7976 * config/ia64/ia64.c (group_barrier_needed_p): Special case
7977 prologue_allocate_stack.
7978 (ia64_single_set): Use insn codes for recognition of special
7979 cases, not rtl matching.
7980 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7982 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
7984 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7986 2002-03-30 Richard Henderson <rth@redhat.com>
7989 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7990 or -fomit-frame-pointer with profiling.
7991 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7992 (FUNCTION_PROFILER): Do nothing.
7993 (PROFILE_HOOK): New.
7994 * config/sparc/sparc.c (sparc_override_options): Don't check
7995 code models for profiling.
7996 (sparc_function_profiler): Remove.
7997 (sparc_profile_hook): New.
7998 * config/sparc/sparc-protos.h: Update.
8000 2002-03-30 Jakub Jelinek <jakub@redhat.com>
8002 PR optimization/6086
8003 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8004 of SUBREG of volatile MEM or because the MEM was mode dependent,
8005 return CLOBBER instead of unmodified SUBREG.
8007 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
8009 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8010 when not optimizing.
8012 * toplev.c (rest_of_compilation): Cann mark_constant_function
8013 only when optimizing.
8015 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8018 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8019 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8020 (try_optimize_cfg): clear all AUX fields.
8022 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8023 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8024 (ix86_address_cost): Be prepared for SUBREGed registers.
8025 (legitimate_address_p): Accept SUBREGed registers.
8027 2002-03-29 Richard Henderson <rth@redhat.com>
8030 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8032 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8034 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8035 for aggregate and TFmode types.
8037 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8039 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8041 2002-03-29 Richard Henderson <rth@redhat.com>
8044 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8045 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8047 2002-03-29 Richard Henderson <rth@redhat.com>
8050 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8051 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8052 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8053 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8055 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8057 2002-03-29 Dale Johannesen <dalej@apple.com>
8059 * loop.c (combine_movables): Do allow combination of pseudos.
8061 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
8063 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8064 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8065 No functional change except ...
8066 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
8067 * doc/install.texi (*-*-freebsd*): Document port configuration.
8069 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8071 * Makefile.in (convert.o, calls.o, expmed.o): Update.
8072 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8074 * builtin-types.def (BT_PTRMODE): Update.
8075 * c-common.c (type_for_size): Rename c_common_type_for_size.
8076 (type_for_mode): Similarly.
8077 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8079 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8080 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8081 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8083 * c-typeck.c (common_type, comptypes, default_conversion):
8085 * calls.c: Include langhooks.h.
8086 (emit_library_call_value_1): Use new hooks. Avoid redundant
8088 * convert.c: Include langhooks.h
8089 (convert_to_pointer, convert_to_integer): Use new hooks.
8090 * except.c (init_eh): Similarly.
8091 * expmed.c: Include langhooks.h.
8092 (expand_mult_add): Use new hooks.
8093 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8094 try_casesi): Similarly.
8095 * fold-const.c (optimize_bit_field_compare, make_range,
8096 decode_field_reference, fold_truthop, fold): Similarly.
8097 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8098 put_var_into_stack): Similarly.
8099 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8100 LANG_HOOKS_TYPE_FOR_SIZE): New.
8101 (LANG_HOOKS_TYPES_INITIALIZER): Update.
8102 * langhooks.h (lang_hooks_for_types): New hooks.
8103 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8104 * tree.c (get_unwidened, get_narrower): Similarly.
8105 * tree.h (type_for_mode, type_for_size): Remove.
8106 * varasm.c (force_const_mem): Use new hooks.
8107 * utils2.c (nonbinary_modular_operation): Update.
8109 * objc-act.c (handle_impent): Update.
8110 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8113 2002-03-29 Steve Ellcey <sje@cup.hp.com>
8115 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8116 * config/ia64/ia64.c (basereg_operand): New.
8117 * config/ia64/ia64-protos.h (basereg_operand): Declare.
8118 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8120 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
8122 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8123 unwind information when frame_pointer_needed.
8124 (mmix_assemble_integer): Tweak wording in comment.
8126 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
8128 * Makefile.in (except.o): Update.
8129 * except.c: Include langhooks.h.
8130 (init_eh): Use langhook.
8131 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8132 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8133 (LANG_HOOKS_INITIALIZER): Update.
8134 * langhooks.h (lang_hooks_for_types): New.
8135 (struct lang_hooks): Add it.
8136 * tree.c (make_lang_type_fn, make_lang_type): Remove.
8137 * tree.h (make_lang_type_fn, make_lang_type): Remove.
8139 * alpha/alpha.c: Include langhooks.h.
8140 (alpha_build_va_list): Use langhook.
8141 * d30v/d30v.c: Include langhooks.h.
8142 (d30v_build_va_list): Use langhook.
8143 * i386/i386.c: Include langhooks.h.
8144 (ix86_build_va_list): Use langhook.
8145 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8146 * s390/s390.c: Include langhooks.h.
8147 (s390_build_va_list): Use langhook.
8148 * stormy16/stormy16.c: Include langhooks.h.
8149 (stormy16_build_va_list): Use langhook.
8151 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8154 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8156 (length): Compute variable length for branches/calls/jumps here.
8157 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8158 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8159 define branch_type attribute.
8160 (divsi3_sp32): Maximum length is 6 not 7.
8161 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8162 call_address_untyped_struct_value_sp32,
8163 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8164 * config/sparc/sparc.c (empty_delay_slot): New function.
8165 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8166 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8168 2002-03-29 Jakub Jelinek <jakub@redhat.com>
8170 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8171 nonzero_bits if not needed.
8172 (nonzero_bits) [XOR]: Likewise.
8173 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8174 reg_last_set_mode and mode are both MODE_INT, but not equal.
8175 (record_value_for_reg): Compute reg_last_set_nonzero_bits
8176 in nonzero_bits_mode for MODE_INT modes.
8178 2002-03-28 Richard Henderson <rth@redhat.com>
8181 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8182 to GAS. Correct drift between alternatives.
8184 2002-03-28 Richard Henderson <rth@redhat.com>
8187 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8189 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
8191 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8192 emulation to the linker.
8194 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
8196 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8197 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8199 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
8201 * combine.c (simplify_and_const_int): Make sure to apply mask
8202 when force_to_mode returns a constant integer. PR3311.
8204 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8206 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8208 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8210 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8211 and Objective-C Dialect Options.
8213 2002-03-28 Richard Henderson <rth@redhat.com>
8215 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8216 comparison should be done vs !=0 not >0 return code. Tidy cases.
8218 2002-03-28 Richard Henderson <rth@redhat.com>
8220 * c-decl.c (finish_function): New arg can_defer_p. Pass it
8221 on to c_expand_body.
8222 * c-tree.h (finish_function): Update decl.
8223 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8225 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
8227 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8229 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
8231 * rtlanal.c: Include flags.h
8232 (may_trap_p): Do not mark FP operations if trapping
8233 if !flag_trapping_math
8234 * Makefile.in (rtlanal.o): Add dependency on flag.h
8235 * ifcvt.c (noce_operand_ok): Avoid the lameness.
8237 2002-03-27 Zack Weinberg <zack@codesourcery.com>
8239 * mips.md: Use dconst1, not 1.0, as first argument of
8240 REAL_VALUE_LDEXP. Don't use union real_extract.
8242 2002-03-28 Alan Modra <amodra@bigpond.net.au>
8244 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8245 rather than $target. Heed program_prefix and
8246 program_transform_name. Search for gas in cross-compiler case too.
8247 "test -x" rather than "test -f".
8248 (gcc_cv_ld): Likewise.
8249 (gcc_cv_nm): Heed program_prefix and program_transform_name.
8250 (gcc_cv_objdump): Likewise.
8251 * configure: Regenerate.
8253 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8255 * Makefile.in (attribs.o): Update.
8256 * attribs.c: Include langhooks.h.
8257 (decl_attributes): Use langhook.
8258 * c-decl.c (insert_default_attributes): Rename.
8259 * c-tree.h (c_insert_default_attributes): New.
8260 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8261 (LANG_HOOKS_INITIALIZER): Update.
8262 * langhooks.h (struct lang_hooks): New hook.
8263 * tree.h (insert_default_attributes): Remove.
8265 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8267 2002-03-27 Andreas Schwab <schwab@suse.de>
8269 * config/i386/i386.c (classify_argument): Also check for
8272 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8274 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8277 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
8279 * i960.md (ret): Set PC.
8280 (nonlocal_goto): Fix expander.
8281 * builtins.c (epxand_builin_longjmp): Check that we've emitted
8284 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
8286 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8289 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8291 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8292 assigning to BLOCK_FOR_INSN directly.
8294 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
8296 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8298 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8300 * c-common.c (c_expand_expr): Fix prototype.
8301 * c-common.h (c_expand_expr): Always declare, update.
8302 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8303 * c-objc-common.c (c_objc_common_init): No global hook.
8304 * expr.c (expand_expr): Use langhook.
8305 * expr.h (enum expand_modifier): Conditionally declare.
8306 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8307 (LANG_HOOKS_INITIALIZER): Update.
8308 * langhooks.c (lhd_expand_expr): New.
8309 * langhooks.h (struct lang_hooks): New hook.
8310 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8311 (lang_independent_init): Don't default hook.
8313 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8315 2002-03-27 Richard Henderson <rth@redhat.com>
8318 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8319 TARGET_CONST_GP. Simplify conditions.
8321 2002-03-27 Richard Henderson <rth@redhat.com>
8323 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8324 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8325 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8327 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
8329 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8330 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8331 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8332 Remove unnecessary masks.
8333 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8334 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8335 -mwindows, -mdll switches and their negations.
8337 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8339 * gcc-common.c (lang_mark_false_label_stack): Remove.
8340 * ggc.h (lang_mark_false_label_stack): Similarly.
8342 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
8344 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8346 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8347 or __rtems_ is defined.
8349 2002-03-26 Richard Henderson <rth@redhat.com>
8351 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8352 if a non-trivial load was emitted.
8353 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
8354 in high+extra+low case.
8356 2002-03-26 Richard Henderson <rth@redhat.com>
8358 * config.gcc (sparc*-solaris): Use float_format=sparc.
8360 2002-03-26 Richard Henderson <rth@redhat.com>
8362 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8363 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8364 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8365 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8366 (WINT_TYPE_SIZE): Fix at 32.
8368 2002-03-26 Richard Henderson <rth@redhat.com>
8370 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8371 until after eh landing pad generation.
8372 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8373 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8375 2002-03-26 Richard Henderson <rth@redhat.com>
8377 * expr.h (ADD_PARM_SIZE): One more convert for INC.
8379 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
8381 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
8382 and warning switches.
8383 (cc1_options): Likewise.
8385 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
8387 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8388 Restore more of the signal context. Set no_reg_stack_frame.
8389 * config/ia64/unwind-ia64.c (unw_state_record):
8390 Add no_reg_stack_frame, comments.
8391 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8392 (uw_update_context): Adjust bsp when unwinding from leaf,
8393 but not signal frame.
8395 2002-03-26 David Edelsohn <edelsohn@gnu.org>
8397 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8399 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8401 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8403 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8406 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8407 "Add a pool_range attribute", which was lost during the ARM/Thumb
8410 2002-03-26 Bob Wilson <bob.wilson@acm.org>
8412 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8413 a register into the MAC16 accumulator.
8415 2002-03-26 Andrew Cagney <ac131313@redhat.com>
8417 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8418 (Warning Options): Document -Wswitch-enum.
8419 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
8421 (warn_switch_enum): Define variables.
8422 * flags.h (warn_switch_enum): Declare variables.
8423 * stmt.c (expand_end_case_type): When warn_switch_enum /
8424 -Wswitch-enum, perform switch checks.
8427 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
8429 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8430 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8431 (reload_muladdsi_compare0_scratch): Delete.
8433 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
8435 * doc/install.texi (*-*-freebsd*): Update.
8437 2002-03-26 Richard Henderson <rth@redhat.com>
8439 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8440 (SUB_PARM_SIZE): Cast DEC to ssizetype.
8442 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8443 types from the normal argument frame.
8445 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8446 variable sized objects by reference.
8447 (sparc_va_arg): Receive them by reference too.
8449 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
8451 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8452 code to not restoring global registers.
8454 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8456 * Makefile.in (ggc-common.o): Update.
8457 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8458 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8459 * c-tree.h (c_mark_tree): New.
8460 * ggc-common.c: Include langhooks.h.
8461 (gcc_mark_trees): Use new langhook.
8462 * ggc-callbacks.c: Delete file.
8463 * ggc.h (lang_mark_tree): Remove.
8464 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8465 (LANG_HOOKS_INITIALIZER): Update.
8466 * langhooks.h (struct lang_hooks): New hook.
8468 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8470 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8472 * doc/cpp.texi: Exclude entire Top node from printed manual.
8473 Move option index after directive index. Insert page breaks
8474 before GFDL and concept index. Index environment variables
8475 with command line options.
8476 * doc/cppenv.texi: Use @vtable for environment variable list.
8477 Add paragraph explaining semantics of empty elements in path
8478 variables. Exclude a cross-reference to Fishkill from the
8479 manpage. Remove an unnecessary cross-reference of the entry
8480 right above the referer. Don't use @anchor in text that goes
8482 * doc/cppopts.texi: Cross-reference the environment variables
8483 section, not the specific environment variable, for consistency.
8485 2002-03-25 Richard Henderson <rth@redhat.com>
8487 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8488 anywhere in the block. Don't refer to insns that have been
8489 removed from the chain. Iterate backward through the new insns.
8490 Don't refer to edges that have been removed.
8492 2002-03-26 Alan Modra <amodra@bigpond.net.au>
8494 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8495 test for overflow of constant.
8497 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
8500 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8501 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8502 these patterns on arm_archv4.
8504 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
8506 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8509 2002-03-25 Zack Weinberg <zack@codesourcery.com>
8511 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
8512 float_handled, float_handler, float_signal, set_float_handler,
8513 and do_float_handler. Set handler for SIGFPE to crash_signal.
8514 * toplev.h: Don't prototype do_float_handler.
8516 * c-lex.c: Fold parse_float into lex_number. Make warning
8517 about portability of hex float constants more informative, and
8518 don't issue it on top of a syntax error.
8519 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8521 * real.h: Define REAL_VALUE_ABS here...
8522 * simplify-rtx.c: ... not here. Fold check_fold_consts,
8523 simplify_unary_real, simplify_binary_real, and
8524 simplify_binary_is2orm1 into their callers.
8525 * tree.c: Fold build_real_from_int_cst_1 into caller.
8527 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8529 * tsystem.h: Include float.h here...
8530 * libgcc2.c: ... not here.
8532 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
8534 Fixes for: PR bootstrap/3591, target/5676
8535 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8536 defined. Do not disable exceptions or rtti.
8537 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8538 mcore.h. Disable exceptions and rtti, since they are not
8541 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8543 * c-decl.c (maybe_build_cleanup): Remove.
8544 * expr.c (expand_expr): Use langhook.
8545 * langhooks-def.h (lhd_return_null_tree,
8546 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8547 (LANGHOOKS_INITIALIZER): Update.
8548 * langhooks.c (lhd_return_null_tree): New.
8549 * langhooks.h (struct lang_hooks): New hook.
8550 * tree-inline.c (initialize_inlined_parameters): Use langhook.
8551 * tree.h (maybe_build_cleanup): Remove.
8553 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8555 * regrename.c (build_def_use): Move recog_memoized
8556 before extract_insn.
8558 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8561 * expr.c (emit_group_store): Handle storing into CONCAT.
8563 2002-03-25 Jakub Jelinek <jakub@redhat.com>
8565 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8566 corresponding MATCH_DUP.
8568 2002-03-24 Richard Henderson <rth@redhat.com>
8570 * unroll.c (unroll_loop): Zero label_map.
8572 * gcse.c: Include except.h.
8573 * Makefile.in (gcse.o): Update.
8575 2002-03-24 Richard Henderson <rth@redhat.com>
8577 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8578 Do resolve_unique_section before shared data clause.
8580 2002-03-24 Richard Henderson <rth@redhat.com>
8582 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8584 2002-03-24 Richard Henderson <rth@redhat.com>
8586 * recog.c (peephole2_optimize): Split blocks when EH insns are
8587 generated in the middle of a block. Do global life update if
8590 2002-03-24 Richard Henderson <rth@redhat.com>
8592 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8594 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8597 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8598 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8599 (init_dependency_output): Don't make no_output decision here.
8601 2002-03-24 Andrew Cagney <ac131313@redhat.com>
8603 * stmt.c (check_for_full_enumeration_handling): Remove tests of
8604 warn_switch. Update description.
8605 (expand_end_case_type): Call check_for_full_enumeration_handling
8608 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8610 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8611 (m68hc11_split_move): Call it to see if the source and destination
8612 operands use the same direction auto inc/dec mode, otherwise make the
8613 source an offsetable memory operand and generate an add.
8615 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8617 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8618 register for operand 2.
8619 ("*subsi3_zero_extendqi"): Likewise.
8620 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8621 bits so that it is compatible with a pop.
8622 ("*andhi3_gen"): Likewise.
8623 ("xorhi3"): Likewise.
8625 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8627 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8629 (cpp_post_options): ... not here.
8631 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8632 Aldy Hernandez <aldyh@redhat.com>
8634 Removal of separate preprocessor cpp0.
8636 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8637 cpp0, install-common): Update.
8638 * c-common.c (flag_preprocess_only): New.
8639 (c_common_init): Preprocess for -E.
8640 * c-common.h (flag_preprocess_only): New.
8641 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8642 * c-objc-common.c (c_init_decl_processing): Exit quickly
8643 for NULL return from c_common_init.
8644 * cpplib.h (cpp_preprocess_file): New.
8645 * cppmain.c (main, general_init, pfile, progname): Remove.
8646 (do_preprocessing): Rename cpp_preprocess_file, don't call
8647 cpp_finish. Don't close stdout here.
8648 (setup_callbacks): Update prototype.
8649 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8651 * tradcpp.c (main): Ignore -quiet.
8653 * lang-specs.h (default_compilers): Preprocess with cc1obj.
8655 2002-03-24 Richard Henderson <rth@redhat.com>
8657 PR optimization/5742
8658 * machmode.def: Add inner mode field to complex modes.
8659 * config/mips/mips.c (mips_function_value): Always define. Add
8660 new argument to handle libcalls.
8661 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8662 (FUNCTION_VALUE): Likewise.
8663 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8664 * config/mips/mips-protos.h: Update.
8666 2002-03-23 Richard Henderson <rth@redhat.com>
8668 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8669 * config/sparc/sparc-protos.h: Update.
8670 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8672 2002-03-23 Richard Henderson <rth@redhat.com>
8674 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8675 _start or _init begins the text segment.
8677 2002-03-23 David Edelsohn <edelsohn@gnu.org>
8679 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
8680 not HOST_WIDEST_INT.
8681 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8683 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
8686 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8687 operand argument to output_return_instruction.
8688 * arm.c (arm_print_operand, case 'd'): If the operand is
8689 const_true_rtx then just return.
8690 (arm_print_operand, case 'D'): If the operand is const_true_rtx
8693 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8695 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8696 (Warning Options): Document -Wswitch-default.
8697 * toplev.c (W_options): Add -Wswitch-default. Update comment on
8699 (warn_switch_default): Define variable.
8700 (warn_switch): Update comment.
8701 * flags.h (warn_switch_default): Declare variable.
8702 (warn_switch): Update comment.
8703 * stmt.c (expand_end_case): Check for and, when
8704 warn_switch_no_default, warn of a missing default case.
8706 2002-03-23 Alan Modra <amodra@bigpond.net.au>
8708 * real.h (N): Special case 128 bit doubles.
8710 * combine.c (simplify_comparison): When widening modes, ignore
8711 sign extension on CONST_INTs.
8713 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8715 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8716 passed to adjust_address. Fix comment formatting.
8719 2002-03-22 Zack Weinberg <zack@codesourcery.com>
8721 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8722 Always make REAL_VALUE_TYPE a struct containing an array of
8723 HOST_WIDE_INT, not a double. Tidy up the code deciding how
8724 big it is. Don't declare or use union real_extract.
8726 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8727 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8728 (print_operand), config/arm/arm.c (output_move_double),
8729 config/arm/arm.md (consttable_4, consttable_8),
8730 config/romp/romp.c (output_fpops), config/s390/s390.h
8731 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8732 (xtensa_output_literal): Don't use union real_extract.
8734 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8735 (sfmode_constant_to_ulong), config/ns32k/merlin.h
8736 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8737 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8738 (PRINT_OPERAND): Don't use local version of union
8741 * config/convex/convex.c (check_float_value), config/vax/vax.c
8742 (vax_float_literal), config/m88k/m88k.md (divdf3),
8743 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8744 config/pdp11/pdp11.c (output_move_quad): Don't do host
8745 arithmetic on target floating point quantities.
8747 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8748 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8750 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8751 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8753 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8754 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8756 * print-rtl.c (print_rtx): Disable code which needs
8757 floating-point emulator.
8758 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8759 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8760 depending on HOST_FLOAT_FORMAT to be defined properly.
8762 * config/1750a/1750a.c (get_double, float_label): Delete.
8763 (print_operand): Delete huge commented-out chunk. Use
8764 REAL_VALUE_TO_DECIMAL.
8765 * config/1750a/1750a-protos.h: Delete prototypes of deleted
8767 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8769 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8770 Use REAL_VALUE_TO_DECIMAL as ELF version does.
8771 * config/m88k/m88k.c (real_power_of_2_operand,
8772 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8773 real_extract out of the union; run the input through
8774 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8775 from that into the union.
8776 * config/pdp11/pdp11.c (output_move_double): Rearrange
8777 parentheses to make automatic indenter happy.
8779 * doc/tm.texi (Cross-compilation): Rename node to "Floating
8780 Point" and rewrite to describe current situation. Also adjust
8781 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8783 * doc/rtl.texi: Adjust cross reference.
8785 2002-03-22 Bob Wilson <bob.wilson@acm.org>
8787 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8788 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8789 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8790 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8791 prevent use of sp as a reload register.
8792 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8793 non_acc_reg_operand.
8794 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8795 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8796 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8797 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8799 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8801 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8802 * cpplex.c (unterminated): Delete.
8803 (parse_string): No string literal may extend over multiple
8804 lines. Suppress the error when preprocessing assembly.
8805 * cppmain.c (scan_translation_unit): Strings are single-line.
8807 * doc/cpp.texi: Update to match.
8809 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8811 PR optimization/5854
8812 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8814 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8815 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8816 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8817 const0 if scratch register was not allocated.
8818 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8819 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8821 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8822 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8823 with GEN_INT (...) everywhere. Remove constraints in define_split
8825 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8826 require scratch register for setting 0 into regs/non-pushable memory.
8828 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8830 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8831 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8833 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
8835 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
8836 * cppinit.c (cpp_create_reader): On by default.
8837 (cpp_handle_option): Handle -W[no-]endif-labels.
8838 (cpp_post_options): Also enable if -pedantic.
8839 * cpplib.c (do_else): Use it.
8840 (do_endif): Likewise.
8841 * doc/cppopts.texi: Document new option.
8842 * doc/invoke.texi: Document new option.
8844 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
8846 * config/i386/i386.c, config/i386/i386.md: Change all occurences
8847 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8849 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
8851 * flow.c (calculate_global_regs_live): Clear aux fields of
8854 2002-03-22 Jakub Jelinek <jakub@redhat.com>
8856 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8857 REG or MEM subregs, pass rtx * instead of rtx to it.
8858 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8859 rtx * instead of rtx to alter_subreg.
8860 * config/m32r/m32r.c (gen_split_move_double): Likewise.
8861 * config/pj/pj.c (pj_output_rval): Likewise.
8863 2002-03-22 Richard Henderson <rth@redhat.com>
8866 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8867 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8868 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8869 (ia64_expand_prologue): Look at int_regs, not words, for number
8870 of incomming int regs.
8872 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
8874 * expr.c (expand_expr): A RESULT_DECL is part of a call.
8876 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
8878 * toplev.c (flag_loop_optimize, flag_crossjumping):
8879 New static variables.
8880 (rest_of_compilation): Conditionalize crossjumping and
8882 (parse_options_and_default_flags): Default loop_optimize and
8884 (lang_independent_options): Add -fcrossjumping and -floop-optimize
8885 * invoke.texi (crossjumping, loop-optimize): Document.
8887 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8889 * real.c (eiisneg): Move outside #ifdef NANS.
8891 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
8893 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8894 frequencies match; avoid match on different loop depths.
8895 (try_crossjump_to_bb): Kill tests that no longer brings time
8897 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8899 (split_edge): Likewise.
8901 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8904 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8905 * cfgrtl.c: Include insn-config.h
8906 (split_block) Dirtify block in presence of conditional execution
8908 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8910 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8911 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8912 (function_arg): Constify CUMULATIVE_ARGS.
8913 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8914 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8915 (UNITS_PER_DOUBLE): New macro.
8916 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
8917 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
8918 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
8919 fp_regs and stack_words.
8920 (EABI_FLOAT_VARARGS_P): New macro.
8921 * config/mips/mips.c (struct mips_arg_info): New.
8922 (mips_arg_info): New function.
8923 (function_arg_advance): Use it. Add adjustment instructions here
8924 rather than in function_arg.
8925 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
8926 for VOIDmode at the beginning of the function.
8927 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
8928 (function_arg_pass_by_reference): Likewise.
8929 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8930 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8931 (mips_va_start): Likewise. Use the new stack_words field of
8932 CUMULATIVE_ARGS to set up overflow area. Reformat.
8933 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
8934 doubles and other types, aligning the overflow pointer for non-doubles
8935 too. Remove some code duplication. Replace hard-coded constants.
8937 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
8939 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8940 (CLASS_UNITS): Undefine.
8941 (CLASS_MAX_NREGS): Use FP_INC.
8942 * config/mips/mips.c (compute_frame_size): Likewise.
8943 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8945 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
8947 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8948 prototype, and handle lexing numbers and identifiers.
8949 (parse_identifier): Update to new form of parse_slow.
8950 (parse_number): Fast path only, use parse_slow otherwise.
8951 (_cpp_lex_direct): Update calls to parse_number.
8953 2002-03-21 DJ Delorie <dj@redhat.com>
8955 * bb-reorder.c (make_reorder_chain_1): Protect against
8956 when redundant edges are omitted.
8957 * predict.c (dump_prediction): Likewise.
8959 2002-03-21 Richard Henderson <rth@redhat.com>
8962 * fixinc/inclhack.def (solaris_stdio_tag): New.
8963 * fixinc/fixincl.x: Regenerate.
8965 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
8968 * c-typeck.c (process_init_element): Flag non-static
8969 initialization of a flexible array member as illegal.
8971 2002-03-22 Alan Modra <amodra@bigpond.net.au>
8973 * config/rs6000/t-linux64: New.
8974 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8975 t-ppccomm. Use t-rs6000 and t-linux64.
8976 (powerpc64-*-gnu* <tmake_file>): Likewise.
8977 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8978 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8979 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8981 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
8983 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8984 flag_really_no_inline instead of optimize == 0.
8986 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8988 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8990 * flags.h (flag_really_no_inline): New.
8992 * c-common.c (c_common_post_options): Initialize
8993 flag_really_no_inline.
8995 * toplev.c (flag_really_no_inline): New.
8997 2002-03-21 Jakub Jelinek <jakub@redhat.com>
8999 * config/avr/avr.md (length): Fix length computation for
9000 conditional branches.
9002 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
9004 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9005 sdbout.o, profile.o): Update.
9006 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9008 * c-common.h (gettags): Move here from tree.h.
9009 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9010 insert_block, getdecls, kept_level_p, global_bindings_p): New.
9011 * dbxout.c (dbxout_init): Use getdecls langhook.
9012 * expr.c (expand_expr): Use insert_block langhook.
9013 * fold-const.c: Include langhooks.h.
9014 (fold_range_test, fold_binary_op_with_conditional_arg,
9015 fold): Use global_bindings_p langhook.
9016 * integrate.c (expand_inline_function): Use insert_block langhook.
9017 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9018 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9019 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9020 LANG_HOOKS_GETDECLS): New.
9021 (LANG_HOOKS_INITIALIZER): Update.
9022 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9024 * langhooks.h (struct lang_hooks_for_decls): New.
9025 (struct lang_hooks): Update.
9026 * profile.c: Include langhooks.h.
9027 (output_func_start_profiler): Use new langhooks.
9028 * sdbout.c: Include langhooks.h.
9029 (sdbout_init, sdbout_finish): Use getdecls langhook.
9030 * stmt.c: Include langhooks.h.
9031 (expand_fixup, fixup_gotos): Use new langhooks.
9032 * stor-layout.c: Include langhooks.h.
9033 (variable_size): Use global_bindings_p langhook.
9034 * toplev.c (compile_file): Use getdecls langhook.
9035 * tree-inline.c (remap_block): Use insert_block langhook.
9036 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9037 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9039 2002-03-21 Richard Henderson <rth@redhat.com>
9041 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9042 constants in .data when -fpic.
9044 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9046 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9049 2002-03-21 Tom Tromey <tromey@redhat.com>
9051 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
9053 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9055 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9057 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9059 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
9060 Richard Henderson <rth@redhat.com>
9063 * c-common.c (c_expand_expr): Preserve result of a statement
9064 expression if needed.
9066 2002-03-21 Jakub Jelinek <jakub@redhat.com>
9069 * genrecog.c (maybe_both_true_mode): Remove.
9070 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9071 * machmode.def (Pmode): Likewise.
9073 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
9075 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9076 (nonlocal_mentioned_p_1): New function.
9077 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9078 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9079 (mark_constant_function): Recognize pure functions.
9080 * rtl.h (global_reg_mentioned_p): New prototype.
9081 * rtlanal.c (global_reg_mentioned_p,
9082 global_reg_mentioned_p_1): New function.
9084 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9086 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9088 * fixinc/fixincl.x: Regenerate.
9090 2002-03-20 Jason Merrill <jason@redhat.com>
9092 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9094 2002-03-20 Michael Meissner <meissner@redhat.com>
9096 * doc/invoke.texi (Optimize Options): Document that -O2 sets
9099 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9101 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9102 ".literal_position" directive before the constant pool.
9104 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9106 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9107 Add Craig Rodrigues.
9108 Add Brad Lucier to testers.
9110 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9113 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9115 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9116 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9117 instead of insn_extract.
9119 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9122 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9124 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9125 stmt if some case has been output.
9127 2002-03-20 Jakub Jelinek <jakub@redhat.com>
9130 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9131 movsfcc_1, movdfcc_1): Add %O2.
9132 * config/i386/i386.c (print_operand): Handle %ON.
9133 Print . before float condition codes in Sun as cmov syntax.
9134 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9135 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9138 2002-03-20 Philip Blundell <pb@nexus.co.uk>
9140 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9141 return instruction if PC was popped.
9143 2002-03-20 Bob Wilson <bob.wilson@acm.org>
9145 * config/xtensa/xtensa.md: Remove unused type attributes.
9146 (adddi_carry, subddi_carry): Change type attribute to "multi".
9148 2002-03-19 Dale Johannesen <dalej@apple.com>
9150 PR optimization/5999, middle-end/5731
9151 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9152 multiplications by reciprocals.
9154 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9156 * Makefile.in: Update.
9157 * c-common.c: Include langhooks.h.
9158 (inline_forbidden_p): Use new hook.
9159 * diagnostic.c: Include langhooks.h.
9160 (format_with_decl, announce_function,
9161 default_print_error_function): Use new hook.
9162 * dwarf2out.c (dwarf2_name): Use new hook.
9163 * function.c: Include langhooks.h.
9164 (init_function_start): Use new hook.
9165 * langhooks-def.h (lhd_decl_printable_name): New.
9166 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9167 (LANGHOOKS_INITIALIZER): Update.
9168 * langhooks.c (lhd_decl_printable_name): New.
9169 * langhooks.h (struct lang_hooks): New hook.
9170 * toplev.c (decl_name, decl_printable_name): Remove.
9171 (open_dump_file): Use new hook.
9172 (process_options): Remove old hook.
9173 * tree.h (decl_printable_name): Remove.
9175 * objc-act.c (objc_init): Remove old hook.
9176 (objc_printable_name): Export.
9177 * objc-act.h (objc_printable_name): New.
9178 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9180 2002-03-19 Jim Blandy <jimb@redhat.com>
9182 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9183 the start_source_file debug hook, not the current line number.
9185 2002-03-19 Richard Henderson <rth@redhat.com>
9187 * flow.c (EH_USES): Provide default.
9188 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9189 * doc/tm.texi (EH_USES): New.
9191 * config/ia64/ia64.c (ia64_eh_uses): New.
9192 * config/ia64/ia64-protos.h: Update.
9193 * config/ia64/ia64.h (EH_USES): New.
9195 2002-03-19 Richard Henderson <rth@redhat.com>
9197 * varasm.c (output_constant_def): Fix stupid typo.
9199 2002-03-19 Richard Henderson <rth@redhat.com>
9202 * except.c (current_function_has_exception_handlers): New.
9203 * except.h: Declare it.
9204 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9205 Combine tests that disable all sibcalls for the function.
9207 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
9209 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9212 2002-03-19 Richard Henderson <rth@redhat.com>
9215 * config/ia64/ia64.c: Revert 2002-03-01 patch.
9216 * config/ia64/ia64.h (INIT_EXPANDERS): New.
9218 2002-03-19 Jim Blandy <jimb@redhat.com>
9220 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9221 name, even if the replacement list contains no tokens, as required
9224 2002-03-19 Jason Merrill <jason@redhat.com>
9226 * varasm.c (globalize_decl): Get the name from the RTL, not
9227 DECL_ASSEMBLER_NAME.
9229 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9231 2002-03-19 Bob Wilson <bob.wilson@acm.org>
9233 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9234 subdi_carry): Define.
9236 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9238 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9239 about -fpic/-fPIC if extra_warnings set.
9241 2002-03-19 David Edelsohn <edelsohn@gnu.org>
9243 * expr.c (expand_expr): Sign-extend CONST_INT generated from
9244 TREE_STRING_POINTER.
9245 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9247 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9249 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9250 in favor of SP if FRAME_POINTER_REQUIRED is false.
9252 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
9254 * emit-rtl.c (gen_int_mode): New function.
9255 * rtl.h: Prototype for it.
9256 * combine.c (make_extraction, simplify_comparison), expmed.c
9257 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9258 (convert_modes, store_field), optabs.c (expand_fix),
9259 simplify-rtx.c (neg_const_int, simplify_unary_real),
9261 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9262 Use it instead of GEN_INT (trunc_int_for_mode (...)).
9264 2002-03-19 Jakub Jelinek <jakub@redhat.com>
9267 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9268 convert_parm_for_inlining.
9269 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9271 * langhooks-def.h: Likewise.
9272 * objc/objc-lang.c: Likewise.
9273 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9275 * tree-inline.c (initialize_inlined_parameters):
9276 Call convert_parm_for_inlining lang hook if needed.
9277 * c-typeck.c (c_convert_parm_for_inlining): New function.
9278 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9280 2002-03-18 Mark Mitchell <mark@codesourcery.com>
9282 * calls.c (precompute_arguments): Do not assume that temporaries
9283 can be destroyed after expanding the argument.
9284 (expand_call): Likewise.
9286 2002-03-15 Eric Christopher <echristo@redhat.com>
9288 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9289 Fix register preference on last change.
9290 * config/mips/mips.c (mips_return_in_memory): New function.
9291 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9292 * config/mips/mips-protos.h: Declare.
9293 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9294 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9296 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
9298 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9300 (anddi3, iorsi3): Likewise.
9302 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9303 use %gprel for symbols that are going to be placed in linkonce
9306 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9307 RETURN_ADDRESS_POINTER_REGNUM to $ra.
9308 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9309 not needed. Disregard leaf_function_p().
9310 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9311 mips16 frame pointer.
9312 * config/mips/mips.md (store ra): Only to small SP offsets.
9313 2001-08-22 Graham Stott <grahams@redhat.com>
9314 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9315 return a REG rtx for the return address register.
9317 2002-03-18 Bob Wilson <bob.wilson@acm.org>
9319 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9320 constant-pool addresses as "mode-dependent".
9321 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9323 2002-03-18 Jakub Jelinek <jakub@redhat.com>
9326 * expr.c (emit_group_load): Use extract_bit_field if
9327 needed for CONCAT arguments.
9329 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
9332 * arm.md (tablejump): Make this a define_expand. For PIC add the
9333 offset to the base of the table.
9334 (thumb_tablejump): Matcher for Thumb tablejump insn.
9335 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9336 as the difference of two labels.
9337 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9338 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9340 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9341 * arm.c (get_jump_table_size): If the table is not in the text
9342 section, return zero.
9344 2002-03-18 Bernd Schmidt <bernds@redhat.com>
9346 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9348 (arm_reload_out_hi): Use gen_lowpart instead of
9349 gen_rtx_SUBREG to access QImode components.
9350 * config/arm/arm.md: Disable zero_extend split for QImode
9351 subregs in BIG_ENDIAN mode.
9352 (storehi_bigend): Match use of least significant byte.
9353 (storeinthi): Remove extraneous SUBREG.
9354 Add missing construction of operands[2].
9355 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9356 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9357 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9359 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
9361 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9364 2002-03-17 Richard Henderson <rth@redhat.com>
9366 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9369 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9371 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9372 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9374 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9376 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9378 * predict.c (estimate_bb_frequencies): Delete unused variables.
9380 2002-03-17 Richard Henderson <rth@redhat.com>
9382 * config/ia64/ia64.c (ia64_attribute_table): Move before
9383 targetm definition. Make static.
9385 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9387 * c-common.h (yyparse, c_common_parse_file): New.
9388 * c-lang.c: Include c-common.h.
9389 (LANG_HOOKS_PARSE_FILE): Redefine.
9390 * c-lex.c: Include c-common.h.
9391 (yyparse): Rename c_common_parse_file. Call yyparse.
9392 * c-parse.in (yyparse): Remove macro.
9393 * c-tree.h (yyparse_1): Remove.
9394 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9395 (LANG_HOOKS_INITIALIZER): Update.
9396 * langhooks.h (struct lang_hoooks): New hook parse_file.
9397 * toplev.c (compile_file): Use parse_file hook.
9398 * tree.h (yyparse): Remove.
9399 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9401 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
9403 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9404 float_truncate, not fix.
9405 ("*truncdfsf2_real"): Ditto.
9406 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9408 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9410 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
9412 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9413 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
9414 where appropriate. Make the second reference to
9415 leaf_function_p a function call, as intended. Reindented.
9417 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9418 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9420 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9421 add register to non-constant into sp.
9423 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9424 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9425 (mips16_gp_pseudo_rtx): Lose.
9426 (INIT_EXPANDERS): Deleted.
9427 * config/mips/mips.c (mips_init_machine_status): New.
9428 (mips_free_machine_status): New.
9429 (mips_mark_machine_status): New.
9430 (override_options): Set them.
9431 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9432 (struct machine_function): ... new. Replaced all references.
9433 (mips_add_gc_roots): Don't mark them.
9434 (embedded_pic_fnaddr_reg): New, extracted from...
9435 (embedded_pic_offset): ... here.
9436 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9439 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9441 * cppinit.c: Revert -MD removal.
9443 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9445 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9446 soft registers by default for 68HC12.
9447 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9448 when compiling with -fomit-frame-pointer.
9449 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9450 (expand_epilogue): Likewise.
9451 (m68hc11_gen_rotate): Use exg when rotating by 8.
9453 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9455 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9456 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9457 (splits): Remove unused add splits.
9458 ("*addhi3_68hc12"): Tune constraints.
9459 ("addhi_sp"): Try to use X instead of Y in all cases and if the
9460 constant fits in 8-bits and D is dead use abx/aby instructions.
9461 ("*addhi3"): Remove extern declaration of ix_reg.
9462 ("*subsi3"): Optimize and provide new split.
9463 ("subhi3"): Cleanup.
9464 ("*subhi3_sp"): Avoid saving X if we know it is dead.
9465 (arith splits): For 68hc12 save the address register on the stack
9466 and do the arithmetic operation with a pop.
9468 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9470 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9471 allocating QImode in address registers.
9472 ("*movqi_m68hc11"): Likewise.
9474 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
9476 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9478 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
9480 * cppinit.c (print_help): Display -MD and -MMD.
9481 Don't display usage string. Update assertion syntax and
9483 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9484 (cpp_handle_option): Update.
9486 2002-03-15 Chris Demetriou <cgd@broadcom.com>
9488 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9489 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9490 and define it so that regardless of target CPU size,
9491 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9492 of "int" rather than "long."
9494 2002-03-15 Richard Henderson <rth@redhat.com>
9496 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9499 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9501 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9502 ("tstqi" split): Avoid using memory for tstqi on address register.
9503 (splits): Remove constraints.
9504 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9505 ("cmpdf", "cmpsf"): Remove since not used.
9506 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9507 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9509 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9511 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9512 ("neghi2"): Tighten constraints.
9513 ("one_cmplsi2"): Optimize and simplify split.
9514 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9516 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9518 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9519 and split of AND operation to clear the upper bits.
9520 ("*logicalsi3_zextqi"): Likewise.
9521 ("*logicallhi3_zexthi_ashift8"): Likewise.
9522 ("*logicalsi3_silshr16"): Likewise.
9523 ("logicalsi3_silshl16"): Likewise.
9524 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9526 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9528 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9529 (m68hc11_indirect_p): New function.
9530 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9531 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9533 (asm_print_register): Likewise.
9534 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9535 (m68hc11_indirect_p): Declare.
9536 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9537 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9538 (TARGET_SWITCHES): New option -mrelax.
9539 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9541 ("iorsi3", "xorsi3"): Likewise.
9542 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9543 ("*andhi3_mem"): New to handle destination in memory with bclr
9544 and a scratch register.
9545 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9546 ("*andhi3_const"): New when operand2 is constant.
9547 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9548 ("*andhi3_gen"): Cleanup of the old "andhi3".
9549 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9550 ("xorqi3"): Update constraints.
9552 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9554 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9555 for reg_equiv_memory_loc when the operand is a register that does
9556 not get a hard register (stack location).
9557 (tst_operand): After reload, accept all memory operand.
9558 (symbolic_memory_operand): Fix detection of symbolic references.
9559 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9560 accept symbols and any constant.
9562 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9564 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9565 note on the insn that sets the soft frame register.
9566 (must_parenthesize): ix and iy are also reserved names.
9567 (print_operand_address): One more place where parenthesis are required
9568 to avoid confusion with register names.
9569 (m68hc11_gen_movhi): Allow push of stack pointer.
9570 (m68hc11_check_z_replacement): Fix handling of parallel with a
9572 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9573 the replacement register is.
9574 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9575 and D8_REGS classes.
9576 (MODES_TIEABLE_P): All modes are tieable except QImode.
9578 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9580 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9581 (___subdi3): Likewise.
9582 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9583 (__map_data_section): Optimize 68hc11 case.
9585 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9587 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9588 than a shift to avoid adding a register with itself.
9589 (m68hc11_memory_move_cost): Take into account NO_REGS.
9590 (m68hc11_register_move_cost): Update and use memory move cost
9592 (m68hc11_address_cost): Make cost of valid offset not 0 so that
9593 it gives more opportunities to cse to optimize.
9594 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9595 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9597 2002-03-15 Mark Mitchell <mark@codesourcery.com>
9599 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9600 * c-common.def (CLEANUP_STMT): New tree node.
9601 * c-common.h (CLEANUP_DECL): New macro.
9602 (CLEANUP_EXPR): Likewise.
9603 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9604 * expr.c (expand_expr): Tidy.
9605 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9606 * tree-inline.c (initialize_inlined_parameters): Clean up
9607 new local variables.
9609 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9612 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9613 before movrXX only, use reg_overlap_mentioned_p.
9614 Only special case NE if just one insn can be generated.
9616 2002-03-15 Jason Merrill <jason@redhat.com>
9618 * varasm.c (assemble_variable): Call resolve_unique_section before
9619 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
9622 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9625 * arm.md (split pattern for thumb shiftable immediates): Add comment
9626 explaining non-obvious test.
9628 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
9631 * arm.md (movaddr, movaddr_insn): Delete.
9633 2002-03-15 Jason Merrill <jason@redhat.com>
9635 * toplev.c (wrapup_global_declarations): Clarify variable handling.
9636 -fkeep-static-consts doesn't apply to comdats.
9638 2002-03-14 Richard Henderson <rth@redhat.com>
9640 * c-decl.c: Include c-pragma.h.
9641 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9642 (finish_function): Tidy.
9643 * c-pragma.c: Include c-common.h.
9644 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9645 (handle_pragma_weak): Use them.
9646 (init_pragma): Register pending_weaks.
9647 * c-pragma.h (maybe_apply_pragma_weak): Declare.
9648 * print-tree.c (print_node): Print DECL_WEAK.
9649 * varasm.c (mark_weak_decls): Remove.
9650 (remove_from_pending_weak_list): Remove.
9652 (asm_emit_uninitialised): Call globalize_decl for weak commons.
9653 (weak_decls): Make a tree_list.
9654 (declare_weak): Cons weak_decls directly.
9655 (globalize_decl): Remove weak_decls elements directly.
9656 (weak_finish): Simplify weak_decls walk. Don't weaken unused
9657 symbols. Don't pretend to handle aliases.
9658 (init_varasm_once): Update weak_decls registry.
9659 * Makefile.in: Update dependencies.
9661 2002-03-14 Richard Henderson <rth@redhat.com>
9664 * config/ia64/ia64.c: Include tm_p.h last.
9665 (gen_nop_type): Remove duplicate definition.
9666 (cycle_end_fill_slots): Set sched_data for second L slot.
9667 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9668 (nop_cycles_until): Fix typos.
9670 2002-03-15 Jakub Jelinek <jakub@redhat.com>
9672 PR optimization/5891
9673 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9675 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9677 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9678 descriptors correctly.
9680 2002-03-14 Michael Meissner <meissner@redhat.com>
9682 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9683 100, allowing MAX_UNROLLED_INSNS to be overridden.
9685 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9688 * unroll.c (params.h): Include.
9689 (MAX_UNROLLED_INSNS): Delete, now in params.h.
9691 * doc/invoke.texi (--param max-unroll-insns): Document.
9693 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9695 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9697 * arm.md: Fix warnings about constraints in peepholes and splits.
9699 2002-03-14 Zack Weinberg <zack@codesourcery.com>
9701 * cpphash.h (struct lexer_state): Remove line_extension member.
9702 * cpplib.c (dequote_string, do_linemarker): New functions.
9703 (linemarker_dir): New data object.
9704 (DIRECTIVE_TABLE): No longer need to interpret #line in
9705 preprocessed source. Delete obsolete comment about return
9707 (end_directive, directive_diagnostics, _cpp_handle_directive):
9708 Don't muck with line_extension.
9709 (directive_diagnostics): No need to issue warnings for
9711 (_cpp_handle_directive): Issue warnings for linemarkers here,
9712 when appropriate. Dispatch linemarkers to do_linemarker, not
9714 (do_line): Code to handle linemarkers split out to do_linemarker.
9715 Convert escape sequences in filename argument, both places.
9717 * cppmacro.c (quote_string): Rename cpp_quote_string and
9718 export. All callers changed.
9719 * cpplib.h (cpp_quote_string): Prototype.
9720 * cppmain.c (print_line): Call cpp_quote_string on to_file
9723 * doc/cpp.texi: Document that escapes are now interpreted in
9724 #line and in linemarkers, and that non-printing characters are
9725 converted to octal escapes when linemarkers are generated.
9727 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
9729 * emit-rtl.c (try_split): Use delete_insns.
9730 * recog.c (split_all_insns): Fix terminating condition.
9732 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
9733 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9736 * arm.c (arm_output_epilogue): Fix floating-point register save
9737 adjustment when using a frame pointer.
9739 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
9741 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9742 * config/mips/mips.c (compute_frame_size): Retrofit them here.
9743 (save_restore_insns, mips_expand_epilogue): And here.
9744 (build_mips16_call_stub): And here.
9745 (mips_function_value): Use the new macros to decide whether a single
9746 or complex float can be returned in floating-point registers. Return
9747 a parallel rtx in the complex case.
9749 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
9751 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9752 call after liveness analysis.
9754 * recog.c (split_insn): Use delete_insn_and_edges.
9756 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9757 instructions to have branch prediction notes.
9758 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9760 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9762 * configure.in: Don't pass -Wno-long-long to a ADA compiler
9763 that doesn't support it.
9764 * configure: Regenerate.
9766 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9769 * config/sparc/sparc.md (normal_branch, inverted_branch,
9770 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9771 inverted_fp_branch): Adjust calls to output_cbranch.
9772 Set length attribute.
9773 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9774 output_v9branch. Set length attribute.
9775 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9777 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9778 (output_cbranch): Likewise. Handle far branches.
9779 (output_v9branch): Handle far branches.
9780 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9782 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9783 noov_compare64_op predicates.
9785 2002-03-13 Jason Merrill <jason@redhat.com>
9787 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9788 into the function and constify it.
9789 * gthr-dce.h, gthr-solaris.h: Likewise.
9791 2002-03-13 David Edelsohn <edelsohn@gnu.org>
9793 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9794 * config/rs6000/rs6000.c (rs6000_va_arg): Use
9795 std_expand_builtin_va_arg if not ABI_V4.
9797 2002-03-13 Jason Merrill <jason@redhat.com>
9799 * varasm.c (globalize_decl): New fn.
9800 (assemble_start_function): Use it.
9801 (asm_emit_uninitialized): Use it.
9802 (assemble_alias): Use it.
9803 (assemble_variable): Use it.
9805 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
9807 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9808 2002-03-12 internal visibility change.
9809 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9810 visibility into SYMBOL_REF_FLAG.
9812 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
9814 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9815 VOIDmode operand. Add compile-time optimization for constant results.
9817 2002-03-12 Jason Merrill <jason@redhat.com>
9819 * c-typeck.c (convert_for_assignment): Don't allow conversions
9820 between pointers and references. Only allow lvalues to convert to
9823 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
9825 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9826 before prologue, to avoid scheduling problems.
9828 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9830 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9831 (ELIMINABLE_REGS): Add sfp->sp.
9832 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9834 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9836 PR optimization/5892
9837 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9839 2002-03-13 Jakub Jelinek <jakub@redhat.com>
9841 * loop.c (basic_induction_var): Don't call convert_modes if mode
9842 classes are different.
9844 2002-03-12 Richard Henderson <rth@redhat.com>
9846 PR optimization/5901
9847 * function.c (reposition_prologue_and_epilogue_notes): Position
9848 the markers after/before the last/first insn not deleted.
9850 2002-03-12 Richard Henderson <rth@redhat.com>
9852 PR optimization/5878
9853 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9854 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9855 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9857 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9858 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9859 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9861 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9862 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9863 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9864 also. Don't set it if not flag_pic.
9865 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9866 to be INVALID_REGNUM when not used.
9868 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
9870 * expmed.c (store_bit_field): Reset alias set for memory.
9871 (extract_bit_field): Same.
9873 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9875 * c-common.c (c_tree_code_type, c_tree_code_length,
9876 c_tree_code_name, add_c_tree_codes): Delete.
9877 * c-common.h (add_c_tree_codes): Delete.
9878 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9880 * c-objc-common.c (c_objc_common_init): Don't call
9881 add_c_tree_codes, instead set lang_unsafe_for_reeval.
9882 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9883 objc_tree_code_name, add_objc_tree_codes): Delete.
9884 (objc_init): Don't call add_objc_tree_codes.
9885 * objc/objc-lang.c (tree_code_type, tree_code_length,
9886 tree_code_name): Define.
9887 * toplev.c (lang_independent_init): Don't set
9888 tree_code_length[IDENTIFIER_NODE].
9889 * tree.c (tree_code_type, tree_code_length, tree_code_name):
9890 Delete definitions, moved to language front-ends.
9891 * tree.def (IDENTIFIER_NODE): Hardwire the length.
9892 * tree.h (tree_code_type, tree_code_length, tree_code_name):
9894 (tree_code_length): Change type to unsigned char.
9896 2002-03-12 Richard Henderson <rth@redhat.com>
9898 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9899 internal visibility change.
9901 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9903 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9904 validize_mem() instead of change_address to avoid clobbering
9907 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
9909 * c-lex.h (position_after_whitespace): Remove.
9911 2002-03-12 Jakub Jelinek <jakub@redhat.com>
9913 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9914 (lex_string): Use unsigned char pointers.
9916 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9918 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9919 is not a valid memory_operand.
9921 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9923 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9924 * config/xtensa/lib1funcs.asm: Fix copyright to include
9925 special case for libgcc files.
9926 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9927 (__divsi3): Likewise.
9928 (__umodsi3): Likewise.
9929 (__modsi3): Likewise.
9930 * config/xtensa/lib2funcs.S: Fix copyright to include
9931 special case for libgcc files.
9933 2002-03-12 Tom Rix <trix@redhat.com>
9935 * collect2.c (resolve_lib_name): Move outside of
9936 OBJECT_FORMAT_COFF ifdef.
9937 (ignore_library): Same.
9939 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9941 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9943 2002-03-12 Bob Wilson <bob.wilson@acm.org>
9945 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9946 to function_section before writing out the constant pool.
9948 2002-03-12 David Edelsohn <edelsohn@gnu.org>
9950 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9952 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9954 2002-03-12 Alan Modra <amodra@bigpond.net.au>
9956 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9960 (cmpsi splitter): Likewise.
9961 (modsi3): Fail if <= 0.
9962 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9963 redundant test when HOST_BITS_PER_WIDE_INT != 32.
9964 (reg_or_sub_cint64_operand): Likewise.
9965 (num_insns_constant_wide): Optimize sign extension.
9966 (rs6000_legitimize_address): Likewise.
9968 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9970 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9971 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9973 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
9975 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9976 address calculation.
9978 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
9980 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9981 scratch register to DImode / TImode.
9982 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9983 register used does not overlap the target.
9985 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9987 * Makefile.in (debug.o): Depend on debug.h.
9988 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9989 * debug.c (do_nothing_debug_hooks): Likewise.
9990 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9991 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9992 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9993 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9994 * dwarfout.c (dwarf_debug_hooks): Likewise.
9995 * integrate.c (output_inline_function): Likewise.
9996 * objc/objc-act.c (synth_module_prologue): Likewise.
9997 * sdbout.c (sdb_debug_hooks): Likewise.
9998 * toplev.c (debug_hooks): Likewise.
9999 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10001 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10003 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10004 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10005 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10006 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10007 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10008 * defaults.h (POINTER_SIZE): Define.
10009 * doc/tm.texi (POINTER_SIZE): Document default.
10011 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10013 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10015 2002-03-11 Richard Henderson <rth@redhat.com>
10017 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10018 if rebuild_label_notes_after_reload.
10020 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
10022 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
10023 emit pic register load if "internal" visibility.
10024 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10025 (cris_expand_builtin_va_arg): Do all computations on trees.
10027 2002-03-11 Richard Henderson <rth@redhat.com>
10029 * rtlanal.c: Include recog.h.
10030 (keep_with_call_p): Fix thinko.
10031 * Makefile.in (rtlanal.o): Update dependencies.
10033 2002-03-11 Chris Meyer <cmeyer@gatan.com>
10035 * genflags.c (gen_insn): Use IS_VSPACE.
10036 * genoutput.c (output_insn_data): Likewise.
10037 (process_template): Likewise.
10039 2002-03-11 Richard Henderson <rth@redhat.com>
10041 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10043 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
10045 * Makefile.in: Update.
10046 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10047 Update documentation.
10048 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10049 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10051 2002-03-11 Zack Weinberg <zack@codesourcery.com>
10053 * Makefile.in: Give texi2pod its input file as a command line
10054 argument, not on stdin.
10056 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
10057 Daniel Berlin <dan@dberlin.org>
10059 C++ alias analysis improvement.
10060 * alias.c (record_component_aliases): Record aliases for base
10063 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10065 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10067 2002-03-11 Douglas B Rupp <rupp@gnat.com>
10069 * toplev.c (vms_fopen): Remove, not needed.
10071 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10073 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10075 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10076 for FP, already done later.
10078 * toplev.c (debug_args): Add entry for VMS_DEBUG.
10079 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10081 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
10083 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10084 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10085 LARGEST_EXPONENT_IS_NORMAL for the given mode.
10086 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10087 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10088 (ediv, emul, eldexp, esqrt): Likewise.
10089 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10090 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10091 (saturate): New function.
10092 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10093 (make_nan): Use a saturation value instead of a NaN if
10094 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
10095 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10096 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
10097 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
10098 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10099 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10100 !ROUND_TOWARDS_ZERO.
10101 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10102 (ROUND_TOWARDS_ZERO): Document.
10104 2002-03-11 Andreas Jaeger <aj@suse.de>
10106 * cfg.c (dump_flow_info): Remove unused variable.
10108 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
10110 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10111 computations on trees.
10113 2002-03-10 Richard Henderson <rth@redhat.com>
10116 * reload.c (copy_replacements_1): New.
10117 (copy_replacements): Use it to recurse through the rtx.
10119 2002-03-10 Richard Henderson <rth@redhat.com>
10121 * loop.c (strength_reduce): Compute number of iterations as
10122 unsigned HOST_WIDE_INT.
10124 2002-03-10 Richard Henderson <rth@redhat.com>
10126 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10127 to move away from the end of the block.
10129 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
10131 PR preprocessor/5899
10132 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10134 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10136 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10138 * attribs.c (decl_attributes): Fix signed/unsigned warning.
10140 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
10142 * config/mmix/mmix.c: Improve comments.
10143 (mmix_target_asm_function_prologue): Drop variable
10144 empty_stack_frame. Don't allocate unused slot above fp.
10145 (mmix_target_asm_function_epilogue): Mirror prologue changes.
10146 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10147 brace in first column.
10148 (enum reg_class): Ditto.
10149 (FIRST_PARM_OFFSET): Now 0.
10150 (USER_LABEL_PREFIX): Remove #if 0:d definition.
10152 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10154 * combine.c (make_extraction): Fix error in last change.
10156 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10158 * c4x.c (c4x_fp_reglist): Const-ify.
10159 * cris.c (cris_print_operand): Likewise.
10160 * i386.c (ix86_va_arg): Likewise.
10161 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10162 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10163 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10164 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10165 * mcore.h (regno_reg_class): Likewise.
10166 * mips.c (gen_int_relational): Likewise.
10167 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10168 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10169 * pdp11.c (move_costs): Likewise.
10170 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10171 * s390.c (s390_branch_condition_mnemonic, regclass_map):
10173 * s390.h (regclass_map): Likewise.
10174 * sh.c (shift_amounts): Likewise.
10175 * sh.md (rotlsi3): Likewise.
10177 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10179 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10180 (ne0+5): Use new clobber to generate proper shift pattern.
10181 Patch by Michael Matz <matz@kde.org>.
10183 2002-03-09 Andreas Schwab <schwab@suse.de>
10185 * gcc.c (validate_all_switches): Also handle `%W{...}'.
10187 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
10189 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10191 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10194 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10195 even for non-representable constants.
10197 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10199 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10200 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10201 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10202 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10203 (pop_function_context): Compute MAY_SHARE parameter for
10205 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10206 (gen_mem_addressof): Call fixup_var_refs with new parm.
10208 * combine.c (make_extraction): Don't make extension of CONST_INT.
10210 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10212 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10213 in o32 and o64 ABIs.
10214 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10215 but getting fixed-size structs passed in registers regardless of
10216 padding in o32 and o64 ABIs.
10218 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10219 offset before loading address of argument passed by transparent
10222 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10224 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10226 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
10228 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10229 marker such that registers after it are saved.
10231 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10233 * sparc.c (arith_4096_operand): Fix error in last change.
10235 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10237 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10238 defaults for MEABI.
10240 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10242 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10245 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
10247 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10249 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
10251 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10252 removed; fix return value.
10253 * combine.c (combine_instructions): Dirtify blocks where we failed to
10254 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10255 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10257 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10259 * gcse.c (insert_insn_end_bb): Fix typo in last change.
10261 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
10263 * recog.c (peephole2_optimize): Re-distribute EH edges.
10265 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
10267 * expr.c (expand_expr): Use unsave lang hook.
10268 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10269 (LANG_HOOKS_INITIALIZER): Update.
10270 * langhooks.h (struct lang_hooks): New hook unsave.
10271 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10272 (unsave_expr_1): Remove unused lang_unsave_expr_now.
10273 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
10274 (unsave_expr_now): Remove.
10275 * tree.h (unsave_expr_now, lang_unsave,
10276 lang_unsave_expr_now): Remove.
10279 2002-03-08 Andreas Jaeger <aj@suse.de>
10281 * flow.c (propagate_block_delete_insn): Remove unused variable.
10283 2002-03-08 Kazu Hirata <kazu@hxi.com>
10285 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10286 insn length for memory load/store.
10288 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
10290 * doc/install.texi (--with-libiconv-prefix): Document.
10292 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
10294 * doc/sourcebuild.texi: Fix typo.
10296 2002-03-08 Jakub Jelinek <jakub@redhat.com>
10299 * builtins.c (std_expand_builtin_va_arg): Do all computations on
10302 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10304 * rtl.c (copy_most_rtx): Move from here ...
10305 * emit-rtl.c (copy_most_rtx): ... to here.
10307 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
10309 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10310 SUBTARGET_CPP_SIZE_SPEC.
10311 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10313 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10315 2002-03-07 Matt Hiller <hiller@redhat.com>
10317 * gensupport.c (first_dir_md_include): Renamed from include;
10318 change all references.
10319 (last_dir_md_include): Renamed from last_include; change all
10321 (init_md_reader): Unconditionally initialize base_dir whether or
10322 not filename is a relative path.
10324 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
10326 * config/fp-bit.c (_unord_f2): Compile it in even if
10327 US_SOFTWARE_GOFAST is enabled.
10329 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10330 NULL_RTX. Set all HFmode operations as NULL_RTX.
10331 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10332 NULL_RTX, try reversing the comparison and the operands.
10334 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10336 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10337 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10340 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
10342 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10344 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10346 * basic-block.h (fixup_abnormal_edges): Declare.
10347 * reload1.c (fixup_abnormal_edges): New function.
10348 * reg-stack.c (convert_regs): Use it.
10350 * gcse.c (insert_insn_end_bb): Handle trapping insns.
10352 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10354 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
10356 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10357 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10358 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10359 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10360 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10361 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10362 unless x and y could be infinite.
10363 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10364 Check that the common type of both arguments is a real, even for
10365 targets without unordered comparisons. Allow an integer argument
10366 to be compared against a real.
10367 (expand_tree_builtin): Use expand_unordered_cmp.
10368 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10369 * cse.c (fold_rtx): Likewise. Fix indentation.
10370 * fold-const.c (fold_real_zero_addition_p): New.
10371 (fold): Use it, and the new HONOR_... macros.
10372 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10373 * jump.c (reversed_comparison_code_parts): After searching for
10374 the true comparison mode, use HONOR_NANS to decide whether it
10375 can be safely reversed.
10376 (reverse_condition_maybe_unordered): Remove IEEE check.
10377 * simplify-rtx.c (simplify_binary_operation): Use the new macros
10378 to decide which simplifications are valid. Allow the following
10379 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10380 and (a - -b) to (a + b).
10381 (simplify_relational_operation): Use HONOR_NANS.
10382 * doc/tm.texi: Document the MODE_HAS_... macros.
10384 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10386 * combine.c (simplify_comparison): If simplifying a logical shift
10387 right and compare with constant, force the comparison to unsigned.
10389 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
10391 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10393 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10395 (alt_reg_names): Remove % for vrsave.
10397 2002-03-06 Richard Henderson <rth@redhat.com>
10399 PR optimization/5844
10400 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
10401 if used indicates we've already emitted one copy of an operand.
10402 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10403 (gen_split): Supply a non-null used.
10405 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10407 * reload1.c (reload): Unshare all rtl after reload is done.
10409 * simplify-rtx.c (simplify_plus_minus): Do not abort,
10410 but simply fail if the expression is too complex to simplify.
10411 (simplify_gen_binary): Handle simplify_plus_minus failures.
10413 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
10415 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10416 consistently call delete_trivially_dead_insns after CSE and GCSE;
10417 fix DFI_life dumping; do jump threading after liveness; do crossjumping
10418 after liveness2; update comment in last crossjumping.
10419 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10421 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
10423 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10424 after completing fast dead code elimination.
10426 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10429 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
10431 * version.c: Fix misplaced leading blanks on first line.
10433 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
10435 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10437 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
10439 * cfgcleanup.c (mentions_nonequal_regs): New function.
10440 (thread_jump): Use it.
10441 * toplev.c (rest_of_compilation): Run jump threading after
10444 2002-03-06 Jakub Jelinek <jakub@redhat.com>
10446 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10449 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
10451 * predict.c (estimate_bb_frequencies): Do not reload the
10452 frequencies from notes.
10454 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
10456 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10457 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10459 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10460 delete_noop_moves): Return indeger.
10461 * flow.c (ndead): New variable.
10462 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10463 BB argument; update callers.
10464 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10465 (life_analysis): Do not call purge_all_dead_edges.
10466 (update_life_info): Return number of deleted insns; print statistics.
10467 (update_life_info_in_dirty_blocks): likewise.
10468 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10469 return number of insns deleted.
10471 * cse.c: Include timevar.h
10472 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10473 iterate until stabilizes; print statistics; return number of killed
10475 * Makefile.in: (cse.o): Add timevar.h dependency
10476 * rtl.h (delete_trivially_dead_insns): New.
10477 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10478 * toplev.c (rest_of_compilation): Update callers.
10480 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10481 (try_optimize_cfg): Do not update liveness.
10482 (cleanup-cfg): Loop until try_optimize_cfg and dead code
10483 removal stabilizes; use delete_trivially_dead_insns.
10485 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10487 2002-03-05 Zack Weinberg <zack@codesourcery.com>
10489 * cppmain.c (setup_callbacks): Disable #pragma and #ident
10490 callbacks when processing assembly language.
10492 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
10494 * pa.h (ASM_FILE_END): Define.
10495 * som.h (ASM_FILE_END): Delete.
10497 * pa.c (function_arg): Don't pass floats in general registers in
10498 indirect calls if TARGET_ELF32.
10500 2002-03-05 Richard Henderson <rth@redhat.com>
10502 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10504 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
10506 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10508 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10510 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10511 -r command line. Don't hide any symbols if not building
10514 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
10516 * cfg.c (dump_flow_info): Warn about profile mismatches.
10517 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10518 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10520 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10522 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10523 wide volatile memory by parts.
10525 2002-03-05 Jakub Jelinek <jakub@redhat.com>
10527 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10530 2002-03-05 Richard Henderson <rth@redhat.com>
10532 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10534 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10536 * toplev.c (documented_lang_options): Document more
10537 language-specific options.
10538 * doc/invoke.texi (Warning Options): Correct documentation for
10539 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10540 * c-decl.c (c_decode_option): Use a table to handle warning options.
10542 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
10544 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10545 parameter to mmix_encode_section_info.
10546 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10547 relocatably. Always produce ELF, not mmo if linking relocatably.
10548 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10549 first is non-zero, don't add symbol prefix.
10550 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10551 prototype accordingly.
10553 2002-03-04 Krister Walfridsson <cato@df.lth.se>
10555 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10557 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
10559 * configure.in: Increase required makeinfo version to 4.1.
10560 * configure: Regenerate.
10562 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
10564 * .cvsignore: Remove *.info* and genrtl*; these files are generated
10567 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
10569 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10570 * doc/invoke.texi: Fix @math uses.
10572 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
10574 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10577 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
10579 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10580 (powerpc-*-eabisimaltivec*): Same.
10582 * config/rs6000/t-ppcendian: New.
10584 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10586 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10587 nonimmediate_src_operand and nonimmediate_lsrc_operand to
10588 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10590 2002-03-03 Richard Henderson <rth@redhat.com>
10592 * toplev.c (rest_of_decl_compilation): Revert last two changes.
10594 2002-03-03 Zack Weinberg <zack@codesourcery.com>
10596 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10597 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10598 tree.c, config/m68k/m68k.c:
10599 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10600 REAL_ARITHMETIC blocks unconditional. Delete some further
10601 #ifdef blocks predicated on REAL_ARITHMETIC.
10602 * flags.h, toplev.c: Delete remaining references to
10603 flag_pretend_float.
10605 * doc/invoke.texi: Remove documentation of -fpretend-float.
10606 * doc/tm.texi: Describe the various REAL_* macros as provided by
10607 real.h, not by the target configuration files.
10609 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10610 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10611 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10612 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10613 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10614 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10615 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10616 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10617 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10618 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10619 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10620 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10621 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10622 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10623 config/xtensa/xtensa.h:
10624 Do not define, undefine, or mention in comments any of
10625 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10626 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10627 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10628 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10629 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10630 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10631 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10632 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10633 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10635 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10637 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10638 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10639 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10640 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10641 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10642 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10644 * defaults.h (BITS_PER_WORD): Define.
10645 * doc/tm.texi (BITS_PER_WORD): Document default value.
10647 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10648 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10649 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10651 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10653 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10654 lieu of explicit sizeof/sizeof.
10655 * i386.c (override_options, ix86_init_mmx_sse_builtins,
10656 ix86_expand_builtin): Likewise.
10657 * mips.c (mips_add_gc_roots): Likewise.
10658 * mmix.c (mmix_output_condition): Likewise.
10659 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10660 altivec_init_builtins): Likewise.
10661 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10662 * cppexp.c (Nsuff, parse_number): Likewise.
10663 * cppinit.c (builtin_array_end): Likewise.
10664 * gcc.c (n_default_compilers, process_command): Likewise.
10665 * genpreds.c (output_predicate_decls): Likewise.
10666 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10667 * lcm.c (N_ENTITIES): Likewise.
10668 * stor-layout.c (set_sizetype): Likewise.
10670 2002-03-03 Richard Henderson <rth@redhat.com>
10672 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10673 for types or labels.
10675 2002-03-03 Richard Henderson <rth@redhat.com>
10677 * c-decl.c (start_decl): Initialized variables are not common.
10679 2002-03-02 Per Bothner <per@bothner.com>
10681 * gcc.c (option_map): Suport new --bootclasspath option.
10682 --CLASSPATH is now just an alias for --classpath.
10684 2002-03-02 Richard Henderson <rth@redhat.com>
10686 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10687 load if "internal" visibility.
10688 * doc/extend.texi: Document visibility meanings.
10690 2002-03-02 Richard Henderson <rth@redhat.com>
10692 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10693 to functions as well.
10695 2002-03-02 Richard Henderson <rth@redhat.com>
10697 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10698 (handle_visibility_attribute): Don't call assemble_visibility.
10699 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10700 without asmspec. Invoke assemble_alias when needed.
10701 * varasm.c (maybe_assemble_visibility): New.
10702 (assemble_start_function, assemble_variable, assemble_alias): Use it.
10704 2002-03-02 Richard Henderson <rth@redhat.com>
10706 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10707 invoke ENCODE_SECTION_INFO with first call flag.
10709 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10710 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10711 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10712 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10713 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10714 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10715 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10716 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10717 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10718 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10719 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10720 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10721 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10722 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10723 config/mcore/mcore-protos.h, config/mcore/mcore.c,
10724 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10725 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10726 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10727 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10728 config/sh/sh.h, config/sparc/sparc.h,
10729 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10730 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10731 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10732 FIRST argument. As needed, examine it and do nothing.
10734 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10735 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10736 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10738 * config/arm/t-pe (pe.o): Add dependencies.
10740 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10742 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10743 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10744 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10745 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10746 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10747 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10748 * defaults.h (BITS_PER_UNIT): Define.
10749 * doc/tm.texi (BITS_PER_UNIT): Document default value.
10751 2002-03-02 Kazu Hirata <kazu@hxi.com>
10753 * config/h8300/h8300-protos.h: Add a prototype for
10754 compute_a_shift_length.
10755 * config/h8300/h8300.c (h8300_asm_insn_count): New.
10756 (compute_a_shift_length): Likewise.
10757 (h8300_adjust_insn_length): Do not adjust insn length of shift
10759 * config/h8300/h8300.md (anonymous shift patterns): Use
10760 compute_a_shift_length.
10762 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10764 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10765 trunc_int_for_mode.
10767 * emit-rtl.c (offset_address): Call update_temp_slot_address.
10769 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10771 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10772 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10773 * flags.h (flag_zero_initialized_in_bss): Declare.
10774 * toplev.c (flag_zero_initialized_in_bss): New flag.
10775 (lang_independent_options): Add flag_zero_initialized_in_bss.
10776 * tree.c (initializer_zerop): New function.
10777 * tree.h (initializer_zerop): Declare.
10778 * varasm.c (assemble_variable): If we can emit bss, put zero
10779 initializers in the bss section.
10781 2002-03-02 Alan Modra <amodra@bigpond.net.au>
10783 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10784 like more than one symbol per .weak directive.
10786 2002-03-01 Richard Henderson <rth@redhat.com>
10788 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10789 adjust argument_pointer by pretend_args_size.
10790 (ia64_va_start): Adjust va_start address by -pretend_args_size.
10792 2002-03-01 Kazu Hirata <kazu@hxi.com>
10794 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10796 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
10798 * toplev.c (rest_of_compilation): Delete dead jumptables before
10800 * flow.c (delete_dead_jumptables): Make global.
10801 * rtl.h (delete_dead_jumptables): Declare.
10803 2002-03-01 David Edelsohn <edelsohn@gnu.org>
10805 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10806 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10807 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10809 2002-03-01 Kazu Hirata <kazu@hxi.com>
10811 * config/h8300/h8300-protos.h: Fix formatting.
10812 * config/h8300/h8300.c: Likewise.
10813 * config/h8300/h8300.h: Likewise.
10815 2002-03-01 Kazu Hirata <kazu@hxi.com>
10817 * config/h8300/h8300.c (print_operand): Support 16-bit
10818 constant addresses.
10819 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10821 2002-02-28 Richard Henderson <rth@redhat.com>
10823 * expmed.c (store_bit_field): Prevent generation of CONCATs;
10824 pun complex values as integers; use gen_lowpart instead of
10826 (extract_bit_field): Likewise.
10828 2002-03-01 Alan Modra <amodra@bigpond.net.au>
10829 David Edelsohn <edelsohn@gnu.org>
10831 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10832 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10833 (SUPPORTS_WEAK): Likewise.
10834 * output.h (add_weak): Add tree param.
10835 * varasm.c (add_weak): Likewise. Save decl.
10836 (struct weak_syms): Add decl field.
10837 (mark_weak_decls): New function.
10838 (init_varasm_once): ggc_add_root mark_weak_decls.
10839 (assemble_start_function): Use ASM_WEAKEN_DECL.
10840 (assemble_variable): Likewise.
10841 (assemble_alias): Likewise.
10842 (declare_weak): Pass decl to add_weak.
10843 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10844 (remove_from_pending_weak_list): Declare and define for
10846 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10847 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10848 * defaults.h (SUPPORTS_WEAK): Likewise.
10849 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10850 .weak for code sym. Do emit .size for descriptor sym.
10851 (ASM_DECLARE_FUNCTION_SIZE): Define.
10852 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10853 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
10854 .lglobl unless TARGET_XCOFF. Formatting fixes.
10855 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10856 .weak for code sym.
10857 (HANDLE_PRAGMA_WEAK): Remove.
10858 (ASM_WEAKEN_LABEL): Remove.
10859 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10861 2002-03-01 Jason Merrill <jason@redhat.com>
10863 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10864 (TARGET_EXPR_CLEANUP): New macro.
10866 2002-02-28 Steve Ellcey <sje@cup.hp.com>
10868 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10869 to take ptr_extend into account as third type of extension.
10870 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10871 fields used by SUBREG_PROMOTED_UNSIGNED_P.
10872 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10873 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10874 * calls.c (precompute_arguments): Use new macro.
10875 (expand_call): Ditto.
10876 * combine.c (nonzero_bits): Ditto.
10877 (record_promoted_value): Ditto.
10878 * expr.c (store_expr): Ditto.
10879 (expand_expr): Ditto.
10880 * function.c (assign_parms): Ditto.
10882 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
10884 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10885 override -shared and -shared-libgcc.
10887 2002-02-28 David O'Brien <obrien@FreeBSD.org>
10889 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10891 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
10894 2002-02-28 Richard Henderson <rth@redhat.com>
10896 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10897 4 cycle latency from MM producers.
10898 (ia64_internal_sched_reorder): Likewise with pipeline flush.
10900 2002-02-28 Jakub Jelinek <jakub@redhat.com>
10902 * mklibgcc.in: Don't use GNU make extension.
10904 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10906 * c-parse.in (STATIC): New terminal.
10907 (scspec): New non-terminal. Update productions accordingly.
10908 (program): Remove bogus ifc / end ifc.
10909 (array_declarator): Simplify production using STATIC.
10911 2002-02-28 Jim Meyering <meyering@lucent.com>
10913 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10914 \a still means TARGET_BELL.
10916 2002-02-28 Richard Henderson <rth@redhat.com>
10918 * haifa-sched.c (sched_emit_insn): New.
10919 (schedule_block): Use last_scheduled_insn to track last insn.
10920 * sched-int.h (sched_emit_insn): Prototype.
10921 * config/ia64/ia64.c (last_issued): Remove.
10922 (ia64_variable_issue): Don't set it.
10923 (nop_cycles_until): Use sched_emit_insn.
10925 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
10927 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10928 extended constants.
10930 2002-02-28 Kazu Hirata <kazu@hxi.com>
10932 * config/h8300/h8300.c: Fix formatting.
10933 * config/h8300/h8300.h: Likewise.
10935 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
10937 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10938 which may overwrite the high byte of the frame pointer.
10940 2002-02-28 Bo Thorsen <bo@suse.de>
10942 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10943 (STARTFILE_SPEC): Add 64 bit files.
10944 (ENDFILE_SPEC): Likewise.
10946 2002-02-28 Jason Merrill <jason@redhat.com>
10948 * c-decl.c (finish_function): Only warn about missing return
10949 statement with -Wreturn-type.
10951 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
10953 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10955 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10956 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10958 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
10960 * basic-block.h (BB_REACHABLE): Renumber.
10961 (BB_DIRTY, BB_NEW): New flags.
10962 (clear_bb_flags): Declare.
10963 (update_life_info_in_dirty_blocks): Declare.
10964 * cfg.c (clear_bb_flags): New function.
10965 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10966 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10967 reorder_insns, emit_insn_after): Mark block as dirty.
10968 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10969 (update_life_info_in_dirty_blocks): New function.
10970 * recog.c (apply_change_group): Dirtify block.
10972 * cse.c (cse_insn): Reorder emitting of jump insn to keep
10974 * gcse.c (delete_null_pointer_checks): Likewise.
10976 * toplev.c (dump_file_index): Move cse2 after bp,
10978 (dump_file_info): Similary.
10979 (rest_of_compilation): Avoid most of CFG rebuilds;
10980 do first if converision after null pointer checks, do cse2
10981 after branch prediction; avoid full liveness rebuild after
10982 initializing subregs.
10983 * invoke.texi (-d options): Document -du, renumber.
10985 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10986 (notice_new_block): Do not set BB_UPDATE_LIFE.
10987 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10988 merge_blocks_move_successor_nojumps, merge_blocks,
10989 try_crossjump_to_edge): Likewise.
10990 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10991 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10992 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10993 (merge_of_block): Do not use life_data_ok.
10994 (find_if_case_1): Do not use SET_UPDATE_LIFE.
10995 (if_convert): Use BB_DIRTY mechanizm to update life.
10996 * lcm.c (optimize_mode_switching): Update
10997 update_life_info_in_dirty_blocks
10999 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11001 * Makefile.in (integrate.o): Update.
11002 * c-decl.c (copy_lang_decl): Rename.
11003 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11004 * integrate.c: Include langhooks.h.
11005 (copy_decl_for_inlining): Update to use langhook.
11006 * langhooks-def.h (lhd_do_nothing_t,
11007 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11008 (LANG_HOOKS_INITIALIZER): Update.
11009 * langhooks.c (lhd_do_nothing_t): New.
11010 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11011 * tree.h (copy_lang_decl): Remove.
11013 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11015 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
11017 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11018 POST_DEC, and POST_MODIFY.
11020 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11022 * c-typeck.c (digest_init): Remove unused parameter; all
11025 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
11027 * expmed.c (expand_shift): Correctly test for low part of a
11030 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
11032 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11033 insn UIDs with insn addresses.
11035 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11037 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11038 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11039 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11040 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11041 gcc.c, toplev.c: Delete code implementing -traditional mode.
11043 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11044 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11045 Document removal of -traditional mode for compilation, and
11046 remove documentation only relevant to that mode.
11048 * config/nextstep.h, config/ptx4.h, config/svr4.h,
11049 config/convex/convex.h, config/d30v/d30v.h,
11050 config/i386/dgux.h, config/i386/osf1elf.h,
11051 config/i386/osfelf.h, config/i386/osfrose.h,
11052 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11053 config/m68k/hp310.h, config/m88k/dgux.h,
11054 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11055 config/m88k/m88k.h, config/m88k/openbsd.h,
11056 config/mips/abi64.h, config/mips/osfrose.h,
11057 config/mips/svr4-5.h, config/mips/svr4-t.h,
11058 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11059 config/stormy16/stormy16.h: Remove all references to
11060 -traditional from target specs. Delete all mention of the
11061 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
11062 delete a couple of commented-out definitions of
11063 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11066 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11067 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11069 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11071 * mklibgcc.in: Don't use \n in a line subject to
11072 interpretation by echo.
11074 2002-02-27 Graham Stott <grahams@redhat.com>
11076 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11079 * loop.c (prescan_loop): Handle PARALLEL.
11081 * unroll.c (loop_iterations): Return 0 if the add_val for
11084 * final.c (output_operand_lossage): Constify PFX_STR.
11086 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11088 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
11090 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11091 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11093 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
11095 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11097 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
11099 * cpplex.c (_cpp_lex_token): Handle directives in macro
11101 * cpplib.c (_cpp_handle_directive): Save and restore state
11102 if parsing macro args when entering a directive.
11103 * cppmacro.c (collect_args): No need to handle directives
11104 in macro arguments.
11105 (enter_macro_context, replace_args): Use the original macro
11106 definition in case it was redefined whilst collecting arguments.
11108 * cpp.texi: Update.
11110 2002-02-26 David Edelsohn <edelsohn@gnu.org>
11112 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11113 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11114 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11116 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11117 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11118 (load_toc_v4_PIC_2): Same.
11120 2002-02-26 Alan Modra <amodra@bigpond.net.au>
11122 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11124 2002-02-26 Richard Henderson <rth@redhat.com>
11126 * config/alpha/alpha.md (ashldi_se): Re-enable.
11128 2002-02-26 Richard Henderson <rth@redhat.com>
11130 * config/alpha/alpha.c (alpha_encode_section_info): Examine
11131 MODULE_LOCAL_P; improve commentary.
11133 2002-02-26 Zack Weinberg <zack@codesourcery.com>
11135 * doc/cpp.texi: Clarify documentation of relationship between
11136 #line and #include.
11138 2002-02-26 Kazu Hirata <kazu@hxi.com>
11140 * config/h8300/h8300-protos.h: Update the prototype for
11141 compute_logical_op_length. Add the prototype for
11142 compute_logical_op_cc.
11143 * config/h8300/h8300.c (compute_logical_op_length): Figure out
11144 code from operands.
11145 (compute_logical_op_cc): New.
11146 * config/h8300/h8300.md: Combine all the logical op patterns
11147 in HImode and SImode. Use compute_logical_op_cc.
11149 2002-02-26 Kelley Cook <kelleycook@comcast.net>
11151 * config/i386/i386.c (print_operand): Don't append ATT-style
11152 length suffixs to x87 opcodes when in Intel mode.
11154 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
11156 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11157 (init_emit_once): Update calls.
11158 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11159 (init_syntax_once): Prototype.
11161 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
11163 * pa-linux.h (LIB_SPEC): Update definition.
11164 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11166 2002-02-26 Richard Henderson <rth@redhat.com>
11168 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11169 if we emitted a stop bit.
11171 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11173 * configure.in (libgcc_visibility): Substitute.
11174 * configure: Rebuilt.
11175 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11176 defined symbols .hidden.
11178 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11180 * attribs.c (c_common_attribute_table): Add visibility.
11181 (handle_visibility_attribute): New function.
11182 * varasm.c (assemble_visibility): New function.
11183 * output.h (assemble_visibility): Add prototype.
11184 * tree.h (MODULE_LOCAL_P): Define.
11185 * crtstuff.c (__dso_handle): Use visibility attribute.
11186 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11187 for MODULE_LOCAL_P symbols too.
11188 * config/ia64/ia64.c (ia64_encode_section_info): Handle
11189 MODULE_LOCAL_P symbols the same way as local symbols.
11190 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11191 into .sdata/.sbss by the user.
11192 * doc/extend.texi (Function Attributes): Document visibility
11195 2002-02-26 Jakub Jelinek <jakub@redhat.com>
11198 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11199 STRING_CST initializer spanning the whole variable without
11201 If expand_expr returned MEM, don't use it.
11203 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
11205 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11206 generate a die for the lexical block.
11208 2002-02-26 Kazu Hirata <kazu@hxi.com>
11210 * config/h8300/h8300-protos.h: Add a prototype for
11211 compute_logical_op_length.
11212 * config/h8300/h8300.c (compute_logical_op_length): New.
11213 * config/h8300/h8300.md (anonymous logical patterns): Use
11214 compute_logical_op_length for length.
11216 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11218 * dwarf2out.c (modified_type_die): Do not call type_main_variant
11220 (gen_type_die): Same.
11222 * attribs.c (handle_vector_size_attribute): Set debug information.
11224 2002-02-26 Daniel Egger <degger@fhm.edu>
11226 * config/rs6000/rs6000.md: Swap define_insn attributes to
11227 fix incorrect generation of merge high instructions instead
11230 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11232 * c-typeck.c (really_start_incremental_init): Use
11233 bitsize_zero_node for vectors.
11235 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11237 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11238 ("*set_vrsave_internal"): Same.
11240 2002-02-25 Richard Henderson <rth@redhat.com>
11242 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11243 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
11245 2002-02-25 Jakub Jelinek <jakub@redhat.com>
11248 * config/i386/i386.c (ix86_return_pops_args): Only pop
11249 fake structure return argument if it was passed on the stack.
11251 2002-02-25 Jason Merrill <jason@redhat.com>
11253 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11256 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11258 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11259 link with shared_name only.
11260 * doc/invoke.texi (Link Options): Document new behavior.
11262 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11264 * c-typeck.c (push_init_level): Handle vectors.
11266 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
11268 * config/sparc/sparc.c (const64_high_operand): Zero-extend
11269 operands of SPARC_SETHI_P.
11270 (input_operand): Likewise.
11271 (sparc_emit_set_const32): Likewise.
11272 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11273 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11274 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
11275 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11276 (movdi_insn_sp64_vis): Likewise.
11277 (movdi split, movdf split): Use SETHI32.
11278 * doc/md.texi: Document SPARC constraints L, M and N.
11280 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
11282 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11283 ("*set_vrsave_internal"): use mfspr for Darwin.
11285 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11286 gen_get_vrsave_internal.
11288 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11290 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11292 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
11294 * cpplex.c (cpp_interpret_charconst): Get signedness or
11295 otherwise of wide character constants correct.
11296 * cppexp.c (lex): Get signedness of wide charconsts correct.
11298 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11300 * optabs.c (widen_operand): Only call convert_modes for
11301 promoted SUBREG if signedness matches.
11302 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11304 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11306 * cpplib.c (glue_header_name): Use local buffer to build up
11309 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11311 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11313 2002-02-23 Kazu Hirata <kazu@hxi.com>
11315 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11316 H8/300[HS] separately.
11317 * config/h8300/h8300.md: Remove the early clobber constraint
11318 from bit field patterns.
11320 2002-02-23 Kazu Hirata <kazu@hxi.com>
11322 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11324 (mulhisi3): Likewise.
11325 (umulqisi3): Likewise.
11326 (umulhisi3): Likewise.
11328 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
11330 * cppinit.c (output_deps): Correct test for stdout output.
11331 (init_dependency_output): Cure warning.
11333 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11335 * expr.c (store_expr): When converting expression to promoted
11336 equivalent type, allow using SUBREG_REG of TARGET as the target
11337 of the expansion of EXP.
11338 * loop.c (basic_induction_var, case SUBREG): Always look inside.
11339 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11340 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11341 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11342 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11344 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
11346 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11347 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11348 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11350 2002-02-23 Jakub Jelinek <jakub@redhat.com>
11352 PR optimization/5747
11353 * loop.c (scan_loop): Update reg info if move_movables created new
11356 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11358 * gcc.c (init_gcc_spec): Revert last change.
11360 2002-02-23 David Edelsohn <edelsohn@gnu.org>
11362 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11363 gpc_reg_operand constraint.
11365 2002-02-23 Alan Modra <amodra@bigpond.net.au>
11367 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11368 Simplify comparison of `low'.
11369 (add_operand): Fix formatting.
11370 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11371 (mask_operand): Disallow mask to wrap in 64-bit mode.
11372 (rs6000_stack_info): Remove redundant test setting push_p.
11373 (output_toc): Fix formatting.
11374 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11375 cc_reg_not_cr0_operand constraint.
11376 (booldi3, boolcdi3 splitters): Same.
11378 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
11380 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11382 2002-02-22 David Edelsohn <edelsohn@gnu.org>
11384 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11385 gcc invoked with -shared-libgcc.
11387 2002-02-22 Jakub Jelinek <jakub@redhat.com>
11390 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11391 decl if any of elements was TREE_USED.
11393 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
11395 * config/sparc/sol2.h: Don't include sys/mman.h.
11396 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11397 (arith_4096_operand): Don't throw high bits away.
11398 (const64_operand): Take sign extension of CONST_INTs into account.
11399 (const64_high_operand, sparc_emit_set_const32): Likewise.
11400 (GEN_HIGHINT64): Likewise.
11401 (sparc_emit_set_const64_quick1): Likewise.
11402 (const64_is_2insns): Likewise.
11403 (print_operand): Use trunc_int_for_mode for sign extension.
11404 * config/sparc/sparc.h (SMALL_INT32): Likewise.
11405 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11406 chars. Assume CONST_INT is already properly sign-extended.
11407 (movdi split): Sign-extend each SImode part.
11408 (andsi3 split): Don't mask high bits off, so that result
11409 remains properly sign-extend.
11410 (iorsi3 split): Likewise.
11411 (xorsi3 split): Likewise.
11413 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
11415 * fold-const.c (fold): Fix typo in comments.
11417 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11419 * Makefile.in (langhooks.o): Update dependencies.
11421 2002-02-21 Diego Novillo <dnovillo@redhat.com>
11423 * langhooks.c: Include flags.h.
11425 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
11427 * testsuite/gcc.dg/attr-alwaysinline.c: New.
11429 * c-common.c (c_common_post_options): Set inline trees by
11432 * doc/extend.texi (Function Attributes): Document always_inline
11434 Update documentation about inlining when not optimizing.
11436 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11438 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11439 unless DECL_ALWAYS_INLINE.
11441 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11442 unless DECL_ALWAYS_INLINE.
11443 (c_disregard_inline_limits): Disregard if always_inline set.
11445 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11446 Disregard if always_inline set.
11447 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11448 unless DECL_ALWAYS_INLINE.
11450 * attribs.c (handle_always_inline_attribute): New.
11451 (c_common_attribute_table): Add always_inline.
11453 * config/rs6000/altivec.h: Add prototypes for builtins
11454 requiring the always_inline attribute.
11456 2002-02-21 Eric Christopher <echristo@redhat.com>
11458 * expmed.c (store_bit_field): Try to simplify the subreg
11459 before generating a new one when when the mode size of
11460 value is less than maxmode.
11462 2002-02-21 Richard Henderson <rth@redhat.com>
11464 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11465 than gen_rtx_PLUS to form the sum.
11466 * explow.c (force_reg): Rearrange to not allocate new pseudo
11467 when force_operand returns a register.
11468 * expr.c (expand_assignment): Allow offset_rtx expansion to
11469 return a sum. Do not force addresses into registers.
11470 (expand_expr): Likewise.
11471 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11472 to canonicalize arithmetic that didn't simpify.
11473 (simplify_plus_minus): New argument force; update
11474 all callers. Don't split CONST unless we can do something with it,
11475 and wouldn't lose the constness of the operands.
11477 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11478 that we generated earlier.
11480 2002-02-21 Tom Tromey <tromey@redhat.com>
11482 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11483 (output_line_info): Use constant `1', with a long explanatory
11485 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11487 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
11489 * jump.c (redirect_jump): If old label has no UID, don't try to
11492 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
11494 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11495 If input is constant, do shifts at compile time.
11497 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
11499 * doc/extend.texi: Fix some more overfull hboxes.
11501 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11503 PR optimization/4994
11504 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11507 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11510 * expr.h (expand_and): Add mode argument.
11511 * expmed.c (expand_and): Add mode argument.
11512 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11513 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11514 * except.c (expand_builtin_extract_return_addr): Likewise.
11515 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11516 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11517 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11518 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11519 * config/c4x/c4x.md: Use GEN_INT (x) instead of
11520 gen_rtx (CONST_INT, VOIDmode, x).
11522 2002-02-21 Jakub Jelinek <jakub@redhat.com>
11525 * stmt.c (warn_if_unused_value): Move side effects test once more.
11527 2002-02-20 Torbjorn Granlund <tege@swox.com>
11529 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11530 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11532 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
11534 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11535 SUBREG or ZERO_EXTEND.
11537 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
11539 * sh.h (current_function_anonymous_args): Remove.
11540 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11541 of current_function_varargs and current_function_stdarg is set.
11542 * sh.c (sh_expand_prologue): Check current_function_varargs /
11543 current_function_stdarg / TARGET_SH5 instead of
11544 current_function_anonymous_args.
11546 * sh64.h (TARGET_VERSION): Define.
11548 2002-02-20 David Edelsohn <edelsohn@gnu.org>
11550 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11551 VRSAVE_REGNO on TARGET_ALTIVEC.
11553 2002-02-20 Alan Modra <amodra@bigpond.net.au>
11555 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11556 bits of SImode const_int.
11557 (includes_rshift_p): Likewise.
11558 (print_operand): Call mask_operand and mask64_operand with correct
11560 (rs6000_output_function_epilogue): Pad traceback table to word.
11561 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11562 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11563 mask64_operand with correct mode.
11564 (FUNCTION_ARG_REGNO_P): Correct parentheses.
11566 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11569 * varasm.c (get_pool_constant_mark): New.
11570 * rtl.h (get_pool_constant_mark): Add prototype.
11571 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11572 be represented if it has not been output.
11574 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11576 * combine.c (do_SUBST): Sanity check substitutions of
11577 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11578 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11579 CONST_INT into its operand.
11580 (known_cond): Likewise, for ZERO_EXTEND.
11581 * simplify-rtx.c (simplify_unary_operation): Fix condition to
11582 allow for simplification of wide modes. Reject CONST_INTs in
11583 ZERO_EXTEND when their actual mode is not given.
11585 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
11587 * c-decl.c (pushdecl): If no global declaration is found for an
11588 extern declaration in block scope, try a limbo one.
11590 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11593 * c-common.c (pointer_int_sum): Moved from...
11594 * c-typeck.c (pointer_int_sum): ...here.
11595 * c-common.h (pointer_int_sum): Add prototype.
11597 2002-02-20 Jakub Jelinek <jakub@redhat.com>
11600 * c-decl.c (duplicate_decls): Return 0 if issued error about
11603 2002-02-20 Roger Sayle <roger@eyesopen.com>
11604 Jakub Jelinek <jakub@redhat.com>
11607 * tree.c (host_integerp): Ensure that the constant integer is
11608 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11609 when pos is zero or non-zero respectively. Clarify comment.
11610 * c-format.c (check_format_info_recurse): Fix host_integerp
11611 usage; the pos argument should be zero when assigning to a
11612 signed HOST_WIDE_INT.
11614 2002-02-20 Richard Henderson <rth@redhat.com>
11616 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11617 of the operand, rather than assuming TImode.
11618 (ix86_expand_binop_builtin): Cope with commutative patterns
11619 using nonimmediate_operand for both operands.
11620 (ix86_expand_timode_binop_builtin): Likewise.
11621 (ix86_expand_store_builtin): Validate operand 1.
11622 (ix86_expand_unop1_builtin): Likewise.
11624 2002-02-20 Philip Blundell <philb@gnu.org>
11627 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11629 2002-02-20 Richard Henderson <rth@redhat.com>
11632 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11634 2002-02-20 Tom Tromey <tromey@redhat.com>
11636 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11637 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11638 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11639 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11640 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11643 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11645 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11646 for (const_int 0) in X not just INTVAL.
11648 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
11650 * doc/extend.texi: Avoid or reduce overfull hboxes.
11652 2002-02-20 Diego Novillo <dnovillo@redhat.com>
11654 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11655 operations if the field does not start at a mode boundary.
11657 2001-02-20 Joel Sherrill <joel@OARcorp.com>
11659 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11660 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11661 Also done for -Acpu and -Amachine.
11663 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
11665 * cppinit.c (init_dependency_output): Take deps output file
11666 from -o if none given with -MF. Suppress normal output.
11667 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11668 * doc/cpp.texi, doc/invoke.texi: Update.
11670 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11672 * toplev.c (output_quoted_string): Write unprintable
11673 characters with octal escapes.
11675 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11677 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11678 really_call_used[VRSAVE_REGNO] if not Altivec.
11680 2002-02-19 Alan Modra <amodra@bigpond.net.au>
11682 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11684 (constant_pool_expr_1): Fix formatting.
11685 (rs6000_legitimize_reload_address): Likewise.
11687 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11689 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11690 now that we have one.
11692 2002-02-19 Zack Weinberg <zack@codesourcery.com>
11694 * tree.h (struct tree_common): Remove aux. Add unused_0 at
11695 end of first block of bitfields (which was only seven bits);
11696 rename dummy to unused_1; remove comment which is no longer true.
11698 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11700 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11702 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11705 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11709 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11710 arm_is_longcall_p rather than inspecting call-type cookie
11712 (call_value_insn) [TARGET_THUMB]: Likewise.
11714 2002-02-19 Graham Stott <grahams@redhat.com>
11716 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11718 2002-02-19 David Edelsohn <edelsohn@gnu.org>
11720 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11721 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11722 (FP_SAVE_INLINE): Delete.
11724 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11725 * config/rs6000/eabi.asm: Remove ABI save restore routines.
11726 * config/rs6000/t-ppccomm: Build crtsavres.o.
11727 * config/rs6000/crtsavres.asm: New file.
11729 2002-02-19 Philip Blundell <philb@gnu.org>
11731 * config/arm/arm.c (use_return_insn): Don't reject interrupt
11733 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11734 (output_return_instruction): Allow interrupt functions to return with
11735 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
11736 (arm_expand_prologue): Subtract 4 before stacking LR in an
11737 interrupt function.
11739 2002-02-19 Philip Blundell <pb@nexus.co.uk>
11741 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11742 decl, not just FUNCTION_DECL.
11743 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11744 (arm_assemble_integer): Likewise.
11745 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11748 2002-02-19 matthew green <mrg@eterna.com.au>
11750 * config.gcc (sparc-*-netbsdelf*): Enable target.
11751 (sparc64-*-netbsd*): New target.
11752 * config/sparc/netbsd-elf.h: New file.
11753 * config/sparc/t-netbsd64: New file.
11755 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
11757 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11759 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
11761 * doc/invoke.texi: explicitly list the style guidelines that
11762 -Weffc++ checks for.
11764 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
11766 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11768 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
11771 * gcc.c (cpp_unique_options): Treat -o as indicating object file
11772 only if not -E. If -E, pass -o through to the preprocessor.
11774 2002-02-19 Kazu Hirata <kazu@hxi.com>
11776 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11777 register number with an appropriate macro.
11779 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11781 * doc/rtl.texi (Constants): Close @code tag.
11783 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
11785 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11786 ("mmx_uavgv4hi3"): Same.
11787 ("pmulhrwv4hi3"): Same.
11789 * tree-inline.c (walk_tree): Handle vectors.
11791 * c-common.c (constant_expression_warning): Handle vectors.
11792 (overflow_warning): Same.
11794 * sched-deps.c (sched_analyze_2): Handle vectors.
11796 * rtlanal.c (rtx_unstable_p): Handle vectors.
11797 (rtx_varies_p): Same.
11798 (count_occurrences): Same.
11799 (regs_set_between_p): Same.
11800 (modified_between_p): Same.
11801 (modified_in_p): Same.
11802 (volatile_insn_p): Same.
11803 (volatile_refs_p): Same.
11804 (side_effects_p): Same.
11805 (may_trap_p): Same.
11806 (inequality_comparisons_p): Same.
11807 (replace_regs): Same.
11808 (computed_jump_p_1): Same.
11810 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11812 (inner_mode_array): New.
11813 (copy_rtx): Handle vectors.
11814 (copy_most_rtx): Same.
11815 (rtx_equal_p): Same.
11816 (get_mode_alignment): Adjust for vectors.
11818 * resource.c (mark_referenced_resources): Handle vectors.
11819 (mark_set_resources): Same.
11821 * reload1.c (eliminate_regs): Handle vectors.
11822 (elimination_effects): Same.
11823 (scan_paradoxical_subregs): Same.
11825 * reload.c (subst_reg_equivs): Handle vectors.
11827 * regrename.c (scan_rtx): Handle vectors.
11829 * regclass.c (reg_scan_mark_refs): Handle vectors.
11831 * recog.c (find_single_use_1): Handle vectors.
11833 * local-alloc.c (equiv_init_varies_p): Handle vectors.
11834 (contains_replace_regs): Same.
11835 (memref_referenced_p): Same.
11837 * integrate.c (copy_rtx_and_substitute): Handle vectors.
11838 (subst_constants): Same.
11840 * genattrtab.c (attr_copy_rtx): Handle vectors.
11841 (encode_units_mask): Same.
11842 (clear_struct_flag): Same.
11843 (count_sub_rtxs): Same.
11845 * gcse.c (want_to_gcse_p): Handle vectors.
11846 (oprs_unchanged_p): Same.
11847 (hash_expr_1): Same.
11848 (oprs_not_set_p): Same.
11849 (expr_killed_p): Same.
11850 (compute_transp): Same.
11851 (store_ops_ok): Same.
11853 * function.c (purge_addressof_1): Do not allow paradoxical subregs
11855 (fixup_var_refs_1): Same.
11856 (instantiate_virtual_regs_1): Same.
11858 * fold-const.c (operand_equal_p): Handle vectors.
11860 (rtl_expr_nonnegative_p): Same.
11862 * flow.c (mark_used_regs): Handle vectors.
11864 * df.c (df_uses_record): Handle vectors.
11866 * cselib.c (cselib_subst_to_values): Handle vectors.
11867 (cselib_mem_conflict_p): Same.
11870 * cse.c (canon_reg): Handle vectors.
11872 (cse_process_notes): Same.
11873 (count_reg_usage): Same.
11874 (canon_hash): Same.
11876 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11878 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11880 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11881 (gen_rtx): Handle CONST_VECTOR.
11882 (gen_const_vector_0): New.
11883 (copy_rtx_if_shared): CONST_VECTORs can be shared.
11884 (reset_used_flags): Same.
11885 (copy_insn_1): Same.
11886 (initializer_constant_valid_p): Handle VECTOR_CST.
11888 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11890 * doc/rtl.texi (Constants): Document const_vector.
11891 (CONST0_RTX): Update for vectors.
11892 (RTL sharing): Same.
11894 * print-tree.c (print_node): Add case for VECTOR_CST.
11896 * tree.h (TREE_VECTOR_CST_ELTS): New.
11897 (struct tree_vector): New.
11898 (union tree_node): Add vector node.
11899 (build_vector): Add prototype.
11901 * tree.def (VECTOR_CST): New.
11903 * tree.c (build_vector): New.
11905 * expmed.c (make_tree): Handle CONST_VECTOR.
11907 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11908 (CONST_VECTOR_ELT): New.
11909 (CONST_VECTOR_NUNITS): New.
11911 * machmode.h (GET_MODE_INNER): New.
11912 (DEF_MACHMODE): Accept 8th arg.
11914 * machmode.def: Add 8th argument for vector inner mode.
11915 Add inner vector modes for vectors.
11917 * rtl.def (VEC_CONST): Remove.
11918 (CONST_VECTOR): New.
11920 * expr.c (clear_storage): Allow vectors.
11921 (is_zeros_p): Handle VECTOR_CST.
11923 * varasm.c (output_constant_pool): Handle vectors.
11924 (rtx_const): Add veclo and vechi fields.
11925 (kind): Add RTX_VECTOR.
11926 (decode_rtx_const): Add case for vector.
11928 * config/rs6000/rs6000-protos.h: Add zero_constant.
11930 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11931 constants. Force easy vector constants into memory.
11932 (easy_vector_constant): New.
11933 (emit_easy_vector_constant): New.
11934 (rs6000_legitimize_reload_address): Do not generate bad reloads on
11937 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11939 ("altivec_lvxl"): Same.
11940 (altivec_lvebx): Same.
11941 (altivec_lvehx): Same.
11942 (altivec_lvewx): Same.
11943 ("*movv4si_const0"): New.
11944 ("*movv4sf_const0"): New.
11945 ("*movv8hi_const0"): New.
11946 ("*movv16qi_const0"): New.
11948 2002-02-18 Kazu Hirata <kazu@hxi.com>
11950 * config/h8300/h8300.c (notice_update_cc): Use
11953 2002-02-18 Kazu Hirata <kazu@hxi.com>
11955 * config/h8300/h8300.md (divmod patterns): Change the
11956 constraints for operands[1] to register_operand.
11958 2002-02-18 Kazu Hirata <kazu@hxi.com>
11960 * config/h8300/h8300-protos.h: Remove the prototype for
11962 * config/h8300/h8300.c (p_operand): Remove.
11963 * config/h8300/h8300.md: Replace p_operand with
11966 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11968 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11970 (output_return_instruction): Allow use of LDR to unstack
11971 return addresss even for interrupt handlers or when
11972 interworking. If compiling for ARMv5, use interworking-safe
11973 return instructions by default. Remove duplicated code and
11974 lengthy "strcat" sequences.
11976 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11978 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11979 (LINK_EH_SPEC): Define.
11980 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11982 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11984 * config/s390/s390.c (s390_emit_prologue): Do not set the
11985 frame_related flag for call-clobbered registers.
11987 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
11989 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11990 (construct_container): Fix handling of SSE operands.
11991 (ix86_expand_builtin): Fix handling of 64bit pointers.
11992 (mmx_maskmovq_rex): New pattern.
11994 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
11996 * regrename.c (kill_set_value): Handle subregs properly.
11998 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
12000 * objc/objc-act.c (handle_impent): Remove leading '*'
12001 from objc_class_name.
12003 2002-02-17 Richard Henderson <rth@redhat.com>
12005 * config/alpha/alpha.c (some_small_symbolic_operand,
12006 some_small_symbolic_operand_1, split_small_symbolic_operand,
12007 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12008 Handle small SYMBOL_REFs anywhere, not just inside memories.
12009 * config/alpha/alpha-protos.h: Update.
12010 * config/alpha/alpha.h (PREDICATE_CODES): Update.
12011 * config/alpha/alpha.md (small symbolic operand splitter): Update.
12013 2002-02-17 Roland McGrath <roland@frob.com>
12015 * config.gcc (powerpc-*-gnu-gnualtivec*,
12016 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12017 * config/rs6000/gnu.h: New file.
12018 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12019 Grok "gnu" in rs6000_abi_name.
12020 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12021 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12022 Grok -mcall-gnu analogous to -mcall-linux et al.
12023 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12024 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12025 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12027 2002-02-17 Jakub Jelinek <jakub@redhat.com>
12030 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12033 2002-02-17 Philipp Thomas <pthomas@suse.de>
12035 * config/cris/cris.h: Undefine STARTFILE_SPEC and
12036 ENDFILE_SPEC before (re)defining them.
12038 2002-02-17 Kazu Hirata <kazu@hxi.com>
12040 * config/h8300/h8300.c: Fix formatting.
12041 * config/h8300/h8300.h: Likewise.
12043 2002-02-17 Philipp Thomas <pthomas@suse.de>
12045 * doc/tm.texi: Explain why empty strings should not be
12046 marked for translation.
12048 2002-02-17 Philipp Thomas <pthomas@suse.de>
12050 * final.c (output_operand_lossage): Changed to accept
12051 printf style arguments. Change calls where necessary.
12052 * output.h (output_operand_lossage): Change declaration
12053 accordingly. Update copyright.
12054 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12055 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12056 Update copyright date where necessary.
12058 * config/i386/i386.c (print_operand): Likewise. Remove use of
12061 * config/cris/cris.c (cris_operand_lossage): Likewise.
12062 Rename parameter so that exgettext recognizes it as
12063 translatable message.
12064 (LOSE_AND_RETURN): Rename parameter to msgid.
12066 2002-02-17 Kazu Hirata <kazu@hxi.com>
12068 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12069 hard coded register number with an appropriate macro.
12070 (HARD_REGNO_MODE_OK): Likewise.
12071 (ARG_POINTER_REGNUM): Likewise.
12072 (STATIC_CHAIN_REGNUM): Likewise.
12073 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12074 * config/h8300/h8300.md (define_constants): Define more
12077 2002-02-17 Philipp Thomas <pthomas@suse.de>
12079 * config/i386/i386.h: Don't mark empty strings for translation.
12081 2002-02-16 H.J. Lu <hjl@gnu.org>
12083 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12085 2002-02-16 Zack Weinberg <zack@codesourcery.com>
12087 * cppinit.c (merge_include_chains): Check for brack being
12088 NULL before attempting to merge it with qtail.
12090 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12092 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12095 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12097 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12099 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
12101 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12102 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12103 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12105 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12107 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12108 now only if !TARGET_FIX.
12109 (*movsi_nt_vms_fix): New pattern.
12111 2002-02-16 Douglas B Rupp <rupp@gnat.com>
12113 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12114 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12115 (alpha_sa_mask, alpha_sa_size): Reflect above change.
12116 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12117 (alpha_start_function, alpha_expand_epilogue): Likewise.
12118 (unicosmk_gen_dsib): Likewise.
12120 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12122 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12124 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
12126 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12127 check_and_change_labels, s390_final_chunkify): Delete.
12128 (s390_split_branches, s390_chunkify_pool): New functions.
12129 (s390_function_prologue): Call them.
12131 * config/s390/s390.h (S390_REL_MAX): Delete.
12132 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12134 * config/s390/s390.md (cjump, icjump, jump): Fix length
12135 attribute calculation.
12138 2002-02-15 David Edelsohn <edelsohn@gnu.org>
12140 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12141 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12143 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
12145 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12146 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12147 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12149 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12151 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12153 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
12155 * reload.c (find_dummy_reload): Check that an output register
12156 is valid for its mode.
12158 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
12160 * combine.c (known_cond): After replacing the REG of a SUBREG, try
12163 * function.c (assign_parms): Demote promoted argument passed by
12164 transparent reference.
12166 2001-02-14 Joel Sherrill <joel@OARcorp.com>
12168 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12169 -Acpu() and -Amachine() to eliminate warnings.
12171 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
12173 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12175 2002-02-14 Kazu Hirata <kazu@hxi.com>
12177 * config/h8300/h8300-protos.h: Update the prototype for
12179 * config/h8300/h8300.c (const_costs): Treat SET as a little
12180 more expensive operation.
12181 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12182 reference to const_costs.
12184 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
12186 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12188 2002-02-14 Jakub Jelinek <jakub@redhat.com>
12191 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12192 use arguments from newtype.
12194 2002-02-13 Eric Christopher <echristo@redhat.com>
12196 * config/mips/mips.c (override_options): Add check for march/mipsX
12197 on the same command line. Fix error message in cpu processing.
12198 Remove architecture and ISA checks.
12200 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12202 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12204 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12206 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
12208 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12210 ("*movv8hi_internal1"): Same.
12211 ("*movv16qi_internal1"): Same.
12212 ("*movv4sf_internal1"): Same.
12214 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12215 not push_reload for altivec modes.
12217 2002-02-13 Joel Sherrill <joel@OARcorp.com>
12219 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12220 all RTEMS targets including removal of #includes from config/*/rtems*.h
12221 file and adding them to tm_file setting. Added xm_defines=POSIX to
12223 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12224 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12225 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12226 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12227 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12228 config/m68k/rtemself.h: Ditto.
12229 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12230 config/mips/rtems64.h: Ditto.
12231 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12232 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12234 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12235 config/sparc/rtemself.h: Ditto.
12236 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12237 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12238 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12240 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12241 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12242 target made more similar to i386-elf.
12243 * config/i386/t-rtems-i386: Added soft float support and multilibs.
12244 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12245 be similar to config/m68k/t-m68kelf.
12246 * gthr-rtems.h: Encapsulate with extern "C" for C++.
12248 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
12250 * regmove.c (kill_value): Handle subregs.
12252 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
12254 * i386.md (mul patterns): Allow memory operand to be first;
12255 add expanders where needed; fix constraints.
12256 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12257 Allow memory operand to be the first.
12259 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12262 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12265 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12268 2002-02-13 Jakub Jelinek <jakub@redhat.com>
12270 PR optimization/5547:
12271 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12272 all valid IA-32 address modes involving non-scaled %ebx and
12273 GOT/GOTOFF as displacement.
12275 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12277 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12278 after emitting ltorg insns.
12280 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12281 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12282 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12283 *abssf2): Fix "op_type" attribute.
12285 2002-02-13 Douglas B Rupp <rupp@gnat.com>
12287 * mkconfig.sh: Avoid using a subshell redirect.
12288 ($output.T): Change to $(output)T.
12289 (ENABLE_NLS): Remove unneeded undef.
12291 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12292 * config/alpha/x-vms (libsubdir): Define.
12294 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12295 register frame procedures. Optimize retrieving context.
12297 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12298 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12299 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12301 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12303 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12304 Make same change as for find_base_value.
12306 2002-02-13 Kazu Hirata <kazu@hxi.com>
12308 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12309 of QImode and SImode.
12311 2002-02-13 Kazu Hirata <kazu@hxi.com>
12313 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12314 length computation of movsi.
12315 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12317 2002-02-13 Kazu Hirata <kazu@hxi.com>
12319 * config/h8300/h8300.md (subqi3): Tighten the predicate for
12320 operands[2] to register_operand.
12322 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
12324 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12326 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
12328 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12329 for altivec_lvx* and altivec_stvx*.
12330 ("*movv4si_internal"): Add constraint for loading from GPRs.
12331 ("*movv8hi_internal1"): Same.
12332 ("*movv16qi_internal1"): Same.
12333 ("*movv4sf_internal1"): Same.
12335 * config/rs6000/rs6000.c (altivec_register_operand): New.
12337 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12338 altivec_register_operand.
12340 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
12342 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12345 2002-02-13 Stan Shebs <shebs@apple.com>
12347 * c-typeck.c (digest_init): Handle vectors.
12348 (really_start_incremental_init): Same.
12349 (pop_init_level): Same.
12350 (process_init_element): Same.
12352 * varasm.c (output_constant): Same.
12354 * expr.c (clear_storage): Same.
12355 (store_constructor): Same.
12357 2002-02-12 Eric Christopher <echristo@redhat.com>
12359 * explow.c (hard_function_value): Add comment explaining
12360 signed/unsigned comparison.
12362 2002-02-12 Jakub Jelinek <jakub@redhat.com>
12364 * jump.c (never_reached_warning): Add finish argument.
12365 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12366 real insn after end.
12367 * rtl.h (never_reached_warning): Adjust prototype.
12368 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12369 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12370 never_reached_warning.
12372 2002-02-12 Graham Stott <grahams@redhat.com>
12374 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12376 2002-02-12 Kazu Hirata <kazu@hxi.com>
12378 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12379 logical shifts on H8/300.
12380 (shift_alg_si): Improve several shifts on H8/300.
12381 (get_shift_alg): Likewise.
12383 2002-02-12 Graham Stott <grahams@redhat.com>
12385 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12387 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12389 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12390 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12392 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
12394 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12395 non-CONST_INT through default_assemble_integer.
12396 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12397 <case 8>: Abort for CONST_DOUBLE.
12399 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
12401 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12403 * config/pa/pa-linux.h (LIB_SPEC): Delete.
12404 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12406 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
12408 * config/stormy16/stormy16.md (zero_extendqihi2): New.
12410 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
12412 * regrename.c (regrename_optimize): Don't accept a
12413 part-clobbered register if the replaced register is not part
12416 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12417 take padding into account when computing the argument value.
12419 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12421 * combine.c (try_combine): Apply substitutions in
12422 CALL_INSN_FUNCTION_USAGE too.
12424 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
12426 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12427 __builtin_altivec_abs*.
12430 * config/rs6000/rs6000.h (rs6000_builtins): Add
12431 ALTIVEC_BUILTIN_ABS*.
12433 * config/rs6000/altivec.h: Use const char for builtins expecting
12435 (vec_abs): New versions for C and C++.
12438 2002-02-10 Kazu Hirata <kazu@hxi.com>
12440 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12443 2002-02-10 Kazu Hirata <kazu@hxi.com>
12445 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12446 constant definition from h8300.md.
12447 (FRAME_POINTER_REGNUM): Likewise.
12448 * config/h8300/h8300.md (define_constants): Add FP_REG.
12450 2002-02-10 Kazu Hirata <kazu@hxi.com>
12452 * config/h8300/h8300.c (print_operand): Remove redundant code.
12454 2002-02-10 Kazu Hirata <kazu@hxi.com>
12456 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12457 * config/h8300/h8300.c (byte_reg): Make it static.
12459 2002-02-10 Richard Henderson <rth@redhat.com>
12462 * c-typeck.c (incomplete_type_error): Handle flexible array members.
12464 2002-02-10 Richard Henderson <rth@redhat.com>
12467 * tree.c (append_random_chars): Don't abort if main_input_filename
12470 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
12472 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12474 2002-02-10 Kazu Hirata <kazu@hxi.com>
12476 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12477 (pushhi1): Likewise.
12479 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
12481 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12482 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12484 2002-02-09 David O'Brien <obrien@FreeBSD.org>
12486 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12488 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
12490 2002-02-09 Kazu Hirata <kazu@hxi.com>
12492 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12493 a half of an SImode register on H8/300.
12495 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
12497 * i386.md (movdi_2): Add missing '!'.
12499 2002-02-09 Kazu Hirata <kazu@hxi.com>
12501 * config/h8300/h8300.h: Fix formatting. Remove commented-out
12504 2002-02-09 Kazu Hirata <kazu@hxi.com>
12506 * config/h8300/h8300.md (length): Correct the distance valid
12507 for the short branch.
12509 2002-02-09 Kazu Hirata <kazu@hxi.com>
12511 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12513 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12515 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12516 registers in SImode.
12517 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12520 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12523 Contribute sh64-elf.
12524 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
12525 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12526 (sh_cannot_modify_jumps_p): New function.
12527 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
12528 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12529 (sh_ms_bitfield_layout_p): New function.
12530 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
12531 Zack Weinberg <zack@codesourcery.com>
12532 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12533 expand_simple_binop instead of expand_binop.
12534 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
12535 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12536 use of .quad and .uaquad.
12537 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12538 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12539 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12540 * config/sh/sh.md (movdi_const, movdi_const_32bit,
12541 movdi_const_16bit): Make sure all CONSTs have modes.
12542 (sym2PIC): Ditto, but by adjusting all callers.
12543 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12544 if the prologue calls the SHmedia argument decoder or register
12546 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12547 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12548 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12549 (sh_expand_epilogue): Don't emit USE of return target register.
12550 (prepare_move_operands): Legitimize DImode PIC addresses.
12551 (sh_media_register_for_return): Skip tr0, used to initialize the
12553 (sh_expand_prologue): Remove explicit USE of return register.
12554 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
12555 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
12556 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12557 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12558 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12559 EXTRA_CONSTRAINT_T.
12560 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12561 (MOVI_SHORI_BASE_OPERAND_P): New.
12562 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12563 (EXTRA_CONSTRAINT_T): Define in terms of them.
12564 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12565 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12566 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12567 alternatives supporting TARGET_REGS.
12568 (UNSPEC_GOTPLT): New constant.
12569 (movdi split): Move incrementing of LABEL_NUSES...
12570 (movdi_const, movdi_const_32bit): Here. Use
12571 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12572 (movdi_const_16bit): New.
12573 (call, call_value) [flag_pic]: Use GOTPLT.
12574 (call_pop, call_value_pop): New expands.
12575 (call_pop_compact, call_pop_rettramp): New insns.
12576 (call_value_pop_compact, call_value_pop_rettramp): New insns.
12577 (sibcall) [flag_pic]: Use GOT.
12578 (builtint_setjmp_receiver): Remove bogus, unused expand.
12579 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12580 (*pt, *ptb, ptrel): New insns.
12581 (sym2GOT): Handle DImode GOT.
12582 (sym2GOTPLT, symGOTPLT2reg): New expands.
12583 (sym2PIC): New expand.
12584 (shcompact_return_tramp): Use GOTPLT to return trampoline.
12585 (shcompact_return_tramp_i): Use return register explicitly.
12586 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12587 disable flag_reorder_blocks.
12588 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
12589 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12590 clobbers, for clarity.
12591 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12592 restoring of r0 in macl as MAYBE_DEAD.
12593 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
12594 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12595 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12596 alter_subreg all over.
12597 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12598 reload, instead of emitting instructions that would require
12600 (casesi_load_media): Add missing modes.
12601 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
12602 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12603 as used if the argument decoder is called.
12604 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12605 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12606 Pmode, then extend it to DImode if necessary.
12607 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12608 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12609 constants in FPU-enabled SHmedia, let them be loaded from memory.
12610 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
12611 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12612 Adjust whitespace in assembly output templates.
12613 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
12614 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12615 mode of if_then_else.
12616 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
12617 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12619 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
12620 Joern Rennecke <amylaar@redhat.com>
12621 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12622 (SUBTARGET_CPP_PTR_SPEC): New.
12623 (SUBTARGET_CPP_SPEC): Remove.
12624 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12625 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12626 Fix typo in previous checkin.
12627 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
12628 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12629 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
12630 Alexandre Oliva <aoliva@redhat.com>
12631 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12632 what single FP register can hold for SHmedia target.
12633 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
12634 Alexandre Oliva <aoliva@redhat.com>
12635 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12636 Do not split into SUBREG.
12637 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
12638 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12639 and added new functions as specified in SH5 ABI r9.
12640 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
12641 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12643 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
12644 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12645 gen_consttable_4 and gen_consttable_8. Emit multiple labels
12646 and consttable_window_ends.
12647 2001-06-03 Graham Stott <grahams@redhat,com>
12648 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12649 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
12650 * config/sh/sh.c (print_operand): Handle floating-point pair,
12651 vector and matrix registers.
12652 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12653 vector modes into account.
12654 * config/sh/sh.md (movv2sf): Split move between registers into
12656 (movv4sf, movv16sf): Introduce insns that get split only after
12658 * config/sh/shmedia.h: Fix Copyright dates.
12659 * config/sh/ushmedia.h: Likewise. Move loop counter
12660 declarations into conditionals that uses them.
12661 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12663 * config/sh/sshmedia.h: Fix Copyright dates.
12664 (sh_media_PUTCFG): Fix constraints.
12665 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
12666 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12667 ptrmemfunc_vbit_in_delta for SH5.
12668 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
12669 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12670 * invoke.texi: Likewise.
12671 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
12672 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12673 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12674 GCC_pop_shmedia_regs_nofpu): New global symbols.
12675 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12676 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12677 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12678 compact function with nonlocal labels.
12679 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12680 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12681 (initial_elimination_offset): Account for their stack space.
12682 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12683 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12684 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12685 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12686 least one of the operands to be a register.
12687 (movv2sf): Likewise. Renamed to movv2sf_i.
12688 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12689 prepare_move_operands() before emitting SHmedia insns.
12690 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
12691 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12692 Don't save nor initialize r12. Don't mis-align the stack.
12693 Pad the code with a nop.
12694 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
12696 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
12697 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12698 [__SHMEDIA__]: Implement.
12699 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
12700 * config/sh/sh.md: Set latency of `pt' closer to reality.
12701 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12702 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12703 Set move, load and store type attributes.
12704 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12705 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12707 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12708 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12709 * config/sh/sh.c (sh_media_register_for_return): New function.
12710 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12711 branch-target register.
12712 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12713 * config/sh/sh.md (return_media_i): Use any call-clobbered
12714 branch-target register.
12715 (return_media): If r18 wasn't copied in the prologue, copy it
12717 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12718 Clear class FP0_REGS.
12719 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12721 2001-03-08 DJ Delorie <dj@redhat.com>
12722 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12723 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
12724 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12725 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
12726 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12727 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
12728 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12729 return value correctly for call_cookie.
12730 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
12731 * config/sh/crt1.asm (start): Modified so as to call
12732 ___setup_argv_and_call_main.
12733 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
12734 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12736 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
12737 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12738 (STRIP_NAME_ENCODING): Use it.
12739 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
12740 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
12741 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12742 prepare_scc_operands().
12743 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12744 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12745 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
12746 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12747 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
12748 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12749 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12750 used in shcompact_incoming_args.
12751 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12753 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12755 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12756 Adjust accordingly.
12757 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12758 Simplify. Adjust. Add sanity check.
12759 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12761 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12763 (udivsi3, divsi3): Use them.
12764 (force_mode_for_call): New insn.
12765 (call, call_value, sibcall_value): Emit it before SHcompact
12767 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
12768 * config/sh/sh.md (call, call_value, sibcall): Make sure the
12769 call cookie is non-NULL before taking its value.
12770 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
12771 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12772 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
12773 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12775 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12776 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12777 temporary for stack adjusts. Use MACL and MACH to pass
12778 arguments to shcompact_incoming_args.
12779 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
12781 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12782 (nested_trampoline): Load static chain address into r1.
12783 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12784 2001-01-07 Alexandre Oliva <aoliva@redhat.com
12785 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12786 fp_arith_reg_operand().
12787 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
12788 * config/sh/sh.md (casesi): Sign-extend the first two operands,
12789 and use signed compares for them.
12790 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12791 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
12792 ones properly aligned.
12793 (find_barrier): Account for extra alignment needed for 8-byte wide
12795 (machine_dependent_reorg): Require a label for the second 4-byte
12796 constant after an 8-byte one.
12797 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12799 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12800 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12801 last_float when switching float modes.
12802 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12803 auto-increment for general-purpose registers.
12804 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12806 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12808 * config/sh/sh.c (sh_builtin_saveregs): Support using all
12809 registers for varargs.
12810 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
12811 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12812 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12813 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12814 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12815 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
12816 call_cookie accordingly.
12817 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12818 (SHCOMPACT_BYREF): Likewise.
12819 (SHCOMPACT_FORCE_ON_STACK): New macro.
12820 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12821 (sh_builtin_saveregs): Likewise.
12822 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12823 shcompact_incoming_args): Use new shift values. Support
12824 sequences of consecutive and non-consecutive pushes/pops.
12825 * config/sh/sh.md (return): Don't explicitly use PR_REG.
12826 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
12827 * config/sh/sh.h (TEXT_SECTION): Define.
12828 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12829 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
12830 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12831 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12832 return values on FPU-enabled SHmedia.
12833 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12834 FPU-enabled SHmedia.
12835 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12836 value is returned in a non-FP reg and is not returned by
12838 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12840 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
12841 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12842 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12843 quad-aligned to be passed by callee-copy reference.
12844 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
12845 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12846 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12847 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
12848 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12849 copying low-numbered FP regs to r7 and r8.
12850 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12851 FP regs to general-purpose regs only if the copy was passed on the
12853 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12854 copying FP reg to r9.
12855 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12856 copy FP regs to general-purpose regs only in outgoing calls.
12857 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12858 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
12860 * config/sh/sh.h (struct sh_args): Document all fields.
12861 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12862 passed partially on the stack should not consider making
12864 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12865 stack_regs only for incoming calls. When passing FP args,
12866 make sure there are FP regs available before modifying
12868 (SHCOMPACT_BYREF): Pass double args in general-purpose
12869 registers by reference.
12870 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
12871 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12872 attempt to generate sibcalls if the caller got any arguments
12874 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12875 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12876 to 8-byte boundaries.
12877 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12878 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12879 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12880 stored in the stack.
12881 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12882 for the offsets to have the ISA bit set.
12883 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
12884 invocation. Use beq instead of bgt to mark end of sequence of
12886 (shcompact_incoming_args): Fix store of r2. Use beq instead of
12887 bgt to mark end of sequence of stores.
12888 * config/sh/sh.c (arith_operand): Don't check whether
12889 CONST_OK_FOR_J for now.
12890 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12891 instead of long for conversion.
12892 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
12893 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12894 before passing it to fprintf.
12895 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
12896 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12897 Call set_fpscr before reading/writing SR.
12898 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12900 * config/sh/lib1funcs.asm: Add `.align 2' directives before
12902 (FMOVD_WORKS): Define on SH5 with FPU.
12903 (set_fpscr): Define on SH5. Remove separate _fpscr_values
12905 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12907 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
12908 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12910 (ia_main_table): Ditto.
12911 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
12912 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12913 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12914 the definitions from sh.h.
12915 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12917 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12918 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12919 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12920 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
12921 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12922 Increment LABEL_NUSES.
12924 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12926 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12928 * config/sh/elf.h (SIZE_TYPE): Likewise.
12929 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12930 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12931 shcompact_incoming_args): Load switch table addresses using
12933 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12934 (NO_BUILTIN_SIZE_TYPE): Define.
12935 (SIZE_TYPE): Don't define.
12936 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12937 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12938 definition of __SH5__=32 for -m5-compact-nofpu.
12939 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12941 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
12942 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12943 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
12944 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12945 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12946 (INSN_LENGTH_ALIGNMENT): Likewise.
12947 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12948 * config/sh/sh.md (call, call_value, sibcall): Simplify
12949 copying of non-branch-target register.
12950 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12951 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
12952 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12953 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
12954 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12955 floating-point values as structs.
12956 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12957 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12958 general-purpose register.
12959 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12960 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12961 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12962 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12963 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12964 (ENCODE_SECTION_INFO): Enclose variables and constants in
12966 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12967 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12968 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12969 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12970 only for LABEL_REFs. For SYMBOL_REFs, prepend
12971 SH_DATALABEL_ENCODING to the symbol name.
12972 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12974 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
12975 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12977 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12978 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12979 (DATALABEL_REF_P): Don't require CONST.
12980 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12982 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
12983 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12985 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12986 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12987 Use shallow_copy_rtx and PUT_MODE to change the mode of
12988 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12989 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12990 on SHmedia using GENERAL_REGs.
12991 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12992 bltu_media_i): Fix reversion of conditions.
12993 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
12994 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12995 * config/sh/sh.c (output_far_jump): Save r13 in macl.
12996 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
12997 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12998 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
12999 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13000 (GCC_nested_trampoline): Likewise.
13001 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13002 * config/sh/sh.c (gen_datalabel_ref): Define.
13003 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13004 (INITIALIZE_TRAMPOLINE): Likewise.
13005 (TRAMPOLINE_ADJUST_ADDRESS): Define.
13006 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13007 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13008 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13009 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13010 (ic_invalidate): Adjust for SH5.
13011 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13012 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13013 _nested_trampoline.
13014 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
13015 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13016 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13017 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13018 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13019 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13020 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
13021 * config/sh/sh.c (target_reg_operand): Match only target-branch
13022 registers and pseudos that aren't virtual registers.
13023 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13024 Copy operands that don't match target_reg_operand to pseudos.
13025 (call_media, call_value_media, sibcall_media): Use
13026 target_reg_operand instead of target_operand.
13027 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
13028 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13029 * config/sh/sh.c (target_reg_operand): Match hardware registers
13030 other than branch-target registers.
13031 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13032 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13033 (fpscr_values) [SH5 == 32]: Define.
13034 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13035 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13036 Handle function addresses coming in SUBREGs.
13037 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
13038 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13039 shcompact_return_trampoline): Use datalabel where appropriate.
13040 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
13041 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13042 general-purpose register to copy one branch-target register to
13044 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13045 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13046 SYMBOL_REFs with VOIDmode.
13047 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13048 bltu_media_i): New insns.
13049 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
13050 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13051 (INIT_CUMULATIVE_ARGS): Likewise.
13052 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
13053 * machmode.def (V16SFmode): New mode.
13054 * c-common.c (type_for_mode): Support V2SF and V16SF.
13055 * tree.c (build_common_tree_nodes_2): Likewise.
13056 * tree.h (tree_index): Likewise.
13057 * calls.c (emit_call_1): Take args_so_far. Adjust all
13058 callers. Introduce CALL_POPS_ARGS.
13059 * tm.texi (CALL_POPS_ARGS): Document.
13060 * config/sh/crt1.asm: Implement in SHmedia mode.
13061 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13062 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13063 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13064 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13065 Implement divsi and udivsi in SHmedia mode. Introduce
13066 SHcompact trampolines.
13067 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13069 (regno_reg_class): Rewrite.
13070 (fp_reg_names): Remove.
13071 (sh_register_names, sh_additional_register_names): New.
13072 (print_operand): Added `u'. Support SUBREGs in addresses.
13073 Add parentheses around shifted CONSTs.
13074 (output_file_start): Output .mode and .abi directives.
13075 (shiftcosts, addsubcosts, multcosts): Adjust.
13076 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
13077 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
13078 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
13079 bytes, not registers. Take into account the need for the
13080 SHcompact incoming args trampoline. Adjust all callers.
13081 (sh_expand_prologue): Take stack_regs into account. Call
13082 incoming args trampoline. Keep stack aligned as per SH5 ABI.
13083 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
13084 stack aligned as per SH5 ABI.
13085 (sh_builtin_saveregs): Support SH5 ABI.
13086 (sh_build_va_list, sh_va_start): Likewise.
13087 (initial_elimination_offset): Take alignment into account.
13088 Compute location of PR according to the SH5 stack frame.
13089 (arith_reg_operand): Reject branch-target registers.
13090 (shmedia_6bit_operand): New.
13091 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13092 (target_reg_operand): Match DImode only. Accept SUBREGs.
13093 (target_operand): New.
13094 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13095 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
13096 SIBCALL_REGS for SHmedia.
13097 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13098 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13099 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13100 (TARGET_SWITCHES): New SH5 flags.
13101 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
13102 VALID_REGISTER_P to disable unsupported registers.
13103 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13104 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13105 (FUNCTION_ARG_PADDING): Define.
13106 (FASTEST_ALIGNMENT): Adjust.
13107 (SH_REGISTER_NAMES_INITIALIZER): New.
13108 (sh_register_names): Declare.
13109 (DEBUG_REGISTER_NAMES): Define.
13110 (REGISTER_NAMES): Define based on sh_register_names.
13111 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13112 (sh_additional_register_names): Declare.
13113 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13114 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13115 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13116 (REGISTER_NATURAL_MODE): Define.
13117 (FIRST_PSEUDO_REGISTER): Adjust.
13118 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13119 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13120 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13121 (VECTOR_MODE_SUPPORTED_P): Define.
13122 (REG_CLASS_CONTENTS): Adjust.
13123 (SMALL_REGISTER_CLASSES): Adjust.
13124 (REG_ALLOC_ORDER): Adjust.
13125 (INDEX_REG_CLASS): Adjust.
13126 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13127 (CONST_OK_FOR_LETTER_P): Adjust.
13128 (PREFERRED_RELOAD_CLASS): Adjust.
13129 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13130 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13131 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13132 (FIRST_FP_PARM_REG): Adjust.
13133 (CALL_POPS_ARGS): Define.
13134 (FUNCTION_ARG_REGNO_P): Adjust.
13135 (struct sh_args): New fields.
13136 (GET_SH_ARG_CLASS): Adjust.
13137 (INIT_CUMULATIVE_ARGS): Adjust.
13138 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13139 (FUNCTION_ARG_ADVANCE): Adjust.
13140 (FUNCTION_ARG): Adjust.
13141 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13142 (FUNCTION_ARG_CALLEE_COPIES): Define.
13143 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13144 (STRICT_ARGUMENT_NAMING): Define.
13145 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13146 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13147 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13148 (SETUP_INCOMING_VARARGS): Adjust.
13149 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13150 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13151 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13152 (SUBREG_OK_FOR_INDEX_P): Adjust.
13153 (EXTRA_CONSTRAINT_S): Update.
13154 (EXTRA_CONSTRAINT_T): New.
13155 (EXTRA_CONSTRAINT): Adjust.
13156 (GO_IF_LEGITIMATE_INDEX): Adjust.
13157 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13158 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13159 (MOVE_MAX): Adjust.
13160 (MAX_MOVE_MAX): Define.
13162 (CONST_COSTS): Adjust.
13163 (REGISTER_MOVE_COST): Adjust.
13164 (BRANCH_COST): Adjust.
13165 (TEXT_SECTION_ASM_OP): Adjust.
13166 (DBX_REGISTER_NUMBER): Adjust.
13167 (ASM_OUTPUT_DOUBLE_INT): New.
13168 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13169 (PREDICATE_CODES): Adjust.
13170 (PROMOTE_MODE): Adjust.
13171 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13172 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13173 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13174 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13175 (DR0_REG, DR2_REG, DR4_REG): Renumber.
13176 (TR0_REG, TR1_REG, TR2_REG): New.
13177 (XD0_REG): Renumber.
13178 (UNSPEC_COMPACT_ARGS): New.
13179 (type): Added pt and ptabs.
13180 (length): Default to 4 on SHmedia. Default pt length to 12
13181 and 20 on SHmedia32 and SHmedia64, respectively.
13182 (pt): New function unit.
13183 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
13184 Add whitespace between operands of SHmedia instructions.
13186 (adddi3_media, addsi3_media): Adjust constraints.
13187 (subsi3) [SHmedia]: Force operand 1 into a register.
13188 (udivsi3_i1_media, udivsi3_i4_media): New.
13189 (udivsi3): Support SHmedia.
13190 (divsi3_i1_media, divsi3_i4_media): New.
13191 (divsi3): Support SHmedia.
13192 (anddi3, iordi3, xordi3): Adjust constraints.
13193 (zero_extendhidi2, zero_extendqidi2): New.
13194 (extendsidi2, extendhidi2, extendqidi2): New.
13195 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13196 (pop_e, pop_fpul, pop_4): Likewise.
13197 (movsi_media): Support FP and BT registers.
13198 (movsi_media_nofpu): New. Adjust splits to DImode.
13199 (lduw, ldub): Renamed to zero_extend* above.
13200 (movqi_media): Fix typo.
13201 (movdi_media): Support FP and BT registers.
13202 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
13203 (movdi_const_32bit): New.
13204 (shori_media): Require immediate operand. Use `u' for output.
13205 (movdf_media, movsf_media): Simplified.
13206 (movdf_media_nofpu, movsf_media_nofpu): New.
13207 (movdf, movsf): Adjust
13208 (movv2sf, movv2sf, movv16sf): New.
13209 (beq_media, beq_media_i): Adjust constraints. Don't use
13210 scratch BT register.
13211 (bne_media, bne_media_i): Likewise.
13212 (bgt_media, bgt_media_i): Likewise.
13213 (bge_media, bge_media_i): Likewise.
13214 (bgtu_media, bgtu_media_i): Likewise.
13215 (bgeu_media, bgeu_media_i): Likewise.
13216 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13217 bunordered): Emit jump insn. Force operands to registers when
13219 (jump_media, jump): Simplify.
13220 (call_compact, call_compact_rettramp): New.
13221 (call_value_compact, call_value_compact_rettramp): New.
13222 (call_media, call_value_media): Simplify.
13223 (sibcall_compact, sibcall_media): New.
13224 (call, call_value): Adjust for SHmedia and SHcompact.
13225 (sibcall, sibcall_value, untyped_call): Likewise.
13226 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13227 (indirect_jump): Adjust for SHmedia.
13228 (casesi_jump_media): New.
13229 (nop): Re-enable for SHmedia.
13230 (call_site): Restrict to SH1.
13231 (casesi): Adjust for SHmedia.
13232 (casesi_shift_media, casesi_load_media): New.
13233 (return): Explicitly use PR register. Call return trampoline
13235 (return_i): Explicitly use PR register.
13236 (shcompact_return_tramp, shcompact_return_tramp_i): New.
13237 (return_media): Adjust.
13238 (shcompact_incoming_args): New.
13239 (epilogue): Adjust.
13240 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13241 (movstrsi): Disable on SH5.
13242 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13243 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13244 (subsf3, subsf3_media): Likewise.
13245 (mulsf3, mulsf3_media, mac_media): Likewise.
13246 (divsf3, divsf3_media): Likewise.
13247 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
13248 (floatsisf2, fux_truncsfsi2): Likewise.
13249 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
13251 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13252 (cmpunsf_media, cmpsf): Likewise.
13253 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13254 (abssf2, abssf2_media): Likewise.
13255 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13256 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13257 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
13258 (floatsidf2, fix_truncdfsi2): Likewise.
13259 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
13261 (cmpeqdf_media, cmpgtdf_media): Likewise.
13262 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13263 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13264 (absdf2, absdf2_media): Likewise.
13265 (extendsfdf2, extendsfdf2_media): Likewise.
13266 (truncsfdf2, truncsfdf2_media): Likewise.
13267 * config/sh/sh64.h: New file.
13268 * config/sh/t-sh64: New file.
13269 * config/sh/shmedia.h: New file.
13270 * config/sh/ushmedia.h: New file.
13271 * config/sh/sshmedia.h: New file.
13272 * configure.in: Added sh64-*-elf.
13273 * configure: Rebuilt.
13274 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
13275 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13276 (reg_class_from_letter): Use `b' for TARGET_REGS.
13277 (print_operand): Support `%M', `%m', `AND' and
13278 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
13279 (andcosts): Adjust for SHmedia.
13280 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13282 (target_reg_operand): New function.
13283 * config/sh/sh-protos.h (target_reg_operand): Declare.
13284 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13285 FP registers on SH5.
13286 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13288 (TARGET_REGISTER_P): New macro.
13289 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13290 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13291 (EXTRA_CONSTRAINT_S): New macro.
13292 (EXTRA_CONSTRAINT): Adjust.
13293 (FLOAT_TYPE_SIZE): Define to 32.
13294 (Pmode): DImode on SHmedia.
13295 (CONST_COSTS): Adjust for SHmedia literals.
13296 (PREDICATE_CODES): Added target_reg_operand.
13297 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13298 * config/sh/sh.md: Remove all attrs from SHmedia insns.
13299 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13300 (cmpdi): Accept SHmedia.
13301 (movdicc_false, movdicc_true): New insns.
13302 (movdicc): New expand.
13303 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13305 (addsi3_media): Match `S' constraint.
13306 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13307 (negdi2): Expand for SHmedia.
13308 (one_cmpldi2): New expand.
13309 (zero_extendsidi2): Change from expand to insn.
13310 (extendsidi2): Add constraints.
13311 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
13312 LD/ST address. Fix SI immediate loading split.
13313 (movhi_media, movqi_media, lduw, ldub): New insns.
13314 (movhi, movqi): Accept SHmedia.
13315 (shori_media, movdi_media): Relax input constraints. Split
13316 symbolic constants.
13317 (movdf_media, movsf_media): New insn. New split to movdi.
13318 (movdf, movsf): Match on SHmedia.
13319 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13320 bgeu_media): New insns and splits. New insns with `_i' suffix.
13321 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13322 (bunordered): New expand.
13323 (jump_compact): Renamed from `jump'.
13324 (jump_media): New insn.
13325 (jump): New expand.
13326 (call_media, call_value_media): New insns.
13327 (call, call_value): Adjust.
13328 (indirect_jump_compact): Renamed from `indirect_jump'.
13329 (indirect_jump_media): New insn.
13330 (indirect_jump): New expand.
13331 (untyped_call, return): Accept SHmedia.
13332 (return_media): New insn.
13333 (prologue, epilogue, blockage): Accept SHmedia.
13334 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13335 (sunordered): New expand.
13336 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13337 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13338 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13339 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13340 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13341 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13342 abssf2_media): New insns.
13343 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13344 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13345 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13346 floatdidf2, floatsidf2_media, fix_truncdfdi2,
13347 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13348 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13349 absdf2_media): New insns.
13350 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13351 (extendsfdf2_media, truncdfsf2_media): New insns.
13352 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
13353 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13354 * config/sh/sh.h (CONST_OK_FOR_J): Document.
13355 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13356 * config/sh/sh.md (adddi3): New expand.
13357 (adddi3_media, adddi3z_media): New insns.
13358 (adddi3_compact): Renamed from adddi3.
13359 (addsi3_media): Use add.l r63 to add constant zero.
13360 (subdi3): New expand.
13361 (subdi3_media): New insn.
13362 (subdi3_compact): Renamed from subdi3.
13363 (mulsidi3): New expand.
13364 (mulsidi3_media): New insn.
13365 (mulsidi3_compact): Renamed from mulsidi3.
13366 (umulsidi3): New expand.
13367 (umulsidi3_media): New insn.
13368 (umulsidi3_compact): Renamed from umulsidi3.
13369 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13370 (ashlsi3, ashrsi3, lshrsi3): Use them.
13371 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13372 (ashldi3, ashrdi3, lshrdi3): Use them.
13373 (zero_extendsidi2): New expand.
13374 (extendsidi2): New insn.
13375 (movsi_media): New insn. Split to movdi to load constants.
13376 (movsi): Enable for shmedia.
13377 (movdi_media): New insn. Use shori_media to load wide constants.
13378 (short_media): New insn.
13379 (movdi): Enable for shmedia.
13380 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
13381 * config/sh/sh.h (CPP_SPEC): Added `m5'.
13382 (SUBTARGET_CPP_SPEC): Added `!m5'.
13383 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13384 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
13385 to all other SH variants.
13386 (TARGET_DEFAULT): Set to SH1_BIT.
13387 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13388 (BITS_PER_WORD): Raise to 64 on shmedia.
13389 (MAX_BITS_PER_WORD): Change to 64.
13390 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13391 (INT_TYPE_SIZE): Keep as 32.
13392 (UNITS_PER_WORD): Raise to 8 on shmedia.
13393 (MIN_UNITS_PER_WORD): Keep as 4.
13394 (POINTER_SIZE): Raise to 64 on shmedia.
13395 (CONST_OK_FOR_J): New macro.
13396 (CONST_OK_FOR_LETTER_P): Use it.
13397 (processor_type): Add PROCESSOR_SH5.
13398 * config/sh/sh.md: Conditionalize all expands, insns and
13399 splits to TARGET_SH1.
13401 (addsi3_compact): Renamed from...
13402 (addsi3): Now an expand.
13403 (addsi3_media, subsi3_media): New insns.
13404 (subsi3): Don't negate constants with SHmedia.
13406 * hooks.c: New file.
13407 * hooks.h: New file.
13408 * Makefile.in (HOOKS_H): New.
13409 (TARGET_DEF_H): Added $(HOOKS_H).
13410 (OBJS): Added hooks.o.
13411 (cfgcleanup.o, bb-reorder.o): Added target.h.
13412 (hooks.o): Added dependencies.
13413 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13414 (TARGET_INITIALIZER): this.
13415 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13416 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13417 * bb-reorder.c: Include target.h.
13418 (reorder_basic_blocks): Skip if cannot modify jumps.
13419 * cfgcleanup.c: Include target.h.
13420 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13422 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13424 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13425 Protect jump delay slot instructions with .set noreorder and
13428 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13430 * config/mips/mips.md (casesi_internal_di): Calculate
13431 the index into the target offset table correctly.
13433 2002-02-08 Richard Henderson <rth@redhat.com>
13435 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13436 * final.c (output_addr_const): Accept and discard SUBREG.
13437 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13438 mark them unknown instead.
13439 (simplify_subtraction): Handle RTX_UNKNOWN.
13440 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13442 2002-02-08 David Edelsohn <edelsohn@gnu.org>
13444 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13446 2002-02-08 Richard Henderson <rth@redhat.com>
13448 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13450 2002-02-08 Andreas Jaeger <aj@suse.de>
13452 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13453 * config/i386/t-linux64: New file.
13455 2002-02-08 Jakub Jelinek <jakub@redhat.com>
13457 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13458 * c-parse.in (compstmt): Clear last_expr_type.
13460 2002-02-07 Richard Henderson <rth@redhat.com>
13462 * loop.c (strength_reduce): Sink final_value when not
13465 2002-02-07 David O'Brien <obrien@FreeBSD.org>
13467 * config/sparc/freebsd.h: Fix mismatched spec {.
13469 2002-02-07 Richard Henderson <rth@redhat.com>
13471 * cfgrtl.c: Include recog.h and insn-config.h.
13472 (keep_with_call_p): Fix general_operand invocation.
13473 * Makefile.in (cfgrtl.o): Update dependencies.
13475 2002-02-07 Kazu Hirata <kazu@hxi.com>
13477 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13478 comment. Accept HImode only if TARGET_H8300.
13480 2002-02-07 Eric Christopher <echristo@redhat.com>
13482 * config/mips/crtn.asm: Cleanup #ifdefs.
13484 2002-02-07 Eric Christopher <echristo@redhat.com>
13486 * config/mips/crti.asm: Add changes for mips16. mips16 uses
13487 register 7 as RA instead of $31.
13488 * config/mips/crtn.asm: Ditto.
13489 * config/mips/mips.c (mips_move_2words): Add case for
13490 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13491 (compute_frame_size): Fix typo.
13492 (save_restore_insns): Ditto. Make documentation about using
13493 register $7 as return register more precise.
13494 (mips_expand_epilogue): Fix comment. Add code to work around not
13495 being able to add to the stack pointer directly.
13496 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13497 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13500 2002-02-07 Tom Rix <trix@redhat.com>
13502 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13503 immediates in ldu and stdu DS opcode field.
13504 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13505 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13506 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13508 2002-02-07 Jeff Sturm <jsturm@one-point.com>
13510 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13511 offset for stack bias.
13513 2002-02-07 H.J. Lu <hjl@gnu.org>
13515 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13517 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
13519 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13521 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
13523 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13524 * i386.c (x86_order_regs_for_local_alloc): New global function.
13525 * i386.h (REG_ALLOC_ORDER): CLeanup.
13526 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13528 2002-02-07 Richard Henderson <rth@redhat.com>
13530 PR optimization/2463
13531 * alias.c (find_base_value): Recall base values for fixed hard regs.
13532 * loop.c (loop_regs_update): Don't use single_set on non-insns.
13534 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
13536 * config/mips/mips.md (define_delay) [mips16]: Adjust required
13539 2002-02-06 Richard Henderson <rth@redhat.com>
13542 * stmt.c (resolve_operand_name_1): Take more care with mixed
13543 named and unnamed operands.
13545 2002-02-06 Janis Johnson <janis187@us.ibm.com>
13546 Jan Hubicka <jh@suse.cz>
13548 * loop.c (remove_constant_addition): Avoid clobbering a shared
13551 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13553 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13554 * config/s390/t-linux64: New file.
13555 * config/s390/libgcc-glibc.ver: New file.
13557 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13559 * config/s390/linux64.h: Delete file.
13560 * config/s390/s390x.h: New file.
13561 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13562 as target header file.
13563 * config/s390/linux.h (TARGET_VERSION): Define depending on
13564 DEFAULT_TARGET_64BIT.
13565 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13566 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13567 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13568 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13569 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13570 (EXTRA_SPEC): New define.
13571 * config/s390/s390.h (TARGET_VERSION): Define depending on
13572 DEFAULT_TARGET_64BIT.
13573 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13575 2002-02-06 Jason Merrill <jason@redhat.com>
13577 * c-decl.c (finish_function): Warn about a non-void function with
13578 no return statement and no abnormal exit.
13579 (current_function_returns_abnormally): New variable.
13580 (start_function): Clear it.
13581 (struct c_language_function): Add returns_abnormally.
13582 (push_c_function_context): Save it.
13583 (pop_c_function_context): Restore it.
13584 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13585 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13586 an explicit return type.
13587 * c-tree.h: Declare current_function_returns_abnormally.
13588 (C_FUNCTION_IMPLICIT_INT): New macro.
13589 * c-typeck.c (build_function_call): Set it.
13590 (c_expand_return): Set current_function_returns_value even if the
13591 value is erroneous.
13593 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13596 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13597 unsafe for reevaluation.
13599 2002-02-06 Jakub Jelinek <jakub@redhat.com>
13602 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13603 EXPR_STMT, but COMPOUND_STMT, recurse into it.
13605 2002-02-06 Richard Henderson <rth@redhat.com>
13607 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13608 be a general_operand. Dest for function value must be a pseudo.
13610 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13612 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13613 as SYMBOL_REFs from the constant pool.
13615 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
13617 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13618 passed by invisible reference.
13620 2002-02-05 Richard Henderson <rth@redhat.com>
13622 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13624 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
13626 Implement using "base addresses" in insn operands as default.
13627 * config/mmix/mmix.c (mmix_conditional_register_usage): if
13628 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13629 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13630 used to read the rtx value.
13631 (mmix_target_asm_function_epilogue): Fix spacing.
13632 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13633 (mmix_legitimate_address): Ditto.
13634 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13635 should be loaded with a GETA insn. Don't allocate needless extra
13636 char for nul termination and fix misleading comment.
13637 (mmix_print_operand_address): Handle constants if
13638 TARGET_BASE_ADDRESSES.
13639 (mmix_output_register_setting): Use base addressing if
13640 TARGET_BASE_ADDRESSES and the number of insns is 3.
13641 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13642 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13643 to use R as constraint, add LDA to match s.
13644 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13645 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13646 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13647 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13648 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13649 order with other fixed registers.
13650 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13651 other parameter/call-clobbered registers.
13652 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13653 -mbase-addresses, -mno-base-addresses.
13654 (MMIX Options): Ditto.
13656 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13658 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13660 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
13662 * config/rs6000/altivec.h: Change elem to _S_elem.
13664 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13666 * config/netbsd.h (WCHAR_TYPE): Define.
13667 (WCHAR_TYPE_SIZE): Ditto.
13668 (WINT_TYPE): Ditto.
13669 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13670 (WCHAR_UNSIGNED): Ditto.
13671 (WCHAR_TYPE_SIZE): Ditto.
13672 (WINT_TYPE): Ditto.
13673 * config/arm/netbsd.h: Likewise.
13674 * config/i386/netbsd-elf.h: Likewise.
13675 * config/i386/netbsd.h: Likewise.
13676 * config/m68k/netbsd-elf.h: Likewise.
13677 * config/m68k/netbsd.h: Likewise.
13678 * config/ns32k/netbsd.h: Likewise.
13679 * config/sparc/netbsd.h: Likewise.
13680 * config/vax/netbsd.: Likewise.
13682 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
13684 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13685 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
13686 (TARGET_INITIALIZER): this.
13687 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13688 (BITFIELD_NBYTES_LIMITED): Markup fix.
13689 * tree.h (default_ms_bitfield_layout_p): Declare.
13690 (record_layout_info): Added prev_field.
13691 * tree.c (default_ms_bitfield_layout_p): New fn.
13692 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13693 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13694 * stor-layout.c: Include target.h.
13695 (start_record_layout): Initialize prev_field.
13696 (place_field): Handle MS bit-field layout, and disregard
13697 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13698 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
13699 * Makefile.in (stor-layout.o): Adjust dependencies.
13701 2002-02-05 Jason Merrill <jason@redhat.com>
13703 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13705 2002-02-05 Andreas Jaeger <aj@suse.de>
13707 * crtstuff.c: Fix comments.
13709 2002-02-05 Richard Henderson <rth@redhat.com>
13712 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13713 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13716 * config/mips/mips.c (function_arg): Handle TImode.
13717 (function_arg_advance): Likewise.
13719 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13721 * config/rs6000/altivec.h (vec_step_help): Rename to
13724 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13726 * config/rs6000/altivec.h: Fix typos.
13728 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
13730 * config/arm/netbsd.h: Correct a comment.
13732 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13734 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13735 building void typed builtins.
13737 * config/rs6000/altivec.h (vec_ld*): Fix typos.
13738 (vec_step): Implement for C++.
13740 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13742 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13744 2002-02-04 Richard Henderson <rth@redhat.com>
13746 * combine.c (nonzero_bits): Re-introduce special case for
13747 sp/fp/ap wrt REGNO_POINTER_ALIGN.
13749 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
13751 * doc/extend.texi: Warn about unsupported usage of altivec
13754 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13755 (altivec_predicate_*): New.
13757 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13758 Add C++ version of vec_*() functions.
13760 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13761 (bdesc_2arg): Remove altivec predicates.
13762 (altivec_expand_builtin): Handle predicates.
13763 (altivec_init_builtins): Handle predicates.
13764 (altivec_expand_predicate_builtin): New.
13766 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13768 * pa.c (DO_FRAME_NOTES): Move forward.
13769 (store_reg): Revise handling of frame notes.
13770 (load_reg): Likewise.
13771 (set_reg_plus_d): Likewise.
13772 (hppa_expand_prologue): Likewise.
13773 (hppa_expand_epilogue): Likewise.
13775 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13777 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13779 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13781 PR c/4475, c++/3780:
13782 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13783 * c-common.h (SWITCH_TYPE): Define.
13784 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13785 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13786 Rename spareness variable to sparseness.
13787 (expand_end_case_type): Renamed from expand_end_case, use orig_type
13788 if non-NULL instead of TREE_TYPE (orig_index).
13789 * tree.h (expand_end_case_type): Renamed from expand_end_case.
13790 (expand_end_case): Define using expand_end_case_type.
13791 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13792 to expand_end_case_type.
13793 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13795 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13797 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13798 (BIGGEST_ALIGNMENT): Change to 128.
13800 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13802 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13804 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
13806 * pa.md (call_internal_reg_64bit): Remove unused variable.
13808 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
13810 * config/arm/arm.h (machine_function): Add uses_anonymous_args
13812 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13813 * config/arm/arm.c (current_function_anonymous_args): Delete,
13814 replace uses with cfun->machine->uses_anonymous_args.
13815 (arm_reorg): Do not reset uses_anonymous_args.
13817 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13818 any geenral register.
13820 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
13822 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13825 2002-02-04 Richard Henderson <rth@redhat.com>
13827 * combine.c (force_to_mode): Remove STACK_BIAS code.
13828 (nonzero_bits): Likewise. Replace sp/fp special case with
13829 REGNO_POINTER_ALIGN.
13831 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13832 (HARD_FRAME_POINTER_REGNUM): New.
13833 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13834 (FIXED_REGS, CALL_USED_REGS): Update.
13835 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13836 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13837 (HARD_REGNO_NREGS): Update for SFP.
13838 (STACK_POINTER_OFFSET): Include bias here ...
13839 (FIRST_PARM_OFFSET): ... not here.
13840 (STACK_BIAS): Remove.
13841 (INIT_EXPANDERS): New.
13842 (STARTING_FRAME_OFFSET): Do not include bias.
13843 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13844 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13845 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13846 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13847 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13848 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13849 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13850 (MUST_SAVE_REGISTER): Likewise.
13851 (sparc_flat_function_prologue): Likewise.
13852 (sparc_flat_function_epilogue): Likewise.
13853 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13854 (sparc_init_modes): SFP is GENERAL_REGS.
13855 (sparc_builtin_saveregs): SFP does not have bias applied.
13857 2002-02-04 Richard Henderson <rth@redhat.com>
13859 * config/alpha/alpha.c (current_function_is_thunk): Don't check
13860 current_function_is_thunk.
13861 (alpha_sa_mask): Distinguish between current_function_is_thunk
13862 called from ASM_OUTPUT_MI_THUNK and not.
13863 (alpha_does_function_need_gp): Thunks always need gp.
13864 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13865 (alpha_output_mi_thunk_osf): New.
13866 * config/alpha/alpha-protos.h: Update.
13867 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13869 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
13871 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13872 function types, not when they're taken away.
13874 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
13876 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13877 CODE_LABEL and jump table when replacing a table jump with a
13880 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13882 * config/s390/s390-protos.h (legitimize_la_operand,
13883 s390_secondary_input_reload_class, s390_plus_operand,
13884 s390_expand_plus_operand): Add prototypes.
13886 config/s390/s390.c (s390_secondary_input_reload_class,
13887 s390_plus_operand, s390_expand_plus_operand): New functions.
13889 (struct s390_address): New member 'pointer'.
13890 (s390_decompose_address): Compute it.
13891 (legitimate_la_operand_p): Use it.
13892 (legitimize_la_operand): New function.
13893 (movti, movdi, movdf splitters): Call it.
13895 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13896 (PREDICATE_CODES): Add s390_plus_operand.
13898 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13899 (la_ccclobber): Allow GENERAL_REGS as output operand.
13901 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13902 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13903 (*la_64, *la_31, reload_indi, reload_insi): ... these.
13905 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13907 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13908 register names for regular asm () construct.
13910 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13912 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13915 2002-02-04 Jakub Jelinek <jakub@redhat.com>
13917 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13920 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
13922 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13923 constant pool to be identical by string address and index.
13925 2002-02-04 Anthony Green <green@redhat.com>
13927 * output.h (SECTION_OVERRIDE): Define.
13928 * varasm.c (named_section): Obey SECTION_OVERRIDE.
13930 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13932 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13933 by existing arm*-*-netbsd* (a.out) target.
13934 (ns32k-*-netbsdelf*): Likewise.
13935 (sparc-*-netbsdelf*): Likewise.
13936 (vax-*-netbsdelf*): Likewise.
13938 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
13940 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13941 headers and libobjc headers.
13943 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
13945 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13946 (_mingw.h): Remove duplicate include.
13948 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
13950 * config.gcc: Set cpu_type to m68k for 68010, as well.
13951 (m68010-*-netbsdelf*): New...
13952 (m68k*-*-netbsdelf*): ...targets.
13953 * config/m68k/netbsd-elf.h: New file.
13955 2002-02-02 Kazu Hirata <kazu@hxi.com>
13957 * config/h8300/h8300.c (hand_list): Move inside function_arg.
13959 2002-02-02 Kazu Hirata <kazu@hxi.com>
13961 * config/h8300/h8300.c (h8_push_ops): Move inside
13963 (h8_pop_ops): Likewise.
13964 (h8_move_ops): Likewise.
13966 2002-02-02 Kazu Hirata <kazu@hxi.com>
13968 * config/h8300/h8300.c (os_task): Make it static.
13969 (monitor): Likewise.
13970 (pragma_saveall): Likewise.
13972 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
13974 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13975 constant is a valid sign-extension for Pmode.
13977 2002-02-02 Kazu Hirata <kazu@hxi.com>
13979 * config/h8300/h8300.c: Fix formatting.
13981 2002-02-02 Kazu Hirata <kazu@hxi.com>
13983 * config/h8300/h8300.md: Fix formatting.
13985 2002-02-02 Kazu Hirata <kazu@hxi.com>
13987 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13988 predicates of operands[1]. Split the patterns for each
13991 2002-02-02 Kazu Hirata <kazu@hxi.com>
13993 * config/h8300/h8300.md (xor patterns): Tighten the predicates
13994 of operands[1] to register_operand.
13996 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
13998 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13999 * cpphash.c (_cpp_init_hashtable): Similarly.
14000 * cppinit.c (cpp_create_reader): Default the signed_char flag.
14001 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14002 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14003 (cpp_handle_option): Handle the new options.
14004 * cpplex.c (cpp_interpret_charconst): Use new flag.
14005 * cpplib.h (struct cpp_options): New member signed_char.
14006 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14007 (cpp_options): Handle -fsigned-char and -funsigned-char.
14008 (static_specs): Remove signed_char_spec.
14009 (do_spec1): Don't handle %c.
14010 * system.h: Poison SIGNED_CHAR_SPEC.
14011 * tradcif.y (yylex): Use flag_signed_char.
14012 * tradcpp.h (flag_signed_char): New.
14013 * tradcpp.c (flag_signed_char): New.
14014 (main): Handle new command-line options.
14015 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14017 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14018 * avr/avr.h: Remove old comments.
14019 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14020 (CC1_SPEC): Pass -fsigned-char if -mic*.
14021 (SIGNED_CHAR_SPEC): Remove.
14023 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14025 2002-02-01 Eric Christopher <echristo@redhat.com>
14027 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14028 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14029 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14030 (ASM_OUTPUT_REG_POP): Ditto.
14032 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
14034 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14037 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14039 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14041 2002-02-02 Jakub Jelinek <jakub@redhat.com>
14044 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14047 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14049 * cfganal.c: Include tm_p.h.
14050 (keep_with_call_p): Fix the test that determines if a register holds
14051 the return value of a call.
14053 2002-02-01 DJ Delorie <dj@redhat.com>
14055 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14056 we are given conflicting registers, switch to the other one we
14057 had allocated for us.
14058 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14059 as TImode so we know when the "other" register is available.
14061 2002-02-01 David O'Brien <obrien@FreeBSD.org>
14063 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14066 2002-02-01 Janis Johnson <janis187@us.ibm.com>
14068 * cfganal.c (keep_with_call_p): New function.
14069 (flow_call_edges_add): Prevent splitting a block between a call and
14070 a single-set instruction that should be kept in the same block.
14072 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
14074 * doc/install.texi (avr): Update outdated URL.
14076 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
14078 * config/stormy16/stormy16.md (pushqi): New.
14082 (movhi): Remove stack operands.
14084 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14085 nonimmediate_nonstack_operand.
14086 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14088 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14091 2002-01-31 Jason Merrill <jason@redhat.com>
14093 * Makefile.in (c-parse.c): Handle .output file.
14094 * objc/Make-lang.in (objc-parse.c): Likewise.
14096 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
14098 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14099 the -me[lb] option is given. Don't output the default flag
14102 2002-01-31 Zack Weinberg <zack@codesourcery.com>
14104 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14105 the primary source file; this has not been done yet.
14106 * c-decl.c (c_expand_body): Reset input_filename from
14107 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14109 2002-01-31 Kazu Hirata <kazu@hxi.com>
14111 * rtlanal.c (subreg_regno_offset): Do not use
14112 SUBREG_REGNO_OFFSET.
14113 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14114 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14116 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14118 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
14119 version rather than GNATS version in --version output.
14121 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
14123 * ifcvt.c (noce_process_if_block): Make a copy of the destination
14124 when copying back from a temporary.
14126 2002-01-30 Richard Henderson <rth@redhat.com>
14128 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14129 and new_dest are the same.
14131 2002-01-30 Richard Henderson <rth@redhat.com>
14134 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14135 * rtl.c (note_insn_name): Update.
14136 * emit-rtl.c (remove_unnecessary_notes): Kill it.
14137 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
14138 to perform loop rotation.
14139 (expand_exit_loop_top_cond): New.
14140 * tree.h (expand_exit_loop_top_cond): Declare it.
14141 * c-semantics.c (genrtl_while_stmt): Use it.
14142 (genrtl_for_stmt): Likewise.
14144 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
14146 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14147 arguments to 64-bit boundaries on 64-bit ABIs.
14149 2002-01-30 Steve Ellcey <sje@cup.hp.com>
14151 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14153 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
14155 * c-decl.c (grokdeclarator): Handle type being a typedef for an
14158 2002-01-30 David O'Brien <obrien@FreeBSD.org>
14160 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14161 * config/sparc/sparc_bi.h: Remove file.
14162 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14164 2002-01-30 Richard Henderson <rth@redhat.com>
14166 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14168 2002-01-30 Zack Weinberg <zack@codesourcery.com>
14170 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14172 2002-01-30 Jason Merrill <jason@redhat.com>
14174 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14175 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14176 (reg_save): Use DW_CFA_offset_extended_sf instead.
14178 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14180 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14182 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14185 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
14187 * rs6000.md ("*call_value_local32"): Remove constraints.
14188 ("*call_value_local64"): Same.
14189 ("*call_value_indirect_nonlocal_aix32"): Same.
14190 ("*call_value_nonlocal_aix32"): Same.
14191 ("*call_value_indirect_nonlocal_aix64"): Same.
14192 ("*call_value_nonlocal_aix64"): Same.
14193 ("*call_value_nonlocal_sysv"): Same.
14195 2002-01-29 Richard Henderson <rth@redhat.com>
14197 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14199 2002-01-29 Richard Henderson <rth@redhat.com>
14201 * expr.c (force_operand): Ignore flag_pic for detecting pic
14203 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14204 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14205 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14206 instead of open-coded loop.
14207 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14208 be fixed when in use.
14210 2002-01-29 Richard Henderson <rth@redhat.com>
14212 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14213 * sched-rgn.c (propagate_deps): Update them.
14214 * sched-deps.c (sched_analyze_insn): Update them. Flush the
14215 clobbers list when either gets too long.
14217 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14219 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14220 and INDEX_REGS the same as GENERAL_REGS.
14221 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14223 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14225 * tree.c (build_nonstandard_integer_type): Correct prototype.
14227 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
14229 * config/s390/s390.md (movstrsico, movstrdix_64,
14230 movstrsix_31): Remove, replace by ...
14231 (movstrdi_short, movstrsi_short, movstrdi_long,
14232 movstrsi_long): ... these. New.
14233 (movstrdi, movstrsi): Adapt.
14235 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14236 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14237 Remove unnecessary CC clobber.
14238 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14239 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14241 (divmoddi4): Don't partially initialize TImode register.
14243 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
14245 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14247 2002-01-29 Richard Henderson <rth@redhat.com>
14249 * flow.c (print_rtl_and_abort): Remove.
14250 (print_rtl_and_abort_fcn): Remove.
14251 (verify_local_live_at_start): Use dump_bb instead.
14252 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14253 (verify_wide_reg_1): Return 2 on mode test failure.
14255 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
14257 PR c/3325, c/3326, c/2511, c/3347
14258 * c-decl.c (enum_decl_context): Remove BITFIELD.
14259 (grokdeclarator): Take bitfield width as an input.
14260 Ensure bitfields are given the correct type. Perform
14261 bitfield width validation with build_bitfield_integer_type
14262 rather than waiting for finish_struct.
14263 (grok_typename, grok_typename_in_parm_context, start_decl,
14264 push_parmdecl, grokfield, start_function): Update calls to
14266 (build_bitfield_integer_type): New function.
14267 (finish_struct): Move bitfield validation to grokdeclarator
14268 and build_bitfield_integer_type.
14269 * tree.c (build_nonstandard_integer_type): New function.
14270 * tree.h (build_nonstandard_integer_type): New prototype.
14272 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14274 2002-01-29 Jakub Jelinek <jakub@redhat.com>
14277 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14278 don't ignore unrecognized -W* options.
14279 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14280 * cpplib.h (cpp_handle_option): Adjust prototype.
14281 * c-decl.c (c_decode_options): Pass 0 as last argument to
14285 * gcc.c (cpp_unique_options): Split from cpp_options.
14286 (cpp_options): Source cpp_unique_options.
14287 (default_compilers): Use cpp_unique_options instead of cpp_options
14288 when used together with cc1_options.
14289 (static_specs): Add cpp_unique_options.
14290 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14291 when used together with cc1_options.
14293 2002-01-29 Kazu Hirata <kazu@hxi.com>
14295 * config/h8300/h8300-protos.h: Update the prototype of
14297 * config/h8300/h8300.c (output_a_shift): Remove an unused
14298 argument 'insn'. Remove redundant code.
14299 * config/h8300/h8300.md: Adust to the new prototype of
14302 2002-01-29 Kazu Hirata <kazu@hxi.com>
14304 * config/h8300/h8300-protos.h: Update the prototypes of
14305 emit_a_rotate and expand_a_rotate.
14306 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14307 first argument to 'enum rtx_code'.
14308 (expand_a_rotate): Likewise.
14310 2002-01-28 Kazu Hirata <kazu@hxi.com>
14312 * config/h8300/h8300-protos.h: Update the prototype of
14314 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14316 * config/h8300/h8300.md: Adjust to the new prototype.
14318 2002-01-28 Kazu Hirata <kazu@hxi.com>
14320 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14323 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
14325 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14326 is a fixed register before returning pic_offset_table_rtx.
14327 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14328 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14330 2002-01-28 Jason Merrill <jason@redhat.com>
14332 * dwarf2.h: Sync with src version.
14334 2002-01-28 Paul Koning <pkoning@equallogic.com>
14336 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14337 BT_FN_VOID_PTR_VAR.
14338 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14339 * doc/extend.texi (__builtin_prefetch): Update documentation:
14340 first argument is now const void ptr.
14342 2002-01-28 Kazu Hirata <kazu@hxi.com>
14344 * config/h8300/h8300-protos.h: Remove an unused prototype.
14346 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
14348 * toplev.c (lang_independent_init): Round up identifier size.
14350 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14352 * config.gcc: Revert previous change.
14354 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
14356 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14358 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
14360 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14361 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
14362 other non-elf netbsd config frags.
14363 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14364 collect2 will does that.
14365 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14366 shared-lib frobbing will work.
14368 2002-01-28 Kazu Hirata <kazu@hxi.com>
14370 * config/h8300/h8300.h: Fix formatting.
14371 * config/h8300/h8300.md: Likewise.
14373 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
14375 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14376 the old, removed AAA_standards fix.
14377 * fixinc/fixincl.x: Rebuilt.
14379 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
14381 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14382 atexit call in crtbegin, hooked in after call to frame_dummy;
14383 register EH before registering __fini__start.
14385 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
14387 * config/rs6000/altivec.h: Remove spurious semicolons.
14389 2002-01-27 Kazu Hirata <kazu@hxi.com>
14391 * config/h8300/h8300.md: Replace dead bit extraction patterns
14392 with ones that work.
14394 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14396 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14397 if not STRICT_ALIGNMENT.
14398 * rtl.h (MEM_ALIGN): Likewise.
14400 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
14402 * doc/invoke.texi (-fdump-translation-unit): Revert this
14403 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
14405 2002-01-27 Kazu Hirata <kazu@hxi.com>
14407 * config/h8300/h8300.md (define_constants): New.
14408 (anonymous patterns) Use defined constants appropriately.
14410 2002-01-27 Kazu Hirata <kazu@hxi.com>
14412 * config/h8300/h8300.c (function_arg): Remove redundant code.
14414 2002-01-26 Richard Henderson <rth@redhat.com>
14416 * sched-deps.c (reg_pending_uses_head): New.
14417 (reg_pending_barrier): Rename from reg_pending_sets_all.
14418 (find_insn_list): Don't mark inline.
14419 (find_insn_mem_list): Remove.
14420 (add_dependence_list, add_dependence_list_and_free): New.
14421 (flush_pending_lists): Replace only_write param with separate
14422 for_read and for_write parameters. Update all callers. Use
14423 add_dependence_list_and_free.
14424 (sched_analyze_1): Do not add reg dependencies here; just set
14425 the pending bits. Use add_dependence_list.
14426 (sched_analyze_2): Likewise.
14427 (sched_analyze_insn): Replace schedule_barrier_found with
14428 reg_pending_barrier. Add all dependencies for pending reg
14429 uses, sets, and clobbers.
14430 (sched_analyze): Don't add reg dependencies for calls, just
14431 set pending bits. Use regs_invalidated_by_call. Treat
14432 sched_before_next_call as a normal list, not a fake insn.
14433 (init_deps): No funny init for sched_before_next_call.
14434 (free_deps): Free pending mems lists. Don't zero reg_last.
14435 (init_deps_global): Init reg_pending_uses.
14436 (finish_deps_global): Free it.
14437 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
14438 (find_insn_mem_list): Remove.
14439 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14440 (propagate_deps): Use them. Zero temp mem lists.
14442 2002-01-26 Richard Henderson <rth@redhat.com>
14444 * Makefile.in (CRTSTUFF_CFLAGS): New.
14445 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14446 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14447 crtstuff.c instead of alpha assembly version.
14448 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14449 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
14450 not FORCE_{INIT,FINI}_SECTION_ALIGN.
14451 (__do_global_dtors_aux): Mark used.
14452 (frame_dummy, __do_global_ctors_aux): Mark used.
14453 (fini_dummy, init_dummy): Remove.
14455 * config/alpha/crtbegin.asm: Remove file.
14456 * config/alpha/crtend.asm: Remove file.
14457 * config/alpha/t-crtbe: Remove file.
14458 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14459 (LINK_EH_SPEC): New.
14461 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14462 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
14463 calling constructors.
14464 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14466 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14467 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14468 CRT_END_INIT_DUMMY hack.
14469 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14470 FORCE_{INIT,FINI}_SECTION_ALIGN.
14472 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14473 FORCE_{INIT,FINI}_SECTION_ALIGN.
14475 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14476 invocation sequence.
14477 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14479 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14480 (FORCE_CODE_SECTION_ALIGN): New.
14482 2002-01-26 Richard Henderson <rth@redhat.com>
14484 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14486 2002-01-26 Richard Henderson <rth@redhat.com>
14488 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14489 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14491 2002-01-26 Kazu Hirata <kazu@hxi.com>
14493 * config/h8300/h8300.md: Remove bit extraction patterns that
14494 cannot be triggered.
14495 Restrict each bit extraction pattern to a variant on which the
14498 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
14500 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14502 2002-01-26 Kazu Hirata <kazu@hxi.com>
14504 * config/h8300/h8300.md: Remove bit test patterns that cannot
14506 Restrict each bit test pattern to a variant on which the
14509 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14511 * builtins.c (expand_builtin_strncat): Remove redundant check for
14514 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14516 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14518 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14521 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14523 * dbxout.c (dbxout_init): Use assemble_name rather than just
14524 stripping off the first character.
14525 (dbxout_source_file): Likewise.
14527 2002-01-25 DJ Delorie <dj@redhat.com>
14529 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14530 using rtx_equal_p, not by comparing pointers.
14532 2002-01-25 Steve Ellcey <sje@cup.hp.com>
14534 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14535 for PIC_OFFSET_TABLE_REGNUM.
14536 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14538 2002-01-25 David O'Brien <obrien@FreeBSD.org>
14540 * config.gcc (x86_64-*-freebsd*): New target.
14541 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14543 (i[34567]86-*-freebsd*): Don't include svr4.h.
14544 * config/i386/freebsd64.h: New file.
14546 2002-01-25 Douglas B Rupp <rupp@gnat.com>
14548 * config/alpha/x-vms (version): Make static.
14550 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14551 in previous checkin.
14553 * Makefile.in (install-headers-cp): New target.
14554 * config.gcc (alpha-dec-*vms*): Install headers with
14557 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
14559 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14562 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14564 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14565 of compare_tree_int.
14566 (expand_builtin_strncat): Likewise.
14567 * c-decl.c (finish_struct): Use tree_low_cst.
14568 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14569 * tree.c (compare_tree_int): Likewise.
14571 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
14573 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14574 adjustments even if they are implemented by more than two insns.
14576 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
14578 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14579 * df.h (struct ref): Kill B.
14580 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14582 * basic-block.h (PROP_EQUAL_NOTES): New flag.
14583 * flow.c (propagate_one_insn): Use it.
14584 (mark_used_regs): Handle NIL.
14586 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
14588 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14591 2002-01-25 David Edelsohn <edelsohn@gnu.org>
14593 * rs6000.md (prefetch): Make address V4SI mode so that the address
14594 is restricted to legitimate form for instruction.
14596 2002-01-25 Bob Wilson <bob.wilson@acm.org>
14598 * doc/install.texi (xtensa-*-elf): New target.
14599 (xtensa-*-linux*): New target.
14600 * doc/contrib.texi: Add myself.
14602 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
14604 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14605 purpose register to hold an SImode (or smaller) value.
14607 2002-01-25 Jakub Jelinek <jakub@redhat.com>
14609 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14611 * crtstuff.c: Likewise.
14613 2002-01-25 Kazu Hirata <kazu@hxi.com>
14615 * config/h8300/h8300.md (negation patterns): Tighten
14616 predicates to register_operand.
14618 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
14620 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14623 * builtins.c (expand_builtin_prefetch): Same.
14625 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14627 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14630 2002-01-24 Kazu Hirata <kazu@hxi.com>
14632 * config/h8300/h8300.c (print_operand): Remove support for
14633 operand character 'A'.
14634 * config/h8300/h8300.md (three anonymous patterns): Replace
14635 operand character 'A' with either 'T' or 'S'.
14637 2002-01-24 Kazu Hirata <kazu@hxi.com>
14639 * config/h8300/h8300.c (print_operand): Remove support for
14640 operand character 'U'.
14642 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
14644 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14646 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
14648 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14649 values to be assigned to the stack pointer.
14651 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
14653 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14654 to const_double needs to be done right for big-endian systems.
14656 2002-01-24 Jason Merrill <jason@redhat.com>
14659 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14660 to can_throw_internal.
14662 2002-01-23 Richard Henderson <rth@redhat.com>
14664 * fold-const.c (fold): Change UINT_MAX test to check vs precision
14665 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
14667 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14669 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14670 (symGOT2reg): Use them, then set as GOT value as unchanging.
14671 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
14672 as a temporary, if possible.
14673 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
14674 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14676 2002-01-23 Kazu Hirata <kazu@hxi.com>
14678 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14679 accept to accept 0x80 as operands[2].
14681 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14683 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14685 2002-01-23 Richard Henderson <rth@redhat.com>
14687 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14689 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
14691 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14692 (parmlist_or_identifiers_1): Verify that only a parmlist follows
14695 2002-01-23 Richard Henderson <rth@redhat.com>
14697 * expr.c (move_by_pieces_1): Extend size before negation.
14699 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14700 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14701 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14702 * config/m68k/t-m68kelf: Likewise.
14704 2002-01-23 Bob Wilson <bob.wilson@acm.org>
14706 * config/xtensa/elf.h: New file.
14707 * config/xtensa/lib1funcs.asm: New file.
14708 * config/xtensa/lib2funcs.S: New file.
14709 * config/xtensa/linux.h: New file.
14710 * config/xtensa/t-xtensa: New file.
14711 * config/xtensa/xtensa-config.h: New file.
14712 * config/xtensa/xtensa-protos.h: New file.
14713 * config/xtensa/xtensa.c: New file.
14714 * config/xtensa/xtensa.h: New file.
14715 * config/xtensa/xtensa.md: New file.
14716 * config.gcc (xtensa-*-elf*): New target.
14717 (xtensa-*-linux*): New target.
14718 * cse.c (canon_hash): Compare rtx pointers instead of register
14719 numbers. This is required for the Xtensa port.
14720 * integrate.c (copy_insn_list): Handle case where the static
14721 chain is in memory and the memory address has to be copied to
14723 * doc/invoke.texi (Option Summary): Add Xtensa options.
14724 (Xtensa Options): New node.
14725 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14727 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14729 * diagnostic.c (internal_error): Do ICE suppression only
14730 when ENABLE_CHECKING is not defined.
14732 * c-typeck.c (require_complete_type): Return error_mark_node
14733 if type is error_mark_node.
14735 2002-01-23 Janis Johnson <janis187@us.ibm.com>
14737 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14738 -Os and issue a warning.
14740 2002-01-23 Zack Weinberg <zack@codesourcery.com>
14742 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14743 current (lack of) need for host configuration by hand.
14745 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14746 references. Documentation of some target macros moved from
14747 hostconfig.texi to tm.texi.
14749 2002-01-23 Will Cohen <wcohen@redhat.com>
14751 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14754 2002-01-23 Kazu Hirata <kazu@hxi.com>
14756 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14759 2002-01-23 Jason Merrill <jason@redhat.com>
14761 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14763 * function.c (assign_parms): Don't put args of inline functions
14764 into registers when not optimizing.
14766 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
14768 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14769 (prologue_use): New pattern.
14770 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14771 preference to gen_rtx_USE.
14772 (thumb_expand_prologue): Use gen_prologue_use in preference to
14774 (thumb_expand_epilogue): Use gen_prologue_use in preference to
14777 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
14779 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14781 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
14784 * doc/extend.texi: Correct documentation of __alignof__.
14786 2002-01-22 Zack Weinberg <zack@codesourcery.com>
14788 * params.h: Rename arguments of DEFPARAM so that it will be
14789 recognized as a translation keyword.
14791 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14793 * extend.texi: Document altivec functions.
14794 Fix N-bit adjectives in X86 builtin documentation.
14796 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14798 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14799 auto_inc_dec values.
14801 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
14803 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14805 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14807 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
14809 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14811 2002-01-22 Richard Henderson <rth@redhat.com>
14813 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14814 copy_insn not copy_rtx.
14816 2002-01-23 Alan Modra <amodra@bigpond.net.au>
14818 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14819 "nonzero" as that might add "1" bits. Ensure "constop" is
14820 properly sign extened.
14821 (force_to_mode): Tweak for sign extended constop.
14823 2002-01-22 Richard Henderson <rth@redhat.com>
14825 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14826 for_each_rtx instead of assuming we're already looking at the MEM.
14827 (split_small_symbolic_mem_operand): Likewise.
14828 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14829 * config/alpha/alpha.md (small symbolic memory splitters): Update.
14831 2002-01-22 Richard Henderson <rth@redhat.com>
14833 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14834 sequence number for the literal.
14835 (divmoddi_internal_er): Likewise.
14837 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14840 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14841 in LIBICONV variable.
14842 * configure: Regenerated.
14844 2002-01-22 Krister Walfridsson <cato@df.lth.se>
14846 * dependence.c (build_def_use): Remove array_idx.
14848 * dwarfout.c (last_filename): Remove.
14849 (output_compile_unit_die): Remove last_filename.
14851 2002-01-22 Roger Sayle <roger@eyesopen.com>
14852 Richard Henderson <rth@redhat.com>
14855 * fold-const.c (fold): Optimize unsigned comparisons against
14856 UINT_MAX (and similar unsigned constants).
14858 2002-01-22 Janis Johnson <janis187@us.ibm.com>
14860 * Makefile.in (loop.o): Depend on OPTABS_H.
14861 * loop.c (emit_prefetch_instructions): Check the prefetch operand
14862 against the predicate.
14865 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14866 for the address operand.
14868 2002-01-22 Richard Henderson <rth@redhat.com>
14870 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14872 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
14875 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14876 preprocessor flags.
14878 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
14880 * config.gcc (x86_64-*-netbsd*): New target.
14881 * config/i386/netbsd64.h: New file.
14883 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14885 * regrename.c (kill_value): Fix typo.
14887 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
14889 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14891 * config/rs6000/rs6000.h: Same.
14893 * function.c (instantiate_virtual_regs): Remove
14894 STARTING_FRAME_PHASE.
14895 (assign_stack_local_1): Same.
14896 Calculate frame phase.
14898 2002-01-22 Nick Clifton <nickc@redhat.com>
14900 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14901 variable declaration to outer scope in order to simplify
14903 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14904 arm_hard_regno_mode_ok.
14905 * config/arm/arm-protos.h: Add a prototype for
14906 arm_hard_regno_mode_ok.
14907 * config/arm/arm.c (soft_df_operand): Remove now redundant
14908 check for DImode values using IP_REGNUM.
14909 (nonimmediate_soft_df_operand): Remove now redundant check for
14910 DImode values using IP_REGNUM.
14911 (arm_hard_regno_mode_ok): New function. New check: make sure
14912 that DImode values are not stored in IP_REGNUM.
14914 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14916 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14918 2002-01-22 Jason Merrill <jason@redhat.com>
14920 * c-semantics.c (genrtl_compound_stmt): Only check nesting
14921 consistency if this COMPOUND_STMT is scoped.
14923 2002-01-22 Kazu Hirata <kazu@hxi.com>
14925 * predict.c: Fix formatting.
14926 * print-tree.c: Likewise.
14927 * protoize.c: Likewise.
14928 * real.h: Likewise.
14930 * sbitmap.h: Likewise.
14931 * scan.c: Likewise.
14932 * sched-deps.c: Likewise.
14933 * sched-vis.c: Likewise.
14934 * sdbout.c: Likewise.
14935 * sibcall.c: Likewise.
14937 * ssa-ccp.c: Likewise.
14938 * ssa-dce.c: Likewise.
14939 * stmt.c: Likewise.
14940 * stor-layout.c: Likewise.
14941 * system.h: Likewise.
14943 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14945 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14946 if fits in bounds of base type.
14948 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14949 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14950 (add_bound_info, default): If can't find a context, make a
14952 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14954 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
14956 * c-typeck.c (parser_build_binary_op): If result from
14957 build_binary_op is ERROR_MARK just return error_mark_node without
14958 further processing.
14960 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
14962 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14963 Split a.out-specific bits into...
14964 * config/netbsd-aout.h: ...this.
14965 * config/netbsd-elf.h: New file.
14966 * config/alpha/netbsd-elf.h: Remove.
14967 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14968 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14969 (STARTFILE_SPEC): Remove redundant definition.
14970 (ENDFILE_SPEC): Likewise.
14971 (LINK_SPEC): Likewise.
14972 (CPP_SPEC): Likewise.
14973 (ASM_SPEC): Likewise.
14974 (LIB_SPEC): Likewise.
14975 (SWITCH_TAKES_ARG): Likewise.
14976 (TARGET_MEM_FUNCTIONS): Likewise.
14977 (CPP_PREDEFINES): Redefine.
14978 (ASM_FINAL_SPEC): Remove redefinition.
14979 (ASM_COMMENT_START): Redefine.
14980 (FUNCTION_PROFILER): Define.
14981 (TARGET_VERSION): Redefine.
14982 Comment and formatting cleanup.
14983 * config/i386/netbsd.h: Include <netbsd-aout.h>.
14984 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14985 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14986 big- or little-endian.
14987 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14988 * config.gcc (*-*-netbsd*): Add definitions common to all
14990 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14991 gnu_ld definitions. Add netbsd-elf.h to and remove
14992 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
14993 tmake_file, and don't lose previous tmake_file contents.
14994 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14995 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14996 gnu_ld definitions. Add netbsd-elf.h to tm_file.
14997 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14998 (mipsel-*-netbsd*): Rename this to...
14999 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
15000 mips/little.h to tm_file for mips*el-*.
15001 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15002 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15003 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15005 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15007 * pa-protos.h (reg_before_reload_operand): New function prototype.
15008 * pa.c (reg_before_reload_operand): New function implementation.
15009 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
15010 contraints to "*m".
15012 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15014 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15016 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
15018 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15019 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15020 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15021 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15022 (ENDFILE_SPEC): Undefine.
15023 (STARTFILE_SPEC): Redefine for PA.
15025 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15027 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15029 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
15031 * config.gcc: Add entries to supported PowerPC --with-cpu
15034 2002-01-21 Jakub Jelinek <jakub@redhat.com>
15036 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15037 true for 64-bit mode only SSE registers in 32-bit mode.
15039 2002-01-21 Kazu Hirata <kazu@hxi.com>
15041 * unwind-dw2.c: Fix formatting.
15042 * unwind-dw2-fde.c: Likewise.
15043 * unwind-dw2-fde.h: Likewise.
15044 * unwind-pe.h: Likewise.
15045 * varasm.c: Likewise.
15046 * varray.h: Likewise.
15048 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
15050 Remove workaround for register stack overwrite bug in mmix.
15051 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15052 support for TARGET_REG_STACK_FILL_BUG.
15053 * config/mmix/mmix.h: Remove member has_call_without_parameters.
15054 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15056 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15057 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15058 -mno-reg-stack-fill-bug-workaround.
15059 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15060 machine member has_call_without_parameters.
15061 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15062 -mreg-stack-fill-bug-workaround and
15063 -mno-reg-stack-fill-bug-workaround.
15064 (MMIX Options): Ditto.
15066 2002-01-21 Kazu Hirata <kazu@hxi.com>
15068 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15070 Remove redundant code.
15072 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
15074 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15075 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15076 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15077 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15078 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15079 out target macro definitions and non-target-specific comments
15080 mostly taken from old versions of the manual.
15082 2002-01-20 Kazu Hirata <kazu@hxi.com>
15084 * config/h8300/h8300.h: Fix comment formatting.
15085 * config/ia64/aix.h: Likewise.
15086 * config/ia64/ia64-protos.h: Likewise.
15087 * config/ia64/ia64.c: Likewise.
15088 * config/ia64/ia64.h: Likewise.
15089 * config/ia64/ia64intrin.h: Likewise.
15090 * config/ia64/linux.h: Likewise.
15091 * config/ia64/unwind-aix.c: Likewise.
15092 * config/ia64/unwind-ia64.c: Likewise.
15094 2002-01-20 Kazu Hirata <kazu@hxi.com>
15096 * config/h8300/h8300.c: Revise comments about shift code.
15098 2002-01-20 Kazu Hirata <kazu@hxi.com>
15100 * config/h8300/h8300.c (function_arg): Update a comment.
15102 2002-01-20 Kazu Hirata <kazu@hxi.com>
15104 * config/h8300/h8300.md: Update the comments at the beginning
15107 2002-01-20 Kazu Hirata <kazu@hxi.com>
15109 * config/i370/i370.c: Fix comment formatting.
15110 * config/i370/i370.h: Likewise.
15111 * config/i370/i370.md: Likewise.
15112 * config/i370/linux.h: Likewise.
15114 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15116 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15118 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15119 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15120 in incomplete case.
15122 2002-01-20 Graham Stott <grahams@redhat.com>
15124 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15126 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
15128 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15130 2002-01-19 Tom Rix <trix@redhat.com>
15132 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15134 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
15136 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15138 * function.c (assign_stack_local_1): Adjust x_frame_offset with
15139 STARTING_FRAME_PHASE.
15140 (STARTING_FRAME_PHASE): New.
15141 (instantiate_virtual_regs): Check saneness of
15142 STARTING_FRAME_PHASE.
15144 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15146 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15148 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15150 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
15152 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15153 be used for bootstrapping GCC 3.0.
15155 2002-01-18 Kazu Hirata <kazu@hxi.com>
15157 * config/h8300/h8300.md: Fix an insn length.
15159 2002-01-18 Kazu Hirata <kazu@hxi.com>
15161 * bitmap.h: Fix comment formatting.
15162 * combine.c: Likewise.
15163 * cppfiles.c: Likewise.
15164 * c-pragma.h: Likewise.
15165 * c-typeck.c: Likewise.
15167 * dwarf2out.c: Likewise.
15168 * function.c: Likewise.
15170 * genattrtab.c: Likewise.
15171 * gthr-win32.h: Likewise.
15172 * haifa-sched.c: Likewise.
15173 * predict.c: Likewise.
15174 * rtlanal.c: Likewise.
15176 * unwind-dw2-fde.h: Likewise.
15177 * unwind-pe.h: Likewise.
15178 * vmsdbgout.c: Likewise.
15180 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15182 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15183 if type_required and passed decl.
15185 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
15187 * config.gcc (cpu_type): Include altivec.h in powerpc
15191 * config/rs6000/altivec.h: New.
15193 2002-01-17 David Edelsohn <edelsohn@gnu.org>
15195 * doc/install.texi (*-ibm-aix*): Update assembler and exception
15196 handling information.
15197 * doc/trouble.texi (Interoperation): Add libstdc++ information
15199 (Misunderstandings): Add template instantiation and static template
15200 member information for AIX.
15202 2002-01-17 Jason Merrill <jason@redhat.com>
15204 * dbxout.c (dbxout_type): Support const and volatile.
15206 * except.c (add_partial_entry): Remove backwards compatibility code.
15207 (end_protect_partials): Likewise.
15209 2002-01-17 Jakub Jelinek <jakub@redhat.com>
15211 * config/ia64/ia64.md (prologue_use): New.
15212 * config/ia64/ia64.c (ia64_expand_prologue): Use
15213 gen_prologue_use instead of gen_rtx_USE.
15214 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15215 as CODE_FOR_pred_rel_mutex.
15216 (ia64_sched_reorder2): Likewise.
15218 2002-01-16 Eric Christopher <echristo@redhat.com>
15220 * config/mips/r3900.h: Reformat.
15221 (SUBTARGET_CPP_SIZE_SPEC): Remove.
15222 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15223 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15224 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15225 * config/mips/t-elf: Remove mips3 multilib.
15227 2002-01-16 H.J. Lu <hjl@gnu.org>
15229 * config/mips/linux.h: Include "mips/abi64.h".
15231 2002-01-16 H.J. Lu <hjl@gnu.org>
15233 * config/mips/t-linux: New.
15235 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15237 * config/mips/linux.h: Don't include "gofast.h".
15238 (INIT_SUBTARGET_OPTABS): Removed.
15240 2002-01-16 Kazu Hirata <kazu@hxi.com>
15242 * config/h8300/h8300-protos.h: Replace emit_a_shift with
15244 * config/h8300/h8300.c: Likewise.
15245 * config/h8300/h8300.md: Likewise.
15247 2002-01-16 Kazu Hirata <kazu@hxi.com>
15249 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15250 spaces after an opcode name.
15251 (pushqi1_h8300hs): Likewise.
15252 (pushhi1_h8300hs): Likewise.
15254 2002-01-16 Kazu Hirata <kazu@hxi.com>
15256 * doc/extend.texi: Replace "option" with "attribute"
15259 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15261 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15262 (and:DI () (const_int -8)).
15263 (split_small_symbolic_mem_operand): Split
15264 (mem (and:DI () (const_int -8)).
15266 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15269 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15270 same way as TYPE_IMUL.
15271 (ultrasparc_sched_reorder): Likewise.
15272 * config/sparc/sparc.md (type): Add comment to update
15273 ultrasparc_sched_reorder when making changes.
15275 2002-01-16 Kazu Hirata <kazu@hxi.com>
15277 * doc/invoke.texi: Change the dump file name of block
15278 reordering pass from 28.bbro to 29.bbro.
15279 Mention -dk option.
15281 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
15283 * i386.md (minsf splitter): Fix pasto.
15285 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15287 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15288 to frame pointer initialisation instruction.
15289 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15290 initialisation instruction.
15291 (soft_df_operand): Do not accept the IP register.
15292 (nonimmediate_soft_df_operand): Do not accept the IP register.
15294 2002-01-16 Jakub Jelinek <jakub@redhat.com>
15297 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15298 MASK_V8 being both set.
15300 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
15302 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15303 insn for GOT register; add REG_MAYBE_DEAD notes instead.
15304 config/s390/s390.md (call, call_value): Add GOT register to
15305 CALL_INSN_FUNCTION_USAGE where needed.
15306 (call_exp, call_value_exp): New.
15308 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
15310 * config/arm/arm.c: General formatting tidy up.
15312 2002-01-16 Graham Stott <grahams@redhat.com>
15314 * calls.c (try_to_integrate): Use "(size_t)" intermediate
15315 cast and when casting an integer literal to "rtx" pointer.
15316 (expand_call): Likewise.
15317 * flow.c (try_pre_increment): Likewise.
15318 (find_use_as_address): Likewise.
15319 * integrate.c (expand_iline_function): Likewise.
15320 * regmove.c (try_auto_increment): Likewise.
15322 2002-01-16 Graham Stott <grahams@redhat.com>
15324 * sched-rgn.c (passed): Use sbitmap_free.
15325 (header): Likewise.
15327 (in_queue): Likewise.
15328 (in_stack): Likewise.
15330 2002-01-15 Eric Christopher <echristo@redhat.com>
15332 * flow.c (propagate_one_insn): Change to use fatal_insn.
15334 2002-01-15 Kazu Hirata <kazu@hxi.com>
15336 * expmed.c (extract_fixed_bit_field): Remove unused code.
15337 * system.h: Poison SLOW_ZERO_EXTEND.
15338 * doc/tm.texi: Remove.
15339 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15340 * config/arm/arm.h: Likewise.
15341 * config/avr/avr.h: Likewise.
15342 * config/clipper/clipper.h: Likewise.
15343 * config/convex/convex.h: Likewise.
15344 * config/d30v/d30v.h: Likewise.
15345 * config/dsp16xx/dsp16xx.h: Likewise.
15346 * config/elxsi/elxsi.h: Likewise.
15347 * config/fr30/fr30.h: Likewise.
15348 * config/h8300/h8300.h: Likewise.
15349 * config/i370/i370.h: Likewise.
15350 * config/i386/i386.h: Likewise.
15351 * config/m68k/m68k.h: Likewise.
15352 * config/mips/mips.h: Likewise.
15353 * config/ns32k/ns32k.h: Likewise.
15354 * config/pdp11/pdp11.h: Likewise.
15355 * config/pj/pj.h: Likewise.
15356 * config/s390/s390.h: Likewise.
15357 * config/sh/sh.h: Likewise.
15358 * config/stormy16/stormy16.h: Likewise.
15359 * config/v850/v850.h: Likewise.
15360 * config/vax/vax.h: Likewise.
15361 * config/we32k/we32k.h: Likewise.
15363 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15365 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15366 (altivec_lvsl): Change constraint to b.
15367 (altivec_lvsr): Same.
15368 (altivec_lvebx): Same.
15369 (altivec_lvehx): Same.
15370 (altivec_lvewx): Same.
15371 (altivec_lvxl): Same.
15372 (altivec_lvx): Same.
15373 (altivec_stvx): Add parallel.
15374 (altivec_stvxl): Same.
15375 (altivec_stvehx): Same.
15376 (altivec_stvebx): Same.
15377 (altivec_stvebx): Same.
15379 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
15381 * config.gcc: Change altivec.h to altivec-defs.h.
15383 * config/rs6000/altivec.h: Delete.
15385 * config/rs6000/altivec-defs.h: Add.
15387 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15389 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15392 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15393 less than or equal to eight bytes.
15395 * vax.md (andsi3): Remove constraints and change SET destination
15396 operand type to nonimmediate_operand.
15397 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
15398 when it is a CONST_INT.
15400 2002-01-15 Jason Merrill <jason@redhat.com>
15402 * c-common.def (FILE_STMT): New code.
15403 * c-common.c (statement_code_p): It's a statement.
15404 * c-common.h (stmt_tree_s): Add x_last_filename.
15405 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15406 (last_expr_filename): New macro.
15407 * c-semantics.c (begin_stmt_tree): Initialize it.
15408 (add_stmt): If the filename changed, also insert a
15410 (expand_stmt): Handle seeing one.
15412 2002-01-15 Eric Christopher <echristo@redhat.com>
15414 * flow.c (propagate_one_insn): Add error message and print out
15415 insn for debugging.
15417 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15419 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15420 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15421 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15422 TRAMPOLINE_ALIGNMENT.
15423 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
15425 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15426 PCC_BITFIELD_TYPE_MATTERS.
15427 * config/interix.h (STDC_VALUE): Remove. Use
15428 STDC_0_IN_SYSTEM_HEADERS.
15429 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15430 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15431 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15433 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
15435 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15436 not work on this platform currently.
15438 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
15440 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15441 readonly_warning in _().
15443 2002-01-15 Douglas B Rupp <rupp@gnat.com>
15445 * gcc.c (delete_if_ordinary): Backout previous change.
15447 2002-01-15 Kazu Hirata <kazu@hxi.com>
15449 * config/h8300/h8300.c (print_operand): Remove support for
15450 unused operand characters.
15452 * read-rtl.c: Fix formatting.
15453 * real.c: Likewise.
15454 * recog.c: Likewise.
15455 * regclass.c: Likewise.
15456 * regmove.c: Likewise.
15457 * reg-stack.c: Likewise.
15458 * reload1.c: Likewise.
15459 * rtlanal.c: Likewise.
15461 2002-01-15 Kazu Hirata <kazu@hxi.com>
15463 * config/i386/i386.c: Fix formatting.
15465 2002-01-15 Jakub Jelinek <jakub@redhat.com>
15467 * c-typeck.c (process_init_element): Don't save_expr
15468 COMPOUND_LITERAL_EXPR if just its initializer will be used.
15470 2002-01-15 David Edelsohn <edelsohn@gnu.org>
15472 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15473 emit optional traceback table if optimize_size or TARGET_ELF.
15474 * config/rs6000/rs6000.md (prefetch): New.
15476 2002-01-15 Andreas Jaeger <aj@suse.de>
15478 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15480 2002-01-15 Kazu Hirata <kazu@hxi.com>
15482 * mips-tfile.c: Fix formatting.
15484 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
15486 * unroll.c (final_reg_note_copy): Fix previous commit.
15488 2002-01-14 Kazu Hirata <kazu@hxi.com>
15490 * config/h8300/h8300-protos.h: Remove the prototype for
15492 * config/h8300/h8300.c (eq_operator): Remove.
15494 2002-01-14 Richard Henderson <rth@redhat.com>
15496 * config/i386/i386.md (prefetch): Tidy.
15497 (prefetch_3dnow): Fix locality operand.
15499 2002-01-14 Richard Henderson <rth@redhat.com>
15501 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15502 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15504 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
15506 * reload1.c (reload_combine): Pass reg_sum replacement through
15507 copy_rtx in loop performing multiple changes.
15509 2002-01-14 Jakub Jelinek <jakub@redhat.com>
15511 * except.c (remove_unreachable_regions): New.
15512 (free_eh_status): Clear exception_handler_labels.
15513 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15514 (find_exception_handler_labels): Don't add the same label more than
15516 (remove_exception_handler_label): Don't die if
15517 find_exception_handler_labels hasn't been called for the current
15520 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
15522 * toplev.c (rest_of_compilation): Rebuild jump labels after
15525 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
15527 * doc/extend.texi: Move documentation of X86 built-in functions
15529 * doc/invoke.texi: From here.
15530 * doc/sourcebuild.texi: Document location of documentation for
15531 machine built-in functions.
15533 2002-01-13 Christopher Faylor <cgf@redhat.com>
15535 * cppfiles.c (TEST_THRESHOLD): New macro.
15536 (SHOULD_MMAP): Ditto.
15537 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15540 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
15542 * unroll.c (final_reg_note_copy): Properly handle
15544 (unroll_loops): Fix LOOP_CONDITION heuristics.
15546 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
15548 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15549 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15551 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
15553 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15556 2002-01-14 Tom Rix <trix@redhat.com>
15558 * config/rs6000/rs6000.md: Fix typo with sradi.
15560 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
15562 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15563 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15564 (clrstrdi, clrstrsi): Adapt callers.
15566 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15568 (movti splitter): Never use register 0 as base register.
15570 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
15572 * combine.c (simplify_shift_const): Always generate new rtx
15573 for shift expression instead of reusing given expression.
15575 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15577 * config/alpha/alpha.c (alpha_expand_mov): Don't call
15578 alpha_legitimize_address unless mode is Pmode.
15580 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
15582 * doc/md.texi (Modifiers): Document the '*' constraint for the
15585 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15586 * doc/extend.texi (Function Attributes): 'interrupt' is valid
15589 2002-01-13 Richard Henderson <rth@redhat.com>
15591 * reload.c (find_reloads): Use a hard reg destination as reload reg
15592 for an input reload of the source.
15594 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15596 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15599 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
15601 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15602 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15604 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15606 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15608 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15610 2002-01-12 Tom Rix <trix@redhat.com>
15612 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15615 2002-01-12 Richard Henderson <rth@redhat.com>
15617 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15619 * doc/invoke.texi: Update Alpha options.
15621 * doc/invoke.texi: Update i386 built-in function lists.
15623 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
15625 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15626 referencing outside.
15628 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15630 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15631 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15632 offsets, and change line folding.
15633 * optabs.c (expand_binop): Remove warnings.
15634 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15636 2002-01-12 Graham Stott <grahams@redhat.com>
15638 * attribs.c (handle_deprecated_attribute): constify WHAT.
15639 * diagnostic.c (warn_deprecated_use): Add braces, fixes
15640 dangling else warning and constify WHAT.
15641 * except.h (struct function, struct inline_remap): Move
15642 struct tag forward defs before all prototypes.
15643 (duplicate_eh_regions): Whitespace.
15645 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
15647 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15648 MODE_BASE_REG_CLASS.
15649 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15651 2002-01-12 Richard Henderson <rth@redhat.com>
15653 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15654 (ix86_expand_vector_move): New.
15655 (bdesc_2arg): Remove andps, andnps, orps, xorps.
15656 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
15657 Remove old prefetch builtins. Special case the logicals removed above.
15658 (ix86_expand_builtin): Likewise.
15659 (safe_vector_operand): Use V4SFmode, not TImode.
15660 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
15661 (ix86_expand_timode_binop_builtin): New.
15662 * config/i386/i386-protos.h: Update.
15663 * config/i386/i386.h (enum ix86_builtins): Update.
15664 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15665 Use ix86_expand_vector_move in vector move expanders.
15666 (movti_internal, movti_rex64): Add xorps alternative.
15667 (sse_clrv4sf): Rename and adjust from sse_clrti.
15668 (prefetch): Don't work so hard.
15669 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15670 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15671 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15673 2002-01-11 Richard Henderson <rth@redhat.com>
15675 * config/i386/mmintrin.h: New file.
15676 * config/i386/xmmintrin.h: New file.
15677 * config.gcc (i?86-*-*): Add extra_headers.
15678 * simplify-rtx.c (simplify_unary_operation): Handle saturating
15680 (simplify_binary_operation): Handle saturating arithmetic codes.
15681 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15682 not the lowpart subreg.
15683 (ix86_expand_builtin): Return a TImode dummy register instead of 0
15685 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15687 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15689 * conflict.c (conflict_graph_compute): Free regsets when finished.
15690 * ssa.c (compute_coalesced_reg_partition): Likewise.
15692 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15694 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15695 every where we allocate a register.
15697 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15699 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15700 * lcm.c (compute_earliest, compute_farthest): Likewise.
15702 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15704 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15706 2002-01-11 Janis Johnson <janis187@us.ibm.com>
15708 * doc/rtl.texi (Insns): Fix 2 typos.
15710 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
15712 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
15713 options. Use @table @gcctabopt for MMIX options. Add index
15714 entries for MMIX options. Start new paragraph with first
15715 heading of the machine-dependent options.
15717 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
15720 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15721 * combine.c (force_to_mode): Same.
15722 * reload1.c (clear_reload_reg_in_use): Same.
15724 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
15726 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15729 2002-01-11 Andreas Jaeger <aj@suse.de>,
15730 Brad Lucier <lucier@math.purdue.edu>
15732 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15735 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
15737 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15738 Protect with IN_LIBGCC.
15739 (LINK_EH_SPEC): Add required trailing space.
15741 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
15743 * c-tree.h: Move function declarations so that they are listed
15744 under the filename which contains them.
15745 (check_identifier, finish_decl_top_level,
15746 lookup_name_current_level_global, shadow_record_fields): Remove.
15748 2002-01-11 Andreas Jaeger <aj@suse.de>
15750 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15753 2002-01-10 Richard Henderson <rth@redhat.com>
15755 * config/alpha/alpha.c (print_operand): Add 'J'.
15756 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15757 new operand with the sequence number for the lituse. When splitting
15758 the insns, use gen_movdi_er_high_g and generate a sequence number.
15759 (gen_movdi_er_high_g): Print the sequence number if non-zero.
15761 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
15763 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15764 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15766 (altivec_expand_builtin): Same.
15767 (altivec_expand_stv_builtin): New.
15769 * config/rs6000/rs6000.h (rs6000_builtins): Same.
15771 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15772 ("altivec_lvehx"): New.
15773 ("altivec_lvewx"): New.
15774 ("altivec_lvxl"): New.
15775 ("altivec_lvx"): New.
15776 ("altivec_stvx"): New.
15777 ("altivec_stvebx"): New.
15778 ("altivec_stvehx"): New.
15779 ("altivec_stvewx"): New.
15780 ("altivec_stvxl"): New.
15782 2002-01-10 Richard Henderson <rth@redhat.com>
15784 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15785 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
15786 care not to delete instructions twice.
15788 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15790 * toplev.c: Don't declare environ (it's not used anywhere).
15791 * configure.in: Don't check for declaration of environ.
15792 * config/i386/xm-mingw32.h: Don't #define environ.
15793 * config.in, configure: Regenerate.
15795 2002-01-10 Zack Weinberg <zack@codesourcery.com>
15797 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15798 * configure: Regenerate.
15800 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15801 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15802 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15804 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15805 LIMITS_H_TEST here, not in m68k/x-next.
15806 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15807 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15809 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15810 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15811 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
15813 * config/i386/x-djgpp: Renamed i386/t-djgpp.
15814 * config/m88k/x-dolph: Renamed m88k/t-dolph.
15815 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15816 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
15817 replacement of quadlib.asm with quadlib.c.
15819 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15820 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15821 config/rs6000/xm-beos.h: Delete file.
15823 * config.gcc: Update to match above changes.
15825 2002-01-10 Kazu Hirata <kazu@hxi.com>
15827 * config/h8300/h8300.h: Fix comment typos.
15828 * config/h8300/h8300.md: Likewise.
15829 * config/h8300/lib1funcs.asm: Likewise.
15831 2002-01-10 Dale Johannesen <dalej@apple.com>
15833 PR optimization/5269
15834 * unroll.c (precondition_loop_p): Make *increment be the correct
15835 sign when n_iterations known, to avoid confusing caller.
15837 2002-01-10 Kazu Hirata <kazu@hxi.com>
15839 * doc/extend.texi (deprecated): Fix a typo.
15841 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
15843 * basic-block.h (update_br_prob_note): Declare.
15844 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15845 (try_forward_edges): Care negative frequencies and update note.
15846 (outgoing_edges_match): Tweek conditional merging heuristics.
15847 (try_crossjump_to_edge): use update_br_prob_note.
15848 * cfglayout.c (fixup_reorder_chain): Likewise.
15849 * cfrtl.c (update_br_prob_note): New.
15850 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15852 * i386.c (ix86_decompose_address): Return -1 if address contains
15854 (legitimate_address_p): Require ix86_decompose_address to return 1.
15856 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15857 (cprop_insn): Likewise.
15859 2002-01-10 Kazu Hirata <kazu@hxi.com>
15861 * toplev.c: Fix formatting.
15862 * tree.c: Likewise.
15863 * tree-dump.c: Likewise.
15864 * unroll.c: Likewise.
15865 * unwind-dw2.c: Likewise.
15866 * unwind-dw2-fde.c: Likewise.
15867 * unwind-dw2-fde-glibc.c: Likewise.
15868 * unwind-sjlj.c: Likewise.
15870 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15872 * doc/invoke.texi: Document PDP-11 options.
15874 2002-01-10 Kazu Hirata <kazu@hxi.com>
15876 * config/h8300/h8300.h: Fix formatting.
15878 2002-01-10 Ira Ruben <ira@apple.com>
15880 Add __attribute__ ((deprecated)).
15881 * extend.texi: Document __attribute__ ((deprecated)).
15882 * invoke.texi: Document -Wno-deprecated-declarations.
15883 * testsuite/g++.dg/other/deprecated.C: New C++ test.
15884 * testsuite/gcc.dg/deprecated.c: New C test.
15885 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15886 (c_common_attribute_table): Add "deprecated" entry.
15887 (handle_deprecated_attribute): New function.
15888 * c-decl.c (deprecated_states): New enum.
15889 deprecated_state: State of "deprecated" handling.
15890 (start_decl): Set deprecated_state based on attributes.
15891 (grokdeclarator): Test for deprecated uses, propagate attribute.
15892 * c-typeck.c (build_component_ref): Test for deprecated fields.
15893 (build_external_ref): Test for deprecated primaries.
15894 * diagnostic.c (warn_deprecated_use) New function to issue
15895 warnings about __attribute__ ((depricated)) references.
15896 * flags.h (warn_deprecated_decl): Extern declared for
15897 -W[no-]deprecated-declarations option.
15898 * print-tree.c (print_node): Show deprecated flag status.
15899 * toplev.c (warn_deprecated_decl): Defined.
15900 (W_options): Added "deprecated-declaration".
15901 * toplev.h (warn_deprecated_use): Extern declared.
15902 * tree.h (struct tree_common): Define deprecated_flag.
15903 (TREE_DEPRECATED): New macro to access flag.
15904 * cp/call.c (build_call): Test for deprecated calls.
15905 * cp/class.c (add_implicitly_declared_members): Set global
15906 flag to tell grokdeclarator to not issue deprecated warnings.
15907 * cp/cp-tree.h: Add extern for adding_implicit_members.
15908 * cp/decl.c (deprecated_states): New enum.
15909 (start_decl): Set deprecated_state based on attributes.
15910 (grokdeclarator): Test for deprecated uses, propagate attribute.
15911 * cp/lex.c (do_identifier): Test for deprecated primaries.
15912 * cp/typeck.c (build_component_ref): Test for deprecated fields.
15914 2002-01-10 Ira Ruben <ira@apple.com>
15916 Fix to assign attributes to inline member functions.
15917 * cp/decl.c (start_method): Handle attrlist.
15919 2002-01-10 Kazu Hirata <kazu@hxi.com>
15921 * combine.c (expand_field_assignment): Use subreg_lsb().
15923 2002-01-10 David Edelsohn <edelsohn@gnu.org>
15925 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15926 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15927 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15928 Recurse for any operand of AND as long as constant is non-zero.
15930 2002-01-10 Kazu Hirata <kazu@hxi.com>
15932 * config/h8300/h8300.md: Remove constraints from expanders.
15934 2002-01-10 Kazu Hirata <kazu@hxi.com>
15936 * varasm.c: Fix formatting.
15937 * varray.c: Likewise.
15938 * vmsdbgout.c: Likewise.
15939 * xcoffout.c: Likewise.
15941 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
15943 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15944 update edge probabilities to match.
15946 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
15948 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15950 * doc/languages.texi, doc/sourcebuild.texi: New files.
15951 * doc/configfiles.texi: Make a subsubsection. Update.
15952 * doc/configterms.texi: Add @node. Remove warning that this isn't
15953 instructions for building GCC.
15954 * doc/makefile.texi: Make a subsection.
15955 * doc/gccint.texi: Update.
15957 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
15959 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15961 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
15963 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15965 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
15967 * optabs.c (expand_fix): Look for wider integer modes first.
15969 * i386.md (mov?f): Avoid the fake const double trick for medium
15971 (min?f*/max?f*): Prohibit memory operands for i387 variant.
15972 (fop_df_4): Disable for SSE compilation.
15974 2002-01-10 Graham Stott <grahams@redhat.com>
15976 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15977 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15979 2002-01-10 Richard Henderson <rth@redhat.com>
15981 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15983 2002-01-10 Richard Henderson <rth@redhat.com>
15985 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15986 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
15988 2002-01-10 Kazu Hirata <kazu@hxi.com>
15990 * combine.c (can_combine_p): Fix a comment typo.
15992 2002-01-09 Zack Weinberg <zack@codesourcery.com>
15994 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15995 empty list correctly. Change loop index $t to $f for
15996 consistency with rest of Makefile.
15998 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
16000 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16001 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16003 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16004 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16005 (altivec_init_builtins): Same.
16006 (altivec_expand_unop_builtin): Return NULL_RTX on error.
16007 (altivec_expand_binop_builtin): Same.
16008 (altivec_expand_ternop_builtin): Same.
16011 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16012 ("altivec_vctuxs"): Fix typo.
16013 ("altivec_vnmsubfp"): Same.
16014 ("altivec_dssall"): New.
16015 ("altivec_mfvscr"): New.
16016 ("altivec_dss"): New.
16017 ("altivec_lvsl"): New.
16018 ("altivec_lvsr"): New.
16019 ("altivec_dstt"): New.
16020 ("altivec_dstst"): New.
16021 ("altivec_dststt"): New.
16022 ("altivec_dst"): New.
16024 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16025 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16027 2002-01-09 Richard Henderson <rth@redhat.com>
16029 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16031 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
16033 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16035 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16037 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16039 2002-01-09 Kazu Hirata <kazu@hxi.com>
16041 * read-rtl.c: Fix formatting.
16042 * real.c: Likewise.
16043 * regclass.c: Likewise.
16044 * regrename.c: Likewise.
16045 * reg-stack.c: Likewise.
16046 * reload1.c: Likewise.
16047 * reload.c: Likewise.
16050 2002-01-09 Kazu Hirata <kazu@hxi.com>
16052 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16053 to extract items in the expr_list chain.
16055 2002-01-09 Richard Henderson <rth@redhat.com>
16057 * config/vax/vax.c (vax_rtx_cost): Never abort.
16059 * config/vax/vax.h (REAL_ARITHMETIC): Define.
16061 2002-01-09 Jan Hubicka <jh@suse.cz>
16063 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16065 2002-01-09 Richard Henderson <rth@redhat.com>
16067 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16068 Unify code from various alternatives.
16070 2002-01-09 Richard Henderson <rth@redhat.com>
16072 * regrename.c (copy_value): Ignore the copy if the source register
16073 is present in the value chain with a narrower mode.
16075 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16077 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16078 for the c4x target. Also improve layout.
16080 2002-01-09 Richard Henderson <rth@redhat.com>
16082 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16083 * config/m32r/m32r.md (and ior xor splitters): Swap operands
16084 to match insn patterns.
16086 2002-01-09 Richard Henderson <rth@redhat.com>
16088 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16089 (copyprop_hardreg_forward_1): Likewise.
16091 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
16093 * pa.md (decrement_and_branch_until_zero): Change predicate for
16094 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16096 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16098 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16099 gets undefined. For Darwin.
16101 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16103 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16105 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16107 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16109 2002-01-08 Richard Henderson <rth@redhat.com>
16111 * regrename.c (copy_value): Ignore overlapping copies.
16113 2002-01-08 Richard Henderson <rth@redhat.com>
16115 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16116 as needed to avoid shared structure.
16118 2002-01-08 Kazu Hirata <kazu@hxi.com>
16120 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16123 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16125 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16126 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16127 documentation of obsolete macros.
16128 * system.h: Poison these macros.
16129 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16130 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16131 config/c4x/c4x.h, config/clipper/clipper.h,
16132 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16133 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16134 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16135 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16136 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16137 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16138 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16139 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16140 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16141 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16142 config/sparc/sparc.h, config/stormy16/stormy16.h,
16143 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16144 definitions and commented out definitions of obsolete macros.
16145 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16146 of MAX_INT_TYPE_SIZE.
16148 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16150 * config/s390/s390.c (s390_preferred_reload_class): Never
16151 return ADDR_REGS if it isn't a subset of the given class.
16152 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16153 FP_REGS, but all superclasses as well.
16155 * config/s390/s390.c (s390_function_profiler): Fix thinko.
16157 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16158 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16159 must not be a const_int.
16161 2002-01-08 Richard Henderson <rth@redhat.com>
16163 * Makefile.in (toplev.o): Depend on options.h.
16164 (gcc.o): Depend on specs.h.
16166 2002-01-08 Jakub Jelinek <jakub@redhat.com>
16168 * expr.c (store_expr): Convert VOIDmode constants back to target's
16171 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16173 * doc/invoke.texi: Markup gcc as @command. Refer to
16174 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16175 of http://gcc.gnu.org/thanks.html.
16177 2002-01-08 Dale Johannesen <dalej@apple.com>
16179 * config/rs6000/rs6000.md: Add missing int register
16180 target case to movdf_low.
16182 2002-01-08 Zack Weinberg <zack@codesourcery.com>
16184 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16185 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
16186 (cppinit.o): Depend on except.h.
16187 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16188 s-specs): New rules.
16190 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16191 Don't create specs.h/options.h/gencheck.h here. Remove
16192 unnecessary variable settings from last argument of AC_OUTPUT.
16193 * config.in, configure: Regenerate.
16194 * intl.c: Hardcode package name as "gcc".
16196 * cppinit.c: Include except.h.
16197 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16199 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16200 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16201 (!)USING_SJLJ_EXCEPTIONS.
16202 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16204 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16206 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16207 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16208 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16209 documentation of obsolete macros.
16210 * system.h: Poison these macros.
16211 * config/d30v/d30v.h, config/ns32k/encore.h,
16212 config/stormy16/stormy16.h: Remove definitions and commented out
16213 definitions of obsolete macros.
16215 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
16217 * objc/objc-act.c (handle_class_ref): Mark the declaration of
16218 %sobjc_class_ref_%s as used - to prevent unwanted compiler
16221 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
16223 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16224 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16225 to insn adjusting stack/frame pointer.
16226 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16227 accept operands that cause the insn to be non-splittable.
16229 2002-01-08 Graham Stott <grahams@redhat.com>
16231 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16232 (C_TYPE_FIELDS_VOLATILE): Likewise.
16233 (C_TYPE_BEING_DEFINED): Likewise.
16234 (C_IS_RESERVED_WORD): Likewise.
16235 (C_TYPE_VARIABLE_SIZE): Likewise.
16236 (C_DECL_VARIABLE_SIZE): Likewise.
16237 (C_MISSING_PROTOTYPE_WARNED): Likewise.
16238 (C_SET_EXP_ORIGINAL_CODE): Likewise.
16239 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16241 (C_DECL_ANTICIPATED): Likewise.
16242 (c_build_type_variant): Add parenthesis.
16244 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
16246 * gcc.c (option_map): Remove --version.
16247 (process_command): Handle -fversion following the GNU Coding
16248 Standards. Partially addresses PR other/704.
16250 2002-01-08 Graham Stott <grahams@redhat.com>
16252 * combine.c (combine_instructions): Fix typo.
16254 2002-01-08 Graham Stott <grahams@redhat.com>
16256 * debug.h: Use "tree" and "rtx" throughout.
16258 * debug.c: Likewise.
16260 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
16262 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16263 constant pool, use the pool's version of the symbol instead.
16265 2002-01-07 Richard Henderson <rth@redhat.com>
16267 * regrename.c (find_oldest_value_reg): Ignore the value chain if
16268 the original register was copied in a mode with a fewer number of
16269 hard registers than the desired mode.
16270 (copyprop_hardreg_forward_1): Likewise.
16271 (debug_value_data): Fix loop test.
16272 * toplev.c (parse_options_and_default_flags): Reenable
16273 -fcprop-registers at -O1.
16275 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16277 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16278 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16280 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16283 * config/rs6000/rs6000.md: Add altivec predicate patterns.
16285 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
16287 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16288 (pa_output_function_prologue): Output local label at the beginning of
16289 the prologue when profiling.
16290 (hppa_profile_hook): Use the local label rather than the function label.
16291 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16293 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16295 * config/rs6000/rs6000.c (print_operand): Remove extra space.
16296 (altivec_expand_unop_builtin): Fix thinko.
16297 (altivec_expand_binop_builtin): Same.
16298 (altivec_expand_ternop_builtin): Same.
16299 (altivec_expand_builtin): Same.
16301 2002-01-07 Richard Henderson <rth@redhat.com>
16303 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16305 2002-01-07 Jason Merrill <jason@redhat.com>
16307 * unwind-dw2.c (execute_cfa_program): Use < again.
16309 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16311 * predict.c (combine_predictions_for_insn): Avoid division by zero.
16313 2002-01-07 Jakub Jelinek <jakub@redhat.com>
16315 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16316 Don't allow -1 - x -> ~x simplifications in the first pass.
16318 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
16320 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16322 (altivec_expand_binop_builtin): Same.
16323 (altivec_expand_unop_builtin): Same.
16324 (print_operand): Fix typo.
16325 (bdesc_1arg): Add vupk* variants.
16327 * rs6000.h (rs6000_builtins): Add vupk* enums.
16329 * rs6000.md: Add altivec_vupk* variants.
16331 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
16333 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16334 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16335 and last update dates.
16337 2002-01-07 Janis Johnson <janis187@us.ibm.com>
16339 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16341 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
16343 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16344 * config/avr/avr.h (CPP_SPEC): Likewise.
16345 (LINK_SPEC): Likewise.
16346 (CRT_BINUTILS_SPECS): Likewise.
16347 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16348 * doc/invoke.texi (AVR Options): Document them.
16350 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
16352 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16355 2002-01-07 Graham Stott <grahams@redhat.com>
16357 * config/i386/i386.h: Update copyright date.
16358 (HALF_PIC_PTR): Add parenthesis.
16359 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16360 (CONSTANT_ALIGNMENT): Add parenthesis.
16361 (DATA_ALIGNMENT): Likewise.
16362 (LOCAL_ALIGNMENT): Likewise.
16363 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16364 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16365 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16366 (HARD_REGNO_NREGS): Add paranethesis.
16367 (VALID_SSE_REG_MODE): Whitespace.
16368 (VALID_MMX_REG_MODE): Whitespace.
16369 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16370 (ix86_hard_regno_mode_ok): Add parenthesis.
16371 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16372 (RETURN_IN_MEMORY): Whitespace.
16373 (N_REG_CLASSES): Add parenthesis.
16374 (INTEGER_CLASS_P): Add parenthesis and wrap.
16375 (FLOAT_CLASS_P): Likewise.
16376 (SSE_CLASS_P): Likewise.
16377 (MMX_CLASS_P): Likewise.
16378 (MAYBE_INTEGER_CLASS_P): Likewise.
16379 (MAYBE_FLOAT_CLASS_P): Likewise.
16380 (MAYBE_SSE_CLASS_P): Likewise.
16381 (MAYBE_MMX_CLASS_P): Likewise.
16382 (Q_CLASS_P): Likewise.
16383 (GENERAL_REGNO_P): Uppercase macro parameter.
16384 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16385 (FP_REGNO_P): Likewise.
16386 (ANY_FP_REGNO_P): Uppercase macro parameter.
16387 (SSE_REGNO_P): Likewise.
16388 (SSE_REGNO): Likewise.
16389 (SSE_REG_P): Likewise.
16390 (SSE_FLOAT_MODE_P): Likewise.
16391 (MMX_REGNO_P): Likewise.
16392 (MMX_REG_P):Likewise.
16393 (STACK_REG_P): Likewise.
16394 (NON_STACK_REG_P): Likewise.
16395 (STACK_TOP_P): Likewise.
16396 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16397 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16398 (SECONDARY_MEMORY_NEEDED): Likewise.
16399 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16400 (MD_ASM_CLOBBERS): Whitespace and wrap.
16401 (MUST_PASS_IN_STACK): Whitespace and wrap.
16402 (RETURN_POPS_ARGS): Add parenthesis.
16403 (INIT_CUMULATIVE_ARGS): Likewise.
16404 (FUNCTION_ARG): Likewise.
16405 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16406 (SETUP_INCOMING_VARARGS): Likewise.
16407 (BUILD_VA_LIST_TYPE): Add parenthesis.
16408 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16410 (EXPAND_BUILTIN_VA_ARG): Likewise.
16411 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16412 (INITIALIZE_TRAMPOLINE): Add parenthesis.
16413 (INITIAL_ELIMINATION_OFFSET): Likewise.
16414 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16415 (REGNO_OK_FOR_BASE_P): Likewise.
16416 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16417 (REGNO_OK_FOR_DIREG_P): Likewise.
16418 (REG_OK_FOR_INDEX_P): Whitespace.
16419 (REG_OK_FOR_BASE_P): Whitespace.
16420 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16422 (FIND_BASE_TERM): Fix typo.
16423 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
16424 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16425 (SYMBOLIC_CONST; Whitespace.
16426 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
16427 (ENCODE_SECTION_INFO): Whitespace.
16428 (FINALIZE_PIC): Remove do { ... } while (0).
16429 (PROMOTE_MODE): Wrap in do { ... } while (0).
16430 (CONST_COSTS): Whitespace.
16431 (RTX_COSTS): Add paramethesis, whitespace and wrap.
16432 (REGISTER_MOVE_COST): Add parenthesis.
16433 (MEMORY_MOVE_COST): Likewise.
16434 (EXTRA_CC_MODES): Whitespace.
16435 (SELECT_CC_MODE): Add parenthesis and whitespace.
16436 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16437 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16438 (ASM_OUTPUT_LABEL): Add paramethesis.
16439 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16440 (ASM_OUTPUT_REG_POP): Likewise.
16441 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16442 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16444 * config/i386/i386.c: Update copyright.
16445 (CHECK_STACK_LIMIT): Add parenthesis.
16446 (AT_BP): Uppercase macro parameter.
16447 (x86_64_int_parameter_registers): Constify.
16448 (x86_64_int_return_registers): Likewise.
16449 (ix86_compare_op0): Use rtx.
16450 (construct_container): Constify INTREG parameter.
16451 (function_arg): Use rtx.
16453 * diagnostic.h: Update copyright date.
16454 (output_buffer_state): Add parenthesis.
16455 (output_buffer_format_args): Likewise.
16457 * combine.c (combine_instructions): Replace XEXP (links, 0)
16460 2002-01-06 H.J. Lu <hjl@gnu.org>
16462 * cfgcleanup.c (thread_jump): Fix 2 typos.
16464 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
16466 * config.gcc: Add support for --enable-altivec.
16468 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16470 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16472 2002-01-06 Jakub Jelinek <jakub@redhat.com>
16474 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16475 __objc_class_name_*.
16477 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
16479 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16481 2002-01-06 Richard Henderson <rth@redhat.com>
16483 * reorg.c (emit_delay_sequence): Remove death notes, not merely
16484 nop them out. Increment label reference count for REG_LABEL.
16485 (fill_slots_from_thread): Frob label reference count around
16486 delete_related_insns.
16488 2002-01-05 Richard Henderson <rth@redhat.com>
16490 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16493 2002-01-05 Richard Henderson <rth@redhat.com>
16495 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16496 * integrate.c (output_inline_function): Likewise.
16497 * toplev.c (rest_of_compilation): Do it here instead. Move call
16498 to remove_unnecessary_notes after emitting abstract instance.
16499 Force an emitted nested function to have its parent emited as well.
16500 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16502 (rtl_for_decl_location): Do not look at reload data structures
16503 before reload has run.
16505 2002-01-05 Kazu Hirata <kazu@hxi.com>
16507 * cse.c: Fix formatting.
16508 * dwarf2asm.c: Likewise.
16509 * dwarf2out.c: Likewise.
16510 * explow.c: Likewise.
16511 * expmed.c: Likewise.
16512 * function.c: Likewise.
16513 * gcov.c: Likewise.
16514 * gencheck.c: Likewise.
16515 * genrecog.c: Likewise.
16516 * ggc-common.c: Likewise.
16517 * ggc-page.c: Likewise.
16518 * global.c: Likewise.
16520 2002-01-05 Kazu Hirata <kazu@hxi.com>
16522 * combine.c: Fix formatting.
16524 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
16527 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16529 2002-01-05 David Edelsohn <edelsohn@gnu.org>
16531 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16532 as 1 for __powerpc64__ as well.
16534 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16536 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16539 2002-01-05 Daniel Berlin <dan@dberlin.org>
16541 * lcm.c: Revert change, due to performance regression it causes on
16542 SPEC because it's slightly more conservative (sigh, I hate
16545 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
16547 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16549 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
16551 * doc/cppinternals.texi: Update.
16553 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
16555 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16556 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16558 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
16559 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16560 kludge for pre-october-14th mmix versions to handle new-found bug
16561 with PUSHJ/PUSHGO and the register stack.
16562 * config/mmix/mmix.h (struct machine_function): Rename member
16563 has_call_value_without_parameters to has_call_without_parameters.
16564 All referers changed.
16565 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16566 TARGET_MASK_BRANCH_PREDICT): New macros.
16567 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16568 -mno-reg-stack-fill-bug-workaround.
16569 * config/mmix/mmix.md ("call"): Set struct machine member
16570 has_call_without_parameters.
16572 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
16574 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16576 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
16578 * cfgcleanup.c: Include tm_p.h
16579 (mark_effect): Fix handling of hard register; fix handling of SET
16581 2002-01-04 Kazu Hirata <kazu@hxi.com>
16583 * config/h8300/h8300.md (anonymous patterns): Check that
16584 operands are registers before using REGNO on them.
16586 2002-01-03 Roland McGrath <roland@frob.com>
16588 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16590 2002-01-04 Jakub Jelinek <jakub@redhat.com>
16592 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16593 * c-common.h (genrtl_expr_stmt_value): Likewise.
16594 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16595 (expand_expr_stmt_value): Add maybe_last argument.
16596 Don't warn about statement with no effect if it is the last statement
16597 in expression statement.
16598 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16599 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16600 expand_expr_stmt_value.
16601 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16602 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16603 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16604 as maybe_last to expand_expr_stmt_value.
16606 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
16608 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16609 be passed in, do not build it.
16610 (c_begin_if_stmt): New function.
16611 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16612 * c-common.h (c_expand_start_cond): Update prototype.
16613 (c_begin_if_stmt): Prototype new function.
16614 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16615 * c-parse.in (if_prefix): Use c_begin_if_stmt,
16616 c_begin_while_stmt and c_finish_while_stmt_cond.
16618 2002-01-04 William Cohen <wcohen@redhat.com>
16620 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16621 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16622 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16623 * config/pa/som.h (ASM_FILE_START): Likewise.
16625 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
16627 * lcm.c: Include df.h.
16628 Add available_transfer_function prototype.
16629 (compute_available): Rework to use iterative dataflow framework.
16630 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16631 with bb_info in df.h
16632 (available_transfer_function): New function.
16634 * Makefile.in (lcm.o): add df.h to dependencies.
16636 2002-01-04 Richard Henderson <rth@redhat.com>
16638 * config/alpha/alpha.c (some_operand): Accept HIGH.
16639 (input_operand): Likewise; accept simple references to globals.
16640 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16641 (alpha_const_double_ok_for_letter_p): Likewise.
16642 (alpha_extra_constraint): Likewise.
16643 (alpha_preferred_reload_class): Likewise. Do not force
16644 symbolic constants to memory.
16645 (alpha_legitimate_address_p): Accept simple references
16646 to small_symbolic_operand.
16647 (alpha_legitimize_address): New arg scratch. Be prepared to be
16648 called when no_new_pseudos. Emit simple symbolic references.
16649 Split integers into low, high, and rest.
16650 (alpha_expand_mov): Use alpha_legitimize_address.
16651 (some_small_symbolic_mem_operand): New.
16652 (split_small_symbolic_mem_operand): New.
16653 * config/alpha/alpha-protos.h: Update.
16654 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16655 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16656 (EXTRA_CONSTRAINT): Likewise.
16657 (PREFERRED_RELOAD_CLASS): Likewise.
16658 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16659 (PREDICATE_CODES): Update.
16660 * config/alpha/alpha.md: New post-reload splitters to convert
16661 simplfied symbolic operands to the form that references $29.
16662 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16663 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16665 2002-01-03 Richard Henderson <rth@redhat.com>
16667 * local-alloc.c (function_invariant_p): Update commentary.
16669 2002-01-04 H.J. Lu <hjl@gnu.org>
16671 * toplev.c (rest_of_compilation): Fix a typo when calling
16674 2002-01-03 Kazu Hirata <kazu@hxi.com>
16676 * c-common.c: Fix formatting.
16677 * diagnostic.c: Likewise.
16678 * doloop.c: Likewise.
16679 * dwarf2out.c: Likewise.
16681 2002-01-03 Kazu Hirata <kazu@hxi.com>
16683 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16684 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16686 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16688 * cpperror.c: Update comments and copyright.
16689 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16690 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16692 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
16694 * collect2.c (main): Use strcmp when testing for "-shared".
16696 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
16698 * cppmacro.c: Don't include intl.h. Update comments.
16699 (new_number_token): Allocate enough buffer for 64-bit unsigned
16700 integers; update prototype.
16701 * cppmain.c: Update comments.
16703 2002-01-03 William Cohen <wcohen@redhat.com>
16705 * function.h (struct function): Add profile.
16706 (current_function_profile): New.
16707 doc/extend.texi: Update documentation.
16708 * final.c (final_start_function): Use current_function_profile
16709 instead of profile_flag.
16710 (profile_after_prologue): Likewise.
16711 * function.c (expand_function_start): Likewise.
16712 (expand_function_start): Likewise.
16713 * config/alpha/alpha.c (direct_call_operand):
16714 (alpha_does_function_need_gp): Likewise.
16715 (alpha_expand_prologue): Likewise.
16716 * config/arm/arm.c (arm_expand_prologue): Likewise.
16717 thumb_expand_prologue: Likewise.
16718 * config/d30v/d30v.c (d30v_stack_info): Likewise.
16719 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16720 (fr30_expand_prologue): Likewise.
16721 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16722 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16723 * config/i386/i386.h (FINALIZE_PIC): Likewise.
16724 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16725 * config/i960/i960.c (i960_output_function_prologue): Likewise.
16726 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16727 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16728 (m32r_expand_prologue): Likewise.
16729 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16730 (m88k_expand_prologue): Likewise.
16731 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16732 * config/mips/mips.c (compute_frame_size): Likewise.
16733 (mips_expand_prologue): Likewise.
16734 (mips_can_use_return_insn): Likewise.
16735 * config/pa/elf.h (ASM_FILE_START): Likewise.
16736 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16737 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16738 * config/pa/som.h (ASM_FILE_START): Likewise.
16739 * config/romp/romp.c (romp_using_r14): Likewise.
16740 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16741 (rs6000_stack_info): Likewise.
16742 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16743 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16744 * config/v850/v850.c (compute_register_save_size): Likewise.
16746 2002-01-03 Jakub Jelinek <jakub@redhat.com>
16748 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16749 gen_lowpart_common fails, use gen_lowpart_SUBREG.
16751 2002-01-03 Turly O'Connor <turly@apple.com>
16753 * darwin.c (machopic_output_possible_stub_label): Don't generate
16754 stub routines for pseudo-stubs which we've just defined.
16756 2002-01-03 Kazu Hirata <kazu@hxi.com>
16758 * builtins.c: Fix formatting.
16759 * c-typeck.c: Likewise.
16760 * combine.c: Likewise.
16761 * expr.c: Likewise.
16762 * loop.c: Likewise.
16764 2002-01-03 Andreas Schwab <schwab@suse.de>
16766 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16767 and return true if _cpp_push_next_buffer pushed a new include
16769 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16770 _cpp_pop_file_buffer did not push a new file.
16771 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16773 2002-01-02 Eric Christopher <echristo@redhat.com>
16775 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16776 FIND_REG_INC_NOTE call. Update copyright.
16777 * loop.c (canonicalize_condition): Ditto.
16778 * reorg.c (delete_scheduled_jump): Ditto.
16780 2002-01-03 Kazu Hirata <kazu@hxi.com>
16782 * gcse.c: Fix formatting.
16784 2002-01-03 Graham Stott <grahams@redhat.com>
16786 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16787 forward defs for struct tags rtx_def, union_tree, rtvec_def
16788 also output corresponding typedefs for rtx, tree, and rtvec.
16790 * system.h: Move forward defs for struct tags rtx_def, union_tree,
16791 rtvec_def along with corresponding typedefs for rtx, tree, and
16792 rtvec to config.h, hconfig.h, tconfig.h.
16794 2002-01-03 Graham Stott <grahams@redhat.com>
16796 * tree.h: Update copyright date.
16797 (IS_EXPR_CODE_CLASS): Add parenthesis.
16798 (TREE_SET_CODE): Add whitespace.
16799 (TREE_CHECK): Add parenthesis.
16800 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16801 (CST_OR_CONSTRUCTOR_CHECK):
16802 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16803 (TREE_SYMBOL_REFERENCED): Whitespace.
16804 (INT_CST_LT): Likewise.
16805 (INT_CST_LT_UNSIGNED): Likewise.
16806 (tree_real_cst): Unwrap comment.
16807 (tree_string): Likewise.
16808 (tree_complex): Likewise.
16809 (IDENTIFIER_POINTER): correct cast.
16810 (SAVE_EXPR_CONTEXT): Whitespace.
16811 (EXPR_WFL_FILENAME_NODE): Likewise.
16812 (EXPR_WFL_FILENAME): Remove parenthesis.
16813 (DECL_ORIGIN): Add parenthesis.
16814 (DECL_FROM_INLINE): Use NULL_TREE.
16815 (build_int_2): Whitespace.
16816 (build_type_variant): Add parenthesis.
16818 * gcc/jcf-parse.c: Update copyright date.
16819 (yyparse): Constify resource_filename.
16821 2002-01-03 Graham Stott <grahams@redhat.com>
16823 * rtl.h: Update copyright date.
16824 (RTL_CHECK1): Wrap long line.
16825 (RTL_CHECK2): Likewise.
16826 (RTL_CHECKC1): Wrap long line and whitespace.
16827 (RTL_CHECKC2): Likewise.
16828 (XWINT): Whitespace.
16834 (XBITMAP): Likewise.
16836 (XBBDEF): Likewise.
16838 (X0WINT): Likewise.
16840 (X0UINT): Likewise.
16844 (X0MODE): Likewise.
16845 (X0BITMAP): Likewise.
16846 (X0TREE): Likewise.
16847 (X0BBDEF): Likewise.
16848 (X0ADVFLAGS): Likewise.
16849 (X0CSELIB): Likewise.
16850 (X0MEMATTR): Likewise.
16851 (XCWINT): Likewise.
16853 (XCUINT): Likewise.
16857 (XCMODE): Likewise.
16858 (XCBITMAP): Likewise.
16859 (XCTREE): Likewise.
16860 (XCBBDEF): Likewise.
16861 (XCADVFLAGS): Likewise.
16862 (XCCSELIB): Likewise.
16863 (XC2EXP): Likewise.
16864 (INSN_UID): Likewise.
16865 (PREV_INSN): Likewise.
16866 (PATTERN): Likewise.
16867 (INSN_CODE): Likewise.
16868 (PUT_REG_NOTE_KIND): Likewise.
16869 (CODE_LABEL_NUMBER): Likewise.
16870 (NOTE_SOURCE_FILE): Likewise.
16871 (NOTE_BLOCK): Likewise.
16872 (NOTE_EH_HANDLER): Likewise.
16873 (NOTE_RANGE_INFO): Likewise.
16874 (NOTE_LIVE_INFO): Likewise.
16875 (NOTE_BASIC_BLOCK): Likewise.
16876 (NOTE_EXPECTED_VALUE): Likewise.
16877 (NOTE_LINE_NUMBER): Likewise.
16878 (LABEL_NAME): Likewise.
16879 (LABEL_NUSES): Likewise.
16880 (LABEL_ALTERNATE_NAME): Likewise.
16881 (ADDRESSOF_DECL): Likewise.
16882 (JUMP_LABEL): Likewise.
16883 (LABEL_NEXTREF): Likewise.
16885 (ORIGINAL_REGNO: Likewise.
16886 (HARD_REGISTER_NUM_P): Add parenthesis.
16887 (SUBREG_REG): Whitespace.
16888 (SUBREG_BYTE): Likewise.
16889 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16890 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16891 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16892 (ASM_OPERANDS_INPUT_VEC): Likewise.
16893 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16894 (ASM_OPERANDS_INPUT): Likewise.
16895 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16896 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16897 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16898 (ASM_OPERANDS_INPUT_MODE): Likewise.
16899 (ASM_OPERANDS_SOURCE_FILE): Likewise.
16900 (ASM_OPERANDS_SOURCE_LINE): Likewise.
16901 (MEM_SET_IN_STRUCT_P): Minor reformat.
16902 (TRAP_CONDITION): Whitespace.
16903 (TRAP_CODE): Likewise.
16904 (COND_EXEC_TEST): Likewise.
16905 (COND_EXEC_CODE): Likewise.
16906 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16907 (PHI_NODE_P): Add parenthesis.
16908 (plus_constant): Whitespace and add parenthesis.
16910 2002-01-03 Kazu Hirata <kazu@hxi.com>
16912 * config/avr/avr.c: Fix comment typos.
16913 * config/c4x/c4x.md: Likewise.
16914 * config/dsp16xx/dsp16xx.h: Likewise.
16915 * config/dsp16xx/dsp16xx.md: Likewise.
16916 * config/i386/i386.md: Likewise.
16917 * config/ia64/ia64.c: Likewise.
16918 * config/m32r/m32r.h: Likewise.
16919 * config/m68hc11/m68hc11.md: Likewise.
16920 * config/mmix/mmix.c: Likewise.
16921 * config/mn10200/mn10200.c: Likewise.
16922 * config/romp/romp.c: Likewise.
16923 * config/sh/sh.c: Likewise.
16924 * config/stormy16/stormy16.c: Likewise.
16925 * config/stormy16/stormy16.h: Likewise.
16926 * config/stormy16/stormy16.md: Likewise.
16928 2002-01-03 Graham Stott <grahams@redhat.com>
16930 * loop.h: Update copyright date.
16931 (LOOP_MOVABLES): Fix typo.
16932 (LOOP_REGS): Likewise.
16933 (LOOP_IVS): Likewise.
16935 2002-01-03 Graham Stott <grahams@redhat.com>
16937 * cppinit.c: Update copyright date.
16938 Don't include output.h
16939 * Makefile.in: Update copyright date.
16942 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
16945 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16946 (-pthread) Add to RS/6000 options.
16948 2002-01-02 Kazu Hirata <kazu@hxi.com>
16950 * except.c: Fix comment typos.
16951 * loop.c: Likewise.
16952 * varasm.c: Likewise.
16953 * doc/tm.texi: Fix a typo.
16955 2002-01-02 Jakub Jelinek <jakub@redhat.com>
16957 * c-typeck.c (output_init_element): Allow initializing static storage
16958 duration objects with compound literals.
16960 2002-01-02 Richard Henderson <rth@redhat.com>
16962 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16965 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16967 * gcc.c (default_compilers): Const-ify.
16968 * mips-tdump.c (stab_names): Likewise.
16969 * mips-tfile.c (map_coff_types, map_coff_storage,
16970 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16971 pseudo_ops_t, pseudo_ops): Likewise.
16972 * protoize.c (default_include): Likewise
16974 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16975 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16976 Add array size in declaration.
16977 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16978 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16979 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16980 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16981 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16982 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16983 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16984 emtens, make_nan): Const-ify.
16985 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16986 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16988 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
16990 * config.gcc (ia64-*-*): Set extra_headers.
16991 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
16992 * config/alpha/t-osf: Remove.
16993 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16995 2002-01-02 David Edelsohn <edelsohn@gnu.org>
16997 * config/rs6000/t-aix43: Revert previous change.
16999 2002-01-02 Jason Merrill <jason@redhat.com>
17001 * c-decl.c (c_expand_body): Call outlining_inline_function when
17002 emitting an inline function out of line.
17004 2002-01-02 Richard Henderson <rth@redhat.com>
17006 * dwarf2out.c (limbo_die_node): Add created_for member.
17007 (new_die): New argument created_for. Update all callers.
17008 (mark_limbo_die_list): New.
17009 (dwarf2out_init): Register limbo_die_list as a root.
17010 (dwarf2out_finish): Force insert limbo dies into their function
17013 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
17016 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17018 2002-01-02 Kazu Hirata <kazu@hxi.com>
17020 * config/h8300/fixunssfsi.c: Update copyright.
17023 * config/h8300/h8300.c: Update copyright.
17024 Eliminate warnings.
17026 2002-01-02 Kazu Hirata <kazu@hxi.com>
17028 * config/romp/romp.c: Fix comment formatting.
17029 * config/romp/romp.h: Likewise.
17030 * config/romp/romp.md: Likewise.
17031 * config/s390/s390.c: Likewise.
17032 * config/stormy16/stormy16.c: Likewise.
17033 * config/stormy16/stormy16.h: Likewise.
17035 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
17037 * c-common.h (genrtl_expr_stmt_value): Declare.
17038 * c-semantics.c (genrtl_goto_stmt): Redirect to...
17039 (genrtl_goto_stmt_value): ... this new function. Pass new
17040 argument down to expand_expr_stmt_value, taking
17041 TREE_ADDRESSABLE into account.
17042 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17043 STMT_EXPR as addressable, i.e., one whose result we want.
17044 * expr.c (expand_expr): Don't save expression statement value
17045 of labeled_blocks or loop_exprs.
17046 * stmt.c (expand_expr_stmt): Redirect to...
17047 (expand_expr_stmt_value): ... this new function. Use new
17048 argument to tell whether to save expression value.
17049 (expand_end_stmt_expr): Reset last_expr_type and
17050 last_expr_value if we don't have either.
17051 * tree-inline.c (declare_return_variable): Mark its use
17052 statement as addressable.
17053 * tree.h: Document new use of TREE_ADDRESSABLE.
17054 (expand_expr_stmt_value): Declare.
17056 2002-01-01 Tom Rix <trix@redhat.com>
17058 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17059 rs6000_emit_allocate_stack.
17061 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
17063 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17064 ${srcdir}/ginclude/ to every entry in extra_headers.
17065 * configure: Regenerate.
17066 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17067 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17068 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17069 * ginclude/proto.h: Rename to config/convex/proto.h.
17071 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17073 * attribs.c (handle_vector_size_attribute): Use host_integerp
17074 and tree_int_cst; remove warnings.
17075 * caller-save.c (insert_restore): Add cast to get rid of warning.
17076 (insert_save): Likewise.
17077 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17078 * regmove.c (find_matches): Add temporary var to kill a warning.
17080 2002-01-01 Douglas B Rupp <rupp@gnat.com>
17082 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17083 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17084 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17085 (vms-dwarf2eh.o): Add Makefile rule.
17086 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17087 * config/alpha/vms-dwarf2eh.asm: New file.
17089 * gcc.c (delete_if_ordinary): Delete all versions.
17091 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17093 * config/mmix/mmix.md: Update FIXME to not mention
17095 (MMIX_rJ_REGNUM): New define_constants constant.
17096 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17097 "*movdicc_real"): Adjust contraints formatting.
17098 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17099 for branch prediction.
17100 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17102 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17103 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17104 number. Delete related FIXMEs.
17105 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17106 from number to MMIX_rJ_REGNUM.
17107 (TARGET_MASK_BRANCH_PREDICT): New.
17108 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17109 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
17110 value. Add -mbranch-predict and -mno-branch-predict.
17111 (TARGET_VERSION): Drop date.
17112 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17113 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17114 for finding out global symbols.
17115 (mmix_asm_output_labelref): Revert condition for global symbol.
17116 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17117 (mmix_print_operand_punct_valid_p): A '+' is valid.
17119 See ChangeLog.6 for earlier changes.